@fastybird/smart-panel-backend 1.0.0-beta.2 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.module.js +54 -0
- package/dist/app.module.js.map +1 -1
- package/dist/common/utils/semver.js +1 -1
- package/dist/common/utils/semver.js.map +1 -1
- package/dist/common/utils/shared-lock-socket-path.utils.d.ts +1 -0
- package/dist/common/utils/shared-lock-socket-path.utils.js +34 -0
- package/dist/common/utils/shared-lock-socket-path.utils.js.map +1 -0
- package/dist/common/utils/sqlite-fts.utils.d.ts +17 -0
- package/dist/common/utils/sqlite-fts.utils.js +63 -0
- package/dist/common/utils/sqlite-fts.utils.js.map +1 -0
- package/dist/common/utils/transform.utils.d.ts +2 -0
- package/dist/common/utils/transform.utils.js +17 -2
- package/dist/common/utils/transform.utils.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +9 -2
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000007-AddVirtualDevicesSupport.d.ts +6 -0
- package/dist/migrations/1000000000007-AddVirtualDevicesSupport.js +26 -0
- package/dist/migrations/1000000000007-AddVirtualDevicesSupport.js.map +1 -0
- package/dist/migrations/1000000000008-AddMcpClients.d.ts +6 -0
- package/dist/migrations/1000000000008-AddMcpClients.js +41 -0
- package/dist/migrations/1000000000008-AddMcpClients.js.map +1 -0
- package/dist/migrations/1000000000009-AddDeviceHiddenBy.d.ts +6 -0
- package/dist/migrations/1000000000009-AddDeviceHiddenBy.js +19 -0
- package/dist/migrations/1000000000009-AddDeviceHiddenBy.js.map +1 -0
- package/dist/migrations/1000000000010-AddEnergyClaimToProjections.d.ts +7 -0
- package/dist/migrations/1000000000010-AddEnergyClaimToProjections.js +59 -0
- package/dist/migrations/1000000000010-AddEnergyClaimToProjections.js.map +1 -0
- package/dist/migrations/1000000000010-AddMcpOAuthFoundation.d.ts +6 -0
- package/dist/migrations/1000000000010-AddMcpOAuthFoundation.js +124 -0
- package/dist/migrations/1000000000010-AddMcpOAuthFoundation.js.map +1 -0
- package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.d.ts +6 -0
- package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.js +33 -0
- package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.js.map +1 -0
- package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.d.ts +6 -0
- package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.js +18 -0
- package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.js.map +1 -0
- package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.d.ts +8 -0
- package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.js +80 -0
- package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.js.map +1 -0
- package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.d.ts +6 -0
- package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.js +18 -0
- package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.js.map +1 -0
- package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.d.ts +6 -0
- package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.js +26 -0
- package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.js.map +1 -0
- package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.d.ts +6 -0
- package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.js +20 -0
- package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.js.map +1 -0
- package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.d.ts +6 -0
- package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.js +69 -0
- package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.js.map +1 -0
- package/dist/migrations/1000000000018-AddWledHardwareIdentity.d.ts +6 -0
- package/dist/migrations/1000000000018-AddWledHardwareIdentity.js +23 -0
- package/dist/migrations/1000000000018-AddWledHardwareIdentity.js.map +1 -0
- package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.d.ts +6 -0
- package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.js +31 -0
- package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.js.map +1 -0
- package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.d.ts +7 -0
- package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.js +106 -0
- package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.js.map +1 -0
- package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.d.ts +6 -0
- package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.js +22 -0
- package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.js.map +1 -0
- package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.d.ts +6 -0
- package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.js +20 -0
- package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.js.map +1 -0
- package/dist/migrations/1000000000023-AddPropertyValueLocks.d.ts +6 -0
- package/dist/migrations/1000000000023-AddPropertyValueLocks.js +20 -0
- package/dist/migrations/1000000000023-AddPropertyValueLocks.js.map +1 -0
- package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.d.ts +6 -0
- package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.js +26 -0
- package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.js.map +1 -0
- package/dist/migrations/1000000000025-AddNotifications.d.ts +6 -0
- package/dist/migrations/1000000000025-AddNotifications.js +44 -0
- package/dist/migrations/1000000000025-AddNotifications.js.map +1 -0
- package/dist/modules/api/api.constants.d.ts +2 -0
- package/dist/modules/api/api.constants.js +3 -1
- package/dist/modules/api/api.constants.js.map +1 -1
- package/dist/modules/api/api.module.d.ts +8 -1
- package/dist/modules/api/api.module.js +40 -2
- package/dist/modules/api/api.module.js.map +1 -1
- package/dist/modules/api/api.openapi.d.ts +2 -1
- package/dist/modules/api/api.openapi.js +3 -0
- package/dist/modules/api/api.openapi.js.map +1 -1
- package/dist/modules/api/interceptors/location-replace.interceptor.js +2 -2
- package/dist/modules/api/interceptors/location-replace.interceptor.js.map +1 -1
- package/dist/modules/api/models/bulk.model.d.ts +8 -0
- package/dist/modules/api/models/bulk.model.js +65 -0
- package/dist/modules/api/models/bulk.model.js.map +1 -0
- package/dist/modules/api/services/client-address.service.d.ts +29 -0
- package/dist/modules/api/services/client-address.service.js +146 -0
- package/dist/modules/api/services/client-address.service.js.map +1 -0
- package/dist/modules/api/services/trusted-proxy-registry.service.d.ts +10 -0
- package/dist/modules/api/services/trusted-proxy-registry.service.js +40 -0
- package/dist/modules/api/services/trusted-proxy-registry.service.js.map +1 -0
- package/dist/modules/api/utils/bulk.utils.d.ts +10 -0
- package/dist/modules/api/utils/bulk.utils.js +74 -0
- package/dist/modules/api/utils/bulk.utils.js.map +1 -0
- package/dist/modules/api/utils/ip-match.utils.d.ts +3 -0
- package/dist/modules/api/utils/ip-match.utils.js +115 -0
- package/dist/modules/api/utils/ip-match.utils.js.map +1 -0
- package/dist/modules/auth/auth.constants.d.ts +2 -1
- package/dist/modules/auth/auth.constants.js +1 -0
- package/dist/modules/auth/auth.constants.js.map +1 -1
- package/dist/modules/auth/auth.module.js +3 -1
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/auth.openapi.d.ts +2 -1
- package/dist/modules/auth/auth.openapi.js +4 -0
- package/dist/modules/auth/auth.openapi.js.map +1 -1
- package/dist/modules/auth/commands/reset-password.command.d.ts +3 -1
- package/dist/modules/auth/commands/reset-password.command.js +30 -14
- package/dist/modules/auth/commands/reset-password.command.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.d.ts +5 -2
- package/dist/modules/auth/controllers/auth.controller.js +10 -5
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/tokens.controller.js +7 -0
- package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.d.ts +11 -1
- package/dist/modules/auth/guards/auth.guard.js +76 -7
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +4 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.js +8 -2
- package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -1
- package/dist/modules/auth/services/auth.service.d.ts +11 -2
- package/dist/modules/auth/services/auth.service.js +60 -9
- package/dist/modules/auth/services/auth.service.js.map +1 -1
- package/dist/modules/auth/services/tokens.service.d.ts +12 -2
- package/dist/modules/auth/services/tokens.service.js +25 -3
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/buddy/buddy.constants.d.ts +8 -0
- package/dist/modules/buddy/buddy.constants.js +10 -1
- package/dist/modules/buddy/buddy.constants.js.map +1 -1
- package/dist/modules/buddy/buddy.module.d.ts +7 -1
- package/dist/modules/buddy/buddy.module.js +20 -2
- package/dist/modules/buddy/buddy.module.js.map +1 -1
- package/dist/modules/buddy/buddy.openapi.d.ts +2 -1
- package/dist/modules/buddy/buddy.openapi.js +2 -0
- package/dist/modules/buddy/buddy.openapi.js.map +1 -1
- package/dist/modules/buddy/models/context-plan.model.d.ts +47 -0
- package/dist/modules/{extensions/services/managed-plugin-service.interface.js → buddy/models/context-plan.model.js} +1 -1
- package/dist/modules/buddy/models/context-plan.model.js.map +1 -0
- package/dist/modules/buddy/platforms/anthropic-sdk.utils.d.ts +3 -2
- package/dist/modules/buddy/platforms/anthropic-sdk.utils.js +55 -12
- package/dist/modules/buddy/platforms/anthropic-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.d.ts +20 -0
- package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.js +155 -0
- package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.js.map +1 -0
- package/dist/modules/buddy/platforms/llm-conversation.utils.d.ts +8 -0
- package/dist/modules/buddy/platforms/llm-conversation.utils.js +90 -0
- package/dist/modules/buddy/platforms/llm-conversation.utils.js.map +1 -0
- package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +115 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +3 -2
- package/dist/modules/buddy/platforms/openai-sdk.utils.js +48 -14
- package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context-planner.service.d.ts +4 -0
- package/dist/modules/buddy/services/buddy-context-planner.service.js +21 -0
- package/dist/modules/buddy/services/buddy-context-planner.service.js.map +1 -0
- package/dist/modules/buddy/services/buddy-conversation.service.d.ts +7 -1
- package/dist/modules/buddy/services/buddy-conversation.service.js +251 -42
- package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-tool-selection.service.d.ts +16 -0
- package/dist/modules/buddy/services/buddy-tool-selection.service.js +711 -0
- package/dist/modules/buddy/services/buddy-tool-selection.service.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.d.ts +22 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.js +451 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-language.d.ts +51 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-language.js +559 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-language.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.d.ts +42 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.js +673 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.d.ts +11 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.js +39 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.d.ts +128 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.js +220 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.d.ts +2 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.js +304 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.d.ts +12 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.js +35 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.d.ts +31 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.js +97 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.js.map +1 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.d.ts +8 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.js +186 -0
- package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.js.map +1 -0
- package/dist/modules/buddy/services/heartbeat.service.d.ts +17 -4
- package/dist/modules/buddy/services/heartbeat.service.js +85 -15
- package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
- package/dist/modules/buddy/services/home-context-tool-provider.service.d.ts +165 -0
- package/dist/modules/buddy/services/home-context-tool-provider.service.js +257 -0
- package/dist/modules/buddy/services/home-context-tool-provider.service.js.map +1 -0
- package/dist/modules/buddy/services/llm-provider.service.d.ts +4 -3
- package/dist/modules/buddy/services/llm-provider.service.js +20 -1
- 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 -2
- package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
- package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.d.ts +13 -0
- package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.js +119 -0
- package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.js.map +1 -0
- package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.d.ts +36 -0
- package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.js +230 -0
- package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.js.map +1 -0
- package/dist/modules/buddy/testing/llm-request-measurement.helper.d.ts +33 -0
- package/dist/modules/buddy/testing/llm-request-measurement.helper.js +144 -0
- package/dist/modules/buddy/testing/llm-request-measurement.helper.js.map +1 -0
- package/dist/modules/config/config.module.js +18 -2
- package/dist/modules/config/config.module.js.map +1 -1
- package/dist/modules/config/controllers/config.controller.d.ts +3 -1
- package/dist/modules/config/controllers/config.controller.js +43 -18
- package/dist/modules/config/controllers/config.controller.js.map +1 -1
- package/dist/modules/config/interfaces/config-secret.interface.d.ts +5 -0
- package/dist/modules/config/interfaces/config-secret.interface.js +3 -0
- package/dist/modules/config/interfaces/config-secret.interface.js.map +1 -0
- package/dist/modules/config/services/config-secrets.service.d.ts +18 -0
- package/dist/modules/config/services/config-secrets.service.js +167 -0
- package/dist/modules/config/services/config-secrets.service.js.map +1 -0
- package/dist/modules/config/services/config.service.d.ts +19 -3
- package/dist/modules/config/services/config.service.js +105 -39
- package/dist/modules/config/services/config.service.js.map +1 -1
- package/dist/modules/config/services/module-config-mutation-registry.service.d.ts +8 -0
- package/dist/modules/config/services/module-config-mutation-registry.service.js +35 -0
- package/dist/modules/config/services/module-config-mutation-registry.service.js.map +1 -0
- package/dist/modules/config/services/modules-type-mapper.service.d.ts +2 -0
- package/dist/modules/config/services/modules-type-mapper.service.js.map +1 -1
- package/dist/modules/config/services/plugin-config-mutation-registry.service.d.ts +9 -0
- package/dist/modules/config/services/plugin-config-mutation-registry.service.js +50 -0
- package/dist/modules/config/services/plugin-config-mutation-registry.service.js.map +1 -0
- package/dist/modules/config/services/plugin-config-validator.service.d.ts +1 -0
- package/dist/modules/config/services/plugin-config-validator.service.js +4 -4
- package/dist/modules/config/services/plugin-config-validator.service.js.map +1 -1
- package/dist/modules/config/services/plugins-type-mapper.service.d.ts +2 -0
- package/dist/modules/config/services/plugins-type-mapper.service.js.map +1 -1
- package/dist/modules/dashboard/controllers/pages.controller.d.ts +6 -2
- package/dist/modules/dashboard/controllers/pages.controller.js +29 -2
- package/dist/modules/dashboard/controllers/pages.controller.js.map +1 -1
- package/dist/modules/dashboard/dashboard.module.js +2 -0
- package/dist/modules/dashboard/dashboard.module.js.map +1 -1
- package/dist/modules/dashboard/dashboard.openapi.d.ts +2 -2
- package/dist/modules/dashboard/dashboard.openapi.js +5 -0
- package/dist/modules/dashboard/dashboard.openapi.js.map +1 -1
- package/dist/modules/dashboard/dto/bulk-pages.dto.d.ts +7 -0
- package/dist/modules/dashboard/dto/bulk-pages.dto.js +53 -0
- package/dist/modules/dashboard/dto/bulk-pages.dto.js.map +1 -0
- package/dist/modules/dashboard/models/dashboard-response.model.d.ts +4 -0
- package/dist/modules/dashboard/models/dashboard-response.model.js +16 -1
- package/dist/modules/dashboard/models/dashboard-response.model.js.map +1 -1
- package/dist/modules/dashboard/services/pages-bulk.service.d.ts +8 -0
- package/dist/modules/dashboard/services/pages-bulk.service.js +35 -0
- package/dist/modules/dashboard/services/pages-bulk.service.js.map +1 -0
- package/dist/modules/devices/controllers/channels.properties.controller.js +9 -2
- package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js +9 -2
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.controller.d.ts +9 -3
- package/dist/modules/devices/controllers/devices.controller.js +86 -8
- package/dist/modules/devices/controllers/devices.controller.js.map +1 -1
- package/dist/modules/devices/devices.constants.d.ts +10 -0
- package/dist/modules/devices/devices.constants.js +13 -1
- package/dist/modules/devices/devices.constants.js.map +1 -1
- package/dist/modules/devices/devices.module.js +20 -0
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/devices.openapi.d.ts +3 -2
- package/dist/modules/devices/devices.openapi.js +5 -0
- package/dist/modules/devices/devices.openapi.js.map +1 -1
- package/dist/modules/devices/dto/bulk-devices.dto.d.ts +14 -0
- package/dist/modules/devices/dto/bulk-devices.dto.js +99 -0
- package/dist/modules/devices/dto/bulk-devices.dto.js.map +1 -0
- package/dist/modules/devices/dto/create-device.dto.d.ts +3 -1
- package/dist/modules/devices/dto/create-device.dto.js +25 -0
- package/dist/modules/devices/dto/create-device.dto.js.map +1 -1
- package/dist/modules/devices/dto/list-devices-query.dto.d.ts +4 -0
- package/dist/modules/devices/dto/list-devices-query.dto.js +31 -0
- package/dist/modules/devices/dto/list-devices-query.dto.js.map +1 -0
- package/dist/modules/devices/dto/update-device.dto.d.ts +3 -1
- package/dist/modules/devices/dto/update-device.dto.js +25 -0
- package/dist/modules/devices/dto/update-device.dto.js.map +1 -1
- package/dist/modules/devices/entities/devices.entity.d.ts +3 -1
- package/dist/modules/devices/entities/devices.entity.js +30 -0
- package/dist/modules/devices/entities/devices.entity.js.map +1 -1
- package/dist/modules/devices/entities/property-value-lock.entity.d.ts +5 -0
- package/dist/modules/devices/entities/property-value-lock.entity.js +32 -0
- package/dist/modules/devices/entities/property-value-lock.entity.js.map +1 -0
- package/dist/modules/devices/models/devices-response.model.d.ts +4 -0
- package/dist/modules/devices/models/devices-response.model.js +16 -1
- package/dist/modules/devices/models/devices-response.model.js.map +1 -1
- package/dist/modules/devices/platforms/device.platform.d.ts +3 -0
- package/dist/modules/devices/services/channels-type-mapper.service.d.ts +1 -0
- package/dist/modules/devices/services/channels-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.d.ts +2 -0
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties.service.d.ts +86 -2
- package/dist/modules/devices/services/channels.properties.service.js +377 -41
- package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
- package/dist/modules/devices/services/channels.service.d.ts +14 -1
- package/dist/modules/devices/services/channels.service.js +125 -25
- package/dist/modules/devices/services/channels.service.js.map +1 -1
- package/dist/modules/devices/services/device-connection-state.service.d.ts +14 -5
- package/dist/modules/devices/services/device-connection-state.service.js +101 -20
- package/dist/modules/devices/services/device-connection-state.service.js.map +1 -1
- package/dist/modules/devices/services/device-connectivity.service.d.ts +5 -0
- package/dist/modules/devices/services/device-connectivity.service.js +9 -5
- package/dist/modules/devices/services/device-connectivity.service.js.map +1 -1
- package/dist/modules/devices/services/device-control-tool.service.d.ts +5 -13
- package/dist/modules/devices/services/device-control-tool.service.js +71 -115
- package/dist/modules/devices/services/device-control-tool.service.js.map +1 -1
- package/dist/modules/devices/services/device-structure-lock.service.d.ts +5 -0
- package/dist/modules/devices/services/device-structure-lock.service.js +30 -0
- package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -0
- package/dist/modules/devices/services/device-zones.service.d.ts +4 -1
- package/dist/modules/devices/services/device-zones.service.js +63 -25
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices-bulk.service.d.ts +12 -0
- package/dist/modules/devices/services/devices-bulk.service.js +74 -0
- package/dist/modules/devices/services/devices-bulk.service.js.map +1 -0
- package/dist/modules/devices/services/devices-type-mapper.service.d.ts +1 -0
- package/dist/modules/devices/services/devices-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.d.ts +58 -2
- package/dist/modules/devices/services/devices.service.js +359 -20
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/devices/services/platform.registry.service.d.ts +7 -1
- package/dist/modules/devices/services/platform.registry.service.js +19 -0
- package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-command.service.d.ts +23 -1
- package/dist/modules/devices/services/property-command.service.js +124 -50
- package/dist/modules/devices/services/property-command.service.js.map +1 -1
- package/dist/modules/devices/services/property-timeseries.service.d.ts +4 -1
- package/dist/modules/devices/services/property-timeseries.service.js +25 -13
- package/dist/modules/devices/services/property-timeseries.service.js.map +1 -1
- package/dist/modules/devices/services/property-value-lock.service.d.ts +20 -0
- package/dist/modules/devices/services/property-value-lock.service.js +147 -0
- package/dist/modules/devices/services/property-value-lock.service.js.map +1 -0
- package/dist/modules/devices/services/property-value-source.registry.service.d.ts +13 -0
- package/dist/modules/devices/services/property-value-source.registry.service.js +42 -0
- package/dist/modules/devices/services/property-value-source.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-value.service.d.ts +86 -3
- package/dist/modules/devices/services/property-value.service.js +527 -76
- package/dist/modules/devices/services/property-value.service.js.map +1 -1
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.d.ts +0 -1
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js +2 -19
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js.map +1 -1
- package/dist/modules/devices/utils/property-command-value.utils.d.ts +13 -0
- package/dist/modules/devices/utils/property-command-value.utils.js +147 -0
- package/dist/modules/devices/utils/property-command-value.utils.js.map +1 -0
- package/dist/modules/devices/utils/property-metadata.utils.d.ts +2 -0
- package/dist/modules/devices/utils/property-metadata.utils.js +22 -0
- package/dist/modules/devices/utils/property-metadata.utils.js.map +1 -0
- package/dist/modules/devices/utils/schema.utils.js +25 -151
- package/dist/modules/devices/utils/schema.utils.js.map +1 -1
- package/dist/modules/devices/utils/unique-constraint.utils.d.ts +1 -0
- package/dist/modules/devices/utils/unique-constraint.utils.js +27 -0
- package/dist/modules/devices/utils/unique-constraint.utils.js.map +1 -0
- package/dist/modules/devices/validators/channel-exists-constraint.validator.js +1 -1
- package/dist/modules/devices/validators/channel-exists-constraint.validator.js.map +1 -1
- package/dist/modules/devices/validators/device-exists-constraint.validator.js +1 -1
- package/dist/modules/devices/validators/device-exists-constraint.validator.js.map +1 -1
- package/dist/modules/devices/validators/device-not-hidden-constraint.validator.d.ts +9 -0
- package/dist/modules/devices/validators/device-not-hidden-constraint.validator.js +47 -0
- package/dist/modules/devices/validators/device-not-hidden-constraint.validator.js.map +1 -0
- package/dist/modules/displays/controllers/displays.controller.d.ts +6 -2
- package/dist/modules/displays/controllers/displays.controller.js +30 -1
- package/dist/modules/displays/controllers/displays.controller.js.map +1 -1
- package/dist/modules/displays/controllers/registration.controller.d.ts +6 -4
- package/dist/modules/displays/controllers/registration.controller.js +8 -5
- package/dist/modules/displays/controllers/registration.controller.js.map +1 -1
- package/dist/modules/displays/displays.module.js +5 -0
- package/dist/modules/displays/displays.module.js.map +1 -1
- package/dist/modules/displays/displays.openapi.d.ts +4 -2
- package/dist/modules/displays/displays.openapi.js +5 -0
- package/dist/modules/displays/displays.openapi.js.map +1 -1
- package/dist/modules/displays/dto/bulk-displays.dto.d.ts +7 -0
- package/dist/modules/displays/dto/bulk-displays.dto.js +53 -0
- package/dist/modules/displays/dto/bulk-displays.dto.js.map +1 -0
- package/dist/modules/displays/guards/registration.guard.d.ts +4 -1
- package/dist/modules/displays/guards/registration.guard.js +18 -5
- package/dist/modules/displays/guards/registration.guard.js.map +1 -1
- package/dist/modules/displays/models/displays-response.model.d.ts +4 -0
- package/dist/modules/displays/models/displays-response.model.js +16 -1
- package/dist/modules/displays/models/displays-response.model.js.map +1 -1
- package/dist/modules/displays/services/displays-bulk.service.d.ts +8 -0
- package/dist/modules/displays/services/displays-bulk.service.js +39 -0
- package/dist/modules/displays/services/displays-bulk.service.js.map +1 -0
- package/dist/modules/displays/utils/ip.utils.d.ts +0 -2
- package/dist/modules/displays/utils/ip.utils.js +0 -25
- package/dist/modules/displays/utils/ip.utils.js.map +1 -1
- package/dist/modules/energy/energy.module.js +6 -2
- package/dist/modules/energy/energy.module.js.map +1 -1
- package/dist/modules/energy/energy.openapi.d.ts +3 -1
- package/dist/modules/energy/energy.openapi.js +4 -0
- package/dist/modules/energy/energy.openapi.js.map +1 -1
- package/dist/modules/energy/listeners/energy-ingestion.listener.d.ts +8 -1
- package/dist/modules/energy/listeners/energy-ingestion.listener.js +72 -28
- package/dist/modules/energy/listeners/energy-ingestion.listener.js.map +1 -1
- package/dist/modules/energy/services/energy-claim.registry.service.d.ts +16 -0
- package/dist/modules/energy/services/energy-claim.registry.service.js +41 -0
- package/dist/modules/energy/services/energy-claim.registry.service.js.map +1 -0
- package/dist/modules/energy/services/energy-data.service.d.ts +2 -0
- package/dist/modules/energy/services/energy-data.service.js +22 -6
- package/dist/modules/energy/services/energy-data.service.js.map +1 -1
- package/dist/modules/energy/utils/energy-source-type.utils.d.ts +8 -0
- package/dist/modules/energy/utils/energy-source-type.utils.js +30 -0
- package/dist/modules/energy/utils/energy-source-type.utils.js.map +1 -0
- package/dist/modules/extensions/commands/services.command.d.ts +9 -9
- package/dist/modules/extensions/commands/services.command.js +73 -60
- package/dist/modules/extensions/commands/services.command.js.map +1 -1
- package/dist/modules/extensions/controllers/extensions.controller.d.ts +7 -3
- package/dist/modules/extensions/controllers/extensions.controller.js +31 -5
- package/dist/modules/extensions/controllers/extensions.controller.js.map +1 -1
- package/dist/modules/extensions/controllers/services.controller.d.ts +8 -7
- package/dist/modules/extensions/controllers/services.controller.js +79 -59
- package/dist/modules/extensions/controllers/services.controller.js.map +1 -1
- package/dist/modules/extensions/dto/bulk-extensions.dto.d.ts +8 -0
- package/dist/modules/extensions/dto/bulk-extensions.dto.js +63 -0
- package/dist/modules/extensions/dto/bulk-extensions.dto.js.map +1 -0
- package/dist/modules/extensions/dto/update-config.dto.js +1 -1
- package/dist/modules/extensions/dto/update-config.dto.js.map +1 -1
- package/dist/modules/extensions/extensions.constants.js +2 -2
- package/dist/modules/extensions/extensions.constants.js.map +1 -1
- package/dist/modules/extensions/extensions.exceptions.d.ts +3 -0
- package/dist/modules/extensions/extensions.exceptions.js +7 -1
- package/dist/modules/extensions/extensions.exceptions.js.map +1 -1
- package/dist/modules/extensions/extensions.module.js +13 -11
- package/dist/modules/extensions/extensions.module.js.map +1 -1
- package/dist/modules/extensions/extensions.openapi.d.ts +3 -2
- package/dist/modules/extensions/extensions.openapi.js +5 -0
- package/dist/modules/extensions/extensions.openapi.js.map +1 -1
- package/dist/modules/extensions/models/extensions-response.model.d.ts +4 -0
- package/dist/modules/extensions/models/extensions-response.model.js +16 -1
- package/dist/modules/extensions/models/extensions-response.model.js.map +1 -1
- package/dist/modules/extensions/models/service-status.model.d.ts +5 -2
- package/dist/modules/extensions/models/service-status.model.js +36 -6
- package/dist/modules/extensions/models/service-status.model.js.map +1 -1
- package/dist/modules/extensions/providers/extensions-stats.provider.d.ts +3 -3
- package/dist/modules/extensions/providers/extensions-stats.provider.js +6 -6
- package/dist/modules/extensions/providers/extensions-stats.provider.js.map +1 -1
- package/dist/modules/extensions/services/{base-managed-plugin.service.d.ts → base-managed-extension.service.d.ts} +3 -3
- package/dist/modules/extensions/services/{base-managed-plugin.service.js → base-managed-extension.service.js} +4 -4
- package/dist/modules/extensions/services/base-managed-extension.service.js.map +1 -0
- package/dist/modules/extensions/services/extensions-bulk.service.d.ts +8 -0
- package/dist/modules/extensions/services/extensions-bulk.service.js +41 -0
- package/dist/modules/extensions/services/extensions-bulk.service.js.map +1 -0
- package/dist/modules/extensions/services/extensions.service.d.ts +1 -1
- package/dist/modules/extensions/services/extensions.service.js +14 -5
- package/dist/modules/extensions/services/extensions.service.js.map +1 -1
- package/dist/modules/extensions/services/{managed-plugin-service.interface.d.ts → managed-extension-service.interface.d.ts} +16 -5
- package/dist/modules/extensions/services/managed-extension-service.interface.js +3 -0
- package/dist/modules/extensions/services/managed-extension-service.interface.js.map +1 -0
- package/dist/modules/extensions/services/managed-service-manager.service.d.ts +57 -0
- package/dist/modules/extensions/services/{plugin-service-manager.service.js → managed-service-manager.service.js} +260 -73
- package/dist/modules/extensions/services/managed-service-manager.service.js.map +1 -0
- package/dist/modules/home-context/home-context-pagination.errors.d.ts +5 -0
- package/dist/modules/home-context/home-context-pagination.errors.js +13 -0
- package/dist/modules/home-context/home-context-pagination.errors.js.map +1 -0
- package/dist/modules/home-context/home-context.constants.d.ts +66 -0
- package/dist/modules/home-context/home-context.constants.js +81 -0
- package/dist/modules/home-context/home-context.constants.js.map +1 -0
- package/dist/modules/home-context/home-context.errors.d.ts +5 -0
- package/dist/modules/home-context/home-context.errors.js +13 -0
- package/dist/modules/home-context/home-context.errors.js.map +1 -0
- package/dist/modules/home-context/home-context.module.d.ts +2 -0
- package/dist/modules/home-context/home-context.module.js +44 -0
- package/dist/modules/home-context/home-context.module.js.map +1 -0
- package/dist/modules/home-context/home-current-state.errors.d.ts +5 -0
- package/dist/modules/home-context/home-current-state.errors.js +13 -0
- package/dist/modules/home-context/home-current-state.errors.js.map +1 -0
- package/dist/modules/home-context/home-search.errors.d.ts +11 -0
- package/dist/modules/home-context/home-search.errors.js +25 -0
- package/dist/modules/home-context/home-search.errors.js.map +1 -0
- package/dist/modules/home-context/home-state.errors.d.ts +24 -0
- package/dist/modules/home-context/home-state.errors.js +44 -0
- package/dist/modules/home-context/home-state.errors.js.map +1 -0
- package/dist/modules/home-context/models/home-context-query.model.d.ts +10 -0
- package/dist/modules/home-context/models/home-context-query.model.js +3 -0
- package/dist/modules/home-context/models/home-context-query.model.js.map +1 -0
- package/dist/modules/home-context/models/home-context-result.model.d.ts +124 -0
- package/dist/modules/home-context/models/home-context-result.model.js +3 -0
- package/dist/modules/home-context/models/home-context-result.model.js.map +1 -0
- package/dist/modules/home-context/models/home-current-state-query.model.d.ts +33 -0
- package/dist/modules/home-context/models/home-current-state-query.model.js +3 -0
- package/dist/modules/home-context/models/home-current-state-query.model.js.map +1 -0
- package/dist/modules/home-context/models/home-current-state-result.model.d.ts +70 -0
- package/dist/modules/home-context/models/home-current-state-result.model.js +3 -0
- package/dist/modules/home-context/models/home-current-state-result.model.js.map +1 -0
- package/dist/modules/home-context/models/home-search-query.model.d.ts +11 -0
- package/dist/modules/home-context/models/home-search-query.model.js +3 -0
- package/dist/modules/home-context/models/home-search-query.model.js.map +1 -0
- package/dist/modules/home-context/models/home-search-result.model.d.ts +71 -0
- package/dist/modules/home-context/models/home-search-result.model.js +3 -0
- package/dist/modules/home-context/models/home-search-result.model.js.map +1 -0
- package/dist/modules/home-context/models/home-state-query.model.d.ts +26 -0
- package/dist/modules/home-context/models/home-state-query.model.js +3 -0
- package/dist/modules/home-context/models/home-state-query.model.js.map +1 -0
- package/dist/modules/home-context/models/home-state-result.model.d.ts +48 -0
- package/dist/modules/home-context/models/home-state-result.model.js +3 -0
- package/dist/modules/home-context/models/home-state-result.model.js.map +1 -0
- package/dist/modules/home-context/models/home-target-query.model.d.ts +9 -0
- package/dist/modules/home-context/models/home-target-query.model.js +3 -0
- package/dist/modules/home-context/models/home-target-query.model.js.map +1 -0
- package/dist/modules/home-context/models/home-target-result.model.d.ts +43 -0
- package/dist/modules/home-context/models/home-target-result.model.js +3 -0
- package/dist/modules/home-context/models/home-target-result.model.js.map +1 -0
- package/dist/modules/home-context/schemas/home-context-input.schemas.d.ts +9 -0
- package/dist/modules/home-context/schemas/home-context-input.schemas.js +22 -0
- package/dist/modules/home-context/schemas/home-context-input.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-context-output.schemas.d.ts +125 -0
- package/dist/modules/home-context/schemas/home-context-output.schemas.js +147 -0
- package/dist/modules/home-context/schemas/home-context-output.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-current-state-input.schemas.d.ts +150 -0
- package/dist/modules/home-context/schemas/home-current-state-input.schemas.js +59 -0
- package/dist/modules/home-context/schemas/home-current-state-input.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-current-state-output.schemas.d.ts +275 -0
- package/dist/modules/home-context/schemas/home-current-state-output.schemas.js +139 -0
- package/dist/modules/home-context/schemas/home-current-state-output.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-search-input.schemas.d.ts +20 -0
- package/dist/modules/home-context/schemas/home-search-input.schemas.js +29 -0
- package/dist/modules/home-context/schemas/home-search-input.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-search-output.schemas.d.ts +112 -0
- package/dist/modules/home-context/schemas/home-search-output.schemas.js +84 -0
- package/dist/modules/home-context/schemas/home-search-output.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-state-input.schemas.d.ts +30 -0
- package/dist/modules/home-context/schemas/home-state-input.schemas.js +37 -0
- package/dist/modules/home-context/schemas/home-state-input.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-state-output.schemas.d.ts +116 -0
- package/dist/modules/home-context/schemas/home-state-output.schemas.js +129 -0
- package/dist/modules/home-context/schemas/home-state-output.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-target-input.schemas.d.ts +9 -0
- package/dist/modules/home-context/schemas/home-target-input.schemas.js +15 -0
- package/dist/modules/home-context/schemas/home-target-input.schemas.js.map +1 -0
- package/dist/modules/home-context/schemas/home-target-output.schemas.d.ts +40 -0
- package/dist/modules/home-context/schemas/home-target-output.schemas.js +61 -0
- package/dist/modules/home-context/schemas/home-target-output.schemas.js.map +1 -0
- package/dist/modules/home-context/services/home-context-query.service.d.ts +31 -0
- package/dist/modules/home-context/services/home-context-query.service.js +264 -0
- package/dist/modules/home-context/services/home-context-query.service.js.map +1 -0
- package/dist/modules/home-context/services/home-current-state-query.service.d.ts +17 -0
- package/dist/modules/home-context/services/home-current-state-query.service.js +256 -0
- package/dist/modules/home-context/services/home-current-state-query.service.js.map +1 -0
- package/dist/modules/home-context/services/home-search-query.service.d.ts +30 -0
- package/dist/modules/home-context/services/home-search-query.service.js +443 -0
- package/dist/modules/home-context/services/home-search-query.service.js.map +1 -0
- package/dist/modules/home-context/services/home-state-query.service.d.ts +35 -0
- package/dist/modules/home-context/services/home-state-query.service.js +263 -0
- package/dist/modules/home-context/services/home-state-query.service.js.map +1 -0
- package/dist/modules/home-context/services/home-target-query.service.d.ts +21 -0
- package/dist/modules/home-context/services/home-target-query.service.js +149 -0
- package/dist/modules/home-context/services/home-target-query.service.js.map +1 -0
- package/dist/modules/mcp/controllers/mcp-clients.controller.d.ts +17 -0
- package/dist/modules/mcp/controllers/mcp-clients.controller.js +201 -0
- package/dist/modules/mcp/controllers/mcp-clients.controller.js.map +1 -0
- package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.d.ts +17 -0
- package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.js +162 -0
- package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.js.map +1 -0
- package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.d.ts +15 -0
- package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.js +136 -0
- package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.js.map +1 -0
- package/dist/modules/mcp/controllers/mcp-oauth-management.controller.d.ts +20 -0
- package/dist/modules/mcp/controllers/mcp-oauth-management.controller.js +271 -0
- package/dist/modules/mcp/controllers/mcp-oauth-management.controller.js.map +1 -0
- package/dist/modules/mcp/controllers/mcp.controller.d.ts +17 -0
- package/dist/modules/mcp/controllers/mcp.controller.js +87 -0
- package/dist/modules/mcp/controllers/mcp.controller.js.map +1 -0
- package/dist/modules/mcp/decorators/mcp-endpoint.decorator.d.ts +1 -0
- package/dist/modules/mcp/decorators/mcp-endpoint.decorator.js +8 -0
- package/dist/modules/mcp/decorators/mcp-endpoint.decorator.js.map +1 -0
- package/dist/modules/mcp/dto/mcp-client.dto.d.ts +25 -0
- package/dist/modules/mcp/dto/mcp-client.dto.js +185 -0
- package/dist/modules/mcp/dto/mcp-client.dto.js.map +1 -0
- package/dist/modules/mcp/dto/mcp-oauth-client.dto.d.ts +18 -0
- package/dist/modules/mcp/dto/mcp-oauth-client.dto.js +135 -0
- package/dist/modules/mcp/dto/mcp-oauth-client.dto.js.map +1 -0
- package/dist/modules/mcp/dto/mcp-oauth-grant.dto.d.ts +7 -0
- package/dist/modules/mcp/dto/mcp-oauth-grant.dto.js +51 -0
- package/dist/modules/mcp/dto/mcp-oauth-grant.dto.js.map +1 -0
- package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.d.ts +8 -0
- package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.js +68 -0
- package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.js.map +1 -0
- package/dist/modules/mcp/dto/update-config.dto.d.ts +9 -0
- package/dist/modules/mcp/dto/update-config.dto.js +102 -0
- package/dist/modules/mcp/dto/update-config.dto.js.map +1 -0
- package/dist/modules/mcp/entities/mcp-client.entity.d.ts +17 -0
- package/dist/modules/mcp/entities/mcp-client.entity.js +154 -0
- package/dist/modules/mcp/entities/mcp-client.entity.js.map +1 -0
- package/dist/modules/mcp/entities/mcp-installation.entity.d.ts +5 -0
- package/dist/modules/mcp/entities/mcp-installation.entity.js +32 -0
- package/dist/modules/mcp/entities/mcp-installation.entity.js.map +1 -0
- package/dist/modules/mcp/entities/mcp-oauth.entity.d.ts +143 -0
- package/dist/modules/mcp/entities/mcp-oauth.entity.js +602 -0
- package/dist/modules/mcp/entities/mcp-oauth.entity.js.map +1 -0
- package/dist/modules/mcp/guards/mcp-client.guard.d.ts +14 -0
- package/dist/modules/mcp/guards/mcp-client.guard.js +73 -0
- package/dist/modules/mcp/guards/mcp-client.guard.js.map +1 -0
- package/dist/modules/mcp/guards/mcp-throttle.guard.d.ts +26 -0
- package/dist/modules/mcp/guards/mcp-throttle.guard.js +161 -0
- package/dist/modules/mcp/guards/mcp-throttle.guard.js.map +1 -0
- package/dist/modules/mcp/listeners/mcp-config.listener.d.ts +22 -0
- package/dist/modules/mcp/listeners/mcp-config.listener.js +104 -0
- package/dist/modules/mcp/listeners/mcp-config.listener.js.map +1 -0
- package/dist/modules/mcp/mcp.constants.d.ts +68 -0
- package/dist/modules/mcp/mcp.constants.js +77 -0
- package/dist/modules/mcp/mcp.constants.js.map +1 -0
- package/dist/modules/mcp/mcp.exceptions.d.ts +4 -0
- package/dist/modules/mcp/mcp.exceptions.js +11 -0
- package/dist/modules/mcp/mcp.exceptions.js.map +1 -0
- package/dist/modules/mcp/mcp.module.d.ts +23 -0
- package/dist/modules/mcp/mcp.module.js +272 -0
- package/dist/modules/mcp/mcp.module.js.map +1 -0
- package/dist/modules/mcp/mcp.openapi.d.ts +13 -0
- package/dist/modules/mcp/mcp.openapi.js +60 -0
- package/dist/modules/mcp/mcp.openapi.js.map +1 -0
- package/dist/modules/mcp/models/config.model.d.ts +10 -0
- package/dist/modules/mcp/models/config.model.js +106 -0
- package/dist/modules/mcp/models/config.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-client-response.model.d.ts +12 -0
- package/dist/modules/mcp/models/mcp-client-response.model.js +51 -0
- package/dist/modules/mcp/models/mcp-client-response.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-client.model.d.ts +5 -0
- package/dist/modules/mcp/models/mcp-client.model.js +35 -0
- package/dist/modules/mcp/models/mcp-client.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-client-response.model.d.ts +8 -0
- package/dist/modules/mcp/models/mcp-oauth-client-response.model.js +39 -0
- package/dist/modules/mcp/models/mcp-oauth-client-response.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-client.model.d.ts +13 -0
- package/dist/modules/mcp/models/mcp-oauth-client.model.js +85 -0
- package/dist/modules/mcp/models/mcp-oauth-client.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.d.ts +8 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.js +39 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction.model.d.ts +23 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction.model.js +111 -0
- package/dist/modules/mcp/models/mcp-oauth-interaction.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-management-response.model.d.ts +23 -0
- package/dist/modules/mcp/models/mcp-oauth-management-response.model.js +94 -0
- package/dist/modules/mcp/models/mcp-oauth-management-response.model.js.map +1 -0
- package/dist/modules/mcp/models/mcp-oauth-management.model.d.ts +35 -0
- package/dist/modules/mcp/models/mcp-oauth-management.model.js +189 -0
- package/dist/modules/mcp/models/mcp-oauth-management.model.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-metadata.d.ts +15 -0
- package/dist/modules/mcp/oauth/mcp-oauth-metadata.js +18 -0
- package/dist/modules/mcp/oauth/mcp-oauth-metadata.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.d.ts +21 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.js +297 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.d.ts +49 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.js +324 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.d.ts +4 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.js +7 -0
- package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-redaction.d.ts +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-redaction.js +17 -0
- package/dist/modules/mcp/oauth/mcp-oauth-redaction.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.d.ts +3 -0
- package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.js +29 -0
- package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.js.map +1 -0
- package/dist/modules/mcp/oauth/mcp-oauth.types.d.ts +31 -0
- package/dist/modules/mcp/oauth/mcp-oauth.types.js +3 -0
- package/dist/modules/mcp/oauth/mcp-oauth.types.js.map +1 -0
- package/dist/modules/mcp/providers/mcp-stats.provider.d.ts +19 -0
- package/dist/modules/mcp/providers/mcp-stats.provider.js +38 -0
- package/dist/modules/mcp/providers/mcp-stats.provider.js.map +1 -0
- package/dist/modules/mcp/services/mcp-audit.service.d.ts +74 -0
- package/dist/modules/mcp/services/mcp-audit.service.js +161 -0
- package/dist/modules/mcp/services/mcp-audit.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-client.service.d.ts +34 -0
- package/dist/modules/mcp/services/mcp-client.service.js +241 -0
- package/dist/modules/mcp/services/mcp-client.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-context.service.d.ts +32 -0
- package/dist/modules/mcp/services/mcp-context.service.js +136 -0
- package/dist/modules/mcp/services/mcp-context.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-installation.service.d.ts +9 -0
- package/dist/modules/mcp/services/mcp-installation.service.js +55 -0
- package/dist/modules/mcp/services/mcp-installation.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.d.ts +20 -0
- package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.js +128 -0
- package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-artifact.service.d.ts +69 -0
- package/dist/modules/mcp/services/mcp-oauth-artifact.service.js +200 -0
- package/dist/modules/mcp/services/mcp-oauth-artifact.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.d.ts +22 -0
- package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.js +116 -0
- package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-client.service.d.ts +20 -0
- package/dist/modules/mcp/services/mcp-oauth-client.service.js +107 -0
- package/dist/modules/mcp/services/mcp-oauth-client.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.d.ts +15 -0
- package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.js +52 -0
- package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.d.ts +12 -0
- package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.js +82 -0
- package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-interaction.service.d.ts +36 -0
- package/dist/modules/mcp/services/mcp-oauth-interaction.service.js +312 -0
- package/dist/modules/mcp/services/mcp-oauth-interaction.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.d.ts +18 -0
- package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.js +88 -0
- package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-management.service.d.ts +45 -0
- package/dist/modules/mcp/services/mcp-oauth-management.service.js +381 -0
- package/dist/modules/mcp/services/mcp-oauth-management.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.d.ts +28 -0
- package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.js +253 -0
- package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-provider-material.service.d.ts +21 -0
- package/dist/modules/mcp/services/mcp-oauth-provider-material.service.js +130 -0
- package/dist/modules/mcp/services/mcp-oauth-provider-material.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.d.ts +11 -0
- package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.js +53 -0
- package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-public-url.service.d.ts +7 -0
- package/dist/modules/mcp/services/mcp-oauth-public-url.service.js +47 -0
- package/dist/modules/mcp/services/mcp-oauth-public-url.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.d.ts +25 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.js +69 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness.service.d.ts +32 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness.service.js +71 -0
- package/dist/modules/mcp/services/mcp-oauth-readiness.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.d.ts +13 -0
- package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.js +91 -0
- package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-resource-server.service.d.ts +40 -0
- package/dist/modules/mcp/services/mcp-oauth-resource-server.service.js +233 -0
- package/dist/modules/mcp/services/mcp-oauth-resource-server.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-route-gate.service.d.ts +12 -0
- package/dist/modules/mcp/services/mcp-oauth-route-gate.service.js +50 -0
- package/dist/modules/mcp/services/mcp-oauth-route-gate.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-runtime.service.d.ts +15 -0
- package/dist/modules/mcp/services/mcp-oauth-runtime.service.js +70 -0
- package/dist/modules/mcp/services/mcp-oauth-runtime.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-oauth-switch-off.service.d.ts +18 -0
- package/dist/modules/mcp/services/mcp-oauth-switch-off.service.js +74 -0
- package/dist/modules/mcp/services/mcp-oauth-switch-off.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-policy.service.d.ts +51 -0
- package/dist/modules/mcp/services/mcp-policy.service.js +162 -0
- package/dist/modules/mcp/services/mcp-policy.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-server.service.d.ts +50 -0
- package/dist/modules/mcp/services/mcp-server.service.js +513 -0
- package/dist/modules/mcp/services/mcp-server.service.js.map +1 -0
- package/dist/modules/mcp/services/mcp-subscription-registry.service.d.ts +76 -0
- package/dist/modules/mcp/services/mcp-subscription-registry.service.js +287 -0
- package/dist/modules/mcp/services/mcp-subscription-registry.service.js.map +1 -0
- package/dist/modules/mcp/tools/mcp-read-tool.service.d.ts +23 -0
- package/dist/modules/mcp/tools/mcp-read-tool.service.js +361 -0
- package/dist/modules/mcp/tools/mcp-read-tool.service.js.map +1 -0
- package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.d.ts +35 -0
- package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.js +374 -0
- package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.js.map +1 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.d.ts +6 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.js +46 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.js.map +1 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.d.ts +7 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.js +65 -0
- package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.js.map +1 -0
- package/dist/modules/mcp/validators/is-mcp-origin.validator.d.ts +5 -0
- package/dist/modules/mcp/validators/is-mcp-origin.validator.js +35 -0
- package/dist/modules/mcp/validators/is-mcp-origin.validator.js.map +1 -0
- package/dist/modules/mdns/mdns.openapi.d.ts +1 -1
- package/dist/modules/mdns/services/mdns.service.d.ts +21 -4
- package/dist/modules/mdns/services/mdns.service.js +151 -69
- package/dist/modules/mdns/services/mdns.service.js.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts +19 -0
- package/dist/modules/notifications/controllers/notifications.controller.js +312 -0
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -0
- package/dist/modules/notifications/dto/bulk-remove-notifications.dto.d.ts +6 -0
- package/dist/modules/notifications/dto/bulk-remove-notifications.dto.js +56 -0
- package/dist/modules/notifications/dto/bulk-remove-notifications.dto.js.map +1 -0
- package/dist/modules/notifications/dto/bulk-update-notifications.dto.d.ts +8 -0
- package/dist/modules/notifications/dto/bulk-update-notifications.dto.js +78 -0
- package/dist/modules/notifications/dto/bulk-update-notifications.dto.js.map +1 -0
- package/dist/modules/notifications/dto/update-config.dto.d.ts +7 -0
- package/dist/modules/notifications/dto/update-config.dto.js +79 -0
- package/dist/modules/notifications/dto/update-config.dto.js.map +1 -0
- package/dist/modules/notifications/dto/update-notification.dto.d.ts +7 -0
- package/dist/modules/notifications/dto/update-notification.dto.js +58 -0
- package/dist/modules/notifications/dto/update-notification.dto.js.map +1 -0
- package/dist/modules/notifications/entities/notifications.entity.d.ts +19 -0
- package/dist/modules/notifications/entities/notifications.entity.js +209 -0
- package/dist/modules/notifications/entities/notifications.entity.js.map +1 -0
- package/dist/modules/notifications/models/config.model.d.ts +7 -0
- package/dist/modules/notifications/models/config.model.js +81 -0
- package/dist/modules/notifications/models/config.model.js.map +1 -0
- package/dist/modules/notifications/models/notification-action.model.d.ts +36 -0
- package/dist/modules/notifications/models/notification-action.model.js +132 -0
- package/dist/modules/notifications/models/notification-action.model.js.map +1 -0
- package/dist/modules/notifications/models/notifications-response.model.d.ts +13 -0
- package/dist/modules/notifications/models/notifications-response.model.js +69 -0
- package/dist/modules/notifications/models/notifications-response.model.js.map +1 -0
- package/dist/modules/notifications/notifications.constants.d.ts +43 -0
- package/dist/modules/notifications/notifications.constants.js +57 -0
- package/dist/modules/notifications/notifications.constants.js.map +1 -0
- package/dist/modules/notifications/notifications.exceptions.d.ts +6 -0
- package/dist/modules/notifications/notifications.exceptions.js +18 -0
- package/dist/modules/notifications/notifications.exceptions.js.map +1 -0
- package/dist/modules/notifications/notifications.module.d.ts +11 -0
- package/dist/modules/notifications/notifications.module.js +112 -0
- package/dist/modules/notifications/notifications.module.js.map +1 -0
- package/dist/modules/notifications/notifications.openapi.d.ts +6 -0
- package/dist/modules/notifications/notifications.openapi.js +18 -0
- package/dist/modules/notifications/notifications.openapi.js.map +1 -0
- package/dist/modules/notifications/notifications.utils.d.ts +1 -0
- package/dist/modules/notifications/notifications.utils.js +28 -0
- package/dist/modules/notifications/notifications.utils.js.map +1 -0
- package/dist/modules/notifications/platforms/notification-channel.platform.d.ts +31 -0
- package/dist/modules/notifications/platforms/notification-channel.platform.js +108 -0
- package/dist/modules/notifications/platforms/notification-channel.platform.js.map +1 -0
- package/dist/modules/notifications/services/notification-channel-registry.service.d.ts +8 -0
- package/dist/modules/notifications/services/notification-channel-registry.service.js +36 -0
- package/dist/modules/notifications/services/notification-channel-registry.service.js.map +1 -0
- package/dist/modules/notifications/services/notification-dispatcher.service.d.ts +28 -0
- package/dist/modules/notifications/services/notification-dispatcher.service.js +173 -0
- package/dist/modules/notifications/services/notification-dispatcher.service.js.map +1 -0
- package/dist/modules/notifications/services/notification-input.validator.d.ts +29 -0
- package/dist/modules/notifications/services/notification-input.validator.js +148 -0
- package/dist/modules/notifications/services/notification-input.validator.js.map +1 -0
- package/dist/modules/notifications/services/notifications-retention.service.d.ts +19 -0
- package/dist/modules/notifications/services/notifications-retention.service.js +151 -0
- package/dist/modules/notifications/services/notifications-retention.service.js.map +1 -0
- package/dist/modules/notifications/services/notifications.service.d.ts +67 -0
- package/dist/modules/notifications/services/notifications.service.js +348 -0
- package/dist/modules/notifications/services/notifications.service.js.map +1 -0
- package/dist/modules/platform/services/platform.service.d.ts +7 -0
- package/dist/modules/platform/services/platform.service.js +53 -1
- package/dist/modules/platform/services/platform.service.js.map +1 -1
- package/dist/modules/remote-access/controllers/remote-access.controller.d.ts +20 -0
- package/dist/modules/remote-access/controllers/remote-access.controller.js +160 -0
- package/dist/modules/remote-access/controllers/remote-access.controller.js.map +1 -0
- package/dist/modules/remote-access/dto/update-config.dto.d.ts +8 -0
- package/dist/modules/remote-access/dto/update-config.dto.js +104 -0
- package/dist/modules/remote-access/dto/update-config.dto.js.map +1 -0
- package/dist/modules/remote-access/models/config.model.d.ts +9 -0
- package/dist/modules/remote-access/models/config.model.js +113 -0
- package/dist/modules/remote-access/models/config.model.js.map +1 -0
- package/dist/modules/remote-access/models/provider.model.d.ts +38 -0
- package/dist/modules/remote-access/models/provider.model.js +311 -0
- package/dist/modules/remote-access/models/provider.model.js.map +1 -0
- package/dist/modules/remote-access/models/status.model.d.ts +12 -0
- package/dist/modules/remote-access/models/status.model.js +83 -0
- package/dist/modules/remote-access/models/status.model.js.map +1 -0
- package/dist/modules/remote-access/models/urls.model.d.ts +11 -0
- package/dist/modules/remote-access/models/urls.model.js +84 -0
- package/dist/modules/remote-access/models/urls.model.js.map +1 -0
- package/dist/modules/remote-access/platforms/remote-access-provider.platform.d.ts +38 -0
- package/dist/modules/remote-access/platforms/remote-access-provider.platform.js +3 -0
- package/dist/modules/remote-access/platforms/remote-access-provider.platform.js.map +1 -0
- package/dist/modules/remote-access/remote-access.constants.d.ts +11 -0
- package/dist/modules/remote-access/remote-access.constants.js +16 -0
- package/dist/modules/remote-access/remote-access.constants.js.map +1 -0
- package/dist/modules/remote-access/remote-access.exceptions.d.ts +12 -0
- package/dist/modules/remote-access/remote-access.exceptions.js +32 -0
- package/dist/modules/remote-access/remote-access.exceptions.js.map +1 -0
- package/dist/modules/remote-access/remote-access.module.d.ts +11 -0
- package/dist/modules/remote-access/remote-access.module.js +108 -0
- package/dist/modules/remote-access/remote-access.module.js.map +1 -0
- package/dist/modules/remote-access/remote-access.openapi.d.ts +6 -0
- package/dist/modules/remote-access/remote-access.openapi.js +23 -0
- package/dist/modules/remote-access/remote-access.openapi.js.map +1 -0
- package/dist/modules/remote-access/services/remote-access-posture.service.d.ts +12 -0
- package/dist/modules/remote-access/services/remote-access-posture.service.js +56 -0
- package/dist/modules/remote-access/services/remote-access-posture.service.js.map +1 -0
- package/dist/modules/remote-access/services/remote-access-provider-registry.service.d.ts +7 -0
- package/dist/modules/remote-access/services/remote-access-provider-registry.service.js +33 -0
- package/dist/modules/remote-access/services/remote-access-provider-registry.service.js.map +1 -0
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.d.ts +29 -0
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js +137 -0
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js.map +1 -0
- package/dist/modules/remote-access/services/remote-access-status.service.d.ts +18 -0
- package/dist/modules/remote-access/services/remote-access-status.service.js +121 -0
- package/dist/modules/remote-access/services/remote-access-status.service.js.map +1 -0
- package/dist/modules/remote-access/services/remote-access-url.service.d.ts +41 -0
- package/dist/modules/remote-access/services/remote-access-url.service.js +201 -0
- package/dist/modules/remote-access/services/remote-access-url.service.js.map +1 -0
- package/dist/modules/remote-access/validators/is-remote-access-url.validator.d.ts +6 -0
- package/dist/modules/remote-access/validators/is-remote-access-url.validator.js +46 -0
- package/dist/modules/remote-access/validators/is-remote-access-url.validator.js.map +1 -0
- package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.d.ts +5 -0
- package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.js +26 -0
- package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.js.map +1 -0
- package/dist/modules/scenes/controllers/scenes.controller.d.ts +7 -2
- package/dist/modules/scenes/controllers/scenes.controller.js +52 -2
- package/dist/modules/scenes/controllers/scenes.controller.js.map +1 -1
- package/dist/modules/scenes/dto/bulk-scenes.dto.d.ts +14 -0
- package/dist/modules/scenes/dto/bulk-scenes.dto.js +99 -0
- package/dist/modules/scenes/dto/bulk-scenes.dto.js.map +1 -0
- package/dist/modules/scenes/models/scenes-response.model.d.ts +4 -0
- package/dist/modules/scenes/models/scenes-response.model.js +16 -1
- package/dist/modules/scenes/models/scenes-response.model.js.map +1 -1
- package/dist/modules/scenes/scenes.module.js +3 -0
- package/dist/modules/scenes/scenes.module.js.map +1 -1
- package/dist/modules/scenes/scenes.openapi.d.ts +4 -2
- package/dist/modules/scenes/scenes.openapi.js +5 -0
- package/dist/modules/scenes/scenes.openapi.js.map +1 -1
- package/dist/modules/scenes/services/scene-executor.service.d.ts +4 -1
- package/dist/modules/scenes/services/scene-executor.service.js +28 -3
- package/dist/modules/scenes/services/scene-executor.service.js.map +1 -1
- package/dist/modules/scenes/services/scene-tool.service.d.ts +2 -3
- package/dist/modules/scenes/services/scene-tool.service.js +84 -25
- package/dist/modules/scenes/services/scene-tool.service.js.map +1 -1
- package/dist/modules/scenes/services/scenes-bulk.service.d.ts +9 -0
- package/dist/modules/scenes/services/scenes-bulk.service.js +42 -0
- package/dist/modules/scenes/services/scenes-bulk.service.js.map +1 -0
- package/dist/modules/scenes/services/scenes.service.d.ts +35 -0
- package/dist/modules/scenes/services/scenes.service.js +117 -0
- package/dist/modules/scenes/services/scenes.service.js.map +1 -1
- package/dist/modules/scenes/validators/scene-exists-constraint.validator.js +1 -1
- package/dist/modules/scenes/validators/scene-exists-constraint.validator.js.map +1 -1
- package/dist/modules/security/listeners/security-state.listener.d.ts +1 -0
- package/dist/modules/security/listeners/security-state.listener.js +9 -1
- package/dist/modules/security/listeners/security-state.listener.js.map +1 -1
- package/dist/modules/security/providers/security-sensors.provider.d.ts +12 -1
- package/dist/modules/security/providers/security-sensors.provider.js +132 -12
- package/dist/modules/security/providers/security-sensors.provider.js.map +1 -1
- package/dist/modules/security/security.openapi.d.ts +2 -1
- package/dist/modules/security/security.openapi.js +4 -0
- package/dist/modules/security/security.openapi.js.map +1 -1
- package/dist/modules/security/services/security-aggregator.service.d.ts +12 -2
- package/dist/modules/security/services/security-aggregator.service.js +33 -2
- package/dist/modules/security/services/security-aggregator.service.js.map +1 -1
- package/dist/modules/security/services/security-events.service.d.ts +7 -1
- package/dist/modules/security/services/security-events.service.js +38 -2
- package/dist/modules/security/services/security-events.service.js.map +1 -1
- package/dist/modules/security/services/security.service.d.ts +4 -1
- package/dist/modules/security/services/security.service.js +8 -0
- package/dist/modules/security/services/security.service.js.map +1 -1
- package/dist/modules/spaces/controllers/spaces.controller.d.ts +6 -2
- package/dist/modules/spaces/controllers/spaces.controller.js +43 -4
- package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
- package/dist/modules/spaces/dto/bulk-assign.dto.js +1 -0
- package/dist/modules/spaces/dto/bulk-assign.dto.js.map +1 -1
- package/dist/modules/spaces/dto/bulk-spaces.dto.d.ts +7 -0
- package/dist/modules/spaces/dto/bulk-spaces.dto.js +53 -0
- package/dist/modules/spaces/dto/bulk-spaces.dto.js.map +1 -0
- package/dist/modules/spaces/dto/update-config.dto.js +1 -1
- package/dist/modules/spaces/models/config.model.js +1 -1
- package/dist/modules/spaces/models/spaces-response.model.d.ts +4 -0
- package/dist/modules/spaces/models/spaces-response.model.js +16 -1
- package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
- package/dist/modules/spaces/services/spaces-bulk.service.d.ts +8 -0
- package/dist/modules/spaces/services/spaces-bulk.service.js +35 -0
- package/dist/modules/spaces/services/spaces-bulk.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +51 -1
- package/dist/modules/spaces/services/spaces.service.js +326 -19
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.module.js +3 -0
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/spaces.openapi.d.ts +4 -2
- package/dist/modules/spaces/spaces.openapi.js +5 -0
- package/dist/modules/spaces/spaces.openapi.js.map +1 -1
- package/dist/modules/storage/interfaces/storage-plugin.interface.d.ts +1 -0
- package/dist/modules/storage/models/config.model.js +2 -0
- package/dist/modules/storage/models/config.model.js.map +1 -1
- package/dist/modules/storage/services/storage-fallback-monitor.service.d.ts +14 -0
- package/dist/modules/storage/services/storage-fallback-monitor.service.js +110 -0
- package/dist/modules/storage/services/storage-fallback-monitor.service.js.map +1 -0
- package/dist/modules/storage/services/storage.service.d.ts +15 -0
- package/dist/modules/storage/services/storage.service.js +112 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/storage/storage.module.js +2 -1
- package/dist/modules/storage/storage.module.js.map +1 -1
- package/dist/modules/storage/storage.types.d.ts +1 -0
- package/dist/modules/swagger/decorators/api-documentation.decorator.d.ts +1 -0
- package/dist/modules/swagger/decorators/api-documentation.decorator.js +19 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.js.map +1 -1
- package/dist/modules/system/commands/update-panel.command.d.ts +1 -0
- package/dist/modules/system/commands/update-panel.command.js +21 -6
- package/dist/modules/system/commands/update-panel.command.js.map +1 -1
- package/dist/modules/system/models/config.model.js +1 -0
- package/dist/modules/system/models/config.model.js.map +1 -1
- package/dist/modules/system/privileged-worker.module.d.ts +2 -0
- package/dist/modules/system/privileged-worker.module.js +24 -0
- package/dist/modules/system/privileged-worker.module.js.map +1 -0
- package/dist/modules/system/services/backup.service.js +1 -1
- package/dist/modules/system/services/backup.service.js.map +1 -1
- package/dist/modules/system/services/privileged-worker.service.d.ts +35 -0
- package/dist/modules/system/services/privileged-worker.service.js +200 -0
- package/dist/modules/system/services/privileged-worker.service.js.map +1 -0
- package/dist/modules/system/services/system-command.service.d.ts +3 -3
- package/dist/modules/system/services/system-command.service.js +5 -5
- package/dist/modules/system/services/system-command.service.js.map +1 -1
- package/dist/modules/system/services/system-throttle-monitor.service.d.ts +11 -0
- package/dist/modules/system/services/system-throttle-monitor.service.js +107 -0
- package/dist/modules/system/services/system-throttle-monitor.service.js.map +1 -0
- package/dist/modules/system/services/update-executor.service.d.ts +10 -5
- package/dist/modules/system/services/update-executor.service.js +131 -175
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/system/services/update.service.d.ts +17 -4
- package/dist/modules/system/services/update.service.js +144 -41
- package/dist/modules/system/services/update.service.js.map +1 -1
- package/dist/modules/system/system.exceptions.d.ts +3 -0
- package/dist/modules/system/system.exceptions.js +8 -1
- package/dist/modules/system/system.exceptions.js.map +1 -1
- package/dist/modules/system/system.module.js +2 -0
- package/dist/modules/system/system.module.js.map +1 -1
- package/dist/modules/tools/platforms/tool-provider.platform.d.ts +48 -1
- package/dist/modules/tools/platforms/tool-provider.platform.js +39 -0
- package/dist/modules/tools/platforms/tool-provider.platform.js.map +1 -1
- package/dist/modules/tools/services/base-tool-provider.service.d.ts +3 -3
- package/dist/modules/tools/services/base-tool-provider.service.js +43 -10
- package/dist/modules/tools/services/base-tool-provider.service.js.map +1 -1
- package/dist/modules/tools/services/short-id-mapping.service.d.ts +24 -0
- package/dist/modules/tools/services/short-id-mapping.service.js +119 -1
- package/dist/modules/tools/services/short-id-mapping.service.js.map +1 -1
- package/dist/modules/tools/services/tool-provider-registry.service.d.ts +7 -3
- package/dist/modules/tools/services/tool-provider-registry.service.js +125 -15
- package/dist/modules/tools/services/tool-provider-registry.service.js.map +1 -1
- package/dist/modules/tools/tools.constants.d.ts +3 -0
- package/dist/modules/tools/tools.constants.js +4 -1
- package/dist/modules/tools/tools.constants.js.map +1 -1
- package/dist/modules/users/controllers/users.controller.d.ts +6 -2
- package/dist/modules/users/controllers/users.controller.js +33 -2
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/bulk-users.dto.d.ts +7 -0
- package/dist/modules/users/dto/bulk-users.dto.js +53 -0
- package/dist/modules/users/dto/bulk-users.dto.js.map +1 -0
- package/dist/modules/users/models/users-response.model.d.ts +4 -0
- package/dist/modules/users/models/users-response.model.js +16 -1
- package/dist/modules/users/models/users-response.model.js.map +1 -1
- package/dist/modules/users/services/user-lifecycle-mutation-registry.service.d.ts +28 -0
- package/dist/modules/users/services/user-lifecycle-mutation-registry.service.js +79 -0
- package/dist/modules/users/services/user-lifecycle-mutation-registry.service.js.map +1 -0
- package/dist/modules/users/services/users-bulk.service.d.ts +8 -0
- package/dist/modules/users/services/users-bulk.service.js +44 -0
- package/dist/modules/users/services/users-bulk.service.js.map +1 -0
- package/dist/modules/users/services/users.service.d.ts +3 -1
- package/dist/modules/users/services/users.service.js +12 -5
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.exceptions.d.ts +3 -0
- package/dist/modules/users/users.exceptions.js +8 -1
- package/dist/modules/users/users.exceptions.js.map +1 -1
- package/dist/modules/users/users.module.js +5 -1
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/modules/users/users.openapi.d.ts +3 -2
- package/dist/modules/users/users.openapi.js +5 -0
- package/dist/modules/users/users.openapi.js.map +1 -1
- package/dist/modules/users/validators/user-exists-constraint.validator.js +1 -1
- package/dist/modules/users/validators/user-exists-constraint.validator.js.map +1 -1
- package/dist/modules/weather/controllers/locations.controller.d.ts +6 -2
- package/dist/modules/weather/controllers/locations.controller.js +39 -3
- package/dist/modules/weather/controllers/locations.controller.js.map +1 -1
- package/dist/modules/weather/dto/bulk-locations.dto.d.ts +7 -0
- package/dist/modules/weather/dto/bulk-locations.dto.js +53 -0
- package/dist/modules/weather/dto/bulk-locations.dto.js.map +1 -0
- package/dist/modules/weather/models/locations-response.model.d.ts +4 -0
- package/dist/modules/weather/models/locations-response.model.js +16 -1
- package/dist/modules/weather/models/locations-response.model.js.map +1 -1
- package/dist/modules/weather/services/locations-bulk.service.d.ts +8 -0
- package/dist/modules/weather/services/locations-bulk.service.js +35 -0
- package/dist/modules/weather/services/locations-bulk.service.js.map +1 -0
- package/dist/modules/weather/services/weather.service.d.ts +13 -3
- package/dist/modules/weather/services/weather.service.js +57 -4
- package/dist/modules/weather/services/weather.service.js.map +1 -1
- package/dist/modules/weather/weather.module.d.ts +5 -1
- package/dist/modules/weather/weather.module.js +9 -1
- package/dist/modules/weather/weather.module.js.map +1 -1
- package/dist/modules/weather/weather.openapi.d.ts +4 -2
- package/dist/modules/weather/weather.openapi.js +5 -0
- package/dist/modules/weather/weather.openapi.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +4 -1
- package/dist/modules/websocket/gateway/websocket.gateway.js +24 -7
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/ws-auth.service.js +7 -0
- package/dist/modules/websocket/services/ws-auth.service.js.map +1 -1
- package/dist/modules/websocket/websocket.constants.d.ts +1 -0
- package/dist/modules/websocket/websocket.constants.js +2 -1
- package/dist/modules/websocket/websocket.constants.js.map +1 -1
- package/dist/modules/websocket/websocket.module.js +2 -0
- package/dist/modules/websocket/websocket.module.js.map +1 -1
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js +7 -0
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude/dto/update-config.dto.js +2 -3
- package/dist/plugins/buddy-claude/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-claude/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-claude/models/config.model.js +12 -1
- package/dist/plugins/buddy-claude/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-claude/platforms/claude.provider.d.ts +3 -2
- package/dist/plugins/buddy-claude/platforms/claude.provider.js +3 -0
- package/dist/plugins/buddy-claude/platforms/claude.provider.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +7 -0
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/dto/update-config.dto.js +2 -1
- package/dist/plugins/buddy-claude-setup-token/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-claude-setup-token/models/config.model.js +12 -1
- package/dist/plugins/buddy-claude-setup-token/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.d.ts +3 -2
- package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.js +3 -0
- package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.js.map +1 -1
- package/dist/plugins/buddy-discord/buddy-discord.plugin.d.ts +3 -3
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js +12 -5
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
- package/dist/plugins/buddy-discord/dto/update-config.dto.js +2 -1
- package/dist/plugins/buddy-discord/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-discord/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-discord/models/config.model.js +12 -1
- package/dist/plugins/buddy-discord/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-discord/platforms/discord-bot.provider.d.ts +7 -3
- package/dist/plugins/buddy-discord/platforms/discord-bot.provider.js +4 -1
- package/dist/plugins/buddy-discord/platforms/discord-bot.provider.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +7 -0
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/dto/update-config.dto.js +2 -3
- package/dist/plugins/buddy-elevenlabs/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-elevenlabs/models/config.model.js +12 -1
- package/dist/plugins/buddy-elevenlabs/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-ollama/platforms/ollama.provider.d.ts +5 -3
- package/dist/plugins/buddy-ollama/platforms/ollama.provider.js +55 -24
- package/dist/plugins/buddy-ollama/platforms/ollama.provider.js.map +1 -1
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js +7 -0
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/dto/update-config.dto.js +2 -3
- package/dist/plugins/buddy-openai/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-openai/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-openai/models/config.model.js +12 -1
- package/dist/plugins/buddy-openai/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-openai/platforms/openai.provider.d.ts +3 -2
- package/dist/plugins/buddy-openai/platforms/openai.provider.js +3 -0
- package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +17 -0
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/dto/update-config.dto.js +4 -3
- package/dist/plugins/buddy-openai-codex/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/models/config.model.d.ts +3 -0
- package/dist/plugins/buddy-openai-codex/models/config.model.js +36 -3
- package/dist/plugins/buddy-openai-codex/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.d.ts +5 -3
- package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.js +429 -48
- package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.js.map +1 -1
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.d.ts +3 -3
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +12 -5
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
- package/dist/plugins/buddy-telegram/dto/update-config.dto.js +2 -1
- package/dist/plugins/buddy-telegram/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-telegram/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-telegram/models/config.model.js +12 -1
- package/dist/plugins/buddy-telegram/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.d.ts +7 -3
- package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.js +4 -1
- package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.js.map +1 -1
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +7 -0
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
- package/dist/plugins/buddy-voiceai/dto/update-config.dto.js +2 -3
- package/dist/plugins/buddy-voiceai/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/buddy-voiceai/models/config.model.d.ts +1 -0
- package/dist/plugins/buddy-voiceai/models/config.model.js +12 -1
- package/dist/plugins/buddy-voiceai/models/config.model.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.d.ts +3 -3
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +5 -5
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +10 -6
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +9 -6
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/dto/create-data-source.dto.js +2 -0
- package/dist/plugins/data-sources-device-channel/dto/create-data-source.dto.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/dto/update-data-source.dto.js +2 -0
- package/dist/plugins/data-sources-device-channel/dto/update-data-source.dto.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/validators/device-channel-exists-constraint.validator.js +1 -1
- package/dist/plugins/data-sources-device-channel/validators/device-channel-exists-constraint.validator.js.map +1 -1
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.d.ts +4 -2
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.js +17 -5
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.js.map +1 -1
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.d.ts +12 -0
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.js +147 -0
- package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.js.map +1 -0
- package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.d.ts +4 -2
- package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.js +10 -0
- package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.d.ts +5 -3
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +19 -5
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.d.ts +6 -0
- package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.js +49 -0
- package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.js.map +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js +12 -1
- package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.js +12 -0
- package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/wizard.model.d.ts +39 -0
- package/dist/plugins/devices-home-assistant/models/wizard.model.js +221 -0
- package/dist/plugins/devices-home-assistant/models/wizard.model.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/device-adoption.service.d.ts +2 -1
- package/dist/plugins/devices-home-assistant/services/device-adoption.service.js +5 -4
- package/dist/plugins/devices-home-assistant/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.d.ts +15 -7
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +69 -56
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/helper-adoption.service.d.ts +7 -2
- package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js +33 -7
- package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.d.ts +9 -0
- package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.js +23 -0
- package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +6 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +76 -11
- 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 +18 -5
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +94 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/mapping-preview.service.d.ts +10 -0
- package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js +28 -0
- package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/wizard.service.d.ts +34 -0
- package/dist/plugins/devices-home-assistant/services/wizard.service.js +372 -0
- package/dist/plugins/devices-home-assistant/services/wizard.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.d.ts +3 -0
- package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.js +44 -0
- package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.factory.d.ts +9 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.factory.js +3 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.factory.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.interface.d.ts +14 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.interface.js +3 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.interface.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.types.d.ts +3 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.types.js +3 -0
- package/dist/plugins/devices-homey/connectors/homey-connector.types.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.d.ts +8 -0
- package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.js +36 -0
- package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-local.connector.d.ts +36 -0
- package/dist/plugins/devices-homey/connectors/homey-local.connector.js +266 -0
- package/dist/plugins/devices-homey/connectors/homey-local.connector.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.d.ts +3 -0
- package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.js +63 -0
- package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transformer.d.ts +10 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transformer.js +264 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transformer.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transport.d.ts +6 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transport.js +3 -0
- package/dist/plugins/devices-homey/connectors/homey-local.transport.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.client.d.ts +59 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.client.js +25 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.client.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.transport.d.ts +45 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.transport.js +384 -0
- package/dist/plugins/devices-homey/connectors/homey-sdk.transport.js.map +1 -0
- package/dist/plugins/devices-homey/connectors/homey-transport.interface.d.ts +18 -0
- package/dist/plugins/devices-homey/connectors/homey-transport.interface.js +3 -0
- package/dist/plugins/devices-homey/connectors/homey-transport.interface.js.map +1 -0
- package/dist/plugins/devices-homey/controllers/homey-adoption.controller.d.ts +9 -0
- package/dist/plugins/devices-homey/controllers/homey-adoption.controller.js +86 -0
- package/dist/plugins/devices-homey/controllers/homey-adoption.controller.js.map +1 -0
- package/dist/plugins/devices-homey/controllers/homey-devices.controller.d.ts +9 -0
- package/dist/plugins/devices-homey/controllers/homey-devices.controller.js +104 -0
- package/dist/plugins/devices-homey/controllers/homey-devices.controller.js.map +1 -0
- package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.d.ts +8 -0
- package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.js +74 -0
- package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.js.map +1 -0
- package/dist/plugins/devices-homey/controllers/homey-status.controller.d.ts +7 -0
- package/dist/plugins/devices-homey/controllers/homey-status.controller.js +52 -0
- package/dist/plugins/devices-homey/controllers/homey-status.controller.js.map +1 -0
- package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.d.ts +8 -0
- package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.js +60 -0
- package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.js.map +1 -0
- package/dist/plugins/devices-homey/devices-homey.constants.d.ts +29 -0
- package/dist/plugins/devices-homey/devices-homey.constants.js +34 -0
- package/dist/plugins/devices-homey/devices-homey.constants.js.map +1 -0
- package/dist/plugins/devices-homey/devices-homey.openapi.d.ts +17 -0
- package/dist/plugins/devices-homey/devices-homey.openapi.js +67 -0
- package/dist/plugins/devices-homey/devices-homey.openapi.js.map +1 -0
- package/dist/plugins/devices-homey/devices-homey.plugin.d.ts +30 -0
- package/dist/plugins/devices-homey/devices-homey.plugin.js +288 -0
- package/dist/plugins/devices-homey/devices-homey.plugin.js.map +1 -0
- package/dist/plugins/devices-homey/dto/adoption.dto.d.ts +9 -0
- package/dist/plugins/devices-homey/dto/adoption.dto.js +79 -0
- package/dist/plugins/devices-homey/dto/adoption.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/create-channel-property.dto.d.ts +3 -0
- package/dist/plugins/devices-homey/dto/create-channel-property.dto.js +18 -0
- package/dist/plugins/devices-homey/dto/create-channel-property.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/create-channel.dto.d.ts +7 -0
- package/dist/plugins/devices-homey/dto/create-channel.dto.js +45 -0
- package/dist/plugins/devices-homey/dto/create-channel.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.d.ts +7 -0
- package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.js +59 -0
- package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/create-device-channel.dto.d.ts +7 -0
- package/dist/plugins/devices-homey/dto/create-device-channel.dto.js +45 -0
- package/dist/plugins/devices-homey/dto/create-device-channel.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/create-device.dto.d.ts +7 -0
- package/dist/plugins/devices-homey/dto/create-device.dto.js +45 -0
- package/dist/plugins/devices-homey/dto/create-device.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/list-homey-devices.dto.d.ts +24 -0
- package/dist/plugins/devices-homey/dto/list-homey-devices.dto.js +89 -0
- package/dist/plugins/devices-homey/dto/list-homey-devices.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/mapping-preview.dto.d.ts +5 -0
- package/dist/plugins/devices-homey/dto/mapping-preview.dto.js +46 -0
- package/dist/plugins/devices-homey/dto/mapping-preview.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/test-connection.dto.d.ts +18 -0
- package/dist/plugins/devices-homey/dto/test-connection.dto.js +146 -0
- package/dist/plugins/devices-homey/dto/test-connection.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/update-channel-property.dto.d.ts +9 -0
- package/dist/plugins/devices-homey/dto/update-channel-property.dto.js +77 -0
- package/dist/plugins/devices-homey/dto/update-channel-property.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/update-channel.dto.d.ts +7 -0
- package/dist/plugins/devices-homey/dto/update-channel.dto.js +51 -0
- package/dist/plugins/devices-homey/dto/update-channel.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/update-config.dto.d.ts +9 -0
- package/dist/plugins/devices-homey/dto/update-config.dto.js +103 -0
- package/dist/plugins/devices-homey/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/devices-homey/dto/update-device.dto.d.ts +5 -0
- package/dist/plugins/devices-homey/dto/update-device.dto.js +35 -0
- package/dist/plugins/devices-homey/dto/update-device.dto.js.map +1 -0
- package/dist/plugins/devices-homey/entities/devices-homey.entity.d.ts +15 -0
- package/dist/plugins/devices-homey/entities/devices-homey.entity.js +121 -0
- package/dist/plugins/devices-homey/entities/devices-homey.entity.js.map +1 -0
- package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.d.ts +5 -0
- package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.js +32 -0
- package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.js.map +1 -0
- package/dist/plugins/devices-homey/errors/homey-connector.error.d.ts +25 -0
- package/dist/plugins/devices-homey/errors/homey-connector.error.js +39 -0
- package/dist/plugins/devices-homey/errors/homey-connector.error.js.map +1 -0
- package/dist/plugins/devices-homey/errors/homey-inventory.error.d.ts +6 -0
- package/dist/plugins/devices-homey/errors/homey-inventory.error.js +18 -0
- package/dist/plugins/devices-homey/errors/homey-inventory.error.js.map +1 -0
- package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.d.ts +6 -0
- package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.js +18 -0
- package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.js.map +1 -0
- package/dist/plugins/devices-homey/index.d.ts +26 -0
- package/dist/plugins/devices-homey/index.js +43 -0
- package/dist/plugins/devices-homey/index.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/definitions/channels.yaml +214 -0
- package/dist/plugins/devices-homey/mappings/definitions/devices.yaml +75 -0
- package/dist/plugins/devices-homey/mappings/definitions/properties.yaml +551 -0
- package/dist/plugins/devices-homey/mappings/device-support.d.ts +8 -0
- package/dist/plugins/devices-homey/mappings/device-support.js +50 -0
- package/dist/plugins/devices-homey/mappings/device-support.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/homey-mapping.error.d.ts +11 -0
- package/dist/plugins/devices-homey/mappings/homey-mapping.error.js +23 -0
- package/dist/plugins/devices-homey/mappings/homey-mapping.error.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/index.d.ts +6 -0
- package/dist/plugins/devices-homey/mappings/index.js +23 -0
- package/dist/plugins/devices-homey/mappings/index.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.d.ts +43 -0
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.js +453 -0
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/mapping-transformer.service.d.ts +17 -0
- package/dist/plugins/devices-homey/mappings/mapping-transformer.service.js +156 -0
- package/dist/plugins/devices-homey/mappings/mapping-transformer.service.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/mapping.constants.d.ts +12 -0
- package/dist/plugins/devices-homey/mappings/mapping.constants.js +16 -0
- package/dist/plugins/devices-homey/mappings/mapping.constants.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/mapping.types.d.ts +202 -0
- package/dist/plugins/devices-homey/mappings/mapping.types.js +3 -0
- package/dist/plugins/devices-homey/mappings/mapping.types.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.d.ts +10 -0
- package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.js +38 -0
- package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/schema/mapping-schema.json +302 -0
- package/dist/plugins/devices-homey/models/adoption.model.d.ts +30 -0
- package/dist/plugins/devices-homey/models/adoption.model.js +122 -0
- package/dist/plugins/devices-homey/models/adoption.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/config.model.d.ts +9 -0
- package/dist/plugins/devices-homey/models/config.model.js +107 -0
- package/dist/plugins/devices-homey/models/config.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/homey-capability.model.d.ts +31 -0
- package/dist/plugins/devices-homey/models/homey-capability.model.js +24 -0
- package/dist/plugins/devices-homey/models/homey-capability.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/homey-device.model.d.ts +23 -0
- package/dist/plugins/devices-homey/models/homey-device.model.js +3 -0
- package/dist/plugins/devices-homey/models/homey-device.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/homey-event.model.d.ts +54 -0
- package/dist/plugins/devices-homey/models/homey-event.model.js +15 -0
- package/dist/plugins/devices-homey/models/homey-event.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/homey-system-info.model.d.ts +7 -0
- package/dist/plugins/devices-homey/models/homey-system-info.model.js +3 -0
- package/dist/plugins/devices-homey/models/homey-system-info.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/homey-zone.model.d.ts +7 -0
- package/dist/plugins/devices-homey/models/homey-zone.model.js +3 -0
- package/dist/plugins/devices-homey/models/homey-zone.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/inventory.model.d.ts +50 -0
- package/dist/plugins/devices-homey/models/inventory.model.js +236 -0
- package/dist/plugins/devices-homey/models/inventory.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/mapping-preview.model.d.ts +123 -0
- package/dist/plugins/devices-homey/models/mapping-preview.model.js +576 -0
- package/dist/plugins/devices-homey/models/mapping-preview.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/status.model.d.ts +32 -0
- package/dist/plugins/devices-homey/models/status.model.js +242 -0
- package/dist/plugins/devices-homey/models/status.model.js.map +1 -0
- package/dist/plugins/devices-homey/models/test-connection.model.d.ts +15 -0
- package/dist/plugins/devices-homey/models/test-connection.model.js +88 -0
- package/dist/plugins/devices-homey/models/test-connection.model.js.map +1 -0
- package/dist/plugins/devices-homey/platforms/homey-command-value.d.ts +7 -0
- package/dist/plugins/devices-homey/platforms/homey-command-value.js +65 -0
- package/dist/plugins/devices-homey/platforms/homey-command-value.js.map +1 -0
- package/dist/plugins/devices-homey/platforms/homey-device.platform.d.ts +41 -0
- package/dist/plugins/devices-homey/platforms/homey-device.platform.js +427 -0
- package/dist/plugins/devices-homey/platforms/homey-device.platform.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-adoption-lock.service.d.ts +20 -0
- package/dist/plugins/devices-homey/services/homey-adoption-lock.service.js +147 -0
- package/dist/plugins/devices-homey/services/homey-adoption-lock.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-config-validator.service.d.ts +11 -0
- package/dist/plugins/devices-homey/services/homey-config-validator.service.js +76 -0
- package/dist/plugins/devices-homey/services/homey-config-validator.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-connection-test.service.d.ts +14 -0
- package/dist/plugins/devices-homey/services/homey-connection-test.service.js +134 -0
- package/dist/plugins/devices-homey/services/homey-connection-test.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-device-adoption.service.d.ts +52 -0
- package/dist/plugins/devices-homey/services/homey-device-adoption.service.js +711 -0
- package/dist/plugins/devices-homey/services/homey-device-adoption.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-device-inventory.service.d.ts +20 -0
- package/dist/plugins/devices-homey/services/homey-device-inventory.service.js +159 -0
- package/dist/plugins/devices-homey/services/homey-device-inventory.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-failure-log-limiter.d.ts +9 -0
- package/dist/plugins/devices-homey/services/homey-failure-log-limiter.js +23 -0
- package/dist/plugins/devices-homey/services/homey-failure-log-limiter.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-mapping-preview.service.d.ts +53 -0
- package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js +999 -0
- package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-reconnect-backoff.d.ts +1 -0
- package/dist/plugins/devices-homey/services/homey-reconnect-backoff.js +16 -0
- package/dist/plugins/devices-homey/services/homey-reconnect-backoff.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.d.ts +90 -0
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.js +628 -0
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.js.map +1 -0
- package/dist/plugins/devices-homey/services/homey.service.d.ts +129 -0
- package/dist/plugins/devices-homey/services/homey.service.js +1216 -0
- package/dist/plugins/devices-homey/services/homey.service.js.map +1 -0
- package/dist/plugins/devices-homey/validators/homey-url.validator.d.ts +4 -0
- package/dist/plugins/devices-homey/validators/homey-url.validator.js +27 -0
- package/dist/plugins/devices-homey/validators/homey-url.validator.js.map +1 -0
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.d.ts +3 -3
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +5 -5
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
- package/dist/plugins/devices-reterminal/services/reterminal.service.d.ts +7 -3
- package/dist/plugins/devices-reterminal/services/reterminal.service.js +4 -1
- package/dist/plugins/devices-reterminal/services/reterminal.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +6 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +31 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +2 -2
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.d.ts +22 -2
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js +61 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +4 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +5 -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 +3 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +7 -5
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.d.ts +15 -0
- package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.js +113 -0
- package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/mappings/definitions/sensors.yaml +1 -1
- package/dist/plugins/devices-shelly-ng/mappings/definitions/switches.yaml +23 -2
- 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 +16 -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 +7 -0
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +57 -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.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +208 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.d.ts +19 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.js +114 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +11 -7
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +15 -8
- 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 +87 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +18 -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 +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +6 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +29 -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 +5 -4
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +5 -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.d.ts +3 -3
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +7 -5
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.d.ts +15 -0
- package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.js +113 -0
- package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.js.map +1 -0
- 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 +16 -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 +7 -0
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +57 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +3 -0
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.d.ts +19 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.js +114 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +8 -4
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +6 -3
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.d.ts +15 -0
- package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.js +170 -0
- package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.d.ts +8 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.js +19 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.exceptions.d.ts +33 -0
- package/dist/plugins/devices-virtual/devices-virtual.exceptions.js +81 -0
- package/dist/plugins/devices-virtual/devices-virtual.exceptions.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.d.ts +13 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js +37 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.plugin.d.ts +34 -0
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js +317 -0
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/compatibility-request.dto.d.ts +13 -0
- package/dist/plugins/devices-virtual/dto/compatibility-request.dto.js +109 -0
- package/dist/plugins/devices-virtual/dto/compatibility-request.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/create-channel-property.dto.d.ts +10 -0
- package/dist/plugins/devices-virtual/dto/create-channel-property.dto.js +91 -0
- package/dist/plugins/devices-virtual/dto/create-channel-property.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/create-channel.dto.d.ts +8 -0
- package/dist/plugins/devices-virtual/dto/create-channel.dto.js +65 -0
- package/dist/plugins/devices-virtual/dto/create-channel.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/create-device-channel.dto.d.ts +7 -0
- package/dist/plugins/devices-virtual/dto/create-device-channel.dto.js +50 -0
- package/dist/plugins/devices-virtual/dto/create-device-channel.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.d.ts +9 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js +64 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-channel-property.dto.d.ts +10 -0
- package/dist/plugins/devices-virtual/dto/update-channel-property.dto.js +91 -0
- package/dist/plugins/devices-virtual/dto/update-channel-property.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-channel.dto.d.ts +5 -0
- package/dist/plugins/devices-virtual/dto/update-channel.dto.js +35 -0
- package/dist/plugins/devices-virtual/dto/update-channel.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/devices-virtual/dto/update-config.dto.js +33 -0
- package/dist/plugins/devices-virtual/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.d.ts +7 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js +55 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.d.ts +25 -0
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js +153 -0
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.d.ts +20 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js +191 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.d.ts +55 -0
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js +542 -0
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +10 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +50 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.d.ts +20 -0
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js +89 -0
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js.map +1 -0
- package/dist/plugins/devices-virtual/models/compatibility-response.model.d.ts +12 -0
- package/dist/plugins/devices-virtual/models/compatibility-response.model.js +95 -0
- package/dist/plugins/devices-virtual/models/compatibility-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/config.model.d.ts +5 -0
- package/dist/plugins/devices-virtual/models/config.model.js +47 -0
- package/dist/plugins/devices-virtual/models/config.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/virtual-response.model.d.ts +5 -0
- package/dist/plugins/devices-virtual/models/virtual-response.model.js +32 -0
- package/dist/plugins/devices-virtual/models/virtual-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +17 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +121 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.d.ts +52 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js +424 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.js +43 -0
- package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.d.ts +38 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js +203 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.d.ts +6 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js +31 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.d.ts +10 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js +56 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.d.ts +9 -0
- package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.js +56 -0
- package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.d.ts +6 -0
- package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.js +38 -0
- package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.d.ts +7 -0
- package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.js +38 -0
- package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.d.ts +9 -0
- package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.js +56 -0
- package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.js.map +1 -0
- package/dist/plugins/devices-wled/controllers/wled-discovery.controller.d.ts +6 -3
- package/dist/plugins/devices-wled/controllers/wled-discovery.controller.js +78 -20
- package/dist/plugins/devices-wled/controllers/wled-discovery.controller.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.exceptions.d.ts +3 -0
- package/dist/plugins/devices-wled/devices-wled.exceptions.js +7 -1
- package/dist/plugins/devices-wled/devices-wled.exceptions.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.openapi.d.ts +3 -2
- package/dist/plugins/devices-wled/devices-wled.openapi.js +11 -1
- package/dist/plugins/devices-wled/devices-wled.openapi.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.plugin.d.ts +3 -3
- package/dist/plugins/devices-wled/devices-wled.plugin.js +10 -6
- package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/dto/wled-adoption.dto.d.ts +19 -0
- package/dist/plugins/devices-wled/dto/wled-adoption.dto.js +108 -0
- package/dist/plugins/devices-wled/dto/wled-adoption.dto.js.map +1 -0
- package/dist/plugins/devices-wled/entities/devices-wled.entity.d.ts +1 -0
- package/dist/plugins/devices-wled/entities/devices-wled.entity.js +14 -0
- package/dist/plugins/devices-wled/entities/devices-wled.entity.js.map +1 -1
- package/dist/plugins/devices-wled/models/config.model.js +2 -2
- package/dist/plugins/devices-wled/models/config.model.js.map +1 -1
- package/dist/plugins/devices-wled/models/wled-discovery.model.d.ts +22 -3
- package/dist/plugins/devices-wled/models/wled-discovery.model.js +104 -29
- package/dist/plugins/devices-wled/models/wled-discovery.model.js.map +1 -1
- package/dist/plugins/devices-wled/services/adoption-snapshot.service.d.ts +16 -0
- package/dist/plugins/devices-wled/services/adoption-snapshot.service.js +109 -0
- package/dist/plugins/devices-wled/services/adoption-snapshot.service.js.map +1 -0
- package/dist/plugins/devices-wled/services/device-mapper.service.d.ts +5 -2
- package/dist/plugins/devices-wled/services/device-mapper.service.js +49 -19
- package/dist/plugins/devices-wled/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/hardware-identity.service.d.ts +9 -0
- package/dist/plugins/devices-wled/services/hardware-identity.service.js +50 -0
- package/dist/plugins/devices-wled/services/hardware-identity.service.js.map +1 -0
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.d.ts +4 -2
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js +43 -24
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.d.ts +2 -0
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +6 -0
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.d.ts +40 -7
- package/dist/plugins/devices-wled/services/wled.service.js +759 -26
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.d.ts +3 -3
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +15 -5
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/models/config.model.d.ts +2 -0
- package/dist/plugins/devices-zigbee2mqtt/models/config.model.js +24 -2
- package/dist/plugins/devices-zigbee2mqtt/models/config.model.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +11 -7
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +11 -8
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/plugins/influx-v1/dto/update-config.dto.d.ts +1 -1
- package/dist/plugins/influx-v1/dto/update-config.dto.js +1 -0
- package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +3 -3
- package/dist/plugins/influx-v1/influx-v1.plugin.js +11 -5
- package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -1
- package/dist/plugins/influx-v1/models/config.model.d.ts +1 -0
- package/dist/plugins/influx-v1/models/config.model.js +12 -1
- package/dist/plugins/influx-v1/models/config.model.js.map +1 -1
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +7 -4
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +3 -3
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -1
- package/dist/plugins/influx-v1/services/influx-v1.storage.d.ts +1 -0
- package/dist/plugins/influx-v1/services/influx-v1.storage.js +15 -0
- package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -1
- package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +1 -1
- package/dist/plugins/influx-v2/dto/update-config.dto.js +1 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +3 -3
- package/dist/plugins/influx-v2/influx-v2.plugin.js +11 -5
- package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -1
- package/dist/plugins/influx-v2/models/config.model.d.ts +1 -0
- package/dist/plugins/influx-v2/models/config.model.js +12 -1
- package/dist/plugins/influx-v2/models/config.model.js.map +1 -1
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +7 -4
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +3 -3
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -1
- package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +4 -1
- package/dist/plugins/influx-v2/services/influx-v2.storage.js +159 -2
- package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -1
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.d.ts +3 -3
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +5 -5
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
- package/dist/plugins/logger-rotating-file/services/file-logger.service.d.ts +7 -3
- package/dist/plugins/logger-rotating-file/services/file-logger.service.js +12 -1
- package/dist/plugins/logger-rotating-file/services/file-logger.service.js.map +1 -1
- package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +3 -3
- package/dist/plugins/memory-storage/memory-storage.plugin.js +5 -5
- package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -1
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.d.ts +1 -1
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js +5 -3
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -1
- package/dist/plugins/memory-storage/services/influxql-parser.js +21 -1
- package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -1
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +6 -3
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +3 -3
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -1
- package/dist/plugins/notifications-discord/dto/update-config.dto.d.ts +10 -0
- package/dist/plugins/notifications-discord/dto/update-config.dto.js +90 -0
- package/dist/plugins/notifications-discord/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/notifications-discord/models/config.model.d.ts +10 -0
- package/dist/plugins/notifications-discord/models/config.model.js +99 -0
- package/dist/plugins/notifications-discord/models/config.model.js.map +1 -0
- package/dist/plugins/notifications-discord/notifications-discord.constants.d.ts +4 -0
- package/dist/plugins/notifications-discord/notifications-discord.constants.js +8 -0
- package/dist/plugins/notifications-discord/notifications-discord.constants.js.map +1 -0
- package/dist/plugins/notifications-discord/notifications-discord.openapi.d.ts +3 -0
- package/dist/plugins/notifications-discord/notifications-discord.openapi.js +10 -0
- package/dist/plugins/notifications-discord/notifications-discord.openapi.js.map +1 -0
- package/dist/plugins/notifications-discord/notifications-discord.plugin.d.ts +15 -0
- package/dist/plugins/notifications-discord/notifications-discord.plugin.js +113 -0
- package/dist/plugins/notifications-discord/notifications-discord.plugin.js.map +1 -0
- package/dist/plugins/notifications-discord/platforms/discord-channel.platform.d.ts +9 -0
- package/dist/plugins/notifications-discord/platforms/discord-channel.platform.js +67 -0
- package/dist/plugins/notifications-discord/platforms/discord-channel.platform.js.map +1 -0
- package/dist/plugins/notifications-discord/services/discord-actions.service.d.ts +13 -0
- package/dist/plugins/notifications-discord/services/discord-actions.service.js +94 -0
- package/dist/plugins/notifications-discord/services/discord-actions.service.js.map +1 -0
- package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.d.ts +4 -0
- package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.js +38 -0
- package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.js.map +1 -0
- package/dist/plugins/notifications-slack/dto/update-config.dto.d.ts +9 -0
- package/dist/plugins/notifications-slack/dto/update-config.dto.js +79 -0
- package/dist/plugins/notifications-slack/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/notifications-slack/models/config.model.d.ts +9 -0
- package/dist/plugins/notifications-slack/models/config.model.js +87 -0
- package/dist/plugins/notifications-slack/models/config.model.js.map +1 -0
- package/dist/plugins/notifications-slack/notifications-slack.constants.d.ts +4 -0
- package/dist/plugins/notifications-slack/notifications-slack.constants.js +8 -0
- package/dist/plugins/notifications-slack/notifications-slack.constants.js.map +1 -0
- package/dist/plugins/notifications-slack/notifications-slack.openapi.d.ts +3 -0
- package/dist/plugins/notifications-slack/notifications-slack.openapi.js +10 -0
- package/dist/plugins/notifications-slack/notifications-slack.openapi.js.map +1 -0
- package/dist/plugins/notifications-slack/notifications-slack.plugin.d.ts +15 -0
- package/dist/plugins/notifications-slack/notifications-slack.plugin.js +111 -0
- package/dist/plugins/notifications-slack/notifications-slack.plugin.js.map +1 -0
- package/dist/plugins/notifications-slack/platforms/slack-channel.platform.d.ts +9 -0
- package/dist/plugins/notifications-slack/platforms/slack-channel.platform.js +63 -0
- package/dist/plugins/notifications-slack/platforms/slack-channel.platform.js.map +1 -0
- package/dist/plugins/notifications-slack/services/slack-actions.service.d.ts +13 -0
- package/dist/plugins/notifications-slack/services/slack-actions.service.js +94 -0
- package/dist/plugins/notifications-slack/services/slack-actions.service.js.map +1 -0
- package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.d.ts +4 -0
- package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.js +37 -0
- package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.js.map +1 -0
- package/dist/plugins/notifications-telegram/dto/update-config.dto.d.ts +10 -0
- package/dist/plugins/notifications-telegram/dto/update-config.dto.js +88 -0
- package/dist/plugins/notifications-telegram/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/notifications-telegram/models/config.model.d.ts +10 -0
- package/dist/plugins/notifications-telegram/models/config.model.js +98 -0
- package/dist/plugins/notifications-telegram/models/config.model.js.map +1 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.constants.d.ts +4 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.constants.js +8 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.constants.js.map +1 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.openapi.d.ts +3 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.openapi.js +10 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.openapi.js.map +1 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.plugin.d.ts +15 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.plugin.js +113 -0
- package/dist/plugins/notifications-telegram/notifications-telegram.plugin.js.map +1 -0
- package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.d.ts +12 -0
- package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.js +87 -0
- package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.js.map +1 -0
- package/dist/plugins/notifications-telegram/services/telegram-actions.service.d.ts +13 -0
- package/dist/plugins/notifications-telegram/services/telegram-actions.service.js +94 -0
- package/dist/plugins/notifications-telegram/services/telegram-actions.service.js.map +1 -0
- package/dist/plugins/notifications-webhook/dto/update-config.dto.d.ts +10 -0
- package/dist/plugins/notifications-webhook/dto/update-config.dto.js +94 -0
- package/dist/plugins/notifications-webhook/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/notifications-webhook/models/config.model.d.ts +11 -0
- package/dist/plugins/notifications-webhook/models/config.model.js +114 -0
- package/dist/plugins/notifications-webhook/models/config.model.js.map +1 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.constants.d.ts +4 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.constants.js +8 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.constants.js.map +1 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.openapi.d.ts +3 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.openapi.js +10 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.openapi.js.map +1 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.plugin.d.ts +15 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.plugin.js +134 -0
- package/dist/plugins/notifications-webhook/notifications-webhook.plugin.js.map +1 -0
- package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.d.ts +9 -0
- package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.js +63 -0
- package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.js.map +1 -0
- package/dist/plugins/notifications-webhook/services/webhook-actions.service.d.ts +13 -0
- package/dist/plugins/notifications-webhook/services/webhook-actions.service.js +94 -0
- package/dist/plugins/notifications-webhook/services/webhook-actions.service.js.map +1 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.d.ts +6 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.js +40 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.js.map +1 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.d.ts +3 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.js +24 -0
- package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.js.map +1 -0
- package/dist/plugins/notifications-webhook/validators/webhook-url.validator.d.ts +4 -0
- package/dist/plugins/notifications-webhook/validators/webhook-url.validator.js +27 -0
- package/dist/plugins/notifications-webhook/validators/webhook-url.validator.js.map +1 -0
- package/dist/plugins/pages-device-detail/dto/create-page.dto.js +2 -0
- package/dist/plugins/pages-device-detail/dto/create-page.dto.js.map +1 -1
- package/dist/plugins/pages-device-detail/dto/update-page.dto.js +2 -0
- package/dist/plugins/pages-device-detail/dto/update-page.dto.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.d.ts +21 -0
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js +211 -0
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.d.ts +13 -0
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.js +88 -0
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/dto/login.dto.d.ts +3 -0
- package/dist/plugins/remote-access-tailscale/dto/login.dto.js +40 -0
- package/dist/plugins/remote-access-tailscale/dto/login.dto.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/dto/update-config.dto.d.ts +12 -0
- package/dist/plugins/remote-access-tailscale/dto/update-config.dto.js +139 -0
- package/dist/plugins/remote-access-tailscale/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/models/config.model.d.ts +12 -0
- package/dist/plugins/remote-access-tailscale/models/config.model.js +140 -0
- package/dist/plugins/remote-access-tailscale/models/config.model.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/models/login.model.d.ts +16 -0
- package/dist/plugins/remote-access-tailscale/models/login.model.js +112 -0
- package/dist/plugins/remote-access-tailscale/models/login.model.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/models/status.model.d.ts +25 -0
- package/dist/plugins/remote-access-tailscale/models/status.model.js +219 -0
- package/dist/plugins/remote-access-tailscale/models/status.model.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.d.ts +20 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js +24 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.d.ts +6 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js +21 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.d.ts +21 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js +132 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/scripts/tailscale-setup.sh +175 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.d.ts +75 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js +206 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.d.ts +43 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js +344 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.d.ts +65 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js +471 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.d.ts +10 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js +37 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.d.ts +21 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js +140 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.d.ts +30 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js +130 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.d.ts +21 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.js +106 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.js.map +1 -0
- package/dist/plugins/scenes-local/dto/create-local-scene-action.dto.js +2 -0
- package/dist/plugins/scenes-local/dto/create-local-scene-action.dto.js.map +1 -1
- package/dist/plugins/scenes-local/dto/update-local-scene-action.dto.js +2 -0
- package/dist/plugins/scenes-local/dto/update-local-scene-action.dto.js.map +1 -1
- package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +1 -0
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js +11 -0
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
- package/dist/plugins/simulator/controllers/simulator.controller.js +12 -4
- package/dist/plugins/simulator/controllers/simulator.controller.js.map +1 -1
- package/dist/plugins/simulator/models/simulator-response.model.js +1 -0
- package/dist/plugins/simulator/models/simulator-response.model.js.map +1 -1
- package/dist/plugins/simulator/services/simulation.service.d.ts +7 -3
- package/dist/plugins/simulator/services/simulation.service.js +5 -2
- package/dist/plugins/simulator/services/simulation.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.plugin.d.ts +3 -3
- package/dist/plugins/simulator/simulator.plugin.js +5 -5
- package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +3 -0
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js +84 -16
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +1 -0
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js +7 -1
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +4 -1
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +41 -12
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +2 -2
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent.service.d.ts +2 -1
- package/dist/plugins/spaces-home-control/services/space-intent.service.js +5 -2
- package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.d.ts +2 -3
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js +99 -40
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.d.ts +13 -4
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js +63 -11
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +5 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +10 -2
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/spec/definitions/climate-intents.yaml +94 -0
- package/dist/plugins/spaces-home-control/spec/definitions/covers-modes.yaml +83 -0
- package/dist/plugins/spaces-home-control/spec/definitions/enums.yaml +119 -0
- package/dist/plugins/spaces-home-control/spec/definitions/lighting-intents.yaml +181 -0
- package/dist/plugins/spaces-home-control/spec/definitions/lighting-modes.yaml +119 -0
- package/dist/plugins/spaces-home-control/spec/definitions/suggestions.yaml +47 -0
- package/dist/plugins/tiles-device-preview/dto/create-tile.dto.js +2 -0
- package/dist/plugins/tiles-device-preview/dto/create-tile.dto.js.map +1 -1
- package/dist/plugins/tiles-device-preview/dto/update-tile.dto.js +2 -0
- package/dist/plugins/tiles-device-preview/dto/update-tile.dto.js.map +1 -1
- package/dist/plugins/weather-openweathermap/dto/update-config.dto.js +2 -3
- package/dist/plugins/weather-openweathermap/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/weather-openweathermap/models/config.model.d.ts +1 -0
- package/dist/plugins/weather-openweathermap/models/config.model.js +12 -1
- package/dist/plugins/weather-openweathermap/models/config.model.js.map +1 -1
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +7 -0
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/dto/update-config.dto.js +2 -3
- package/dist/plugins/weather-openweathermap-onecall/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/models/config.model.d.ts +1 -0
- package/dist/plugins/weather-openweathermap-onecall/models/config.model.js +12 -1
- package/dist/plugins/weather-openweathermap-onecall/models/config.model.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +7 -0
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
- package/dist/spec/channels.d.ts +2 -2
- package/dist/spec/channels.js +2 -2
- package/dist/spec/channels.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +32 -3
- package/dist/modules/extensions/services/base-managed-plugin.service.js.map +0 -1
- package/dist/modules/extensions/services/managed-plugin-service.interface.js.map +0 -1
- package/dist/modules/extensions/services/plugin-service-manager.service.d.ts +0 -43
- package/dist/modules/extensions/services/plugin-service-manager.service.js.map +0 -1
- package/dist/modules/websocket/utils/ip.utils.d.ts +0 -2
- package/dist/modules/websocket/utils/ip.utils.js +0 -35
- package/dist/modules/websocket/utils/ip.utils.js.map +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HomeyLocalConnector = exports.HomeyTransportConnector = void 0;
|
|
4
|
+
const homey_connector_error_1 = require("../errors/homey-connector.error");
|
|
5
|
+
const homey_local_error_mapper_1 = require("./homey-local.error-mapper");
|
|
6
|
+
const homey_local_transformer_1 = require("./homey-local.transformer");
|
|
7
|
+
class HomeyTransportConnector {
|
|
8
|
+
constructor(transport) {
|
|
9
|
+
this.transport = transport;
|
|
10
|
+
this.connected = false;
|
|
11
|
+
this.transportCleanupNeeded = false;
|
|
12
|
+
this.connectionGeneration = 0;
|
|
13
|
+
this.lifecycleTail = Promise.resolve();
|
|
14
|
+
this.subscriptions = new Set();
|
|
15
|
+
this.pendingSubscriptions = new Set();
|
|
16
|
+
}
|
|
17
|
+
connect() {
|
|
18
|
+
return this.enqueueLifecycle(async () => {
|
|
19
|
+
if (!this.connected) {
|
|
20
|
+
await this.connectTransport();
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
disconnect() {
|
|
25
|
+
return this.enqueueLifecycle(() => this.disconnectTransport());
|
|
26
|
+
}
|
|
27
|
+
async getSystemInfo() {
|
|
28
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.GET_SYSTEM_INFO);
|
|
29
|
+
try {
|
|
30
|
+
return (0, homey_local_transformer_1.transformHomeyLocalSystemInfo)(await this.transport.getSystemInfo());
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.GET_SYSTEM_INFO);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async getZones() {
|
|
37
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.GET_ZONES);
|
|
38
|
+
try {
|
|
39
|
+
return (0, homey_local_transformer_1.transformHomeyLocalZones)(await this.transport.getZones());
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.GET_ZONES);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async getDevices() {
|
|
46
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.GET_DEVICES);
|
|
47
|
+
try {
|
|
48
|
+
const [rawZones, rawDevices] = await Promise.all([this.transport.getZones(), this.transport.getDevices()]);
|
|
49
|
+
return (0, homey_local_transformer_1.transformHomeyLocalDevices)(rawDevices, (0, homey_local_transformer_1.transformHomeyLocalZones)(rawZones));
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.GET_DEVICES);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async getDevice(deviceId) {
|
|
56
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.GET_DEVICE);
|
|
57
|
+
try {
|
|
58
|
+
const [rawZones, rawDevice] = await Promise.all([this.transport.getZones(), this.transport.getDevice(deviceId)]);
|
|
59
|
+
return rawDevice === null ? null : (0, homey_local_transformer_1.transformHomeyLocalDevice)(rawDevice, (0, homey_local_transformer_1.transformHomeyLocalZones)(rawZones));
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.GET_DEVICE);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async setCapabilityValue(deviceId, capabilityId, value) {
|
|
66
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.SET_CAPABILITY_VALUE);
|
|
67
|
+
try {
|
|
68
|
+
await this.transport.setCapabilityValue(deviceId, capabilityId, value);
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.SET_CAPABILITY_VALUE);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async subscribe(listener) {
|
|
75
|
+
this.assertConnected(homey_connector_error_1.HomeyConnectorOperation.SUBSCRIBE);
|
|
76
|
+
const pending = this.createPendingSubscription();
|
|
77
|
+
try {
|
|
78
|
+
return await this.subscribeTransport(listener);
|
|
79
|
+
}
|
|
80
|
+
finally {
|
|
81
|
+
this.pendingSubscriptions.delete(pending);
|
|
82
|
+
pending.settle();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
async subscribeTransport(listener) {
|
|
86
|
+
const connectionGeneration = this.connectionGeneration;
|
|
87
|
+
const subscription = {
|
|
88
|
+
active: true,
|
|
89
|
+
cleanup: () => undefined,
|
|
90
|
+
cleanupNeeded: false,
|
|
91
|
+
cleanupPromise: null,
|
|
92
|
+
deliveryTail: Promise.resolve(),
|
|
93
|
+
};
|
|
94
|
+
try {
|
|
95
|
+
subscription.cleanup = await this.transport.subscribe((rawEvent) => {
|
|
96
|
+
subscription.deliveryTail = subscription.deliveryTail.then(async () => {
|
|
97
|
+
if (!subscription.active || !this.connected || connectionGeneration !== this.connectionGeneration) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
await listener((0, homey_local_transformer_1.transformHomeyLocalEvent)(rawEvent));
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return subscription.deliveryTail;
|
|
107
|
+
});
|
|
108
|
+
subscription.cleanupNeeded = true;
|
|
109
|
+
this.subscriptions.add(subscription);
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
subscription.active = false;
|
|
113
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.SUBSCRIBE);
|
|
114
|
+
}
|
|
115
|
+
if (!this.connected || connectionGeneration !== this.connectionGeneration) {
|
|
116
|
+
subscription.active = false;
|
|
117
|
+
try {
|
|
118
|
+
await this.cleanupSubscription(subscription);
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
this.transportCleanupNeeded = true;
|
|
122
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.SUBSCRIBE);
|
|
123
|
+
}
|
|
124
|
+
throw new homey_connector_error_1.HomeyConnectorError(homey_connector_error_1.HomeyConnectorErrorCategory.UNAVAILABLE, homey_connector_error_1.HomeyConnectorOperation.SUBSCRIBE);
|
|
125
|
+
}
|
|
126
|
+
return async () => {
|
|
127
|
+
if (!subscription.cleanupNeeded) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
subscription.active = false;
|
|
131
|
+
try {
|
|
132
|
+
await this.cleanupSubscription(subscription);
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.SUBSCRIBE);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
async connectTransport() {
|
|
140
|
+
await Promise.all([...this.pendingSubscriptions].map((pending) => pending.settled));
|
|
141
|
+
if (this.transportCleanupNeeded) {
|
|
142
|
+
try {
|
|
143
|
+
await this.transport.disconnect();
|
|
144
|
+
this.markTransportCleaned();
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.CONNECT);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
this.transportCleanupNeeded = true;
|
|
151
|
+
try {
|
|
152
|
+
await this.transport.connect();
|
|
153
|
+
this.connected = true;
|
|
154
|
+
this.connectionGeneration += 1;
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
this.connected = false;
|
|
158
|
+
try {
|
|
159
|
+
await this.transport.disconnect();
|
|
160
|
+
this.markTransportCleaned();
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
}
|
|
164
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(error, homey_connector_error_1.HomeyConnectorOperation.CONNECT);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
async disconnectTransport() {
|
|
168
|
+
if (!this.connected && !this.transportCleanupNeeded && this.subscriptions.size === 0) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const shouldDisconnectTransport = this.connected || this.transportCleanupNeeded;
|
|
172
|
+
const subscriptions = [...this.subscriptions];
|
|
173
|
+
this.connected = false;
|
|
174
|
+
this.connectionGeneration += 1;
|
|
175
|
+
for (const subscription of subscriptions) {
|
|
176
|
+
subscription.active = false;
|
|
177
|
+
}
|
|
178
|
+
const cleanupResults = await Promise.allSettled(subscriptions.map((subscription) => this.cleanupSubscription(subscription)));
|
|
179
|
+
let failed = false;
|
|
180
|
+
let failureReason;
|
|
181
|
+
for (const result of cleanupResults) {
|
|
182
|
+
if (result.status === 'rejected') {
|
|
183
|
+
failed = true;
|
|
184
|
+
failureReason = result.reason;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (shouldDisconnectTransport) {
|
|
189
|
+
try {
|
|
190
|
+
await this.transport.disconnect();
|
|
191
|
+
this.markTransportCleaned();
|
|
192
|
+
}
|
|
193
|
+
catch (error) {
|
|
194
|
+
this.transportCleanupNeeded = true;
|
|
195
|
+
if (!failed) {
|
|
196
|
+
failed = true;
|
|
197
|
+
failureReason = error;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (failed) {
|
|
202
|
+
throw (0, homey_local_error_mapper_1.mapHomeyLocalTransportError)(failureReason, homey_connector_error_1.HomeyConnectorOperation.DISCONNECT);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
enqueueLifecycle(operation) {
|
|
206
|
+
const result = this.lifecycleTail.then(() => operation());
|
|
207
|
+
this.lifecycleTail = this.settleLifecycle(result);
|
|
208
|
+
return result;
|
|
209
|
+
}
|
|
210
|
+
async settleLifecycle(operation) {
|
|
211
|
+
try {
|
|
212
|
+
await operation;
|
|
213
|
+
}
|
|
214
|
+
catch {
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
async cleanupSubscription(subscription) {
|
|
218
|
+
if (!subscription.cleanupNeeded) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (subscription.cleanupPromise !== null) {
|
|
222
|
+
return subscription.cleanupPromise;
|
|
223
|
+
}
|
|
224
|
+
subscription.cleanupPromise = this.performSubscriptionCleanup(subscription);
|
|
225
|
+
try {
|
|
226
|
+
await subscription.cleanupPromise;
|
|
227
|
+
}
|
|
228
|
+
finally {
|
|
229
|
+
subscription.cleanupPromise = null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async performSubscriptionCleanup(subscription) {
|
|
233
|
+
await subscription.cleanup();
|
|
234
|
+
subscription.cleanupNeeded = false;
|
|
235
|
+
this.subscriptions.delete(subscription);
|
|
236
|
+
}
|
|
237
|
+
markTransportCleaned() {
|
|
238
|
+
this.transportCleanupNeeded = false;
|
|
239
|
+
for (const subscription of this.subscriptions) {
|
|
240
|
+
subscription.active = false;
|
|
241
|
+
subscription.cleanupNeeded = false;
|
|
242
|
+
}
|
|
243
|
+
this.subscriptions.clear();
|
|
244
|
+
}
|
|
245
|
+
createPendingSubscription() {
|
|
246
|
+
let settle = () => undefined;
|
|
247
|
+
const pending = {
|
|
248
|
+
settled: new Promise((resolve) => {
|
|
249
|
+
settle = resolve;
|
|
250
|
+
}),
|
|
251
|
+
settle: () => settle(),
|
|
252
|
+
};
|
|
253
|
+
this.pendingSubscriptions.add(pending);
|
|
254
|
+
return pending;
|
|
255
|
+
}
|
|
256
|
+
assertConnected(operation) {
|
|
257
|
+
if (!this.connected) {
|
|
258
|
+
throw new homey_connector_error_1.HomeyConnectorError(homey_connector_error_1.HomeyConnectorErrorCategory.UNAVAILABLE, operation);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
exports.HomeyTransportConnector = HomeyTransportConnector;
|
|
263
|
+
class HomeyLocalConnector extends HomeyTransportConnector {
|
|
264
|
+
}
|
|
265
|
+
exports.HomeyLocalConnector = HomeyLocalConnector;
|
|
266
|
+
//# sourceMappingURL=homey-local.connector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homey-local.connector.js","sourceRoot":"","sources":["../../../../src/plugins/devices-homey/connectors/homey-local.connector.ts"],"names":[],"mappings":";;;AAAA,2EAIyC;AAOzC,yEAAyE;AACzE,uEAMmC;AAoBnC,MAAa,uBAAuB;IAQnC,YAA6B,SAAyB;QAAzB,cAAS,GAAT,SAAS,CAAgB;QAP9C,cAAS,GAAG,KAAK,CAAC;QAClB,2BAAsB,GAAG,KAAK,CAAC;QAC/B,yBAAoB,GAAG,CAAC,CAAC;QACzB,kBAAa,GAAkB,OAAO,CAAC,OAAO,EAAE,CAAC;QACxC,kBAAa,GAAG,IAAI,GAAG,EAA8B,CAAC;QACtD,yBAAoB,GA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GAAG,KAAK,CAAC;QACpC,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAEO,yBAAyB;QAChC,IAAI,MAAM,GAAG,GAAS,EAAE,CAAC,SAAS,CAAC;QACnC,MAAM,OAAO,GAA6B;YACzC,OAAO,EAAE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAChC,MAAM,GAAG,OAAO,CAAC;YAClB,CAAC,CAAC;YACF,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE;SACtB,CAAC;QACF,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEvC,OAAO,OAAO,CAAC;IAChB,CAAC;IAEO,eAAe,CAAC,SAAkC;QACzD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACrB,MAAM,IAAI,2CAAmB,CAAC,mDAA2B,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACnF,CAAC;IACF,CAAC;CACD;AAvSD,0DAuSC;AAGD,MAAa,mBAAoB,SAAQ,uBAAuB;CAAG;AAAnE,kDAAmE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HomeyConnectorError, HomeyConnectorErrorCategory, HomeyConnectorOperation } from '../errors/homey-connector.error';
|
|
2
|
+
export declare const classifyHomeyLocalTransportError: (error: unknown) => HomeyConnectorErrorCategory;
|
|
3
|
+
export declare const mapHomeyLocalTransportError: (error: unknown, operation: HomeyConnectorOperation) => HomeyConnectorError;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapHomeyLocalTransportError = exports.classifyHomeyLocalTransportError = void 0;
|
|
4
|
+
const homey_connector_error_1 = require("../errors/homey-connector.error");
|
|
5
|
+
const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
6
|
+
const valueOf = (error, key) => (isRecord(error) ? error[key] : undefined);
|
|
7
|
+
const numericCode = (error) => {
|
|
8
|
+
for (const value of [valueOf(error, 'statusCode'), valueOf(error, 'status'), valueOf(error, 'code')]) {
|
|
9
|
+
if (typeof value === 'number' && Number.isInteger(value)) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
};
|
|
15
|
+
const stringCode = (error) => {
|
|
16
|
+
for (const value of [valueOf(error, 'code'), valueOf(error, 'name')]) {
|
|
17
|
+
if (typeof value === 'string') {
|
|
18
|
+
return value.toUpperCase();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
};
|
|
23
|
+
const classifyHomeyLocalTransportError = (error) => {
|
|
24
|
+
if (error instanceof homey_connector_error_1.HomeyConnectorError) {
|
|
25
|
+
return error.category;
|
|
26
|
+
}
|
|
27
|
+
const statusCode = numericCode(error);
|
|
28
|
+
if (statusCode === 401) {
|
|
29
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.AUTHENTICATION;
|
|
30
|
+
}
|
|
31
|
+
if (statusCode === 403) {
|
|
32
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.AUTHORIZATION;
|
|
33
|
+
}
|
|
34
|
+
if (statusCode === 408 || statusCode === 504) {
|
|
35
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.TIMEOUT;
|
|
36
|
+
}
|
|
37
|
+
if (statusCode === 429) {
|
|
38
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.UNAVAILABLE;
|
|
39
|
+
}
|
|
40
|
+
if (statusCode === 400 || statusCode === 409 || statusCode === 422) {
|
|
41
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.VALIDATION;
|
|
42
|
+
}
|
|
43
|
+
if (statusCode !== null && statusCode >= 500) {
|
|
44
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.UNAVAILABLE;
|
|
45
|
+
}
|
|
46
|
+
const code = stringCode(error);
|
|
47
|
+
if (code !== null && ['ABORTERROR', 'ECONNABORTED', 'ETIMEDOUT', 'TIMEOUTERROR'].includes(code)) {
|
|
48
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.TIMEOUT;
|
|
49
|
+
}
|
|
50
|
+
if (code !== null && ['ECONNREFUSED', 'ECONNRESET', 'EHOSTUNREACH', 'ENETUNREACH', 'ENOTFOUND'].includes(code)) {
|
|
51
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.UNAVAILABLE;
|
|
52
|
+
}
|
|
53
|
+
if (code === 'HOMEY_UNSUPPORTED' || code === 'UNSUPPORTED') {
|
|
54
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.UNSUPPORTED;
|
|
55
|
+
}
|
|
56
|
+
return homey_connector_error_1.HomeyConnectorErrorCategory.PROTOCOL;
|
|
57
|
+
};
|
|
58
|
+
exports.classifyHomeyLocalTransportError = classifyHomeyLocalTransportError;
|
|
59
|
+
const mapHomeyLocalTransportError = (error, operation) => error instanceof homey_connector_error_1.HomeyConnectorError
|
|
60
|
+
? new homey_connector_error_1.HomeyConnectorError(error.category, operation)
|
|
61
|
+
: new homey_connector_error_1.HomeyConnectorError((0, exports.classifyHomeyLocalTransportError)(error), operation);
|
|
62
|
+
exports.mapHomeyLocalTransportError = mapHomeyLocalTransportError;
|
|
63
|
+
//# sourceMappingURL=homey-local.error-mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homey-local.error-mapper.js","sourceRoot":"","sources":["../../../../src/plugins/devices-homey/connectors/homey-local.error-mapper.ts"],"names":[],"mappings":";;;AAAA,2EAIyC;AAEzC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACrE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtE,MAAM,OAAO,GAAG,CAAC,KAAc,EAAE,GAAW,EAAW,EAAE,CAAC,CAAC,QAAQ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,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC;IACpD,CAAC,CAAC,IAAI,2CAAmB,CAAC,IAAA,wCAAgC,EAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AAHnE,QAAA,2BAA2B,+BAGwC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HomeyDevice } from '../models/homey-device.model';
|
|
2
|
+
import { HomeyEvent } from '../models/homey-event.model';
|
|
3
|
+
import { HomeySystemInfo } from '../models/homey-system-info.model';
|
|
4
|
+
import { HomeyZone } from '../models/homey-zone.model';
|
|
5
|
+
import { HomeyLocalTransportEvent } from './homey-local.transport';
|
|
6
|
+
export declare const transformHomeyLocalSystemInfo: (value: unknown) => HomeySystemInfo;
|
|
7
|
+
export declare const transformHomeyLocalZones: (value: unknown) => readonly HomeyZone[];
|
|
8
|
+
export declare const transformHomeyLocalDevice: (value: unknown, zones: readonly HomeyZone[]) => HomeyDevice;
|
|
9
|
+
export declare const transformHomeyLocalDevices: (value: unknown, zones: readonly HomeyZone[]) => readonly HomeyDevice[];
|
|
10
|
+
export declare const transformHomeyLocalEvent: (event: HomeyLocalTransportEvent) => HomeyEvent;
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformHomeyLocalEvent = exports.transformHomeyLocalDevices = exports.transformHomeyLocalDevice = exports.transformHomeyLocalZones = exports.transformHomeyLocalSystemInfo = void 0;
|
|
4
|
+
const homey_capability_model_1 = require("../models/homey-capability.model");
|
|
5
|
+
const homey_event_model_1 = require("../models/homey-event.model");
|
|
6
|
+
const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
7
|
+
const asString = (value) => (typeof value === 'string' ? value : null);
|
|
8
|
+
const asBoolean = (value) => (typeof value === 'boolean' ? value : null);
|
|
9
|
+
const asNumber = (value) => typeof value === 'number' && Number.isFinite(value) ? value : null;
|
|
10
|
+
const requireString = (value, label) => {
|
|
11
|
+
const parsed = asString(value);
|
|
12
|
+
if (parsed === null || parsed.length === 0) {
|
|
13
|
+
throw new Error(`Homey protocol ${label} is missing`);
|
|
14
|
+
}
|
|
15
|
+
return parsed;
|
|
16
|
+
};
|
|
17
|
+
const requireBoolean = (value, label) => {
|
|
18
|
+
const parsed = asBoolean(value);
|
|
19
|
+
if (parsed === null) {
|
|
20
|
+
throw new Error(`Homey protocol ${label} is missing`);
|
|
21
|
+
}
|
|
22
|
+
return parsed;
|
|
23
|
+
};
|
|
24
|
+
const firstString = (...values) => {
|
|
25
|
+
for (const value of values) {
|
|
26
|
+
const parsed = asString(value);
|
|
27
|
+
if (parsed !== null && parsed.length > 0) {
|
|
28
|
+
return parsed;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
const eventMetadata = (value) => ({
|
|
34
|
+
occurredAt: firstString(value.occurredAt, value.timestamp, value.lastUpdated),
|
|
35
|
+
sequence: typeof value.sequence === 'string' || (typeof value.sequence === 'number' && Number.isFinite(value.sequence))
|
|
36
|
+
? value.sequence
|
|
37
|
+
: null,
|
|
38
|
+
});
|
|
39
|
+
const capabilityType = (value) => {
|
|
40
|
+
switch (value) {
|
|
41
|
+
case homey_capability_model_1.HomeyCapabilityType.BOOLEAN:
|
|
42
|
+
case homey_capability_model_1.HomeyCapabilityType.NUMBER:
|
|
43
|
+
case homey_capability_model_1.HomeyCapabilityType.STRING:
|
|
44
|
+
case homey_capability_model_1.HomeyCapabilityType.ENUM:
|
|
45
|
+
return value;
|
|
46
|
+
default:
|
|
47
|
+
return homey_capability_model_1.HomeyCapabilityType.UNKNOWN;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const capabilityValue = (value) => {
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
if (typeof value === 'boolean' || typeof value === 'string') {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return asNumber(value);
|
|
58
|
+
};
|
|
59
|
+
const requireCapabilityValue = (value, key, label) => {
|
|
60
|
+
if (!Object.hasOwn(value, key)) {
|
|
61
|
+
throw new Error(`Homey protocol ${label} is missing`);
|
|
62
|
+
}
|
|
63
|
+
const candidate = value[key];
|
|
64
|
+
if (candidate === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
if (typeof candidate === 'boolean' || typeof candidate === 'string') {
|
|
68
|
+
return candidate;
|
|
69
|
+
}
|
|
70
|
+
if (typeof candidate === 'number' && Number.isFinite(candidate)) {
|
|
71
|
+
return candidate;
|
|
72
|
+
}
|
|
73
|
+
throw new Error(`Homey protocol ${label} is malformed`);
|
|
74
|
+
};
|
|
75
|
+
const enumValues = (value) => {
|
|
76
|
+
if (!Array.isArray(value)) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
return value.flatMap((item) => {
|
|
80
|
+
if (!isRecord(item)) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
const id = asString(item.id);
|
|
84
|
+
const title = asString(item.title);
|
|
85
|
+
return id === null || title === null ? [] : [{ id, title }];
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const transformCapability = (id, value) => {
|
|
89
|
+
const capability = isRecord(value) ? value : {};
|
|
90
|
+
return (0, homey_capability_model_1.createHomeyCapability)({
|
|
91
|
+
id,
|
|
92
|
+
title: asString(capability.title) ?? id,
|
|
93
|
+
value: capabilityValue(capability.value),
|
|
94
|
+
type: capabilityType(capability.type),
|
|
95
|
+
unit: asString(capability.units),
|
|
96
|
+
minimum: asNumber(capability.min),
|
|
97
|
+
maximum: asNumber(capability.max),
|
|
98
|
+
step: asNumber(capability.step),
|
|
99
|
+
enumValues: enumValues(capability.values),
|
|
100
|
+
readable: capability.getable === true,
|
|
101
|
+
writable: capability.setable === true,
|
|
102
|
+
available: asBoolean(capability.available),
|
|
103
|
+
lastUpdatedAt: asString(capability.lastUpdated),
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
const transformEnergy = (value) => {
|
|
107
|
+
if (!isRecord(value)) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
const approximation = isRecord(value.approximation) ? value.approximation : {};
|
|
111
|
+
return {
|
|
112
|
+
cumulative: asBoolean(value.cumulative),
|
|
113
|
+
cumulativeImported: asBoolean(value.cumulativeImported) ?? (typeof value.cumulativeImportedCapability === 'string' ? true : null),
|
|
114
|
+
cumulativeExported: asBoolean(value.cumulativeExported) ?? (typeof value.cumulativeExportedCapability === 'string' ? true : null),
|
|
115
|
+
usageConstant: asNumber(value.usageConstant) ?? asNumber(approximation.usageConstant),
|
|
116
|
+
usageOff: asNumber(value.usageOff) ?? asNumber(approximation.usageOff),
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const capabilityIds = (device, capabilities) => {
|
|
120
|
+
if (Array.isArray(device.capabilities)) {
|
|
121
|
+
return device.capabilities.filter((id) => typeof id === 'string');
|
|
122
|
+
}
|
|
123
|
+
return Object.keys(capabilities);
|
|
124
|
+
};
|
|
125
|
+
const transformHomeyLocalSystemInfo = (value) => {
|
|
126
|
+
if (!isRecord(value)) {
|
|
127
|
+
throw new Error('Homey protocol system response is malformed');
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
id: requireString(firstString(value.id, value.homeyId, value.cloudId, value._id), 'system id'),
|
|
131
|
+
name: firstString(value.name, value.homeyName),
|
|
132
|
+
version: requireString(firstString(value.homeyVersion, value.version), 'system version'),
|
|
133
|
+
tier: firstString(value.tier, value.homeyTier),
|
|
134
|
+
model: firstString(value.homeyModelName, value.model),
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
exports.transformHomeyLocalSystemInfo = transformHomeyLocalSystemInfo;
|
|
138
|
+
const transformHomeyLocalZones = (value) => {
|
|
139
|
+
if (!isRecord(value)) {
|
|
140
|
+
throw new Error('Homey protocol zones response is malformed');
|
|
141
|
+
}
|
|
142
|
+
const zones = Object.values(value).map((item) => {
|
|
143
|
+
if (!isRecord(item)) {
|
|
144
|
+
throw new Error('Homey protocol zone is malformed');
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
id: requireString(item.id, 'zone id'),
|
|
148
|
+
name: requireString(item.name, 'zone name'),
|
|
149
|
+
parentId: asString(item.parent),
|
|
150
|
+
active: item.active === true,
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
const byId = new Map(zones.map((zone) => [zone.id, zone]));
|
|
154
|
+
const resolvePath = (zone, visited = new Set()) => {
|
|
155
|
+
if (visited.has(zone.id)) {
|
|
156
|
+
throw new Error('Homey protocol zone hierarchy contains a cycle');
|
|
157
|
+
}
|
|
158
|
+
if (zone.parentId === null) {
|
|
159
|
+
return [zone.name];
|
|
160
|
+
}
|
|
161
|
+
const parent = byId.get(zone.parentId);
|
|
162
|
+
if (parent === undefined) {
|
|
163
|
+
return [zone.name];
|
|
164
|
+
}
|
|
165
|
+
return [...resolvePath(parent, new Set([...visited, zone.id])), zone.name];
|
|
166
|
+
};
|
|
167
|
+
return zones.map((zone) => ({ ...zone, path: resolvePath(zone) }));
|
|
168
|
+
};
|
|
169
|
+
exports.transformHomeyLocalZones = transformHomeyLocalZones;
|
|
170
|
+
const transformHomeyLocalDevice = (value, zones) => {
|
|
171
|
+
if (!isRecord(value)) {
|
|
172
|
+
throw new Error('Homey protocol device is malformed');
|
|
173
|
+
}
|
|
174
|
+
const capabilities = isRecord(value.capabilitiesObj) ? value.capabilitiesObj : {};
|
|
175
|
+
const zoneId = asString(value.zone);
|
|
176
|
+
const zone = zoneId === null ? undefined : zones.find((candidate) => candidate.id === zoneId);
|
|
177
|
+
return {
|
|
178
|
+
id: requireString(value.id, 'device id'),
|
|
179
|
+
name: requireString(value.name, 'device name'),
|
|
180
|
+
class: requireString(value.class, 'device class'),
|
|
181
|
+
zoneId,
|
|
182
|
+
zoneName: zone?.name ?? null,
|
|
183
|
+
zonePath: zone?.path ?? [],
|
|
184
|
+
available: value.available === true,
|
|
185
|
+
availabilityMessage: asString(value.unavailableMessage),
|
|
186
|
+
driverId: asString(value.driverId),
|
|
187
|
+
manufacturer: asString(value.manufacturer),
|
|
188
|
+
model: asString(value.model),
|
|
189
|
+
energy: transformEnergy(value.energy),
|
|
190
|
+
capabilities: capabilityIds(value, capabilities).map((id) => transformCapability(id, capabilities[id])),
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
exports.transformHomeyLocalDevice = transformHomeyLocalDevice;
|
|
194
|
+
const transformHomeyLocalDevices = (value, zones) => {
|
|
195
|
+
if (!isRecord(value)) {
|
|
196
|
+
throw new Error('Homey protocol devices response is malformed');
|
|
197
|
+
}
|
|
198
|
+
return Object.values(value).map((device) => (0, exports.transformHomeyLocalDevice)(device, zones));
|
|
199
|
+
};
|
|
200
|
+
exports.transformHomeyLocalDevices = transformHomeyLocalDevices;
|
|
201
|
+
const transformHomeyLocalEvent = (event) => {
|
|
202
|
+
if (!isRecord(event.payload)) {
|
|
203
|
+
throw new Error('Homey protocol event payload is malformed');
|
|
204
|
+
}
|
|
205
|
+
const payload = event.payload;
|
|
206
|
+
const metadata = eventMetadata(payload);
|
|
207
|
+
switch (event.type) {
|
|
208
|
+
case 'capability':
|
|
209
|
+
return {
|
|
210
|
+
type: homey_event_model_1.HomeyEventType.CAPABILITY_VALUE_CHANGED,
|
|
211
|
+
deviceId: requireString(event.deviceId ?? payload.deviceId, 'event device id'),
|
|
212
|
+
capabilityId: requireString(firstString(payload.capabilityId, payload.capability), 'event capability id'),
|
|
213
|
+
value: requireCapabilityValue(payload, 'value', 'event capability value'),
|
|
214
|
+
lastUpdatedAt: firstString(payload.lastUpdatedAt, payload.lastUpdated),
|
|
215
|
+
...metadata,
|
|
216
|
+
};
|
|
217
|
+
case 'device.create':
|
|
218
|
+
return {
|
|
219
|
+
type: homey_event_model_1.HomeyEventType.DEVICE_ADDED,
|
|
220
|
+
deviceId: requireString(firstString(payload.id, payload.deviceId), 'event device id'),
|
|
221
|
+
...metadata,
|
|
222
|
+
};
|
|
223
|
+
case 'device.delete':
|
|
224
|
+
return {
|
|
225
|
+
type: homey_event_model_1.HomeyEventType.DEVICE_REMOVED,
|
|
226
|
+
deviceId: requireString(firstString(payload.id, payload.deviceId), 'event device id'),
|
|
227
|
+
...metadata,
|
|
228
|
+
};
|
|
229
|
+
case 'device.availability':
|
|
230
|
+
return {
|
|
231
|
+
type: homey_event_model_1.HomeyEventType.DEVICE_AVAILABILITY_CHANGED,
|
|
232
|
+
deviceId: requireString(firstString(payload.id, payload.deviceId), 'event device id'),
|
|
233
|
+
available: requireBoolean(payload.available, 'event availability'),
|
|
234
|
+
availabilityMessage: firstString(payload.unavailableMessage, payload.availabilityMessage),
|
|
235
|
+
...metadata,
|
|
236
|
+
};
|
|
237
|
+
case 'device.update':
|
|
238
|
+
return {
|
|
239
|
+
type: homey_event_model_1.HomeyEventType.DEVICE_UPDATED,
|
|
240
|
+
deviceId: requireString(firstString(payload.id, payload.deviceId), 'event device id'),
|
|
241
|
+
...metadata,
|
|
242
|
+
};
|
|
243
|
+
case 'zone.create':
|
|
244
|
+
return {
|
|
245
|
+
type: homey_event_model_1.HomeyEventType.ZONE_ADDED,
|
|
246
|
+
zoneId: requireString(firstString(payload.id, payload.zoneId), 'event zone id'),
|
|
247
|
+
...metadata,
|
|
248
|
+
};
|
|
249
|
+
case 'zone.delete':
|
|
250
|
+
return {
|
|
251
|
+
type: homey_event_model_1.HomeyEventType.ZONE_REMOVED,
|
|
252
|
+
zoneId: requireString(firstString(payload.id, payload.zoneId), 'event zone id'),
|
|
253
|
+
...metadata,
|
|
254
|
+
};
|
|
255
|
+
case 'zone.update':
|
|
256
|
+
return {
|
|
257
|
+
type: homey_event_model_1.HomeyEventType.ZONE_UPDATED,
|
|
258
|
+
zoneId: requireString(firstString(payload.id, payload.zoneId), 'event zone id'),
|
|
259
|
+
...metadata,
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
exports.transformHomeyLocalEvent = transformHomeyLocalEvent;
|
|
264
|
+
//# sourceMappingURL=homey-local.transformer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homey-local.transformer.js","sourceRoot":"","sources":["../../../../src/plugins/devices-homey/connectors/homey-local.transformer.ts"],"names":[],"mappings":";;;AAAA,6EAM0C;AAE1C,mEAAyE;AAQzE,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAgC,EAAE,CACjE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtE,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAiB,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAE/F,MAAM,SAAS,GAAG,CAAC,KAAc,EAAkB,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAElG,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAiB,EAAE,CAClD,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAEpE,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,KAAa,EAAU,EAAE;IAC/D,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE/B,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,aAAa,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,K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