@fastybird/smart-panel-backend 1.0.0-beta.3 → 1.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2021) hide show
  1. package/dist/app.module.js +61 -0
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/common/utils/shared-lock-socket-path.utils.d.ts +1 -0
  4. package/dist/common/utils/shared-lock-socket-path.utils.js +34 -0
  5. package/dist/common/utils/shared-lock-socket-path.utils.js.map +1 -0
  6. package/dist/common/utils/sqlite-fts.utils.d.ts +17 -0
  7. package/dist/common/utils/sqlite-fts.utils.js +63 -0
  8. package/dist/common/utils/sqlite-fts.utils.js.map +1 -0
  9. package/dist/common/utils/transform.utils.d.ts +2 -0
  10. package/dist/common/utils/transform.utils.js +17 -2
  11. package/dist/common/utils/transform.utils.js.map +1 -1
  12. package/dist/index.d.ts +5 -0
  13. package/dist/index.js +14 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/main.js +9 -2
  16. package/dist/main.js.map +1 -1
  17. package/dist/migrations/1000000000007-AddVirtualDevicesSupport.d.ts +6 -0
  18. package/dist/migrations/1000000000007-AddVirtualDevicesSupport.js +26 -0
  19. package/dist/migrations/1000000000007-AddVirtualDevicesSupport.js.map +1 -0
  20. package/dist/migrations/1000000000008-AddMcpClients.d.ts +6 -0
  21. package/dist/migrations/1000000000008-AddMcpClients.js +41 -0
  22. package/dist/migrations/1000000000008-AddMcpClients.js.map +1 -0
  23. package/dist/migrations/1000000000009-AddDeviceHiddenBy.d.ts +6 -0
  24. package/dist/migrations/1000000000009-AddDeviceHiddenBy.js +19 -0
  25. package/dist/migrations/1000000000009-AddDeviceHiddenBy.js.map +1 -0
  26. package/dist/migrations/1000000000010-AddEnergyClaimToProjections.d.ts +7 -0
  27. package/dist/migrations/1000000000010-AddEnergyClaimToProjections.js +59 -0
  28. package/dist/migrations/1000000000010-AddEnergyClaimToProjections.js.map +1 -0
  29. package/dist/migrations/1000000000010-AddMcpOAuthFoundation.d.ts +6 -0
  30. package/dist/migrations/1000000000010-AddMcpOAuthFoundation.js +124 -0
  31. package/dist/migrations/1000000000010-AddMcpOAuthFoundation.js.map +1 -0
  32. package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.d.ts +6 -0
  33. package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.js +33 -0
  34. package/dist/migrations/1000000000011-AddMcpOAuthProviderArtifacts.js.map +1 -0
  35. package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.d.ts +6 -0
  36. package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.js +18 -0
  37. package/dist/migrations/1000000000012-LinkMcpOAuthProviderGrants.js.map +1 -0
  38. package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.d.ts +8 -0
  39. package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.js +80 -0
  40. package/dist/migrations/1000000000013-AddMcpOAuthProviderManagementIds.js.map +1 -0
  41. package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.d.ts +6 -0
  42. package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.js +18 -0
  43. package/dist/migrations/1000000000014-AddMcpOAuthProviderRefreshFamilyRevocations.js.map +1 -0
  44. package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.d.ts +6 -0
  45. package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.js +26 -0
  46. package/dist/migrations/1000000000015-AddMcpOAuthProviderRefreshFamilyLineage.js.map +1 -0
  47. package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.d.ts +6 -0
  48. package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.js +20 -0
  49. package/dist/migrations/1000000000016-AddMcpOAuthApproverAuthorities.js.map +1 -0
  50. package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.d.ts +6 -0
  51. package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.js +69 -0
  52. package/dist/migrations/1000000000017-AddMcpOAuthAuthorizationSnapshots.js.map +1 -0
  53. package/dist/migrations/1000000000018-AddWledHardwareIdentity.d.ts +6 -0
  54. package/dist/migrations/1000000000018-AddWledHardwareIdentity.js +23 -0
  55. package/dist/migrations/1000000000018-AddWledHardwareIdentity.js.map +1 -0
  56. package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.d.ts +6 -0
  57. package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.js +31 -0
  58. package/dist/migrations/1000000000019-EnforceUniqueWledHardwareIdentity.js.map +1 -0
  59. package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.d.ts +7 -0
  60. package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.js +106 -0
  61. package/dist/migrations/1000000000020-AddHomeEntitySearchIndex.js.map +1 -0
  62. package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.d.ts +6 -0
  63. package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.js +22 -0
  64. package/dist/migrations/1000000000021-AddHomeyCapabilityIdentity.js.map +1 -0
  65. package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.d.ts +6 -0
  66. package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.js +20 -0
  67. package/dist/migrations/1000000000022-AddHomeyAdoptionLocks.js.map +1 -0
  68. package/dist/migrations/1000000000023-AddPropertyValueLocks.d.ts +6 -0
  69. package/dist/migrations/1000000000023-AddPropertyValueLocks.js +20 -0
  70. package/dist/migrations/1000000000023-AddPropertyValueLocks.js.map +1 -0
  71. package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.d.ts +6 -0
  72. package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.js +26 -0
  73. package/dist/migrations/1000000000024-MigrateHomeyDiscriminators.js.map +1 -0
  74. package/dist/migrations/1000000000025-AddNotifications.d.ts +6 -0
  75. package/dist/migrations/1000000000025-AddNotifications.js +44 -0
  76. package/dist/migrations/1000000000025-AddNotifications.js.map +1 -0
  77. package/dist/modules/api/api.constants.d.ts +2 -0
  78. package/dist/modules/api/api.constants.js +3 -1
  79. package/dist/modules/api/api.constants.js.map +1 -1
  80. package/dist/modules/api/api.module.d.ts +8 -1
  81. package/dist/modules/api/api.module.js +40 -2
  82. package/dist/modules/api/api.module.js.map +1 -1
  83. package/dist/modules/api/api.openapi.d.ts +2 -1
  84. package/dist/modules/api/api.openapi.js +3 -0
  85. package/dist/modules/api/api.openapi.js.map +1 -1
  86. package/dist/modules/api/interceptors/location-replace.interceptor.js +2 -2
  87. package/dist/modules/api/interceptors/location-replace.interceptor.js.map +1 -1
  88. package/dist/modules/api/models/bulk.model.d.ts +8 -0
  89. package/dist/modules/api/models/bulk.model.js +65 -0
  90. package/dist/modules/api/models/bulk.model.js.map +1 -0
  91. package/dist/modules/api/services/client-address.service.d.ts +29 -0
  92. package/dist/modules/api/services/client-address.service.js +146 -0
  93. package/dist/modules/api/services/client-address.service.js.map +1 -0
  94. package/dist/modules/api/services/trusted-proxy-registry.service.d.ts +10 -0
  95. package/dist/modules/api/services/trusted-proxy-registry.service.js +40 -0
  96. package/dist/modules/api/services/trusted-proxy-registry.service.js.map +1 -0
  97. package/dist/modules/api/utils/bulk.utils.d.ts +10 -0
  98. package/dist/modules/api/utils/bulk.utils.js +74 -0
  99. package/dist/modules/api/utils/bulk.utils.js.map +1 -0
  100. package/dist/modules/api/utils/ip-match.utils.d.ts +3 -0
  101. package/dist/modules/api/utils/ip-match.utils.js +115 -0
  102. package/dist/modules/api/utils/ip-match.utils.js.map +1 -0
  103. package/dist/modules/auth/auth.constants.d.ts +2 -1
  104. package/dist/modules/auth/auth.constants.js +1 -0
  105. package/dist/modules/auth/auth.constants.js.map +1 -1
  106. package/dist/modules/auth/auth.module.js +3 -1
  107. package/dist/modules/auth/auth.module.js.map +1 -1
  108. package/dist/modules/auth/auth.openapi.d.ts +2 -1
  109. package/dist/modules/auth/auth.openapi.js +4 -0
  110. package/dist/modules/auth/auth.openapi.js.map +1 -1
  111. package/dist/modules/auth/commands/reset-password.command.d.ts +3 -1
  112. package/dist/modules/auth/commands/reset-password.command.js +30 -14
  113. package/dist/modules/auth/commands/reset-password.command.js.map +1 -1
  114. package/dist/modules/auth/controllers/auth.controller.d.ts +5 -2
  115. package/dist/modules/auth/controllers/auth.controller.js +10 -5
  116. package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
  117. package/dist/modules/auth/controllers/tokens.controller.js +7 -0
  118. package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
  119. package/dist/modules/auth/guards/auth.guard.d.ts +11 -1
  120. package/dist/modules/auth/guards/auth.guard.js +76 -7
  121. package/dist/modules/auth/guards/auth.guard.js.map +1 -1
  122. package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +4 -1
  123. package/dist/modules/auth/guards/display-aware-throttler.guard.js +8 -2
  124. package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -1
  125. package/dist/modules/auth/services/auth.service.d.ts +11 -2
  126. package/dist/modules/auth/services/auth.service.js +60 -9
  127. package/dist/modules/auth/services/auth.service.js.map +1 -1
  128. package/dist/modules/auth/services/tokens.service.d.ts +12 -2
  129. package/dist/modules/auth/services/tokens.service.js +25 -3
  130. package/dist/modules/auth/services/tokens.service.js.map +1 -1
  131. package/dist/modules/buddy/buddy.constants.d.ts +8 -0
  132. package/dist/modules/buddy/buddy.constants.js +10 -1
  133. package/dist/modules/buddy/buddy.constants.js.map +1 -1
  134. package/dist/modules/buddy/buddy.module.d.ts +7 -1
  135. package/dist/modules/buddy/buddy.module.js +20 -2
  136. package/dist/modules/buddy/buddy.module.js.map +1 -1
  137. package/dist/modules/buddy/buddy.openapi.d.ts +2 -1
  138. package/dist/modules/buddy/buddy.openapi.js +2 -0
  139. package/dist/modules/buddy/buddy.openapi.js.map +1 -1
  140. package/dist/modules/buddy/models/context-plan.model.d.ts +47 -0
  141. package/dist/modules/{extensions/services/managed-plugin-service.interface.js → buddy/models/context-plan.model.js} +1 -1
  142. package/dist/modules/buddy/models/context-plan.model.js.map +1 -0
  143. package/dist/modules/buddy/platforms/anthropic-sdk.utils.d.ts +3 -2
  144. package/dist/modules/buddy/platforms/anthropic-sdk.utils.js +55 -12
  145. package/dist/modules/buddy/platforms/anthropic-sdk.utils.js.map +1 -1
  146. package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.d.ts +20 -0
  147. package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.js +155 -0
  148. package/dist/modules/buddy/platforms/llm-conversation-bounds.utils.js.map +1 -0
  149. package/dist/modules/buddy/platforms/llm-conversation.utils.d.ts +8 -0
  150. package/dist/modules/buddy/platforms/llm-conversation.utils.js +90 -0
  151. package/dist/modules/buddy/platforms/llm-conversation.utils.js.map +1 -0
  152. package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +115 -1
  153. package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +3 -2
  154. package/dist/modules/buddy/platforms/openai-sdk.utils.js +48 -14
  155. package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
  156. package/dist/modules/buddy/services/buddy-context-planner.service.d.ts +4 -0
  157. package/dist/modules/buddy/services/buddy-context-planner.service.js +21 -0
  158. package/dist/modules/buddy/services/buddy-context-planner.service.js.map +1 -0
  159. package/dist/modules/buddy/services/buddy-conversation.service.d.ts +7 -1
  160. package/dist/modules/buddy/services/buddy-conversation.service.js +251 -42
  161. package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
  162. package/dist/modules/buddy/services/buddy-tool-selection.service.d.ts +16 -0
  163. package/dist/modules/buddy/services/buddy-tool-selection.service.js +711 -0
  164. package/dist/modules/buddy/services/buddy-tool-selection.service.js.map +1 -0
  165. package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.d.ts +22 -0
  166. package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.js +451 -0
  167. package/dist/modules/buddy/services/context-planner/buddy-context-action-policy.js.map +1 -0
  168. package/dist/modules/buddy/services/context-planner/buddy-context-language.d.ts +51 -0
  169. package/dist/modules/buddy/services/context-planner/buddy-context-language.js +559 -0
  170. package/dist/modules/buddy/services/context-planner/buddy-context-language.js.map +1 -0
  171. package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.d.ts +42 -0
  172. package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.js +673 -0
  173. package/dist/modules/buddy/services/context-planner/buddy-context-message-analysis.js.map +1 -0
  174. package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.d.ts +11 -0
  175. package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.js +39 -0
  176. package/dist/modules/buddy/services/context-planner/buddy-context-plan-policy.js.map +1 -0
  177. package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.d.ts +128 -0
  178. package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.js +220 -0
  179. package/dist/modules/buddy/services/context-planner/buddy-context-planner-grammar.js.map +1 -0
  180. package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.d.ts +2 -0
  181. package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.js +304 -0
  182. package/dist/modules/buddy/services/context-planner/buddy-context-planning-pipeline.js.map +1 -0
  183. package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.d.ts +12 -0
  184. package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.js +35 -0
  185. package/dist/modules/buddy/services/context-planner/buddy-context-query-builder.js.map +1 -0
  186. package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.d.ts +31 -0
  187. package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.js +97 -0
  188. package/dist/modules/buddy/services/context-planner/buddy-context-retrieval-planner.js.map +1 -0
  189. package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.d.ts +8 -0
  190. package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.js +186 -0
  191. package/dist/modules/buddy/services/context-planner/buddy-context-scope-resolver.js.map +1 -0
  192. package/dist/modules/buddy/services/heartbeat.service.d.ts +17 -4
  193. package/dist/modules/buddy/services/heartbeat.service.js +85 -15
  194. package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
  195. package/dist/modules/buddy/services/home-context-tool-provider.service.d.ts +165 -0
  196. package/dist/modules/buddy/services/home-context-tool-provider.service.js +257 -0
  197. package/dist/modules/buddy/services/home-context-tool-provider.service.js.map +1 -0
  198. package/dist/modules/buddy/services/llm-provider.service.d.ts +4 -3
  199. package/dist/modules/buddy/services/llm-provider.service.js +20 -1
  200. package/dist/modules/buddy/services/llm-provider.service.js.map +1 -1
  201. package/dist/modules/buddy/services/module-reset.service.d.ts +3 -1
  202. package/dist/modules/buddy/services/module-reset.service.js +6 -2
  203. package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
  204. package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.d.ts +13 -0
  205. package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.js +119 -0
  206. package/dist/modules/buddy/testing/buddy-context-evaluation.fixtures.js.map +1 -0
  207. package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.d.ts +36 -0
  208. package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.js +230 -0
  209. package/dist/modules/buddy/testing/buddy-context-evaluation.matrix.js.map +1 -0
  210. package/dist/modules/buddy/testing/llm-request-measurement.helper.d.ts +33 -0
  211. package/dist/modules/buddy/testing/llm-request-measurement.helper.js +144 -0
  212. package/dist/modules/buddy/testing/llm-request-measurement.helper.js.map +1 -0
  213. package/dist/modules/config/config.module.js +18 -2
  214. package/dist/modules/config/config.module.js.map +1 -1
  215. package/dist/modules/config/controllers/config.controller.d.ts +3 -1
  216. package/dist/modules/config/controllers/config.controller.js +43 -18
  217. package/dist/modules/config/controllers/config.controller.js.map +1 -1
  218. package/dist/modules/config/interfaces/config-secret.interface.d.ts +5 -0
  219. package/dist/modules/config/interfaces/config-secret.interface.js +3 -0
  220. package/dist/modules/config/interfaces/config-secret.interface.js.map +1 -0
  221. package/dist/modules/config/services/config-secrets.service.d.ts +18 -0
  222. package/dist/modules/config/services/config-secrets.service.js +167 -0
  223. package/dist/modules/config/services/config-secrets.service.js.map +1 -0
  224. package/dist/modules/config/services/config.service.d.ts +19 -3
  225. package/dist/modules/config/services/config.service.js +105 -39
  226. package/dist/modules/config/services/config.service.js.map +1 -1
  227. package/dist/modules/config/services/module-config-mutation-registry.service.d.ts +8 -0
  228. package/dist/modules/config/services/module-config-mutation-registry.service.js +35 -0
  229. package/dist/modules/config/services/module-config-mutation-registry.service.js.map +1 -0
  230. package/dist/modules/config/services/modules-type-mapper.service.d.ts +2 -0
  231. package/dist/modules/config/services/modules-type-mapper.service.js.map +1 -1
  232. package/dist/modules/config/services/plugin-config-mutation-registry.service.d.ts +9 -0
  233. package/dist/modules/config/services/plugin-config-mutation-registry.service.js +50 -0
  234. package/dist/modules/config/services/plugin-config-mutation-registry.service.js.map +1 -0
  235. package/dist/modules/config/services/plugin-config-validator.service.d.ts +1 -0
  236. package/dist/modules/config/services/plugin-config-validator.service.js +4 -4
  237. package/dist/modules/config/services/plugin-config-validator.service.js.map +1 -1
  238. package/dist/modules/config/services/plugins-type-mapper.service.d.ts +2 -0
  239. package/dist/modules/config/services/plugins-type-mapper.service.js.map +1 -1
  240. package/dist/modules/dashboard/controllers/pages.controller.d.ts +6 -2
  241. package/dist/modules/dashboard/controllers/pages.controller.js +29 -2
  242. package/dist/modules/dashboard/controllers/pages.controller.js.map +1 -1
  243. package/dist/modules/dashboard/dashboard.module.js +2 -0
  244. package/dist/modules/dashboard/dashboard.module.js.map +1 -1
  245. package/dist/modules/dashboard/dashboard.openapi.d.ts +2 -2
  246. package/dist/modules/dashboard/dashboard.openapi.js +5 -0
  247. package/dist/modules/dashboard/dashboard.openapi.js.map +1 -1
  248. package/dist/modules/dashboard/dto/bulk-pages.dto.d.ts +7 -0
  249. package/dist/modules/dashboard/dto/bulk-pages.dto.js +53 -0
  250. package/dist/modules/dashboard/dto/bulk-pages.dto.js.map +1 -0
  251. package/dist/modules/dashboard/models/dashboard-response.model.d.ts +4 -0
  252. package/dist/modules/dashboard/models/dashboard-response.model.js +16 -1
  253. package/dist/modules/dashboard/models/dashboard-response.model.js.map +1 -1
  254. package/dist/modules/dashboard/services/pages-bulk.service.d.ts +8 -0
  255. package/dist/modules/dashboard/services/pages-bulk.service.js +35 -0
  256. package/dist/modules/dashboard/services/pages-bulk.service.js.map +1 -0
  257. package/dist/modules/devices/controllers/channels.properties.controller.js +9 -2
  258. package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
  259. package/dist/modules/devices/controllers/devices.channels.properties.controller.js +9 -2
  260. package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
  261. package/dist/modules/devices/controllers/devices.controller.d.ts +9 -3
  262. package/dist/modules/devices/controllers/devices.controller.js +86 -8
  263. package/dist/modules/devices/controllers/devices.controller.js.map +1 -1
  264. package/dist/modules/devices/devices.constants.d.ts +10 -0
  265. package/dist/modules/devices/devices.constants.js +13 -1
  266. package/dist/modules/devices/devices.constants.js.map +1 -1
  267. package/dist/modules/devices/devices.module.js +20 -0
  268. package/dist/modules/devices/devices.module.js.map +1 -1
  269. package/dist/modules/devices/devices.openapi.d.ts +3 -2
  270. package/dist/modules/devices/devices.openapi.js +5 -0
  271. package/dist/modules/devices/devices.openapi.js.map +1 -1
  272. package/dist/modules/devices/dto/bulk-devices.dto.d.ts +14 -0
  273. package/dist/modules/devices/dto/bulk-devices.dto.js +99 -0
  274. package/dist/modules/devices/dto/bulk-devices.dto.js.map +1 -0
  275. package/dist/modules/devices/dto/create-device.dto.d.ts +3 -1
  276. package/dist/modules/devices/dto/create-device.dto.js +25 -0
  277. package/dist/modules/devices/dto/create-device.dto.js.map +1 -1
  278. package/dist/modules/devices/dto/list-devices-query.dto.d.ts +4 -0
  279. package/dist/modules/devices/dto/list-devices-query.dto.js +31 -0
  280. package/dist/modules/devices/dto/list-devices-query.dto.js.map +1 -0
  281. package/dist/modules/devices/dto/update-device.dto.d.ts +3 -1
  282. package/dist/modules/devices/dto/update-device.dto.js +25 -0
  283. package/dist/modules/devices/dto/update-device.dto.js.map +1 -1
  284. package/dist/modules/devices/entities/devices.entity.d.ts +3 -1
  285. package/dist/modules/devices/entities/devices.entity.js +30 -0
  286. package/dist/modules/devices/entities/devices.entity.js.map +1 -1
  287. package/dist/modules/devices/entities/property-value-lock.entity.d.ts +5 -0
  288. package/dist/modules/devices/entities/property-value-lock.entity.js +32 -0
  289. package/dist/modules/devices/entities/property-value-lock.entity.js.map +1 -0
  290. package/dist/modules/devices/models/devices-response.model.d.ts +4 -0
  291. package/dist/modules/devices/models/devices-response.model.js +16 -1
  292. package/dist/modules/devices/models/devices-response.model.js.map +1 -1
  293. package/dist/modules/devices/platforms/device.platform.d.ts +3 -0
  294. package/dist/modules/devices/services/channels-type-mapper.service.d.ts +1 -0
  295. package/dist/modules/devices/services/channels-type-mapper.service.js.map +1 -1
  296. package/dist/modules/devices/services/channels.properties-type-mapper.service.d.ts +2 -0
  297. package/dist/modules/devices/services/channels.properties-type-mapper.service.js.map +1 -1
  298. package/dist/modules/devices/services/channels.properties.service.d.ts +86 -2
  299. package/dist/modules/devices/services/channels.properties.service.js +377 -41
  300. package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
  301. package/dist/modules/devices/services/channels.service.d.ts +14 -1
  302. package/dist/modules/devices/services/channels.service.js +125 -25
  303. package/dist/modules/devices/services/channels.service.js.map +1 -1
  304. package/dist/modules/devices/services/device-connection-state.service.d.ts +14 -5
  305. package/dist/modules/devices/services/device-connection-state.service.js +101 -20
  306. package/dist/modules/devices/services/device-connection-state.service.js.map +1 -1
  307. package/dist/modules/devices/services/device-connectivity.service.d.ts +5 -0
  308. package/dist/modules/devices/services/device-connectivity.service.js +9 -5
  309. package/dist/modules/devices/services/device-connectivity.service.js.map +1 -1
  310. package/dist/modules/devices/services/device-control-tool.service.d.ts +5 -13
  311. package/dist/modules/devices/services/device-control-tool.service.js +71 -115
  312. package/dist/modules/devices/services/device-control-tool.service.js.map +1 -1
  313. package/dist/modules/devices/services/device-structure-lock.service.d.ts +5 -0
  314. package/dist/modules/devices/services/device-structure-lock.service.js +30 -0
  315. package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -0
  316. package/dist/modules/devices/services/device-zones.service.d.ts +4 -1
  317. package/dist/modules/devices/services/device-zones.service.js +63 -25
  318. package/dist/modules/devices/services/device-zones.service.js.map +1 -1
  319. package/dist/modules/devices/services/devices-bulk.service.d.ts +12 -0
  320. package/dist/modules/devices/services/devices-bulk.service.js +74 -0
  321. package/dist/modules/devices/services/devices-bulk.service.js.map +1 -0
  322. package/dist/modules/devices/services/devices-type-mapper.service.d.ts +1 -0
  323. package/dist/modules/devices/services/devices-type-mapper.service.js.map +1 -1
  324. package/dist/modules/devices/services/devices.service.d.ts +58 -2
  325. package/dist/modules/devices/services/devices.service.js +359 -20
  326. package/dist/modules/devices/services/devices.service.js.map +1 -1
  327. package/dist/modules/devices/services/platform.registry.service.d.ts +7 -1
  328. package/dist/modules/devices/services/platform.registry.service.js +19 -0
  329. package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
  330. package/dist/modules/devices/services/property-command.service.d.ts +31 -1
  331. package/dist/modules/devices/services/property-command.service.js +239 -50
  332. package/dist/modules/devices/services/property-command.service.js.map +1 -1
  333. package/dist/modules/devices/services/property-timeseries.service.d.ts +4 -1
  334. package/dist/modules/devices/services/property-timeseries.service.js +25 -13
  335. package/dist/modules/devices/services/property-timeseries.service.js.map +1 -1
  336. package/dist/modules/devices/services/property-value-lock.service.d.ts +20 -0
  337. package/dist/modules/devices/services/property-value-lock.service.js +147 -0
  338. package/dist/modules/devices/services/property-value-lock.service.js.map +1 -0
  339. package/dist/modules/devices/services/property-value-source.registry.service.d.ts +13 -0
  340. package/dist/modules/devices/services/property-value-source.registry.service.js +42 -0
  341. package/dist/modules/devices/services/property-value-source.registry.service.js.map +1 -0
  342. package/dist/modules/devices/services/property-value.service.d.ts +86 -3
  343. package/dist/modules/devices/services/property-value.service.js +527 -76
  344. package/dist/modules/devices/services/property-value.service.js.map +1 -1
  345. package/dist/modules/devices/subscribers/channel-property-entity.subscriber.d.ts +0 -1
  346. package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js +2 -19
  347. package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js.map +1 -1
  348. package/dist/modules/devices/utils/property-command-value.utils.d.ts +13 -0
  349. package/dist/modules/devices/utils/property-command-value.utils.js +147 -0
  350. package/dist/modules/devices/utils/property-command-value.utils.js.map +1 -0
  351. package/dist/modules/devices/utils/property-metadata.utils.d.ts +2 -0
  352. package/dist/modules/devices/utils/property-metadata.utils.js +22 -0
  353. package/dist/modules/devices/utils/property-metadata.utils.js.map +1 -0
  354. package/dist/modules/devices/utils/schema.utils.js +25 -151
  355. package/dist/modules/devices/utils/schema.utils.js.map +1 -1
  356. package/dist/modules/devices/utils/unique-constraint.utils.d.ts +1 -0
  357. package/dist/modules/devices/utils/unique-constraint.utils.js +27 -0
  358. package/dist/modules/devices/utils/unique-constraint.utils.js.map +1 -0
  359. package/dist/modules/devices/validators/channel-exists-constraint.validator.js +1 -1
  360. package/dist/modules/devices/validators/channel-exists-constraint.validator.js.map +1 -1
  361. package/dist/modules/devices/validators/device-exists-constraint.validator.js +1 -1
  362. package/dist/modules/devices/validators/device-exists-constraint.validator.js.map +1 -1
  363. package/dist/modules/devices/validators/device-not-hidden-constraint.validator.d.ts +9 -0
  364. package/dist/modules/devices/validators/device-not-hidden-constraint.validator.js +47 -0
  365. package/dist/modules/devices/validators/device-not-hidden-constraint.validator.js.map +1 -0
  366. package/dist/modules/displays/controllers/displays.controller.d.ts +6 -2
  367. package/dist/modules/displays/controllers/displays.controller.js +30 -1
  368. package/dist/modules/displays/controllers/displays.controller.js.map +1 -1
  369. package/dist/modules/displays/controllers/registration.controller.d.ts +6 -4
  370. package/dist/modules/displays/controllers/registration.controller.js +8 -5
  371. package/dist/modules/displays/controllers/registration.controller.js.map +1 -1
  372. package/dist/modules/displays/displays.module.js +5 -0
  373. package/dist/modules/displays/displays.module.js.map +1 -1
  374. package/dist/modules/displays/displays.openapi.d.ts +4 -2
  375. package/dist/modules/displays/displays.openapi.js +5 -0
  376. package/dist/modules/displays/displays.openapi.js.map +1 -1
  377. package/dist/modules/displays/dto/bulk-displays.dto.d.ts +7 -0
  378. package/dist/modules/displays/dto/bulk-displays.dto.js +53 -0
  379. package/dist/modules/displays/dto/bulk-displays.dto.js.map +1 -0
  380. package/dist/modules/displays/guards/registration.guard.d.ts +4 -1
  381. package/dist/modules/displays/guards/registration.guard.js +18 -5
  382. package/dist/modules/displays/guards/registration.guard.js.map +1 -1
  383. package/dist/modules/displays/models/displays-response.model.d.ts +4 -0
  384. package/dist/modules/displays/models/displays-response.model.js +16 -1
  385. package/dist/modules/displays/models/displays-response.model.js.map +1 -1
  386. package/dist/modules/displays/services/displays-bulk.service.d.ts +8 -0
  387. package/dist/modules/displays/services/displays-bulk.service.js +39 -0
  388. package/dist/modules/displays/services/displays-bulk.service.js.map +1 -0
  389. package/dist/modules/displays/utils/ip.utils.d.ts +0 -2
  390. package/dist/modules/displays/utils/ip.utils.js +0 -25
  391. package/dist/modules/displays/utils/ip.utils.js.map +1 -1
  392. package/dist/modules/energy/energy.module.js +6 -2
  393. package/dist/modules/energy/energy.module.js.map +1 -1
  394. package/dist/modules/energy/energy.openapi.d.ts +3 -1
  395. package/dist/modules/energy/energy.openapi.js +4 -0
  396. package/dist/modules/energy/energy.openapi.js.map +1 -1
  397. package/dist/modules/energy/listeners/energy-ingestion.listener.d.ts +8 -1
  398. package/dist/modules/energy/listeners/energy-ingestion.listener.js +72 -28
  399. package/dist/modules/energy/listeners/energy-ingestion.listener.js.map +1 -1
  400. package/dist/modules/energy/services/energy-claim.registry.service.d.ts +16 -0
  401. package/dist/modules/energy/services/energy-claim.registry.service.js +41 -0
  402. package/dist/modules/energy/services/energy-claim.registry.service.js.map +1 -0
  403. package/dist/modules/energy/services/energy-data.service.d.ts +2 -0
  404. package/dist/modules/energy/services/energy-data.service.js +22 -6
  405. package/dist/modules/energy/services/energy-data.service.js.map +1 -1
  406. package/dist/modules/energy/utils/energy-source-type.utils.d.ts +8 -0
  407. package/dist/modules/energy/utils/energy-source-type.utils.js +30 -0
  408. package/dist/modules/energy/utils/energy-source-type.utils.js.map +1 -0
  409. package/dist/modules/extensions/commands/services.command.d.ts +9 -9
  410. package/dist/modules/extensions/commands/services.command.js +73 -60
  411. package/dist/modules/extensions/commands/services.command.js.map +1 -1
  412. package/dist/modules/extensions/controllers/extensions.controller.d.ts +7 -3
  413. package/dist/modules/extensions/controllers/extensions.controller.js +31 -5
  414. package/dist/modules/extensions/controllers/extensions.controller.js.map +1 -1
  415. package/dist/modules/extensions/controllers/services.controller.d.ts +8 -7
  416. package/dist/modules/extensions/controllers/services.controller.js +79 -59
  417. package/dist/modules/extensions/controllers/services.controller.js.map +1 -1
  418. package/dist/modules/extensions/dto/bulk-extensions.dto.d.ts +8 -0
  419. package/dist/modules/extensions/dto/bulk-extensions.dto.js +63 -0
  420. package/dist/modules/extensions/dto/bulk-extensions.dto.js.map +1 -0
  421. package/dist/modules/extensions/dto/update-config.dto.js +1 -1
  422. package/dist/modules/extensions/dto/update-config.dto.js.map +1 -1
  423. package/dist/modules/extensions/extensions.constants.js +2 -2
  424. package/dist/modules/extensions/extensions.constants.js.map +1 -1
  425. package/dist/modules/extensions/extensions.exceptions.d.ts +3 -0
  426. package/dist/modules/extensions/extensions.exceptions.js +7 -1
  427. package/dist/modules/extensions/extensions.exceptions.js.map +1 -1
  428. package/dist/modules/extensions/extensions.module.js +13 -11
  429. package/dist/modules/extensions/extensions.module.js.map +1 -1
  430. package/dist/modules/extensions/extensions.openapi.d.ts +3 -2
  431. package/dist/modules/extensions/extensions.openapi.js +5 -0
  432. package/dist/modules/extensions/extensions.openapi.js.map +1 -1
  433. package/dist/modules/extensions/models/extensions-response.model.d.ts +4 -0
  434. package/dist/modules/extensions/models/extensions-response.model.js +16 -1
  435. package/dist/modules/extensions/models/extensions-response.model.js.map +1 -1
  436. package/dist/modules/extensions/models/service-status.model.d.ts +5 -2
  437. package/dist/modules/extensions/models/service-status.model.js +36 -6
  438. package/dist/modules/extensions/models/service-status.model.js.map +1 -1
  439. package/dist/modules/extensions/providers/extensions-stats.provider.d.ts +3 -3
  440. package/dist/modules/extensions/providers/extensions-stats.provider.js +6 -6
  441. package/dist/modules/extensions/providers/extensions-stats.provider.js.map +1 -1
  442. package/dist/modules/extensions/services/{base-managed-plugin.service.d.ts → base-managed-extension.service.d.ts} +3 -3
  443. package/dist/modules/extensions/services/{base-managed-plugin.service.js → base-managed-extension.service.js} +4 -4
  444. package/dist/modules/extensions/services/base-managed-extension.service.js.map +1 -0
  445. package/dist/modules/extensions/services/extensions-bulk.service.d.ts +8 -0
  446. package/dist/modules/extensions/services/extensions-bulk.service.js +41 -0
  447. package/dist/modules/extensions/services/extensions-bulk.service.js.map +1 -0
  448. package/dist/modules/extensions/services/extensions.service.d.ts +1 -1
  449. package/dist/modules/extensions/services/extensions.service.js +14 -5
  450. package/dist/modules/extensions/services/extensions.service.js.map +1 -1
  451. package/dist/modules/extensions/services/{managed-plugin-service.interface.d.ts → managed-extension-service.interface.d.ts} +16 -5
  452. package/dist/modules/extensions/services/managed-extension-service.interface.js +3 -0
  453. package/dist/modules/extensions/services/managed-extension-service.interface.js.map +1 -0
  454. package/dist/modules/extensions/services/managed-service-manager.service.d.ts +57 -0
  455. package/dist/modules/extensions/services/{plugin-service-manager.service.js → managed-service-manager.service.js} +260 -73
  456. package/dist/modules/extensions/services/managed-service-manager.service.js.map +1 -0
  457. package/dist/modules/home-context/home-context-pagination.errors.d.ts +5 -0
  458. package/dist/modules/home-context/home-context-pagination.errors.js +13 -0
  459. package/dist/modules/home-context/home-context-pagination.errors.js.map +1 -0
  460. package/dist/modules/home-context/home-context.constants.d.ts +66 -0
  461. package/dist/modules/home-context/home-context.constants.js +81 -0
  462. package/dist/modules/home-context/home-context.constants.js.map +1 -0
  463. package/dist/modules/home-context/home-context.errors.d.ts +5 -0
  464. package/dist/modules/home-context/home-context.errors.js +13 -0
  465. package/dist/modules/home-context/home-context.errors.js.map +1 -0
  466. package/dist/modules/home-context/home-context.module.d.ts +2 -0
  467. package/dist/modules/home-context/home-context.module.js +44 -0
  468. package/dist/modules/home-context/home-context.module.js.map +1 -0
  469. package/dist/modules/home-context/home-current-state.errors.d.ts +5 -0
  470. package/dist/modules/home-context/home-current-state.errors.js +13 -0
  471. package/dist/modules/home-context/home-current-state.errors.js.map +1 -0
  472. package/dist/modules/home-context/home-search.errors.d.ts +11 -0
  473. package/dist/modules/home-context/home-search.errors.js +25 -0
  474. package/dist/modules/home-context/home-search.errors.js.map +1 -0
  475. package/dist/modules/home-context/home-state.errors.d.ts +24 -0
  476. package/dist/modules/home-context/home-state.errors.js +44 -0
  477. package/dist/modules/home-context/home-state.errors.js.map +1 -0
  478. package/dist/modules/home-context/models/home-context-query.model.d.ts +10 -0
  479. package/dist/modules/home-context/models/home-context-query.model.js +3 -0
  480. package/dist/modules/home-context/models/home-context-query.model.js.map +1 -0
  481. package/dist/modules/home-context/models/home-context-result.model.d.ts +124 -0
  482. package/dist/modules/home-context/models/home-context-result.model.js +3 -0
  483. package/dist/modules/home-context/models/home-context-result.model.js.map +1 -0
  484. package/dist/modules/home-context/models/home-current-state-query.model.d.ts +33 -0
  485. package/dist/modules/home-context/models/home-current-state-query.model.js +3 -0
  486. package/dist/modules/home-context/models/home-current-state-query.model.js.map +1 -0
  487. package/dist/modules/home-context/models/home-current-state-result.model.d.ts +70 -0
  488. package/dist/modules/home-context/models/home-current-state-result.model.js +3 -0
  489. package/dist/modules/home-context/models/home-current-state-result.model.js.map +1 -0
  490. package/dist/modules/home-context/models/home-search-query.model.d.ts +11 -0
  491. package/dist/modules/home-context/models/home-search-query.model.js +3 -0
  492. package/dist/modules/home-context/models/home-search-query.model.js.map +1 -0
  493. package/dist/modules/home-context/models/home-search-result.model.d.ts +71 -0
  494. package/dist/modules/home-context/models/home-search-result.model.js +3 -0
  495. package/dist/modules/home-context/models/home-search-result.model.js.map +1 -0
  496. package/dist/modules/home-context/models/home-state-query.model.d.ts +26 -0
  497. package/dist/modules/home-context/models/home-state-query.model.js +3 -0
  498. package/dist/modules/home-context/models/home-state-query.model.js.map +1 -0
  499. package/dist/modules/home-context/models/home-state-result.model.d.ts +48 -0
  500. package/dist/modules/home-context/models/home-state-result.model.js +3 -0
  501. package/dist/modules/home-context/models/home-state-result.model.js.map +1 -0
  502. package/dist/modules/home-context/models/home-target-query.model.d.ts +9 -0
  503. package/dist/modules/home-context/models/home-target-query.model.js +3 -0
  504. package/dist/modules/home-context/models/home-target-query.model.js.map +1 -0
  505. package/dist/modules/home-context/models/home-target-result.model.d.ts +43 -0
  506. package/dist/modules/home-context/models/home-target-result.model.js +3 -0
  507. package/dist/modules/home-context/models/home-target-result.model.js.map +1 -0
  508. package/dist/modules/home-context/schemas/home-context-input.schemas.d.ts +9 -0
  509. package/dist/modules/home-context/schemas/home-context-input.schemas.js +22 -0
  510. package/dist/modules/home-context/schemas/home-context-input.schemas.js.map +1 -0
  511. package/dist/modules/home-context/schemas/home-context-output.schemas.d.ts +125 -0
  512. package/dist/modules/home-context/schemas/home-context-output.schemas.js +147 -0
  513. package/dist/modules/home-context/schemas/home-context-output.schemas.js.map +1 -0
  514. package/dist/modules/home-context/schemas/home-current-state-input.schemas.d.ts +150 -0
  515. package/dist/modules/home-context/schemas/home-current-state-input.schemas.js +59 -0
  516. package/dist/modules/home-context/schemas/home-current-state-input.schemas.js.map +1 -0
  517. package/dist/modules/home-context/schemas/home-current-state-output.schemas.d.ts +275 -0
  518. package/dist/modules/home-context/schemas/home-current-state-output.schemas.js +139 -0
  519. package/dist/modules/home-context/schemas/home-current-state-output.schemas.js.map +1 -0
  520. package/dist/modules/home-context/schemas/home-search-input.schemas.d.ts +20 -0
  521. package/dist/modules/home-context/schemas/home-search-input.schemas.js +29 -0
  522. package/dist/modules/home-context/schemas/home-search-input.schemas.js.map +1 -0
  523. package/dist/modules/home-context/schemas/home-search-output.schemas.d.ts +112 -0
  524. package/dist/modules/home-context/schemas/home-search-output.schemas.js +84 -0
  525. package/dist/modules/home-context/schemas/home-search-output.schemas.js.map +1 -0
  526. package/dist/modules/home-context/schemas/home-state-input.schemas.d.ts +30 -0
  527. package/dist/modules/home-context/schemas/home-state-input.schemas.js +37 -0
  528. package/dist/modules/home-context/schemas/home-state-input.schemas.js.map +1 -0
  529. package/dist/modules/home-context/schemas/home-state-output.schemas.d.ts +116 -0
  530. package/dist/modules/home-context/schemas/home-state-output.schemas.js +129 -0
  531. package/dist/modules/home-context/schemas/home-state-output.schemas.js.map +1 -0
  532. package/dist/modules/home-context/schemas/home-target-input.schemas.d.ts +9 -0
  533. package/dist/modules/home-context/schemas/home-target-input.schemas.js +15 -0
  534. package/dist/modules/home-context/schemas/home-target-input.schemas.js.map +1 -0
  535. package/dist/modules/home-context/schemas/home-target-output.schemas.d.ts +40 -0
  536. package/dist/modules/home-context/schemas/home-target-output.schemas.js +61 -0
  537. package/dist/modules/home-context/schemas/home-target-output.schemas.js.map +1 -0
  538. package/dist/modules/home-context/services/home-context-query.service.d.ts +31 -0
  539. package/dist/modules/home-context/services/home-context-query.service.js +264 -0
  540. package/dist/modules/home-context/services/home-context-query.service.js.map +1 -0
  541. package/dist/modules/home-context/services/home-current-state-query.service.d.ts +17 -0
  542. package/dist/modules/home-context/services/home-current-state-query.service.js +256 -0
  543. package/dist/modules/home-context/services/home-current-state-query.service.js.map +1 -0
  544. package/dist/modules/home-context/services/home-search-query.service.d.ts +30 -0
  545. package/dist/modules/home-context/services/home-search-query.service.js +443 -0
  546. package/dist/modules/home-context/services/home-search-query.service.js.map +1 -0
  547. package/dist/modules/home-context/services/home-state-query.service.d.ts +35 -0
  548. package/dist/modules/home-context/services/home-state-query.service.js +263 -0
  549. package/dist/modules/home-context/services/home-state-query.service.js.map +1 -0
  550. package/dist/modules/home-context/services/home-target-query.service.d.ts +21 -0
  551. package/dist/modules/home-context/services/home-target-query.service.js +149 -0
  552. package/dist/modules/home-context/services/home-target-query.service.js.map +1 -0
  553. package/dist/modules/mcp/controllers/mcp-clients.controller.d.ts +17 -0
  554. package/dist/modules/mcp/controllers/mcp-clients.controller.js +201 -0
  555. package/dist/modules/mcp/controllers/mcp-clients.controller.js.map +1 -0
  556. package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.d.ts +17 -0
  557. package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.js +162 -0
  558. package/dist/modules/mcp/controllers/mcp-oauth-clients.controller.js.map +1 -0
  559. package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.d.ts +15 -0
  560. package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.js +136 -0
  561. package/dist/modules/mcp/controllers/mcp-oauth-interactions.controller.js.map +1 -0
  562. package/dist/modules/mcp/controllers/mcp-oauth-management.controller.d.ts +20 -0
  563. package/dist/modules/mcp/controllers/mcp-oauth-management.controller.js +271 -0
  564. package/dist/modules/mcp/controllers/mcp-oauth-management.controller.js.map +1 -0
  565. package/dist/modules/mcp/controllers/mcp.controller.d.ts +17 -0
  566. package/dist/modules/mcp/controllers/mcp.controller.js +87 -0
  567. package/dist/modules/mcp/controllers/mcp.controller.js.map +1 -0
  568. package/dist/modules/mcp/decorators/mcp-endpoint.decorator.d.ts +1 -0
  569. package/dist/modules/mcp/decorators/mcp-endpoint.decorator.js +8 -0
  570. package/dist/modules/mcp/decorators/mcp-endpoint.decorator.js.map +1 -0
  571. package/dist/modules/mcp/dto/mcp-client.dto.d.ts +25 -0
  572. package/dist/modules/mcp/dto/mcp-client.dto.js +185 -0
  573. package/dist/modules/mcp/dto/mcp-client.dto.js.map +1 -0
  574. package/dist/modules/mcp/dto/mcp-oauth-client.dto.d.ts +18 -0
  575. package/dist/modules/mcp/dto/mcp-oauth-client.dto.js +135 -0
  576. package/dist/modules/mcp/dto/mcp-oauth-client.dto.js.map +1 -0
  577. package/dist/modules/mcp/dto/mcp-oauth-grant.dto.d.ts +7 -0
  578. package/dist/modules/mcp/dto/mcp-oauth-grant.dto.js +51 -0
  579. package/dist/modules/mcp/dto/mcp-oauth-grant.dto.js.map +1 -0
  580. package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.d.ts +8 -0
  581. package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.js +68 -0
  582. package/dist/modules/mcp/dto/mcp-oauth-interaction.dto.js.map +1 -0
  583. package/dist/modules/mcp/dto/update-config.dto.d.ts +9 -0
  584. package/dist/modules/mcp/dto/update-config.dto.js +102 -0
  585. package/dist/modules/mcp/dto/update-config.dto.js.map +1 -0
  586. package/dist/modules/mcp/entities/mcp-client.entity.d.ts +17 -0
  587. package/dist/modules/mcp/entities/mcp-client.entity.js +154 -0
  588. package/dist/modules/mcp/entities/mcp-client.entity.js.map +1 -0
  589. package/dist/modules/mcp/entities/mcp-installation.entity.d.ts +5 -0
  590. package/dist/modules/mcp/entities/mcp-installation.entity.js +32 -0
  591. package/dist/modules/mcp/entities/mcp-installation.entity.js.map +1 -0
  592. package/dist/modules/mcp/entities/mcp-oauth.entity.d.ts +143 -0
  593. package/dist/modules/mcp/entities/mcp-oauth.entity.js +602 -0
  594. package/dist/modules/mcp/entities/mcp-oauth.entity.js.map +1 -0
  595. package/dist/modules/mcp/guards/mcp-client.guard.d.ts +14 -0
  596. package/dist/modules/mcp/guards/mcp-client.guard.js +73 -0
  597. package/dist/modules/mcp/guards/mcp-client.guard.js.map +1 -0
  598. package/dist/modules/mcp/guards/mcp-throttle.guard.d.ts +26 -0
  599. package/dist/modules/mcp/guards/mcp-throttle.guard.js +161 -0
  600. package/dist/modules/mcp/guards/mcp-throttle.guard.js.map +1 -0
  601. package/dist/modules/mcp/listeners/mcp-config.listener.d.ts +22 -0
  602. package/dist/modules/mcp/listeners/mcp-config.listener.js +104 -0
  603. package/dist/modules/mcp/listeners/mcp-config.listener.js.map +1 -0
  604. package/dist/modules/mcp/mcp.constants.d.ts +68 -0
  605. package/dist/modules/mcp/mcp.constants.js +77 -0
  606. package/dist/modules/mcp/mcp.constants.js.map +1 -0
  607. package/dist/modules/mcp/mcp.exceptions.d.ts +4 -0
  608. package/dist/modules/mcp/mcp.exceptions.js +11 -0
  609. package/dist/modules/mcp/mcp.exceptions.js.map +1 -0
  610. package/dist/modules/mcp/mcp.module.d.ts +23 -0
  611. package/dist/modules/mcp/mcp.module.js +272 -0
  612. package/dist/modules/mcp/mcp.module.js.map +1 -0
  613. package/dist/modules/mcp/mcp.openapi.d.ts +13 -0
  614. package/dist/modules/mcp/mcp.openapi.js +60 -0
  615. package/dist/modules/mcp/mcp.openapi.js.map +1 -0
  616. package/dist/modules/mcp/models/config.model.d.ts +10 -0
  617. package/dist/modules/mcp/models/config.model.js +106 -0
  618. package/dist/modules/mcp/models/config.model.js.map +1 -0
  619. package/dist/modules/mcp/models/mcp-client-response.model.d.ts +12 -0
  620. package/dist/modules/mcp/models/mcp-client-response.model.js +51 -0
  621. package/dist/modules/mcp/models/mcp-client-response.model.js.map +1 -0
  622. package/dist/modules/mcp/models/mcp-client.model.d.ts +5 -0
  623. package/dist/modules/mcp/models/mcp-client.model.js +35 -0
  624. package/dist/modules/mcp/models/mcp-client.model.js.map +1 -0
  625. package/dist/modules/mcp/models/mcp-oauth-client-response.model.d.ts +8 -0
  626. package/dist/modules/mcp/models/mcp-oauth-client-response.model.js +39 -0
  627. package/dist/modules/mcp/models/mcp-oauth-client-response.model.js.map +1 -0
  628. package/dist/modules/mcp/models/mcp-oauth-client.model.d.ts +13 -0
  629. package/dist/modules/mcp/models/mcp-oauth-client.model.js +85 -0
  630. package/dist/modules/mcp/models/mcp-oauth-client.model.js.map +1 -0
  631. package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.d.ts +8 -0
  632. package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.js +39 -0
  633. package/dist/modules/mcp/models/mcp-oauth-interaction-response.model.js.map +1 -0
  634. package/dist/modules/mcp/models/mcp-oauth-interaction.model.d.ts +23 -0
  635. package/dist/modules/mcp/models/mcp-oauth-interaction.model.js +111 -0
  636. package/dist/modules/mcp/models/mcp-oauth-interaction.model.js.map +1 -0
  637. package/dist/modules/mcp/models/mcp-oauth-management-response.model.d.ts +23 -0
  638. package/dist/modules/mcp/models/mcp-oauth-management-response.model.js +94 -0
  639. package/dist/modules/mcp/models/mcp-oauth-management-response.model.js.map +1 -0
  640. package/dist/modules/mcp/models/mcp-oauth-management.model.d.ts +35 -0
  641. package/dist/modules/mcp/models/mcp-oauth-management.model.js +189 -0
  642. package/dist/modules/mcp/models/mcp-oauth-management.model.js.map +1 -0
  643. package/dist/modules/mcp/oauth/mcp-oauth-metadata.d.ts +15 -0
  644. package/dist/modules/mcp/oauth/mcp-oauth-metadata.js +18 -0
  645. package/dist/modules/mcp/oauth/mcp-oauth-metadata.js.map +1 -0
  646. package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.d.ts +21 -0
  647. package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.js +297 -0
  648. package/dist/modules/mcp/oauth/mcp-oauth-provider.adapter.js.map +1 -0
  649. package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.d.ts +49 -0
  650. package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.js +324 -0
  651. package/dist/modules/mcp/oauth/mcp-oauth-provider.factory.js.map +1 -0
  652. package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.d.ts +4 -0
  653. package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.js +7 -0
  654. package/dist/modules/mcp/oauth/mcp-oauth-provider.loader.js.map +1 -0
  655. package/dist/modules/mcp/oauth/mcp-oauth-redaction.d.ts +1 -0
  656. package/dist/modules/mcp/oauth/mcp-oauth-redaction.js +17 -0
  657. package/dist/modules/mcp/oauth/mcp-oauth-redaction.js.map +1 -0
  658. package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.d.ts +3 -0
  659. package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.js +29 -0
  660. package/dist/modules/mcp/oauth/mcp-oauth-scope.utils.js.map +1 -0
  661. package/dist/modules/mcp/oauth/mcp-oauth.types.d.ts +31 -0
  662. package/dist/modules/mcp/oauth/mcp-oauth.types.js +3 -0
  663. package/dist/modules/mcp/oauth/mcp-oauth.types.js.map +1 -0
  664. package/dist/modules/mcp/providers/mcp-stats.provider.d.ts +19 -0
  665. package/dist/modules/mcp/providers/mcp-stats.provider.js +38 -0
  666. package/dist/modules/mcp/providers/mcp-stats.provider.js.map +1 -0
  667. package/dist/modules/mcp/services/mcp-audit.service.d.ts +74 -0
  668. package/dist/modules/mcp/services/mcp-audit.service.js +161 -0
  669. package/dist/modules/mcp/services/mcp-audit.service.js.map +1 -0
  670. package/dist/modules/mcp/services/mcp-client.service.d.ts +34 -0
  671. package/dist/modules/mcp/services/mcp-client.service.js +241 -0
  672. package/dist/modules/mcp/services/mcp-client.service.js.map +1 -0
  673. package/dist/modules/mcp/services/mcp-context.service.d.ts +32 -0
  674. package/dist/modules/mcp/services/mcp-context.service.js +136 -0
  675. package/dist/modules/mcp/services/mcp-context.service.js.map +1 -0
  676. package/dist/modules/mcp/services/mcp-installation.service.d.ts +9 -0
  677. package/dist/modules/mcp/services/mcp-installation.service.js +55 -0
  678. package/dist/modules/mcp/services/mcp-installation.service.js.map +1 -0
  679. package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.d.ts +20 -0
  680. package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.js +128 -0
  681. package/dist/modules/mcp/services/mcp-oauth-approver-authority.service.js.map +1 -0
  682. package/dist/modules/mcp/services/mcp-oauth-artifact.service.d.ts +69 -0
  683. package/dist/modules/mcp/services/mcp-oauth-artifact.service.js +200 -0
  684. package/dist/modules/mcp/services/mcp-oauth-artifact.service.js.map +1 -0
  685. package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.d.ts +22 -0
  686. package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.js +116 -0
  687. package/dist/modules/mcp/services/mcp-oauth-bootstrap.service.js.map +1 -0
  688. package/dist/modules/mcp/services/mcp-oauth-client.service.d.ts +20 -0
  689. package/dist/modules/mcp/services/mcp-oauth-client.service.js +107 -0
  690. package/dist/modules/mcp/services/mcp-oauth-client.service.js.map +1 -0
  691. package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.d.ts +15 -0
  692. package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.js +52 -0
  693. package/dist/modules/mcp/services/mcp-oauth-endpoint-rate-limit.service.js.map +1 -0
  694. package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.d.ts +12 -0
  695. package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.js +82 -0
  696. package/dist/modules/mcp/services/mcp-oauth-global-invalidation.service.js.map +1 -0
  697. package/dist/modules/mcp/services/mcp-oauth-interaction.service.d.ts +36 -0
  698. package/dist/modules/mcp/services/mcp-oauth-interaction.service.js +312 -0
  699. package/dist/modules/mcp/services/mcp-oauth-interaction.service.js.map +1 -0
  700. package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.d.ts +18 -0
  701. package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.js +88 -0
  702. package/dist/modules/mcp/services/mcp-oauth-lifecycle.service.js.map +1 -0
  703. package/dist/modules/mcp/services/mcp-oauth-management.service.d.ts +45 -0
  704. package/dist/modules/mcp/services/mcp-oauth-management.service.js +381 -0
  705. package/dist/modules/mcp/services/mcp-oauth-management.service.js.map +1 -0
  706. package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.d.ts +28 -0
  707. package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.js +253 -0
  708. package/dist/modules/mcp/services/mcp-oauth-module-config-mutation.service.js.map +1 -0
  709. package/dist/modules/mcp/services/mcp-oauth-provider-material.service.d.ts +21 -0
  710. package/dist/modules/mcp/services/mcp-oauth-provider-material.service.js +130 -0
  711. package/dist/modules/mcp/services/mcp-oauth-provider-material.service.js.map +1 -0
  712. package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.d.ts +11 -0
  713. package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.js +53 -0
  714. package/dist/modules/mcp/services/mcp-oauth-proxy-policy.service.js.map +1 -0
  715. package/dist/modules/mcp/services/mcp-oauth-public-url.service.d.ts +7 -0
  716. package/dist/modules/mcp/services/mcp-oauth-public-url.service.js +47 -0
  717. package/dist/modules/mcp/services/mcp-oauth-public-url.service.js.map +1 -0
  718. package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.d.ts +25 -0
  719. package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.js +69 -0
  720. package/dist/modules/mcp/services/mcp-oauth-readiness-registration.service.js.map +1 -0
  721. package/dist/modules/mcp/services/mcp-oauth-readiness.service.d.ts +32 -0
  722. package/dist/modules/mcp/services/mcp-oauth-readiness.service.js +71 -0
  723. package/dist/modules/mcp/services/mcp-oauth-readiness.service.js.map +1 -0
  724. package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.d.ts +13 -0
  725. package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.js +91 -0
  726. package/dist/modules/mcp/services/mcp-oauth-refresh-token.service.js.map +1 -0
  727. package/dist/modules/mcp/services/mcp-oauth-resource-server.service.d.ts +40 -0
  728. package/dist/modules/mcp/services/mcp-oauth-resource-server.service.js +233 -0
  729. package/dist/modules/mcp/services/mcp-oauth-resource-server.service.js.map +1 -0
  730. package/dist/modules/mcp/services/mcp-oauth-route-gate.service.d.ts +12 -0
  731. package/dist/modules/mcp/services/mcp-oauth-route-gate.service.js +50 -0
  732. package/dist/modules/mcp/services/mcp-oauth-route-gate.service.js.map +1 -0
  733. package/dist/modules/mcp/services/mcp-oauth-runtime.service.d.ts +15 -0
  734. package/dist/modules/mcp/services/mcp-oauth-runtime.service.js +70 -0
  735. package/dist/modules/mcp/services/mcp-oauth-runtime.service.js.map +1 -0
  736. package/dist/modules/mcp/services/mcp-oauth-switch-off.service.d.ts +18 -0
  737. package/dist/modules/mcp/services/mcp-oauth-switch-off.service.js +74 -0
  738. package/dist/modules/mcp/services/mcp-oauth-switch-off.service.js.map +1 -0
  739. package/dist/modules/mcp/services/mcp-policy.service.d.ts +51 -0
  740. package/dist/modules/mcp/services/mcp-policy.service.js +162 -0
  741. package/dist/modules/mcp/services/mcp-policy.service.js.map +1 -0
  742. package/dist/modules/mcp/services/mcp-server.service.d.ts +50 -0
  743. package/dist/modules/mcp/services/mcp-server.service.js +513 -0
  744. package/dist/modules/mcp/services/mcp-server.service.js.map +1 -0
  745. package/dist/modules/mcp/services/mcp-subscription-registry.service.d.ts +76 -0
  746. package/dist/modules/mcp/services/mcp-subscription-registry.service.js +287 -0
  747. package/dist/modules/mcp/services/mcp-subscription-registry.service.js.map +1 -0
  748. package/dist/modules/mcp/tools/mcp-read-tool.service.d.ts +23 -0
  749. package/dist/modules/mcp/tools/mcp-read-tool.service.js +361 -0
  750. package/dist/modules/mcp/tools/mcp-read-tool.service.js.map +1 -0
  751. package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.d.ts +35 -0
  752. package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.js +374 -0
  753. package/dist/modules/mcp/tools/mcp-target-discovery-tool.service.js.map +1 -0
  754. package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.d.ts +6 -0
  755. package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.js +46 -0
  756. package/dist/modules/mcp/validators/is-mcp-oauth-public-base-url.validator.js.map +1 -0
  757. package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.d.ts +7 -0
  758. package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.js +65 -0
  759. package/dist/modules/mcp/validators/is-mcp-oauth-redirect-uri.validator.js.map +1 -0
  760. package/dist/modules/mcp/validators/is-mcp-origin.validator.d.ts +5 -0
  761. package/dist/modules/mcp/validators/is-mcp-origin.validator.js +35 -0
  762. package/dist/modules/mcp/validators/is-mcp-origin.validator.js.map +1 -0
  763. package/dist/modules/mdns/mdns.openapi.d.ts +1 -1
  764. package/dist/modules/mdns/services/mdns.service.d.ts +21 -4
  765. package/dist/modules/mdns/services/mdns.service.js +151 -69
  766. package/dist/modules/mdns/services/mdns.service.js.map +1 -1
  767. package/dist/modules/notifications/controllers/notifications.controller.d.ts +19 -0
  768. package/dist/modules/notifications/controllers/notifications.controller.js +312 -0
  769. package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -0
  770. package/dist/modules/notifications/dto/bulk-remove-notifications.dto.d.ts +6 -0
  771. package/dist/modules/notifications/dto/bulk-remove-notifications.dto.js +56 -0
  772. package/dist/modules/notifications/dto/bulk-remove-notifications.dto.js.map +1 -0
  773. package/dist/modules/notifications/dto/bulk-update-notifications.dto.d.ts +8 -0
  774. package/dist/modules/notifications/dto/bulk-update-notifications.dto.js +78 -0
  775. package/dist/modules/notifications/dto/bulk-update-notifications.dto.js.map +1 -0
  776. package/dist/modules/notifications/dto/update-config.dto.d.ts +7 -0
  777. package/dist/modules/notifications/dto/update-config.dto.js +79 -0
  778. package/dist/modules/notifications/dto/update-config.dto.js.map +1 -0
  779. package/dist/modules/notifications/dto/update-notification.dto.d.ts +7 -0
  780. package/dist/modules/notifications/dto/update-notification.dto.js +58 -0
  781. package/dist/modules/notifications/dto/update-notification.dto.js.map +1 -0
  782. package/dist/modules/notifications/entities/notifications.entity.d.ts +19 -0
  783. package/dist/modules/notifications/entities/notifications.entity.js +209 -0
  784. package/dist/modules/notifications/entities/notifications.entity.js.map +1 -0
  785. package/dist/modules/notifications/models/config.model.d.ts +7 -0
  786. package/dist/modules/notifications/models/config.model.js +81 -0
  787. package/dist/modules/notifications/models/config.model.js.map +1 -0
  788. package/dist/modules/notifications/models/notification-action.model.d.ts +36 -0
  789. package/dist/modules/notifications/models/notification-action.model.js +132 -0
  790. package/dist/modules/notifications/models/notification-action.model.js.map +1 -0
  791. package/dist/modules/notifications/models/notifications-response.model.d.ts +13 -0
  792. package/dist/modules/notifications/models/notifications-response.model.js +69 -0
  793. package/dist/modules/notifications/models/notifications-response.model.js.map +1 -0
  794. package/dist/modules/notifications/notifications.constants.d.ts +43 -0
  795. package/dist/modules/notifications/notifications.constants.js +57 -0
  796. package/dist/modules/notifications/notifications.constants.js.map +1 -0
  797. package/dist/modules/notifications/notifications.exceptions.d.ts +6 -0
  798. package/dist/modules/notifications/notifications.exceptions.js +18 -0
  799. package/dist/modules/notifications/notifications.exceptions.js.map +1 -0
  800. package/dist/modules/notifications/notifications.module.d.ts +11 -0
  801. package/dist/modules/notifications/notifications.module.js +112 -0
  802. package/dist/modules/notifications/notifications.module.js.map +1 -0
  803. package/dist/modules/notifications/notifications.openapi.d.ts +6 -0
  804. package/dist/modules/notifications/notifications.openapi.js +18 -0
  805. package/dist/modules/notifications/notifications.openapi.js.map +1 -0
  806. package/dist/modules/notifications/notifications.utils.d.ts +1 -0
  807. package/dist/modules/notifications/notifications.utils.js +28 -0
  808. package/dist/modules/notifications/notifications.utils.js.map +1 -0
  809. package/dist/modules/notifications/platforms/notification-channel.platform.d.ts +31 -0
  810. package/dist/modules/notifications/platforms/notification-channel.platform.js +108 -0
  811. package/dist/modules/notifications/platforms/notification-channel.platform.js.map +1 -0
  812. package/dist/modules/notifications/services/notification-channel-registry.service.d.ts +8 -0
  813. package/dist/modules/notifications/services/notification-channel-registry.service.js +36 -0
  814. package/dist/modules/notifications/services/notification-channel-registry.service.js.map +1 -0
  815. package/dist/modules/notifications/services/notification-dispatcher.service.d.ts +28 -0
  816. package/dist/modules/notifications/services/notification-dispatcher.service.js +173 -0
  817. package/dist/modules/notifications/services/notification-dispatcher.service.js.map +1 -0
  818. package/dist/modules/notifications/services/notification-input.validator.d.ts +29 -0
  819. package/dist/modules/notifications/services/notification-input.validator.js +148 -0
  820. package/dist/modules/notifications/services/notification-input.validator.js.map +1 -0
  821. package/dist/modules/notifications/services/notifications-retention.service.d.ts +19 -0
  822. package/dist/modules/notifications/services/notifications-retention.service.js +151 -0
  823. package/dist/modules/notifications/services/notifications-retention.service.js.map +1 -0
  824. package/dist/modules/notifications/services/notifications.service.d.ts +67 -0
  825. package/dist/modules/notifications/services/notifications.service.js +348 -0
  826. package/dist/modules/notifications/services/notifications.service.js.map +1 -0
  827. package/dist/modules/platform/services/platform.service.d.ts +7 -0
  828. package/dist/modules/platform/services/platform.service.js +53 -1
  829. package/dist/modules/platform/services/platform.service.js.map +1 -1
  830. package/dist/modules/remote-access/controllers/remote-access.controller.d.ts +20 -0
  831. package/dist/modules/remote-access/controllers/remote-access.controller.js +160 -0
  832. package/dist/modules/remote-access/controllers/remote-access.controller.js.map +1 -0
  833. package/dist/modules/remote-access/dto/update-config.dto.d.ts +8 -0
  834. package/dist/modules/remote-access/dto/update-config.dto.js +104 -0
  835. package/dist/modules/remote-access/dto/update-config.dto.js.map +1 -0
  836. package/dist/modules/remote-access/models/config.model.d.ts +9 -0
  837. package/dist/modules/remote-access/models/config.model.js +113 -0
  838. package/dist/modules/remote-access/models/config.model.js.map +1 -0
  839. package/dist/modules/remote-access/models/provider.model.d.ts +38 -0
  840. package/dist/modules/remote-access/models/provider.model.js +311 -0
  841. package/dist/modules/remote-access/models/provider.model.js.map +1 -0
  842. package/dist/modules/remote-access/models/status.model.d.ts +12 -0
  843. package/dist/modules/remote-access/models/status.model.js +83 -0
  844. package/dist/modules/remote-access/models/status.model.js.map +1 -0
  845. package/dist/modules/remote-access/models/urls.model.d.ts +11 -0
  846. package/dist/modules/remote-access/models/urls.model.js +84 -0
  847. package/dist/modules/remote-access/models/urls.model.js.map +1 -0
  848. package/dist/modules/remote-access/platforms/remote-access-provider.platform.d.ts +38 -0
  849. package/dist/modules/remote-access/platforms/remote-access-provider.platform.js +3 -0
  850. package/dist/modules/remote-access/platforms/remote-access-provider.platform.js.map +1 -0
  851. package/dist/modules/remote-access/remote-access.constants.d.ts +11 -0
  852. package/dist/modules/remote-access/remote-access.constants.js +16 -0
  853. package/dist/modules/remote-access/remote-access.constants.js.map +1 -0
  854. package/dist/modules/remote-access/remote-access.exceptions.d.ts +12 -0
  855. package/dist/modules/remote-access/remote-access.exceptions.js +32 -0
  856. package/dist/modules/remote-access/remote-access.exceptions.js.map +1 -0
  857. package/dist/modules/remote-access/remote-access.module.d.ts +11 -0
  858. package/dist/modules/remote-access/remote-access.module.js +108 -0
  859. package/dist/modules/remote-access/remote-access.module.js.map +1 -0
  860. package/dist/modules/remote-access/remote-access.openapi.d.ts +6 -0
  861. package/dist/modules/remote-access/remote-access.openapi.js +23 -0
  862. package/dist/modules/remote-access/remote-access.openapi.js.map +1 -0
  863. package/dist/modules/remote-access/services/remote-access-posture.service.d.ts +12 -0
  864. package/dist/modules/remote-access/services/remote-access-posture.service.js +56 -0
  865. package/dist/modules/remote-access/services/remote-access-posture.service.js.map +1 -0
  866. package/dist/modules/remote-access/services/remote-access-provider-registry.service.d.ts +7 -0
  867. package/dist/modules/remote-access/services/remote-access-provider-registry.service.js +33 -0
  868. package/dist/modules/remote-access/services/remote-access-provider-registry.service.js.map +1 -0
  869. package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.d.ts +29 -0
  870. package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js +141 -0
  871. package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js.map +1 -0
  872. package/dist/modules/remote-access/services/remote-access-status.service.d.ts +22 -0
  873. package/dist/modules/remote-access/services/remote-access-status.service.js +155 -0
  874. package/dist/modules/remote-access/services/remote-access-status.service.js.map +1 -0
  875. package/dist/modules/remote-access/services/remote-access-url.service.d.ts +41 -0
  876. package/dist/modules/remote-access/services/remote-access-url.service.js +205 -0
  877. package/dist/modules/remote-access/services/remote-access-url.service.js.map +1 -0
  878. package/dist/modules/remote-access/validators/is-remote-access-url.validator.d.ts +6 -0
  879. package/dist/modules/remote-access/validators/is-remote-access-url.validator.js +46 -0
  880. package/dist/modules/remote-access/validators/is-remote-access-url.validator.js.map +1 -0
  881. package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.d.ts +5 -0
  882. package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.js +26 -0
  883. package/dist/modules/remote-access/validators/is-trusted-proxy-entry.validator.js.map +1 -0
  884. package/dist/modules/scenes/controllers/scenes.controller.d.ts +7 -2
  885. package/dist/modules/scenes/controllers/scenes.controller.js +52 -2
  886. package/dist/modules/scenes/controllers/scenes.controller.js.map +1 -1
  887. package/dist/modules/scenes/dto/bulk-scenes.dto.d.ts +14 -0
  888. package/dist/modules/scenes/dto/bulk-scenes.dto.js +99 -0
  889. package/dist/modules/scenes/dto/bulk-scenes.dto.js.map +1 -0
  890. package/dist/modules/scenes/models/scenes-response.model.d.ts +4 -0
  891. package/dist/modules/scenes/models/scenes-response.model.js +16 -1
  892. package/dist/modules/scenes/models/scenes-response.model.js.map +1 -1
  893. package/dist/modules/scenes/scenes.module.js +3 -0
  894. package/dist/modules/scenes/scenes.module.js.map +1 -1
  895. package/dist/modules/scenes/scenes.openapi.d.ts +4 -2
  896. package/dist/modules/scenes/scenes.openapi.js +5 -0
  897. package/dist/modules/scenes/scenes.openapi.js.map +1 -1
  898. package/dist/modules/scenes/services/scene-executor.service.d.ts +4 -1
  899. package/dist/modules/scenes/services/scene-executor.service.js +28 -3
  900. package/dist/modules/scenes/services/scene-executor.service.js.map +1 -1
  901. package/dist/modules/scenes/services/scene-tool.service.d.ts +2 -3
  902. package/dist/modules/scenes/services/scene-tool.service.js +84 -25
  903. package/dist/modules/scenes/services/scene-tool.service.js.map +1 -1
  904. package/dist/modules/scenes/services/scenes-bulk.service.d.ts +9 -0
  905. package/dist/modules/scenes/services/scenes-bulk.service.js +42 -0
  906. package/dist/modules/scenes/services/scenes-bulk.service.js.map +1 -0
  907. package/dist/modules/scenes/services/scenes.service.d.ts +35 -0
  908. package/dist/modules/scenes/services/scenes.service.js +117 -0
  909. package/dist/modules/scenes/services/scenes.service.js.map +1 -1
  910. package/dist/modules/scenes/validators/scene-exists-constraint.validator.js +1 -1
  911. package/dist/modules/scenes/validators/scene-exists-constraint.validator.js.map +1 -1
  912. package/dist/modules/security/listeners/security-state.listener.d.ts +1 -0
  913. package/dist/modules/security/listeners/security-state.listener.js +9 -1
  914. package/dist/modules/security/listeners/security-state.listener.js.map +1 -1
  915. package/dist/modules/security/providers/security-sensors.provider.d.ts +12 -1
  916. package/dist/modules/security/providers/security-sensors.provider.js +132 -12
  917. package/dist/modules/security/providers/security-sensors.provider.js.map +1 -1
  918. package/dist/modules/security/security.openapi.d.ts +2 -1
  919. package/dist/modules/security/security.openapi.js +4 -0
  920. package/dist/modules/security/security.openapi.js.map +1 -1
  921. package/dist/modules/security/services/security-aggregator.service.d.ts +12 -2
  922. package/dist/modules/security/services/security-aggregator.service.js +33 -2
  923. package/dist/modules/security/services/security-aggregator.service.js.map +1 -1
  924. package/dist/modules/security/services/security-events.service.d.ts +7 -1
  925. package/dist/modules/security/services/security-events.service.js +38 -2
  926. package/dist/modules/security/services/security-events.service.js.map +1 -1
  927. package/dist/modules/security/services/security.service.d.ts +4 -1
  928. package/dist/modules/security/services/security.service.js +8 -0
  929. package/dist/modules/security/services/security.service.js.map +1 -1
  930. package/dist/modules/spaces/controllers/spaces.controller.d.ts +6 -2
  931. package/dist/modules/spaces/controllers/spaces.controller.js +43 -4
  932. package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
  933. package/dist/modules/spaces/dto/bulk-assign.dto.js +1 -0
  934. package/dist/modules/spaces/dto/bulk-assign.dto.js.map +1 -1
  935. package/dist/modules/spaces/dto/bulk-spaces.dto.d.ts +7 -0
  936. package/dist/modules/spaces/dto/bulk-spaces.dto.js +53 -0
  937. package/dist/modules/spaces/dto/bulk-spaces.dto.js.map +1 -0
  938. package/dist/modules/spaces/dto/update-config.dto.js +1 -1
  939. package/dist/modules/spaces/models/config.model.js +1 -1
  940. package/dist/modules/spaces/models/spaces-response.model.d.ts +4 -0
  941. package/dist/modules/spaces/models/spaces-response.model.js +16 -1
  942. package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
  943. package/dist/modules/spaces/services/spaces-bulk.service.d.ts +8 -0
  944. package/dist/modules/spaces/services/spaces-bulk.service.js +35 -0
  945. package/dist/modules/spaces/services/spaces-bulk.service.js.map +1 -0
  946. package/dist/modules/spaces/services/spaces.service.d.ts +51 -1
  947. package/dist/modules/spaces/services/spaces.service.js +326 -19
  948. package/dist/modules/spaces/services/spaces.service.js.map +1 -1
  949. package/dist/modules/spaces/spaces.module.js +3 -0
  950. package/dist/modules/spaces/spaces.module.js.map +1 -1
  951. package/dist/modules/spaces/spaces.openapi.d.ts +4 -2
  952. package/dist/modules/spaces/spaces.openapi.js +5 -0
  953. package/dist/modules/spaces/spaces.openapi.js.map +1 -1
  954. package/dist/modules/storage/interfaces/storage-plugin.interface.d.ts +1 -0
  955. package/dist/modules/storage/models/config.model.js +2 -0
  956. package/dist/modules/storage/models/config.model.js.map +1 -1
  957. package/dist/modules/storage/services/storage-fallback-monitor.service.d.ts +14 -0
  958. package/dist/modules/storage/services/storage-fallback-monitor.service.js +110 -0
  959. package/dist/modules/storage/services/storage-fallback-monitor.service.js.map +1 -0
  960. package/dist/modules/storage/services/storage.service.d.ts +15 -0
  961. package/dist/modules/storage/services/storage.service.js +112 -0
  962. package/dist/modules/storage/services/storage.service.js.map +1 -1
  963. package/dist/modules/storage/storage.module.js +2 -1
  964. package/dist/modules/storage/storage.module.js.map +1 -1
  965. package/dist/modules/storage/storage.types.d.ts +1 -0
  966. package/dist/modules/swagger/decorators/api-documentation.decorator.d.ts +1 -0
  967. package/dist/modules/swagger/decorators/api-documentation.decorator.js +19 -1
  968. package/dist/modules/swagger/decorators/api-documentation.decorator.js.map +1 -1
  969. package/dist/modules/system/commands/command.utils.d.ts +2 -0
  970. package/dist/modules/system/commands/command.utils.js +14 -0
  971. package/dist/modules/system/commands/command.utils.js.map +1 -1
  972. package/dist/modules/system/commands/update-check.command.js +2 -3
  973. package/dist/modules/system/commands/update-check.command.js.map +1 -1
  974. package/dist/modules/system/commands/update-panel.command.js +2 -2
  975. package/dist/modules/system/commands/update-panel.command.js.map +1 -1
  976. package/dist/modules/system/commands/update-server.command.d.ts +1 -0
  977. package/dist/modules/system/commands/update-server.command.js +36 -11
  978. package/dist/modules/system/commands/update-server.command.js.map +1 -1
  979. package/dist/modules/system/dto/update-config.dto.d.ts +2 -1
  980. package/dist/modules/system/dto/update-config.dto.js +15 -0
  981. package/dist/modules/system/dto/update-config.dto.js.map +1 -1
  982. package/dist/modules/system/models/config.model.d.ts +2 -1
  983. package/dist/modules/system/models/config.model.js +14 -0
  984. package/dist/modules/system/models/config.model.js.map +1 -1
  985. package/dist/modules/system/privileged-worker.module.d.ts +2 -0
  986. package/dist/modules/system/privileged-worker.module.js +24 -0
  987. package/dist/modules/system/privileged-worker.module.js.map +1 -0
  988. package/dist/modules/system/services/privileged-worker.service.d.ts +35 -0
  989. package/dist/modules/system/services/privileged-worker.service.js +200 -0
  990. package/dist/modules/system/services/privileged-worker.service.js.map +1 -0
  991. package/dist/modules/system/services/system-command.service.d.ts +3 -3
  992. package/dist/modules/system/services/system-command.service.js +5 -5
  993. package/dist/modules/system/services/system-command.service.js.map +1 -1
  994. package/dist/modules/system/services/system-throttle-monitor.service.d.ts +11 -0
  995. package/dist/modules/system/services/system-throttle-monitor.service.js +107 -0
  996. package/dist/modules/system/services/system-throttle-monitor.service.js.map +1 -0
  997. package/dist/modules/system/services/update-executor.service.d.ts +10 -5
  998. package/dist/modules/system/services/update-executor.service.js +131 -175
  999. package/dist/modules/system/services/update-executor.service.js.map +1 -1
  1000. package/dist/modules/system/services/update.service.d.ts +16 -1
  1001. package/dist/modules/system/services/update.service.js +132 -37
  1002. package/dist/modules/system/services/update.service.js.map +1 -1
  1003. package/dist/modules/system/system.constants.d.ts +6 -0
  1004. package/dist/modules/system/system.constants.js +8 -1
  1005. package/dist/modules/system/system.constants.js.map +1 -1
  1006. package/dist/modules/system/system.exceptions.d.ts +3 -0
  1007. package/dist/modules/system/system.exceptions.js +8 -1
  1008. package/dist/modules/system/system.exceptions.js.map +1 -1
  1009. package/dist/modules/system/system.module.js +2 -0
  1010. package/dist/modules/system/system.module.js.map +1 -1
  1011. package/dist/modules/tools/platforms/tool-provider.platform.d.ts +48 -1
  1012. package/dist/modules/tools/platforms/tool-provider.platform.js +39 -0
  1013. package/dist/modules/tools/platforms/tool-provider.platform.js.map +1 -1
  1014. package/dist/modules/tools/services/base-tool-provider.service.d.ts +3 -3
  1015. package/dist/modules/tools/services/base-tool-provider.service.js +43 -10
  1016. package/dist/modules/tools/services/base-tool-provider.service.js.map +1 -1
  1017. package/dist/modules/tools/services/short-id-mapping.service.d.ts +24 -0
  1018. package/dist/modules/tools/services/short-id-mapping.service.js +119 -1
  1019. package/dist/modules/tools/services/short-id-mapping.service.js.map +1 -1
  1020. package/dist/modules/tools/services/tool-provider-registry.service.d.ts +7 -3
  1021. package/dist/modules/tools/services/tool-provider-registry.service.js +125 -15
  1022. package/dist/modules/tools/services/tool-provider-registry.service.js.map +1 -1
  1023. package/dist/modules/tools/tools.constants.d.ts +3 -0
  1024. package/dist/modules/tools/tools.constants.js +4 -1
  1025. package/dist/modules/tools/tools.constants.js.map +1 -1
  1026. package/dist/modules/users/controllers/users.controller.d.ts +6 -2
  1027. package/dist/modules/users/controllers/users.controller.js +33 -2
  1028. package/dist/modules/users/controllers/users.controller.js.map +1 -1
  1029. package/dist/modules/users/dto/bulk-users.dto.d.ts +7 -0
  1030. package/dist/modules/users/dto/bulk-users.dto.js +53 -0
  1031. package/dist/modules/users/dto/bulk-users.dto.js.map +1 -0
  1032. package/dist/modules/users/models/users-response.model.d.ts +4 -0
  1033. package/dist/modules/users/models/users-response.model.js +16 -1
  1034. package/dist/modules/users/models/users-response.model.js.map +1 -1
  1035. package/dist/modules/users/services/user-lifecycle-mutation-registry.service.d.ts +28 -0
  1036. package/dist/modules/users/services/user-lifecycle-mutation-registry.service.js +79 -0
  1037. package/dist/modules/users/services/user-lifecycle-mutation-registry.service.js.map +1 -0
  1038. package/dist/modules/users/services/users-bulk.service.d.ts +8 -0
  1039. package/dist/modules/users/services/users-bulk.service.js +44 -0
  1040. package/dist/modules/users/services/users-bulk.service.js.map +1 -0
  1041. package/dist/modules/users/services/users.service.d.ts +3 -1
  1042. package/dist/modules/users/services/users.service.js +12 -5
  1043. package/dist/modules/users/services/users.service.js.map +1 -1
  1044. package/dist/modules/users/users.exceptions.d.ts +3 -0
  1045. package/dist/modules/users/users.exceptions.js +8 -1
  1046. package/dist/modules/users/users.exceptions.js.map +1 -1
  1047. package/dist/modules/users/users.module.js +5 -1
  1048. package/dist/modules/users/users.module.js.map +1 -1
  1049. package/dist/modules/users/users.openapi.d.ts +3 -2
  1050. package/dist/modules/users/users.openapi.js +5 -0
  1051. package/dist/modules/users/users.openapi.js.map +1 -1
  1052. package/dist/modules/users/validators/user-exists-constraint.validator.js +1 -1
  1053. package/dist/modules/users/validators/user-exists-constraint.validator.js.map +1 -1
  1054. package/dist/modules/weather/controllers/locations.controller.d.ts +6 -2
  1055. package/dist/modules/weather/controllers/locations.controller.js +39 -3
  1056. package/dist/modules/weather/controllers/locations.controller.js.map +1 -1
  1057. package/dist/modules/weather/dto/bulk-locations.dto.d.ts +7 -0
  1058. package/dist/modules/weather/dto/bulk-locations.dto.js +53 -0
  1059. package/dist/modules/weather/dto/bulk-locations.dto.js.map +1 -0
  1060. package/dist/modules/weather/models/locations-response.model.d.ts +4 -0
  1061. package/dist/modules/weather/models/locations-response.model.js +16 -1
  1062. package/dist/modules/weather/models/locations-response.model.js.map +1 -1
  1063. package/dist/modules/weather/services/locations-bulk.service.d.ts +8 -0
  1064. package/dist/modules/weather/services/locations-bulk.service.js +35 -0
  1065. package/dist/modules/weather/services/locations-bulk.service.js.map +1 -0
  1066. package/dist/modules/weather/services/weather.service.d.ts +13 -3
  1067. package/dist/modules/weather/services/weather.service.js +57 -4
  1068. package/dist/modules/weather/services/weather.service.js.map +1 -1
  1069. package/dist/modules/weather/weather.module.d.ts +5 -1
  1070. package/dist/modules/weather/weather.module.js +9 -1
  1071. package/dist/modules/weather/weather.module.js.map +1 -1
  1072. package/dist/modules/weather/weather.openapi.d.ts +4 -2
  1073. package/dist/modules/weather/weather.openapi.js +5 -0
  1074. package/dist/modules/weather/weather.openapi.js.map +1 -1
  1075. package/dist/modules/websocket/gateway/websocket.gateway.d.ts +7 -1
  1076. package/dist/modules/websocket/gateway/websocket.gateway.js +62 -10
  1077. package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
  1078. package/dist/modules/websocket/services/ws-auth.service.js +7 -0
  1079. package/dist/modules/websocket/services/ws-auth.service.js.map +1 -1
  1080. package/dist/modules/websocket/websocket.constants.d.ts +1 -0
  1081. package/dist/modules/websocket/websocket.constants.js +2 -1
  1082. package/dist/modules/websocket/websocket.constants.js.map +1 -1
  1083. package/dist/modules/websocket/websocket.module.js +2 -0
  1084. package/dist/modules/websocket/websocket.module.js.map +1 -1
  1085. package/dist/plugins/buddy-claude/buddy-claude.plugin.js +7 -0
  1086. package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
  1087. package/dist/plugins/buddy-claude/dto/update-config.dto.js +2 -3
  1088. package/dist/plugins/buddy-claude/dto/update-config.dto.js.map +1 -1
  1089. package/dist/plugins/buddy-claude/models/config.model.d.ts +1 -0
  1090. package/dist/plugins/buddy-claude/models/config.model.js +12 -1
  1091. package/dist/plugins/buddy-claude/models/config.model.js.map +1 -1
  1092. package/dist/plugins/buddy-claude/platforms/claude.provider.d.ts +3 -2
  1093. package/dist/plugins/buddy-claude/platforms/claude.provider.js +3 -0
  1094. package/dist/plugins/buddy-claude/platforms/claude.provider.js.map +1 -1
  1095. package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +7 -0
  1096. package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
  1097. package/dist/plugins/buddy-claude-setup-token/dto/update-config.dto.js +2 -1
  1098. package/dist/plugins/buddy-claude-setup-token/dto/update-config.dto.js.map +1 -1
  1099. package/dist/plugins/buddy-claude-setup-token/models/config.model.d.ts +1 -0
  1100. package/dist/plugins/buddy-claude-setup-token/models/config.model.js +12 -1
  1101. package/dist/plugins/buddy-claude-setup-token/models/config.model.js.map +1 -1
  1102. package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.d.ts +3 -2
  1103. package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.js +3 -0
  1104. package/dist/plugins/buddy-claude-setup-token/platforms/claude-setup-token.provider.js.map +1 -1
  1105. package/dist/plugins/buddy-discord/buddy-discord.plugin.d.ts +3 -3
  1106. package/dist/plugins/buddy-discord/buddy-discord.plugin.js +12 -5
  1107. package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
  1108. package/dist/plugins/buddy-discord/dto/update-config.dto.js +2 -1
  1109. package/dist/plugins/buddy-discord/dto/update-config.dto.js.map +1 -1
  1110. package/dist/plugins/buddy-discord/models/config.model.d.ts +1 -0
  1111. package/dist/plugins/buddy-discord/models/config.model.js +12 -1
  1112. package/dist/plugins/buddy-discord/models/config.model.js.map +1 -1
  1113. package/dist/plugins/buddy-discord/platforms/discord-bot.provider.d.ts +7 -3
  1114. package/dist/plugins/buddy-discord/platforms/discord-bot.provider.js +4 -1
  1115. package/dist/plugins/buddy-discord/platforms/discord-bot.provider.js.map +1 -1
  1116. package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +7 -0
  1117. package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
  1118. package/dist/plugins/buddy-elevenlabs/dto/update-config.dto.js +2 -3
  1119. package/dist/plugins/buddy-elevenlabs/dto/update-config.dto.js.map +1 -1
  1120. package/dist/plugins/buddy-elevenlabs/models/config.model.d.ts +1 -0
  1121. package/dist/plugins/buddy-elevenlabs/models/config.model.js +12 -1
  1122. package/dist/plugins/buddy-elevenlabs/models/config.model.js.map +1 -1
  1123. package/dist/plugins/buddy-ollama/platforms/ollama.provider.d.ts +5 -3
  1124. package/dist/plugins/buddy-ollama/platforms/ollama.provider.js +55 -24
  1125. package/dist/plugins/buddy-ollama/platforms/ollama.provider.js.map +1 -1
  1126. package/dist/plugins/buddy-openai/buddy-openai.plugin.js +7 -0
  1127. package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
  1128. package/dist/plugins/buddy-openai/dto/update-config.dto.js +2 -3
  1129. package/dist/plugins/buddy-openai/dto/update-config.dto.js.map +1 -1
  1130. package/dist/plugins/buddy-openai/models/config.model.d.ts +1 -0
  1131. package/dist/plugins/buddy-openai/models/config.model.js +12 -1
  1132. package/dist/plugins/buddy-openai/models/config.model.js.map +1 -1
  1133. package/dist/plugins/buddy-openai/platforms/openai.provider.d.ts +3 -2
  1134. package/dist/plugins/buddy-openai/platforms/openai.provider.js +3 -0
  1135. package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
  1136. package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +17 -0
  1137. package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
  1138. package/dist/plugins/buddy-openai-codex/dto/update-config.dto.js +4 -3
  1139. package/dist/plugins/buddy-openai-codex/dto/update-config.dto.js.map +1 -1
  1140. package/dist/plugins/buddy-openai-codex/models/config.model.d.ts +3 -0
  1141. package/dist/plugins/buddy-openai-codex/models/config.model.js +36 -3
  1142. package/dist/plugins/buddy-openai-codex/models/config.model.js.map +1 -1
  1143. package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.d.ts +5 -3
  1144. package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.js +429 -48
  1145. package/dist/plugins/buddy-openai-codex/platforms/openai-codex.provider.js.map +1 -1
  1146. package/dist/plugins/buddy-telegram/buddy-telegram.plugin.d.ts +3 -3
  1147. package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +12 -5
  1148. package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
  1149. package/dist/plugins/buddy-telegram/dto/update-config.dto.js +2 -1
  1150. package/dist/plugins/buddy-telegram/dto/update-config.dto.js.map +1 -1
  1151. package/dist/plugins/buddy-telegram/models/config.model.d.ts +1 -0
  1152. package/dist/plugins/buddy-telegram/models/config.model.js +12 -1
  1153. package/dist/plugins/buddy-telegram/models/config.model.js.map +1 -1
  1154. package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.d.ts +7 -3
  1155. package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.js +4 -1
  1156. package/dist/plugins/buddy-telegram/platforms/telegram-bot.provider.js.map +1 -1
  1157. package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +7 -0
  1158. package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
  1159. package/dist/plugins/buddy-voiceai/dto/update-config.dto.js +2 -3
  1160. package/dist/plugins/buddy-voiceai/dto/update-config.dto.js.map +1 -1
  1161. package/dist/plugins/buddy-voiceai/models/config.model.d.ts +1 -0
  1162. package/dist/plugins/buddy-voiceai/models/config.model.js +12 -1
  1163. package/dist/plugins/buddy-voiceai/models/config.model.js.map +1 -1
  1164. package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.d.ts +3 -3
  1165. package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +5 -5
  1166. package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
  1167. package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +10 -6
  1168. package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +9 -6
  1169. package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
  1170. package/dist/plugins/data-sources-device-channel/dto/create-data-source.dto.js +2 -0
  1171. package/dist/plugins/data-sources-device-channel/dto/create-data-source.dto.js.map +1 -1
  1172. package/dist/plugins/data-sources-device-channel/dto/update-data-source.dto.js +2 -0
  1173. package/dist/plugins/data-sources-device-channel/dto/update-data-source.dto.js.map +1 -1
  1174. package/dist/plugins/data-sources-device-channel/validators/device-channel-exists-constraint.validator.js +1 -1
  1175. package/dist/plugins/data-sources-device-channel/validators/device-channel-exists-constraint.validator.js.map +1 -1
  1176. package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.d.ts +4 -2
  1177. package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.js +17 -5
  1178. package/dist/plugins/devices-home-assistant/controllers/home-assistant-discovery.controller.js.map +1 -1
  1179. package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.d.ts +12 -0
  1180. package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.js +147 -0
  1181. package/dist/plugins/devices-home-assistant/controllers/home-assistant-wizard.controller.js.map +1 -0
  1182. package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.d.ts +4 -2
  1183. package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.js +10 -0
  1184. package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.js.map +1 -1
  1185. package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.d.ts +5 -3
  1186. package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +19 -5
  1187. package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
  1188. package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.d.ts +6 -0
  1189. package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.js +49 -0
  1190. package/dist/plugins/devices-home-assistant/dto/wizard-adopt.dto.js.map +1 -0
  1191. package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
  1192. package/dist/plugins/devices-home-assistant/models/config.model.js +12 -1
  1193. package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
  1194. package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.d.ts +1 -0
  1195. package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.js +12 -0
  1196. package/dist/plugins/devices-home-assistant/models/helper-mapping-preview.model.js.map +1 -1
  1197. package/dist/plugins/devices-home-assistant/models/wizard.model.d.ts +39 -0
  1198. package/dist/plugins/devices-home-assistant/models/wizard.model.js +221 -0
  1199. package/dist/plugins/devices-home-assistant/models/wizard.model.js.map +1 -0
  1200. package/dist/plugins/devices-home-assistant/services/device-adoption.service.d.ts +2 -1
  1201. package/dist/plugins/devices-home-assistant/services/device-adoption.service.js +5 -4
  1202. package/dist/plugins/devices-home-assistant/services/device-adoption.service.js.map +1 -1
  1203. package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.d.ts +15 -7
  1204. package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +69 -56
  1205. package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
  1206. package/dist/plugins/devices-home-assistant/services/helper-adoption.service.d.ts +7 -2
  1207. package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js +33 -7
  1208. package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js.map +1 -1
  1209. package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.d.ts +9 -0
  1210. package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.js +23 -0
  1211. package/dist/plugins/devices-home-assistant/services/helper-mapping-preview.service.js.map +1 -1
  1212. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +6 -1
  1213. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +76 -11
  1214. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
  1215. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +18 -5
  1216. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +94 -7
  1217. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
  1218. package/dist/plugins/devices-home-assistant/services/mapping-preview.service.d.ts +10 -0
  1219. package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js +28 -0
  1220. package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js.map +1 -1
  1221. package/dist/plugins/devices-home-assistant/services/wizard.service.d.ts +34 -0
  1222. package/dist/plugins/devices-home-assistant/services/wizard.service.js +372 -0
  1223. package/dist/plugins/devices-home-assistant/services/wizard.service.js.map +1 -0
  1224. package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.d.ts +3 -0
  1225. package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.js +44 -0
  1226. package/dist/plugins/devices-home-assistant/utils/helper-structure.utils.js.map +1 -0
  1227. package/dist/plugins/devices-homekit/controllers/homekit-bridge.controller.d.ts +14 -0
  1228. package/dist/plugins/devices-homekit/controllers/homekit-bridge.controller.js +125 -0
  1229. package/dist/plugins/devices-homekit/controllers/homekit-bridge.controller.js.map +1 -0
  1230. package/dist/plugins/devices-homekit/devices-homekit.constants.d.ts +16 -0
  1231. package/dist/plugins/devices-homekit/devices-homekit.constants.js +57 -0
  1232. package/dist/plugins/devices-homekit/devices-homekit.constants.js.map +1 -0
  1233. package/dist/plugins/devices-homekit/devices-homekit.exceptions.d.ts +12 -0
  1234. package/dist/plugins/devices-homekit/devices-homekit.exceptions.js +32 -0
  1235. package/dist/plugins/devices-homekit/devices-homekit.exceptions.js.map +1 -0
  1236. package/dist/plugins/devices-homekit/devices-homekit.openapi.d.ts +6 -0
  1237. package/dist/plugins/devices-homekit/devices-homekit.openapi.js +19 -0
  1238. package/dist/plugins/devices-homekit/devices-homekit.openapi.js.map +1 -0
  1239. package/dist/plugins/devices-homekit/devices-homekit.plugin.d.ts +24 -0
  1240. package/dist/plugins/devices-homekit/devices-homekit.plugin.js +183 -0
  1241. package/dist/plugins/devices-homekit/devices-homekit.plugin.js.map +1 -0
  1242. package/dist/plugins/devices-homekit/dto/bridge-map.dto.d.ts +6 -0
  1243. package/dist/plugins/devices-homekit/dto/bridge-map.dto.js +50 -0
  1244. package/dist/plugins/devices-homekit/dto/bridge-map.dto.js.map +1 -0
  1245. package/dist/plugins/devices-homekit/dto/update-config.dto.d.ts +11 -0
  1246. package/dist/plugins/devices-homekit/dto/update-config.dto.js +138 -0
  1247. package/dist/plugins/devices-homekit/dto/update-config.dto.js.map +1 -0
  1248. package/dist/plugins/devices-homekit/listeners/homekit-event.listener.d.ts +8 -0
  1249. package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js +72 -0
  1250. package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js.map +1 -0
  1251. package/dist/plugins/devices-homekit/mappers/base.mapper.d.ts +15 -0
  1252. package/dist/plugins/devices-homekit/mappers/base.mapper.js +74 -0
  1253. package/dist/plugins/devices-homekit/mappers/base.mapper.js.map +1 -0
  1254. package/dist/plugins/devices-homekit/mappers/battery.mapper.d.ts +6 -0
  1255. package/dist/plugins/devices-homekit/mappers/battery.mapper.js +130 -0
  1256. package/dist/plugins/devices-homekit/mappers/battery.mapper.js.map +1 -0
  1257. package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.d.ts +28 -0
  1258. package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.js +3 -0
  1259. package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.js.map +1 -0
  1260. package/dist/plugins/devices-homekit/mappers/lightbulb.mapper.d.ts +9 -0
  1261. package/dist/plugins/devices-homekit/mappers/lightbulb.mapper.js +115 -0
  1262. package/dist/plugins/devices-homekit/mappers/lightbulb.mapper.js.map +1 -0
  1263. package/dist/plugins/devices-homekit/mappers/lock.mapper.d.ts +10 -0
  1264. package/dist/plugins/devices-homekit/mappers/lock.mapper.js +59 -0
  1265. package/dist/plugins/devices-homekit/mappers/lock.mapper.js.map +1 -0
  1266. package/dist/plugins/devices-homekit/mappers/outlet.mapper.d.ts +9 -0
  1267. package/dist/plugins/devices-homekit/mappers/outlet.mapper.js +44 -0
  1268. package/dist/plugins/devices-homekit/mappers/outlet.mapper.js.map +1 -0
  1269. package/dist/plugins/devices-homekit/mappers/sensor.mapper.d.ts +10 -0
  1270. package/dist/plugins/devices-homekit/mappers/sensor.mapper.js +168 -0
  1271. package/dist/plugins/devices-homekit/mappers/sensor.mapper.js.map +1 -0
  1272. package/dist/plugins/devices-homekit/mappers/switch.mapper.d.ts +9 -0
  1273. package/dist/plugins/devices-homekit/mappers/switch.mapper.js +35 -0
  1274. package/dist/plugins/devices-homekit/mappers/switch.mapper.js.map +1 -0
  1275. package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.d.ts +43 -0
  1276. package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js +430 -0
  1277. package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js.map +1 -0
  1278. package/dist/plugins/devices-homekit/mappers/thermostat.mapper.d.ts +11 -0
  1279. package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js +97 -0
  1280. package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js.map +1 -0
  1281. package/dist/plugins/devices-homekit/mappers/window-covering.mapper.d.ts +10 -0
  1282. package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js +94 -0
  1283. package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js.map +1 -0
  1284. package/dist/plugins/devices-homekit/models/bridge-candidate.model.d.ts +15 -0
  1285. package/dist/plugins/devices-homekit/models/bridge-candidate.model.js +150 -0
  1286. package/dist/plugins/devices-homekit/models/bridge-candidate.model.js.map +1 -0
  1287. package/dist/plugins/devices-homekit/models/bridge-status.model.d.ts +16 -0
  1288. package/dist/plugins/devices-homekit/models/bridge-status.model.js +156 -0
  1289. package/dist/plugins/devices-homekit/models/bridge-status.model.js.map +1 -0
  1290. package/dist/plugins/devices-homekit/models/config.model.d.ts +12 -0
  1291. package/dist/plugins/devices-homekit/models/config.model.js +134 -0
  1292. package/dist/plugins/devices-homekit/models/config.model.js.map +1 -0
  1293. package/dist/plugins/devices-homekit/services/homekit-actions.service.d.ts +14 -0
  1294. package/dist/plugins/devices-homekit/services/homekit-actions.service.js +92 -0
  1295. package/dist/plugins/devices-homekit/services/homekit-actions.service.js.map +1 -0
  1296. package/dist/plugins/devices-homekit/services/homekit-bridge.service.d.ts +43 -0
  1297. package/dist/plugins/devices-homekit/services/homekit-bridge.service.js +497 -0
  1298. package/dist/plugins/devices-homekit/services/homekit-bridge.service.js.map +1 -0
  1299. package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.d.ts +11 -0
  1300. package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js +68 -0
  1301. package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js.map +1 -0
  1302. package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.d.ts +34 -0
  1303. package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js +179 -0
  1304. package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js.map +1 -0
  1305. package/dist/plugins/devices-homekit/services/homekit-wizard.service.d.ts +15 -0
  1306. package/dist/plugins/devices-homekit/services/homekit-wizard.service.js +75 -0
  1307. package/dist/plugins/devices-homekit/services/homekit-wizard.service.js.map +1 -0
  1308. package/dist/plugins/devices-homekit/validators/is-not-forbidden-homekit-pin.validator.d.ts +2 -0
  1309. package/dist/plugins/devices-homekit/validators/is-not-forbidden-homekit-pin.validator.js +30 -0
  1310. package/dist/plugins/devices-homekit/validators/is-not-forbidden-homekit-pin.validator.js.map +1 -0
  1311. package/dist/plugins/devices-homey/connectors/homey-connector.factory.d.ts +9 -0
  1312. package/dist/plugins/devices-homey/connectors/homey-connector.factory.js +3 -0
  1313. package/dist/plugins/devices-homey/connectors/homey-connector.factory.js.map +1 -0
  1314. package/dist/plugins/devices-homey/connectors/homey-connector.interface.d.ts +14 -0
  1315. package/dist/plugins/devices-homey/connectors/homey-connector.interface.js +3 -0
  1316. package/dist/plugins/devices-homey/connectors/homey-connector.interface.js.map +1 -0
  1317. package/dist/plugins/devices-homey/connectors/homey-connector.types.d.ts +3 -0
  1318. package/dist/plugins/devices-homey/connectors/homey-connector.types.js +3 -0
  1319. package/dist/plugins/devices-homey/connectors/homey-connector.types.js.map +1 -0
  1320. package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.d.ts +8 -0
  1321. package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.js +36 -0
  1322. package/dist/plugins/devices-homey/connectors/homey-local-connector.factory.js.map +1 -0
  1323. package/dist/plugins/devices-homey/connectors/homey-local.connector.d.ts +36 -0
  1324. package/dist/plugins/devices-homey/connectors/homey-local.connector.js +266 -0
  1325. package/dist/plugins/devices-homey/connectors/homey-local.connector.js.map +1 -0
  1326. package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.d.ts +3 -0
  1327. package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.js +63 -0
  1328. package/dist/plugins/devices-homey/connectors/homey-local.error-mapper.js.map +1 -0
  1329. package/dist/plugins/devices-homey/connectors/homey-local.transformer.d.ts +10 -0
  1330. package/dist/plugins/devices-homey/connectors/homey-local.transformer.js +264 -0
  1331. package/dist/plugins/devices-homey/connectors/homey-local.transformer.js.map +1 -0
  1332. package/dist/plugins/devices-homey/connectors/homey-local.transport.d.ts +6 -0
  1333. package/dist/plugins/devices-homey/connectors/homey-local.transport.js +3 -0
  1334. package/dist/plugins/devices-homey/connectors/homey-local.transport.js.map +1 -0
  1335. package/dist/plugins/devices-homey/connectors/homey-sdk.client.d.ts +59 -0
  1336. package/dist/plugins/devices-homey/connectors/homey-sdk.client.js +25 -0
  1337. package/dist/plugins/devices-homey/connectors/homey-sdk.client.js.map +1 -0
  1338. package/dist/plugins/devices-homey/connectors/homey-sdk.transport.d.ts +45 -0
  1339. package/dist/plugins/devices-homey/connectors/homey-sdk.transport.js +384 -0
  1340. package/dist/plugins/devices-homey/connectors/homey-sdk.transport.js.map +1 -0
  1341. package/dist/plugins/devices-homey/connectors/homey-transport.interface.d.ts +18 -0
  1342. package/dist/plugins/devices-homey/connectors/homey-transport.interface.js +3 -0
  1343. package/dist/plugins/devices-homey/connectors/homey-transport.interface.js.map +1 -0
  1344. package/dist/plugins/devices-homey/controllers/homey-adoption.controller.d.ts +9 -0
  1345. package/dist/plugins/devices-homey/controllers/homey-adoption.controller.js +86 -0
  1346. package/dist/plugins/devices-homey/controllers/homey-adoption.controller.js.map +1 -0
  1347. package/dist/plugins/devices-homey/controllers/homey-devices.controller.d.ts +9 -0
  1348. package/dist/plugins/devices-homey/controllers/homey-devices.controller.js +104 -0
  1349. package/dist/plugins/devices-homey/controllers/homey-devices.controller.js.map +1 -0
  1350. package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.d.ts +8 -0
  1351. package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.js +74 -0
  1352. package/dist/plugins/devices-homey/controllers/homey-mapping-preview.controller.js.map +1 -0
  1353. package/dist/plugins/devices-homey/controllers/homey-status.controller.d.ts +7 -0
  1354. package/dist/plugins/devices-homey/controllers/homey-status.controller.js +52 -0
  1355. package/dist/plugins/devices-homey/controllers/homey-status.controller.js.map +1 -0
  1356. package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.d.ts +8 -0
  1357. package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.js +60 -0
  1358. package/dist/plugins/devices-homey/controllers/homey-test-connection.controller.js.map +1 -0
  1359. package/dist/plugins/devices-homey/devices-homey.constants.d.ts +29 -0
  1360. package/dist/plugins/devices-homey/devices-homey.constants.js +34 -0
  1361. package/dist/plugins/devices-homey/devices-homey.constants.js.map +1 -0
  1362. package/dist/plugins/devices-homey/devices-homey.openapi.d.ts +17 -0
  1363. package/dist/plugins/devices-homey/devices-homey.openapi.js +67 -0
  1364. package/dist/plugins/devices-homey/devices-homey.openapi.js.map +1 -0
  1365. package/dist/plugins/devices-homey/devices-homey.plugin.d.ts +30 -0
  1366. package/dist/plugins/devices-homey/devices-homey.plugin.js +288 -0
  1367. package/dist/plugins/devices-homey/devices-homey.plugin.js.map +1 -0
  1368. package/dist/plugins/devices-homey/dto/adoption.dto.d.ts +9 -0
  1369. package/dist/plugins/devices-homey/dto/adoption.dto.js +79 -0
  1370. package/dist/plugins/devices-homey/dto/adoption.dto.js.map +1 -0
  1371. package/dist/plugins/devices-homey/dto/create-channel-property.dto.d.ts +3 -0
  1372. package/dist/plugins/devices-homey/dto/create-channel-property.dto.js +18 -0
  1373. package/dist/plugins/devices-homey/dto/create-channel-property.dto.js.map +1 -0
  1374. package/dist/plugins/devices-homey/dto/create-channel.dto.d.ts +7 -0
  1375. package/dist/plugins/devices-homey/dto/create-channel.dto.js +45 -0
  1376. package/dist/plugins/devices-homey/dto/create-channel.dto.js.map +1 -0
  1377. package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.d.ts +7 -0
  1378. package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.js +59 -0
  1379. package/dist/plugins/devices-homey/dto/create-device-channel-property.dto.js.map +1 -0
  1380. package/dist/plugins/devices-homey/dto/create-device-channel.dto.d.ts +7 -0
  1381. package/dist/plugins/devices-homey/dto/create-device-channel.dto.js +45 -0
  1382. package/dist/plugins/devices-homey/dto/create-device-channel.dto.js.map +1 -0
  1383. package/dist/plugins/devices-homey/dto/create-device.dto.d.ts +7 -0
  1384. package/dist/plugins/devices-homey/dto/create-device.dto.js +45 -0
  1385. package/dist/plugins/devices-homey/dto/create-device.dto.js.map +1 -0
  1386. package/dist/plugins/devices-homey/dto/list-homey-devices.dto.d.ts +24 -0
  1387. package/dist/plugins/devices-homey/dto/list-homey-devices.dto.js +89 -0
  1388. package/dist/plugins/devices-homey/dto/list-homey-devices.dto.js.map +1 -0
  1389. package/dist/plugins/devices-homey/dto/mapping-preview.dto.d.ts +5 -0
  1390. package/dist/plugins/devices-homey/dto/mapping-preview.dto.js +46 -0
  1391. package/dist/plugins/devices-homey/dto/mapping-preview.dto.js.map +1 -0
  1392. package/dist/plugins/devices-homey/dto/test-connection.dto.d.ts +18 -0
  1393. package/dist/plugins/devices-homey/dto/test-connection.dto.js +146 -0
  1394. package/dist/plugins/devices-homey/dto/test-connection.dto.js.map +1 -0
  1395. package/dist/plugins/devices-homey/dto/update-channel-property.dto.d.ts +9 -0
  1396. package/dist/plugins/devices-homey/dto/update-channel-property.dto.js +77 -0
  1397. package/dist/plugins/devices-homey/dto/update-channel-property.dto.js.map +1 -0
  1398. package/dist/plugins/devices-homey/dto/update-channel.dto.d.ts +7 -0
  1399. package/dist/plugins/devices-homey/dto/update-channel.dto.js +51 -0
  1400. package/dist/plugins/devices-homey/dto/update-channel.dto.js.map +1 -0
  1401. package/dist/plugins/devices-homey/dto/update-config.dto.d.ts +9 -0
  1402. package/dist/plugins/devices-homey/dto/update-config.dto.js +103 -0
  1403. package/dist/plugins/devices-homey/dto/update-config.dto.js.map +1 -0
  1404. package/dist/plugins/devices-homey/dto/update-device.dto.d.ts +5 -0
  1405. package/dist/plugins/devices-homey/dto/update-device.dto.js +35 -0
  1406. package/dist/plugins/devices-homey/dto/update-device.dto.js.map +1 -0
  1407. package/dist/plugins/devices-homey/entities/devices-homey.entity.d.ts +15 -0
  1408. package/dist/plugins/devices-homey/entities/devices-homey.entity.js +121 -0
  1409. package/dist/plugins/devices-homey/entities/devices-homey.entity.js.map +1 -0
  1410. package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.d.ts +5 -0
  1411. package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.js +32 -0
  1412. package/dist/plugins/devices-homey/entities/homey-adoption-lock.entity.js.map +1 -0
  1413. package/dist/plugins/devices-homey/errors/homey-connector.error.d.ts +25 -0
  1414. package/dist/plugins/devices-homey/errors/homey-connector.error.js +39 -0
  1415. package/dist/plugins/devices-homey/errors/homey-connector.error.js.map +1 -0
  1416. package/dist/plugins/devices-homey/errors/homey-inventory.error.d.ts +6 -0
  1417. package/dist/plugins/devices-homey/errors/homey-inventory.error.js +18 -0
  1418. package/dist/plugins/devices-homey/errors/homey-inventory.error.js.map +1 -0
  1419. package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.d.ts +6 -0
  1420. package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.js +18 -0
  1421. package/dist/plugins/devices-homey/errors/homey-mapping-preview.error.js.map +1 -0
  1422. package/dist/plugins/devices-homey/index.d.ts +26 -0
  1423. package/dist/plugins/devices-homey/index.js +43 -0
  1424. package/dist/plugins/devices-homey/index.js.map +1 -0
  1425. package/dist/plugins/devices-homey/mappings/definitions/channels.yaml +214 -0
  1426. package/dist/plugins/devices-homey/mappings/definitions/devices.yaml +75 -0
  1427. package/dist/plugins/devices-homey/mappings/definitions/properties.yaml +551 -0
  1428. package/dist/plugins/devices-homey/mappings/device-support.d.ts +8 -0
  1429. package/dist/plugins/devices-homey/mappings/device-support.js +50 -0
  1430. package/dist/plugins/devices-homey/mappings/device-support.js.map +1 -0
  1431. package/dist/plugins/devices-homey/mappings/homey-mapping.error.d.ts +11 -0
  1432. package/dist/plugins/devices-homey/mappings/homey-mapping.error.js +23 -0
  1433. package/dist/plugins/devices-homey/mappings/homey-mapping.error.js.map +1 -0
  1434. package/dist/plugins/devices-homey/mappings/index.d.ts +6 -0
  1435. package/dist/plugins/devices-homey/mappings/index.js +23 -0
  1436. package/dist/plugins/devices-homey/mappings/index.js.map +1 -0
  1437. package/dist/plugins/devices-homey/mappings/mapping-loader.service.d.ts +43 -0
  1438. package/dist/plugins/devices-homey/mappings/mapping-loader.service.js +453 -0
  1439. package/dist/plugins/devices-homey/mappings/mapping-loader.service.js.map +1 -0
  1440. package/dist/plugins/devices-homey/mappings/mapping-transformer.service.d.ts +17 -0
  1441. package/dist/plugins/devices-homey/mappings/mapping-transformer.service.js +156 -0
  1442. package/dist/plugins/devices-homey/mappings/mapping-transformer.service.js.map +1 -0
  1443. package/dist/plugins/devices-homey/mappings/mapping.constants.d.ts +12 -0
  1444. package/dist/plugins/devices-homey/mappings/mapping.constants.js +16 -0
  1445. package/dist/plugins/devices-homey/mappings/mapping.constants.js.map +1 -0
  1446. package/dist/plugins/devices-homey/mappings/mapping.types.d.ts +202 -0
  1447. package/dist/plugins/devices-homey/mappings/mapping.types.js +3 -0
  1448. package/dist/plugins/devices-homey/mappings/mapping.types.js.map +1 -0
  1449. package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.d.ts +10 -0
  1450. package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.js +38 -0
  1451. package/dist/plugins/devices-homey/mappings/property-mapping-storage.service.js.map +1 -0
  1452. package/dist/plugins/devices-homey/mappings/schema/mapping-schema.json +302 -0
  1453. package/dist/plugins/devices-homey/models/adoption.model.d.ts +30 -0
  1454. package/dist/plugins/devices-homey/models/adoption.model.js +122 -0
  1455. package/dist/plugins/devices-homey/models/adoption.model.js.map +1 -0
  1456. package/dist/plugins/devices-homey/models/config.model.d.ts +9 -0
  1457. package/dist/plugins/devices-homey/models/config.model.js +107 -0
  1458. package/dist/plugins/devices-homey/models/config.model.js.map +1 -0
  1459. package/dist/plugins/devices-homey/models/homey-capability.model.d.ts +31 -0
  1460. package/dist/plugins/devices-homey/models/homey-capability.model.js +24 -0
  1461. package/dist/plugins/devices-homey/models/homey-capability.model.js.map +1 -0
  1462. package/dist/plugins/devices-homey/models/homey-device.model.d.ts +23 -0
  1463. package/dist/plugins/devices-homey/models/homey-device.model.js +3 -0
  1464. package/dist/plugins/devices-homey/models/homey-device.model.js.map +1 -0
  1465. package/dist/plugins/devices-homey/models/homey-event.model.d.ts +54 -0
  1466. package/dist/plugins/devices-homey/models/homey-event.model.js +15 -0
  1467. package/dist/plugins/devices-homey/models/homey-event.model.js.map +1 -0
  1468. package/dist/plugins/devices-homey/models/homey-system-info.model.d.ts +7 -0
  1469. package/dist/plugins/devices-homey/models/homey-system-info.model.js +3 -0
  1470. package/dist/plugins/devices-homey/models/homey-system-info.model.js.map +1 -0
  1471. package/dist/plugins/devices-homey/models/homey-zone.model.d.ts +7 -0
  1472. package/dist/plugins/devices-homey/models/homey-zone.model.js +3 -0
  1473. package/dist/plugins/devices-homey/models/homey-zone.model.js.map +1 -0
  1474. package/dist/plugins/devices-homey/models/inventory.model.d.ts +50 -0
  1475. package/dist/plugins/devices-homey/models/inventory.model.js +236 -0
  1476. package/dist/plugins/devices-homey/models/inventory.model.js.map +1 -0
  1477. package/dist/plugins/devices-homey/models/mapping-preview.model.d.ts +123 -0
  1478. package/dist/plugins/devices-homey/models/mapping-preview.model.js +576 -0
  1479. package/dist/plugins/devices-homey/models/mapping-preview.model.js.map +1 -0
  1480. package/dist/plugins/devices-homey/models/status.model.d.ts +32 -0
  1481. package/dist/plugins/devices-homey/models/status.model.js +242 -0
  1482. package/dist/plugins/devices-homey/models/status.model.js.map +1 -0
  1483. package/dist/plugins/devices-homey/models/test-connection.model.d.ts +15 -0
  1484. package/dist/plugins/devices-homey/models/test-connection.model.js +88 -0
  1485. package/dist/plugins/devices-homey/models/test-connection.model.js.map +1 -0
  1486. package/dist/plugins/devices-homey/platforms/homey-command-value.d.ts +7 -0
  1487. package/dist/plugins/devices-homey/platforms/homey-command-value.js +65 -0
  1488. package/dist/plugins/devices-homey/platforms/homey-command-value.js.map +1 -0
  1489. package/dist/plugins/devices-homey/platforms/homey-device.platform.d.ts +41 -0
  1490. package/dist/plugins/devices-homey/platforms/homey-device.platform.js +427 -0
  1491. package/dist/plugins/devices-homey/platforms/homey-device.platform.js.map +1 -0
  1492. package/dist/plugins/devices-homey/services/homey-adoption-lock.service.d.ts +20 -0
  1493. package/dist/plugins/devices-homey/services/homey-adoption-lock.service.js +147 -0
  1494. package/dist/plugins/devices-homey/services/homey-adoption-lock.service.js.map +1 -0
  1495. package/dist/plugins/devices-homey/services/homey-config-validator.service.d.ts +11 -0
  1496. package/dist/plugins/devices-homey/services/homey-config-validator.service.js +76 -0
  1497. package/dist/plugins/devices-homey/services/homey-config-validator.service.js.map +1 -0
  1498. package/dist/plugins/devices-homey/services/homey-connection-test.service.d.ts +14 -0
  1499. package/dist/plugins/devices-homey/services/homey-connection-test.service.js +134 -0
  1500. package/dist/plugins/devices-homey/services/homey-connection-test.service.js.map +1 -0
  1501. package/dist/plugins/devices-homey/services/homey-device-adoption.service.d.ts +52 -0
  1502. package/dist/plugins/devices-homey/services/homey-device-adoption.service.js +711 -0
  1503. package/dist/plugins/devices-homey/services/homey-device-adoption.service.js.map +1 -0
  1504. package/dist/plugins/devices-homey/services/homey-device-inventory.service.d.ts +20 -0
  1505. package/dist/plugins/devices-homey/services/homey-device-inventory.service.js +159 -0
  1506. package/dist/plugins/devices-homey/services/homey-device-inventory.service.js.map +1 -0
  1507. package/dist/plugins/devices-homey/services/homey-failure-log-limiter.d.ts +9 -0
  1508. package/dist/plugins/devices-homey/services/homey-failure-log-limiter.js +23 -0
  1509. package/dist/plugins/devices-homey/services/homey-failure-log-limiter.js.map +1 -0
  1510. package/dist/plugins/devices-homey/services/homey-mapping-preview.service.d.ts +53 -0
  1511. package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js +999 -0
  1512. package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js.map +1 -0
  1513. package/dist/plugins/devices-homey/services/homey-reconnect-backoff.d.ts +1 -0
  1514. package/dist/plugins/devices-homey/services/homey-reconnect-backoff.js +16 -0
  1515. package/dist/plugins/devices-homey/services/homey-reconnect-backoff.js.map +1 -0
  1516. package/dist/plugins/devices-homey/services/homey-synchronizer.service.d.ts +90 -0
  1517. package/dist/plugins/devices-homey/services/homey-synchronizer.service.js +628 -0
  1518. package/dist/plugins/devices-homey/services/homey-synchronizer.service.js.map +1 -0
  1519. package/dist/plugins/devices-homey/services/homey.service.d.ts +129 -0
  1520. package/dist/plugins/devices-homey/services/homey.service.js +1216 -0
  1521. package/dist/plugins/devices-homey/services/homey.service.js.map +1 -0
  1522. package/dist/plugins/devices-homey/validators/homey-url.validator.d.ts +4 -0
  1523. package/dist/plugins/devices-homey/validators/homey-url.validator.js +27 -0
  1524. package/dist/plugins/devices-homey/validators/homey-url.validator.js.map +1 -0
  1525. package/dist/plugins/devices-reterminal/devices-reterminal.plugin.d.ts +3 -3
  1526. package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +5 -5
  1527. package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
  1528. package/dist/plugins/devices-reterminal/services/reterminal.service.d.ts +7 -3
  1529. package/dist/plugins/devices-reterminal/services/reterminal.service.js +4 -1
  1530. package/dist/plugins/devices-reterminal/services/reterminal.service.js.map +1 -1
  1531. package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +6 -2
  1532. package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +31 -2
  1533. package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
  1534. package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +2 -2
  1535. package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
  1536. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.d.ts +22 -2
  1537. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js +61 -1
  1538. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js.map +1 -1
  1539. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +4 -3
  1540. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +5 -0
  1541. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js.map +1 -1
  1542. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.d.ts +3 -3
  1543. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +7 -5
  1544. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
  1545. package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.d.ts +15 -0
  1546. package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.js +113 -0
  1547. package/dist/plugins/devices-shelly-ng/dto/adopt-devices.dto.js.map +1 -0
  1548. package/dist/plugins/devices-shelly-ng/mappings/definitions/sensors.yaml +1 -1
  1549. package/dist/plugins/devices-shelly-ng/mappings/definitions/switches.yaml +23 -2
  1550. package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.d.ts +4 -1
  1551. package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js +16 -1
  1552. package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js.map +1 -1
  1553. package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.d.ts +7 -0
  1554. package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +57 -1
  1555. package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js.map +1 -1
  1556. package/dist/plugins/devices-shelly-ng/services/device-manager.service.d.ts +1 -0
  1557. package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +208 -0
  1558. package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
  1559. package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.d.ts +19 -0
  1560. package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.js +114 -0
  1561. package/dist/plugins/devices-shelly-ng/services/shelly-ng-adoption.service.js.map +1 -0
  1562. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +11 -7
  1563. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +15 -8
  1564. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
  1565. package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.d.ts +87 -0
  1566. package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +18 -0
  1567. package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js.map +1 -1
  1568. package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.d.ts +1 -0
  1569. package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +3 -0
  1570. package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
  1571. package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +6 -2
  1572. package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +29 -2
  1573. package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js.map +1 -1
  1574. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.d.ts +5 -4
  1575. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +5 -0
  1576. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js.map +1 -1
  1577. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.d.ts +3 -3
  1578. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +7 -5
  1579. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
  1580. package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.d.ts +15 -0
  1581. package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.js +113 -0
  1582. package/dist/plugins/devices-shelly-v1/dto/adopt-devices.dto.js.map +1 -0
  1583. package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.d.ts +4 -1
  1584. package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js +16 -1
  1585. package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js.map +1 -1
  1586. package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.d.ts +7 -0
  1587. package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +57 -1
  1588. package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
  1589. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +1 -0
  1590. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +3 -0
  1591. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
  1592. package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.d.ts +19 -0
  1593. package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.js +114 -0
  1594. package/dist/plugins/devices-shelly-v1/services/shelly-v1-adoption.service.js.map +1 -0
  1595. package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +8 -4
  1596. package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +6 -3
  1597. package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
  1598. package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.d.ts +15 -0
  1599. package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.js +170 -0
  1600. package/dist/plugins/devices-virtual/controllers/virtual-devices.controller.js.map +1 -0
  1601. package/dist/plugins/devices-virtual/devices-virtual.constants.d.ts +8 -0
  1602. package/dist/plugins/devices-virtual/devices-virtual.constants.js +19 -0
  1603. package/dist/plugins/devices-virtual/devices-virtual.constants.js.map +1 -0
  1604. package/dist/plugins/devices-virtual/devices-virtual.exceptions.d.ts +33 -0
  1605. package/dist/plugins/devices-virtual/devices-virtual.exceptions.js +81 -0
  1606. package/dist/plugins/devices-virtual/devices-virtual.exceptions.js.map +1 -0
  1607. package/dist/plugins/devices-virtual/devices-virtual.openapi.d.ts +13 -0
  1608. package/dist/plugins/devices-virtual/devices-virtual.openapi.js +37 -0
  1609. package/dist/plugins/devices-virtual/devices-virtual.openapi.js.map +1 -0
  1610. package/dist/plugins/devices-virtual/devices-virtual.plugin.d.ts +34 -0
  1611. package/dist/plugins/devices-virtual/devices-virtual.plugin.js +317 -0
  1612. package/dist/plugins/devices-virtual/devices-virtual.plugin.js.map +1 -0
  1613. package/dist/plugins/devices-virtual/dto/compatibility-request.dto.d.ts +13 -0
  1614. package/dist/plugins/devices-virtual/dto/compatibility-request.dto.js +109 -0
  1615. package/dist/plugins/devices-virtual/dto/compatibility-request.dto.js.map +1 -0
  1616. package/dist/plugins/devices-virtual/dto/create-channel-property.dto.d.ts +10 -0
  1617. package/dist/plugins/devices-virtual/dto/create-channel-property.dto.js +91 -0
  1618. package/dist/plugins/devices-virtual/dto/create-channel-property.dto.js.map +1 -0
  1619. package/dist/plugins/devices-virtual/dto/create-channel.dto.d.ts +8 -0
  1620. package/dist/plugins/devices-virtual/dto/create-channel.dto.js +65 -0
  1621. package/dist/plugins/devices-virtual/dto/create-channel.dto.js.map +1 -0
  1622. package/dist/plugins/devices-virtual/dto/create-device-channel.dto.d.ts +7 -0
  1623. package/dist/plugins/devices-virtual/dto/create-device-channel.dto.js +50 -0
  1624. package/dist/plugins/devices-virtual/dto/create-device-channel.dto.js.map +1 -0
  1625. package/dist/plugins/devices-virtual/dto/create-device.dto.d.ts +9 -0
  1626. package/dist/plugins/devices-virtual/dto/create-device.dto.js +64 -0
  1627. package/dist/plugins/devices-virtual/dto/create-device.dto.js.map +1 -0
  1628. package/dist/plugins/devices-virtual/dto/update-channel-property.dto.d.ts +10 -0
  1629. package/dist/plugins/devices-virtual/dto/update-channel-property.dto.js +91 -0
  1630. package/dist/plugins/devices-virtual/dto/update-channel-property.dto.js.map +1 -0
  1631. package/dist/plugins/devices-virtual/dto/update-channel.dto.d.ts +5 -0
  1632. package/dist/plugins/devices-virtual/dto/update-channel.dto.js +35 -0
  1633. package/dist/plugins/devices-virtual/dto/update-channel.dto.js.map +1 -0
  1634. package/dist/plugins/devices-virtual/dto/update-config.dto.d.ts +5 -0
  1635. package/dist/plugins/devices-virtual/dto/update-config.dto.js +33 -0
  1636. package/dist/plugins/devices-virtual/dto/update-config.dto.js.map +1 -0
  1637. package/dist/plugins/devices-virtual/dto/update-device.dto.d.ts +7 -0
  1638. package/dist/plugins/devices-virtual/dto/update-device.dto.js +55 -0
  1639. package/dist/plugins/devices-virtual/dto/update-device.dto.js.map +1 -0
  1640. package/dist/plugins/devices-virtual/entities/devices-virtual.entity.d.ts +25 -0
  1641. package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js +153 -0
  1642. package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js.map +1 -0
  1643. package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.d.ts +20 -0
  1644. package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js +191 -0
  1645. package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js.map +1 -0
  1646. package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.d.ts +55 -0
  1647. package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js +542 -0
  1648. package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js.map +1 -0
  1649. package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +10 -0
  1650. package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +50 -0
  1651. package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -0
  1652. package/dist/plugins/devices-virtual/listeners/virtual-status.listener.d.ts +20 -0
  1653. package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js +89 -0
  1654. package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js.map +1 -0
  1655. package/dist/plugins/devices-virtual/models/compatibility-response.model.d.ts +12 -0
  1656. package/dist/plugins/devices-virtual/models/compatibility-response.model.js +95 -0
  1657. package/dist/plugins/devices-virtual/models/compatibility-response.model.js.map +1 -0
  1658. package/dist/plugins/devices-virtual/models/config.model.d.ts +5 -0
  1659. package/dist/plugins/devices-virtual/models/config.model.js +47 -0
  1660. package/dist/plugins/devices-virtual/models/config.model.js.map +1 -0
  1661. package/dist/plugins/devices-virtual/models/virtual-response.model.d.ts +5 -0
  1662. package/dist/plugins/devices-virtual/models/virtual-response.model.js +32 -0
  1663. package/dist/plugins/devices-virtual/models/virtual-response.model.js.map +1 -0
  1664. package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +17 -0
  1665. package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +121 -0
  1666. package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -0
  1667. package/dist/plugins/devices-virtual/services/virtual-devices.service.d.ts +52 -0
  1668. package/dist/plugins/devices-virtual/services/virtual-devices.service.js +424 -0
  1669. package/dist/plugins/devices-virtual/services/virtual-devices.service.js.map +1 -0
  1670. package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.d.ts +7 -0
  1671. package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.js +43 -0
  1672. package/dist/plugins/devices-virtual/services/virtual-energy-claim.service.js.map +1 -0
  1673. package/dist/plugins/devices-virtual/services/virtual-property-index.service.d.ts +38 -0
  1674. package/dist/plugins/devices-virtual/services/virtual-property-index.service.js +203 -0
  1675. package/dist/plugins/devices-virtual/services/virtual-property-index.service.js.map +1 -0
  1676. package/dist/plugins/devices-virtual/services/virtual-value-source.service.d.ts +6 -0
  1677. package/dist/plugins/devices-virtual/services/virtual-value-source.service.js +31 -0
  1678. package/dist/plugins/devices-virtual/services/virtual-value-source.service.js.map +1 -0
  1679. package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.d.ts +10 -0
  1680. package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js +56 -0
  1681. package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js.map +1 -0
  1682. package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.d.ts +9 -0
  1683. package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.js +56 -0
  1684. package/dist/plugins/devices-virtual/validators/device-is-virtual-constraint.validator.js.map +1 -0
  1685. package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.d.ts +6 -0
  1686. package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.js +38 -0
  1687. package/dist/plugins/devices-virtual/validators/owned-property-has-no-source-constraint.validator.js.map +1 -0
  1688. package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.d.ts +7 -0
  1689. package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.js +38 -0
  1690. package/dist/plugins/devices-virtual/validators/owned-property-not-writable-constraint.validator.js.map +1 -0
  1691. package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.d.ts +9 -0
  1692. package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.js +56 -0
  1693. package/dist/plugins/devices-virtual/validators/source-not-virtual-constraint.validator.js.map +1 -0
  1694. package/dist/plugins/devices-wled/controllers/wled-discovery.controller.d.ts +6 -3
  1695. package/dist/plugins/devices-wled/controllers/wled-discovery.controller.js +78 -20
  1696. package/dist/plugins/devices-wled/controllers/wled-discovery.controller.js.map +1 -1
  1697. package/dist/plugins/devices-wled/devices-wled.exceptions.d.ts +3 -0
  1698. package/dist/plugins/devices-wled/devices-wled.exceptions.js +7 -1
  1699. package/dist/plugins/devices-wled/devices-wled.exceptions.js.map +1 -1
  1700. package/dist/plugins/devices-wled/devices-wled.openapi.d.ts +3 -2
  1701. package/dist/plugins/devices-wled/devices-wled.openapi.js +11 -1
  1702. package/dist/plugins/devices-wled/devices-wled.openapi.js.map +1 -1
  1703. package/dist/plugins/devices-wled/devices-wled.plugin.d.ts +3 -3
  1704. package/dist/plugins/devices-wled/devices-wled.plugin.js +10 -6
  1705. package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
  1706. package/dist/plugins/devices-wled/dto/wled-adoption.dto.d.ts +19 -0
  1707. package/dist/plugins/devices-wled/dto/wled-adoption.dto.js +108 -0
  1708. package/dist/plugins/devices-wled/dto/wled-adoption.dto.js.map +1 -0
  1709. package/dist/plugins/devices-wled/entities/devices-wled.entity.d.ts +1 -0
  1710. package/dist/plugins/devices-wled/entities/devices-wled.entity.js +14 -0
  1711. package/dist/plugins/devices-wled/entities/devices-wled.entity.js.map +1 -1
  1712. package/dist/plugins/devices-wled/models/config.model.js +2 -2
  1713. package/dist/plugins/devices-wled/models/config.model.js.map +1 -1
  1714. package/dist/plugins/devices-wled/models/wled-discovery.model.d.ts +22 -3
  1715. package/dist/plugins/devices-wled/models/wled-discovery.model.js +104 -29
  1716. package/dist/plugins/devices-wled/models/wled-discovery.model.js.map +1 -1
  1717. package/dist/plugins/devices-wled/services/adoption-snapshot.service.d.ts +16 -0
  1718. package/dist/plugins/devices-wled/services/adoption-snapshot.service.js +109 -0
  1719. package/dist/plugins/devices-wled/services/adoption-snapshot.service.js.map +1 -0
  1720. package/dist/plugins/devices-wled/services/device-mapper.service.d.ts +5 -2
  1721. package/dist/plugins/devices-wled/services/device-mapper.service.js +49 -19
  1722. package/dist/plugins/devices-wled/services/device-mapper.service.js.map +1 -1
  1723. package/dist/plugins/devices-wled/services/hardware-identity.service.d.ts +9 -0
  1724. package/dist/plugins/devices-wled/services/hardware-identity.service.js +50 -0
  1725. package/dist/plugins/devices-wled/services/hardware-identity.service.js.map +1 -0
  1726. package/dist/plugins/devices-wled/services/wled-client-adapter.service.d.ts +4 -2
  1727. package/dist/plugins/devices-wled/services/wled-client-adapter.service.js +43 -24
  1728. package/dist/plugins/devices-wled/services/wled-client-adapter.service.js.map +1 -1
  1729. package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.d.ts +2 -0
  1730. package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +6 -0
  1731. package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
  1732. package/dist/plugins/devices-wled/services/wled.service.d.ts +40 -7
  1733. package/dist/plugins/devices-wled/services/wled.service.js +759 -26
  1734. package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
  1735. package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.d.ts +3 -3
  1736. package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +15 -5
  1737. package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
  1738. package/dist/plugins/devices-zigbee2mqtt/models/config.model.d.ts +2 -0
  1739. package/dist/plugins/devices-zigbee2mqtt/models/config.model.js +24 -2
  1740. package/dist/plugins/devices-zigbee2mqtt/models/config.model.js.map +1 -1
  1741. package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +11 -7
  1742. package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +11 -8
  1743. package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
  1744. package/dist/plugins/influx-v1/dto/update-config.dto.d.ts +1 -1
  1745. package/dist/plugins/influx-v1/dto/update-config.dto.js +1 -0
  1746. package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -1
  1747. package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +3 -3
  1748. package/dist/plugins/influx-v1/influx-v1.plugin.js +11 -5
  1749. package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -1
  1750. package/dist/plugins/influx-v1/models/config.model.d.ts +1 -0
  1751. package/dist/plugins/influx-v1/models/config.model.js +12 -1
  1752. package/dist/plugins/influx-v1/models/config.model.js.map +1 -1
  1753. package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +7 -4
  1754. package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +3 -3
  1755. package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -1
  1756. package/dist/plugins/influx-v1/services/influx-v1.storage.d.ts +1 -0
  1757. package/dist/plugins/influx-v1/services/influx-v1.storage.js +15 -0
  1758. package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -1
  1759. package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +1 -1
  1760. package/dist/plugins/influx-v2/dto/update-config.dto.js +1 -0
  1761. package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -1
  1762. package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +3 -3
  1763. package/dist/plugins/influx-v2/influx-v2.plugin.js +11 -5
  1764. package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -1
  1765. package/dist/plugins/influx-v2/models/config.model.d.ts +1 -0
  1766. package/dist/plugins/influx-v2/models/config.model.js +12 -1
  1767. package/dist/plugins/influx-v2/models/config.model.js.map +1 -1
  1768. package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +7 -4
  1769. package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +3 -3
  1770. package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -1
  1771. package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +4 -1
  1772. package/dist/plugins/influx-v2/services/influx-v2.storage.js +159 -2
  1773. package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -1
  1774. package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.d.ts +3 -3
  1775. package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +5 -5
  1776. package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
  1777. package/dist/plugins/logger-rotating-file/services/file-logger.service.d.ts +7 -3
  1778. package/dist/plugins/logger-rotating-file/services/file-logger.service.js +12 -1
  1779. package/dist/plugins/logger-rotating-file/services/file-logger.service.js.map +1 -1
  1780. package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +3 -3
  1781. package/dist/plugins/memory-storage/memory-storage.plugin.js +5 -5
  1782. package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -1
  1783. package/dist/plugins/memory-storage/services/in-memory-timeseries.store.d.ts +1 -1
  1784. package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js +5 -3
  1785. package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -1
  1786. package/dist/plugins/memory-storage/services/influxql-parser.js +21 -1
  1787. package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -1
  1788. package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +6 -3
  1789. package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +3 -3
  1790. package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -1
  1791. package/dist/plugins/notifications-discord/dto/update-config.dto.d.ts +10 -0
  1792. package/dist/plugins/notifications-discord/dto/update-config.dto.js +90 -0
  1793. package/dist/plugins/notifications-discord/dto/update-config.dto.js.map +1 -0
  1794. package/dist/plugins/notifications-discord/models/config.model.d.ts +10 -0
  1795. package/dist/plugins/notifications-discord/models/config.model.js +99 -0
  1796. package/dist/plugins/notifications-discord/models/config.model.js.map +1 -0
  1797. package/dist/plugins/notifications-discord/notifications-discord.constants.d.ts +4 -0
  1798. package/dist/plugins/notifications-discord/notifications-discord.constants.js +8 -0
  1799. package/dist/plugins/notifications-discord/notifications-discord.constants.js.map +1 -0
  1800. package/dist/plugins/notifications-discord/notifications-discord.openapi.d.ts +3 -0
  1801. package/dist/plugins/notifications-discord/notifications-discord.openapi.js +10 -0
  1802. package/dist/plugins/notifications-discord/notifications-discord.openapi.js.map +1 -0
  1803. package/dist/plugins/notifications-discord/notifications-discord.plugin.d.ts +15 -0
  1804. package/dist/plugins/notifications-discord/notifications-discord.plugin.js +113 -0
  1805. package/dist/plugins/notifications-discord/notifications-discord.plugin.js.map +1 -0
  1806. package/dist/plugins/notifications-discord/platforms/discord-channel.platform.d.ts +9 -0
  1807. package/dist/plugins/notifications-discord/platforms/discord-channel.platform.js +67 -0
  1808. package/dist/plugins/notifications-discord/platforms/discord-channel.platform.js.map +1 -0
  1809. package/dist/plugins/notifications-discord/services/discord-actions.service.d.ts +13 -0
  1810. package/dist/plugins/notifications-discord/services/discord-actions.service.js +94 -0
  1811. package/dist/plugins/notifications-discord/services/discord-actions.service.js.map +1 -0
  1812. package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.d.ts +4 -0
  1813. package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.js +38 -0
  1814. package/dist/plugins/notifications-discord/validators/discord-webhook-url.validator.js.map +1 -0
  1815. package/dist/plugins/notifications-slack/dto/update-config.dto.d.ts +9 -0
  1816. package/dist/plugins/notifications-slack/dto/update-config.dto.js +79 -0
  1817. package/dist/plugins/notifications-slack/dto/update-config.dto.js.map +1 -0
  1818. package/dist/plugins/notifications-slack/models/config.model.d.ts +9 -0
  1819. package/dist/plugins/notifications-slack/models/config.model.js +87 -0
  1820. package/dist/plugins/notifications-slack/models/config.model.js.map +1 -0
  1821. package/dist/plugins/notifications-slack/notifications-slack.constants.d.ts +4 -0
  1822. package/dist/plugins/notifications-slack/notifications-slack.constants.js +8 -0
  1823. package/dist/plugins/notifications-slack/notifications-slack.constants.js.map +1 -0
  1824. package/dist/plugins/notifications-slack/notifications-slack.openapi.d.ts +3 -0
  1825. package/dist/plugins/notifications-slack/notifications-slack.openapi.js +10 -0
  1826. package/dist/plugins/notifications-slack/notifications-slack.openapi.js.map +1 -0
  1827. package/dist/plugins/notifications-slack/notifications-slack.plugin.d.ts +15 -0
  1828. package/dist/plugins/notifications-slack/notifications-slack.plugin.js +111 -0
  1829. package/dist/plugins/notifications-slack/notifications-slack.plugin.js.map +1 -0
  1830. package/dist/plugins/notifications-slack/platforms/slack-channel.platform.d.ts +9 -0
  1831. package/dist/plugins/notifications-slack/platforms/slack-channel.platform.js +63 -0
  1832. package/dist/plugins/notifications-slack/platforms/slack-channel.platform.js.map +1 -0
  1833. package/dist/plugins/notifications-slack/services/slack-actions.service.d.ts +13 -0
  1834. package/dist/plugins/notifications-slack/services/slack-actions.service.js +94 -0
  1835. package/dist/plugins/notifications-slack/services/slack-actions.service.js.map +1 -0
  1836. package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.d.ts +4 -0
  1837. package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.js +37 -0
  1838. package/dist/plugins/notifications-slack/validators/slack-webhook-url.validator.js.map +1 -0
  1839. package/dist/plugins/notifications-telegram/dto/update-config.dto.d.ts +10 -0
  1840. package/dist/plugins/notifications-telegram/dto/update-config.dto.js +88 -0
  1841. package/dist/plugins/notifications-telegram/dto/update-config.dto.js.map +1 -0
  1842. package/dist/plugins/notifications-telegram/models/config.model.d.ts +10 -0
  1843. package/dist/plugins/notifications-telegram/models/config.model.js +98 -0
  1844. package/dist/plugins/notifications-telegram/models/config.model.js.map +1 -0
  1845. package/dist/plugins/notifications-telegram/notifications-telegram.constants.d.ts +4 -0
  1846. package/dist/plugins/notifications-telegram/notifications-telegram.constants.js +8 -0
  1847. package/dist/plugins/notifications-telegram/notifications-telegram.constants.js.map +1 -0
  1848. package/dist/plugins/notifications-telegram/notifications-telegram.openapi.d.ts +3 -0
  1849. package/dist/plugins/notifications-telegram/notifications-telegram.openapi.js +10 -0
  1850. package/dist/plugins/notifications-telegram/notifications-telegram.openapi.js.map +1 -0
  1851. package/dist/plugins/notifications-telegram/notifications-telegram.plugin.d.ts +15 -0
  1852. package/dist/plugins/notifications-telegram/notifications-telegram.plugin.js +113 -0
  1853. package/dist/plugins/notifications-telegram/notifications-telegram.plugin.js.map +1 -0
  1854. package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.d.ts +12 -0
  1855. package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.js +87 -0
  1856. package/dist/plugins/notifications-telegram/platforms/telegram-channel.platform.js.map +1 -0
  1857. package/dist/plugins/notifications-telegram/services/telegram-actions.service.d.ts +13 -0
  1858. package/dist/plugins/notifications-telegram/services/telegram-actions.service.js +94 -0
  1859. package/dist/plugins/notifications-telegram/services/telegram-actions.service.js.map +1 -0
  1860. package/dist/plugins/notifications-webhook/dto/update-config.dto.d.ts +10 -0
  1861. package/dist/plugins/notifications-webhook/dto/update-config.dto.js +94 -0
  1862. package/dist/plugins/notifications-webhook/dto/update-config.dto.js.map +1 -0
  1863. package/dist/plugins/notifications-webhook/models/config.model.d.ts +11 -0
  1864. package/dist/plugins/notifications-webhook/models/config.model.js +114 -0
  1865. package/dist/plugins/notifications-webhook/models/config.model.js.map +1 -0
  1866. package/dist/plugins/notifications-webhook/notifications-webhook.constants.d.ts +4 -0
  1867. package/dist/plugins/notifications-webhook/notifications-webhook.constants.js +8 -0
  1868. package/dist/plugins/notifications-webhook/notifications-webhook.constants.js.map +1 -0
  1869. package/dist/plugins/notifications-webhook/notifications-webhook.openapi.d.ts +3 -0
  1870. package/dist/plugins/notifications-webhook/notifications-webhook.openapi.js +10 -0
  1871. package/dist/plugins/notifications-webhook/notifications-webhook.openapi.js.map +1 -0
  1872. package/dist/plugins/notifications-webhook/notifications-webhook.plugin.d.ts +15 -0
  1873. package/dist/plugins/notifications-webhook/notifications-webhook.plugin.js +134 -0
  1874. package/dist/plugins/notifications-webhook/notifications-webhook.plugin.js.map +1 -0
  1875. package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.d.ts +9 -0
  1876. package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.js +63 -0
  1877. package/dist/plugins/notifications-webhook/platforms/webhook-channel.platform.js.map +1 -0
  1878. package/dist/plugins/notifications-webhook/services/webhook-actions.service.d.ts +13 -0
  1879. package/dist/plugins/notifications-webhook/services/webhook-actions.service.js +94 -0
  1880. package/dist/plugins/notifications-webhook/services/webhook-actions.service.js.map +1 -0
  1881. package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.d.ts +6 -0
  1882. package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.js +40 -0
  1883. package/dist/plugins/notifications-webhook/validators/webhook-headers-require-https.validator.js.map +1 -0
  1884. package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.d.ts +3 -0
  1885. package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.js +24 -0
  1886. package/dist/plugins/notifications-webhook/validators/webhook-headers-shape.validator.js.map +1 -0
  1887. package/dist/plugins/notifications-webhook/validators/webhook-url.validator.d.ts +4 -0
  1888. package/dist/plugins/notifications-webhook/validators/webhook-url.validator.js +27 -0
  1889. package/dist/plugins/notifications-webhook/validators/webhook-url.validator.js.map +1 -0
  1890. package/dist/plugins/pages-device-detail/dto/create-page.dto.js +2 -0
  1891. package/dist/plugins/pages-device-detail/dto/create-page.dto.js.map +1 -1
  1892. package/dist/plugins/pages-device-detail/dto/update-page.dto.js +2 -0
  1893. package/dist/plugins/pages-device-detail/dto/update-page.dto.js.map +1 -1
  1894. package/dist/plugins/remote-access-tailscale/controllers/setup.controller.d.ts +21 -0
  1895. package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js +211 -0
  1896. package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js.map +1 -0
  1897. package/dist/plugins/remote-access-tailscale/controllers/status.controller.d.ts +13 -0
  1898. package/dist/plugins/remote-access-tailscale/controllers/status.controller.js +88 -0
  1899. package/dist/plugins/remote-access-tailscale/controllers/status.controller.js.map +1 -0
  1900. package/dist/plugins/remote-access-tailscale/dto/login.dto.d.ts +3 -0
  1901. package/dist/plugins/remote-access-tailscale/dto/login.dto.js +40 -0
  1902. package/dist/plugins/remote-access-tailscale/dto/login.dto.js.map +1 -0
  1903. package/dist/plugins/remote-access-tailscale/dto/update-config.dto.d.ts +12 -0
  1904. package/dist/plugins/remote-access-tailscale/dto/update-config.dto.js +139 -0
  1905. package/dist/plugins/remote-access-tailscale/dto/update-config.dto.js.map +1 -0
  1906. package/dist/plugins/remote-access-tailscale/models/config.model.d.ts +12 -0
  1907. package/dist/plugins/remote-access-tailscale/models/config.model.js +140 -0
  1908. package/dist/plugins/remote-access-tailscale/models/config.model.js.map +1 -0
  1909. package/dist/plugins/remote-access-tailscale/models/login.model.d.ts +16 -0
  1910. package/dist/plugins/remote-access-tailscale/models/login.model.js +112 -0
  1911. package/dist/plugins/remote-access-tailscale/models/login.model.js.map +1 -0
  1912. package/dist/plugins/remote-access-tailscale/models/status.model.d.ts +25 -0
  1913. package/dist/plugins/remote-access-tailscale/models/status.model.js +219 -0
  1914. package/dist/plugins/remote-access-tailscale/models/status.model.js.map +1 -0
  1915. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.d.ts +20 -0
  1916. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js +24 -0
  1917. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js.map +1 -0
  1918. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.d.ts +6 -0
  1919. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js +21 -0
  1920. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js.map +1 -0
  1921. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.d.ts +21 -0
  1922. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js +132 -0
  1923. package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js.map +1 -0
  1924. package/dist/plugins/remote-access-tailscale/scripts/tailscale-setup.sh +175 -0
  1925. package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.d.ts +75 -0
  1926. package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js +206 -0
  1927. package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js.map +1 -0
  1928. package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.d.ts +43 -0
  1929. package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js +344 -0
  1930. package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js.map +1 -0
  1931. package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.d.ts +65 -0
  1932. package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js +471 -0
  1933. package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js.map +1 -0
  1934. package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.d.ts +10 -0
  1935. package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js +37 -0
  1936. package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js.map +1 -0
  1937. package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.d.ts +21 -0
  1938. package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js +140 -0
  1939. package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js.map +1 -0
  1940. package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.d.ts +30 -0
  1941. package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js +130 -0
  1942. package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js.map +1 -0
  1943. package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.d.ts +21 -0
  1944. package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.js +106 -0
  1945. package/dist/plugins/remote-access-tailscale/services/tailscale-status-mapper.service.js.map +1 -0
  1946. package/dist/plugins/scenes-local/dto/create-local-scene-action.dto.js +2 -0
  1947. package/dist/plugins/scenes-local/dto/create-local-scene-action.dto.js.map +1 -1
  1948. package/dist/plugins/scenes-local/dto/update-local-scene-action.dto.js +2 -0
  1949. package/dist/plugins/scenes-local/dto/update-local-scene-action.dto.js.map +1 -1
  1950. package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +1 -0
  1951. package/dist/plugins/scenes-local/platforms/local-scene.platform.js +11 -0
  1952. package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
  1953. package/dist/plugins/simulator/controllers/simulator.controller.js +12 -4
  1954. package/dist/plugins/simulator/controllers/simulator.controller.js.map +1 -1
  1955. package/dist/plugins/simulator/models/simulator-response.model.js +1 -0
  1956. package/dist/plugins/simulator/models/simulator-response.model.js.map +1 -1
  1957. package/dist/plugins/simulator/services/simulation.service.d.ts +7 -3
  1958. package/dist/plugins/simulator/services/simulation.service.js +5 -2
  1959. package/dist/plugins/simulator/services/simulation.service.js.map +1 -1
  1960. package/dist/plugins/simulator/simulator.plugin.d.ts +3 -3
  1961. package/dist/plugins/simulator/simulator.plugin.js +5 -5
  1962. package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
  1963. package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +3 -0
  1964. package/dist/plugins/spaces-home-control/services/climate-intent.service.js +84 -16
  1965. package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
  1966. package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +1 -0
  1967. package/dist/plugins/spaces-home-control/services/covers-intent.service.js +7 -1
  1968. package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
  1969. package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +4 -1
  1970. package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +41 -12
  1971. package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
  1972. package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +2 -2
  1973. package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
  1974. package/dist/plugins/spaces-home-control/services/space-intent.service.d.ts +2 -1
  1975. package/dist/plugins/spaces-home-control/services/space-intent.service.js +5 -2
  1976. package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -1
  1977. package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.d.ts +2 -3
  1978. package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js +99 -40
  1979. package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -1
  1980. package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.d.ts +13 -4
  1981. package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js +63 -11
  1982. package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -1
  1983. package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +5 -1
  1984. package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +10 -2
  1985. package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
  1986. package/dist/plugins/spaces-home-control/spec/definitions/climate-intents.yaml +94 -0
  1987. package/dist/plugins/spaces-home-control/spec/definitions/covers-modes.yaml +83 -0
  1988. package/dist/plugins/spaces-home-control/spec/definitions/enums.yaml +119 -0
  1989. package/dist/plugins/spaces-home-control/spec/definitions/lighting-intents.yaml +181 -0
  1990. package/dist/plugins/spaces-home-control/spec/definitions/lighting-modes.yaml +119 -0
  1991. package/dist/plugins/spaces-home-control/spec/definitions/suggestions.yaml +47 -0
  1992. package/dist/plugins/tiles-device-preview/dto/create-tile.dto.js +2 -0
  1993. package/dist/plugins/tiles-device-preview/dto/create-tile.dto.js.map +1 -1
  1994. package/dist/plugins/tiles-device-preview/dto/update-tile.dto.js +2 -0
  1995. package/dist/plugins/tiles-device-preview/dto/update-tile.dto.js.map +1 -1
  1996. package/dist/plugins/weather-openweathermap/dto/update-config.dto.js +2 -3
  1997. package/dist/plugins/weather-openweathermap/dto/update-config.dto.js.map +1 -1
  1998. package/dist/plugins/weather-openweathermap/models/config.model.d.ts +1 -0
  1999. package/dist/plugins/weather-openweathermap/models/config.model.js +12 -1
  2000. package/dist/plugins/weather-openweathermap/models/config.model.js.map +1 -1
  2001. package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +7 -0
  2002. package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
  2003. package/dist/plugins/weather-openweathermap-onecall/dto/update-config.dto.js +2 -3
  2004. package/dist/plugins/weather-openweathermap-onecall/dto/update-config.dto.js.map +1 -1
  2005. package/dist/plugins/weather-openweathermap-onecall/models/config.model.d.ts +1 -0
  2006. package/dist/plugins/weather-openweathermap-onecall/models/config.model.js +12 -1
  2007. package/dist/plugins/weather-openweathermap-onecall/models/config.model.js.map +1 -1
  2008. package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +7 -0
  2009. package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
  2010. package/dist/spec/channels.d.ts +2 -2
  2011. package/dist/spec/channels.js +2 -2
  2012. package/dist/spec/channels.js.map +1 -1
  2013. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2014. package/package.json +35 -3
  2015. package/dist/modules/extensions/services/base-managed-plugin.service.js.map +0 -1
  2016. package/dist/modules/extensions/services/managed-plugin-service.interface.js.map +0 -1
  2017. package/dist/modules/extensions/services/plugin-service-manager.service.d.ts +0 -43
  2018. package/dist/modules/extensions/services/plugin-service-manager.service.js.map +0 -1
  2019. package/dist/modules/websocket/utils/ip.utils.d.ts +0 -2
  2020. package/dist/modules/websocket/utils/ip.utils.js +0 -35
  2021. package/dist/modules/websocket/utils/ip.utils.js.map +0 -1
@@ -10,24 +10,33 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DeviceControlToolService = void 0;
13
+ const zod_1 = require("zod");
13
14
  const common_1 = require("@nestjs/common");
14
15
  const logger_1 = require("../../../common/logger");
15
- const intents_constants_1 = require("../../intents/intents.constants");
16
- const intents_service_1 = require("../../intents/services/intents.service");
16
+ const tool_provider_platform_1 = require("../../tools/platforms/tool-provider.platform");
17
17
  const base_tool_provider_service_1 = require("../../tools/services/base-tool-provider.service");
18
18
  const short_id_mapping_service_1 = require("../../tools/services/short-id-mapping.service");
19
19
  const devices_constants_1 = require("../devices.constants");
20
- const channels_properties_service_1 = require("./channels.properties.service");
21
- const devices_service_1 = require("./devices.service");
22
- const platform_registry_service_1 = require("./platform.registry.service");
20
+ const property_command_service_1 = require("./property-command.service");
23
21
  const DEVICE_CONTROL_TOOLS_PROVIDER = 'device-control-tools';
22
+ const BUDDY_TARGET_NOT_EXPOSED_MESSAGE = 'The requested target is not available in this Buddy conversation.';
23
+ const BUDDY_TARGET_NOT_EXPOSED_ERROR_CODE = 'BUDDY_TARGET_NOT_EXPOSED';
24
+ const CONTROL_DEVICE_INPUT_SCHEMA = zod_1.z.object({
25
+ property_id: zod_1.z.string().min(1).describe('Short property ID from the home context (the p=... value)'),
26
+ value: zod_1.z
27
+ .union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean()])
28
+ .describe('Value matching the property data type and constraints'),
29
+ });
30
+ const CONTROL_DEVICE_OUTPUT_SCHEMA = zod_1.z.object({
31
+ device_id: zod_1.z.string(),
32
+ channel_id: zod_1.z.string(),
33
+ property_id: zod_1.z.string(),
34
+ value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean()]),
35
+ });
24
36
  let DeviceControlToolService = class DeviceControlToolService extends base_tool_provider_service_1.BaseToolProviderService {
25
- constructor(intentsService, devicesService, channelsPropertiesService, platformRegistry, shortIdMapping) {
37
+ constructor(propertyCommandService, shortIdMapping) {
26
38
  super();
27
- this.intentsService = intentsService;
28
- this.devicesService = devicesService;
29
- this.channelsPropertiesService = channelsPropertiesService;
30
- this.platformRegistry = platformRegistry;
39
+ this.propertyCommandService = propertyCommandService;
31
40
  this.shortIdMapping = shortIdMapping;
32
41
  this.logger = (0, logger_1.createExtensionLogger)(devices_constants_1.DEVICES_MODULE_NAME, 'DeviceControlToolService');
33
42
  }
@@ -36,129 +45,76 @@ let DeviceControlToolService = class DeviceControlToolService extends base_tool_
36
45
  }
37
46
  getToolDefinitions() {
38
47
  return [
39
- {
48
+ (0, tool_provider_platform_1.createToolDefinition)({
40
49
  name: 'control_device',
41
50
  description: 'Set a device property value. Use this to control individual devices like lights, switches, thermostats, etc. ' +
42
51
  'Use the short property ID (p=...) from the home context. The device and channel are resolved automatically.',
43
- parameters: {
44
- type: 'object',
45
- properties: {
46
- property_id: {
47
- type: 'string',
48
- description: 'Short property ID from the home context (the p=... value)',
49
- },
50
- value: {
51
- description: 'The value to set (string, number, or boolean depending on the property)',
52
- },
53
- },
54
- required: ['property_id', 'value'],
55
- },
56
- },
52
+ audiences: [tool_provider_platform_1.ToolAudience.BUDDY, tool_provider_platform_1.ToolAudience.MCP],
53
+ access: tool_provider_platform_1.ToolAccessKind.WRITE,
54
+ inputSchema: CONTROL_DEVICE_INPUT_SCHEMA,
55
+ outputSchema: CONTROL_DEVICE_OUTPUT_SCHEMA,
56
+ }),
57
57
  ];
58
58
  }
59
- async handleToolCall(toolCall) {
60
- return this.executeControlDevice(toolCall.arguments);
61
- }
62
- async executeControlDevice(args) {
63
- const rawPropertyId = typeof args.property_id === 'string' ? args.property_id : '';
64
- const value = args.value;
65
- if (!rawPropertyId || value === undefined || value === null) {
66
- return { success: false, message: 'Missing required parameters: property_id, value' };
67
- }
68
- const propertyId = this.shortIdMapping.resolve(rawPropertyId) ?? rawPropertyId;
69
- const property = await this.channelsPropertiesService.findOne(propertyId);
70
- const propertyChannel = property?.channel;
71
- const channelEntity = propertyChannel && typeof propertyChannel !== 'string' ? propertyChannel : null;
72
- if (!property || !channelEntity) {
73
- return { success: false, message: `Property "${rawPropertyId}" not found` };
59
+ async handleToolCall(toolCall, context) {
60
+ const parsed = CONTROL_DEVICE_INPUT_SCHEMA.safeParse(toolCall.arguments);
61
+ if (!parsed.success) {
62
+ return {
63
+ success: false,
64
+ status: tool_provider_platform_1.ToolExecutionStatus.FAILED,
65
+ message: 'Missing or invalid required parameters: property_id, value',
66
+ errorCode: 'INVALID_TOOL_ARGUMENTS',
67
+ };
74
68
  }
75
- const channelDevice = channelEntity.device;
76
- const device = channelDevice && typeof channelDevice !== 'string'
77
- ? channelDevice
78
- : await this.devicesService.findOne(typeof channelDevice === 'string' ? channelDevice : '');
79
- if (!device) {
80
- return { success: false, message: `Device for property "${rawPropertyId}" not found` };
69
+ const propertyId = context.audience === tool_provider_platform_1.ToolAudience.BUDDY
70
+ ? context.conversationId
71
+ ? this.shortIdMapping.resolveScoped(context.conversationId, parsed.data.property_id, short_id_mapping_service_1.ScopedShortIdTargetKind.PROPERTY)
72
+ : null
73
+ : (this.shortIdMapping.resolve(parsed.data.property_id) ?? parsed.data.property_id);
74
+ if (propertyId === null) {
75
+ return {
76
+ success: false,
77
+ status: tool_provider_platform_1.ToolExecutionStatus.DENIED,
78
+ message: BUDDY_TARGET_NOT_EXPOSED_MESSAGE,
79
+ errorCode: BUDDY_TARGET_NOT_EXPOSED_ERROR_CODE,
80
+ };
81
81
  }
82
- const deviceId = device.id;
83
- const channelId = channelEntity.id;
84
- const platform = this.platformRegistry.get(device);
85
- if (!platform) {
86
- return { success: false, message: `No platform registered for device "${device.name}"` };
87
- }
88
- const coercedValue = this.coerceValue(value);
89
- const intent = this.intentsService.createIntent({
90
- type: intents_constants_1.IntentType.DEVICE_SET_PROPERTY,
82
+ const result = await this.propertyCommandService.executePropertyCommandById(propertyId, parsed.data.value, {
83
+ requestId: context.requestId,
91
84
  context: {
92
85
  origin: 'api',
93
- extra: { source: 'buddy' },
86
+ extra: {
87
+ source: context.source,
88
+ audience: context.audience,
89
+ actorId: context.actorId,
90
+ },
94
91
  },
95
- targets: [{ deviceId, channelId, propertyId }],
96
- value: coercedValue,
97
92
  });
98
- let success;
99
- try {
100
- success = await platform.process({
101
- device,
102
- channel: channelEntity,
103
- property,
104
- value: coercedValue,
105
- });
93
+ if (!result.success || !result.channel || !result.property || result.value === undefined) {
94
+ return {
95
+ success: false,
96
+ status: tool_provider_platform_1.ToolExecutionStatus.FAILED,
97
+ message: result.reason ?? 'Failed to set device property',
98
+ errorCode: 'DEVICE_PROPERTY_WRITE_FAILED',
99
+ };
106
100
  }
107
- catch (error) {
108
- const err = error;
109
- this.intentsService.completeIntent(intent.id, [
110
- {
111
- deviceId,
112
- channelId,
113
- propertyId,
114
- status: intents_constants_1.IntentTargetStatus.FAILED,
115
- error: err.message,
116
- },
117
- ]);
118
- return { success: false, message: `Failed to set property on device "${device.name}": ${err.message}` };
119
- }
120
- this.intentsService.completeIntent(intent.id, [
121
- {
122
- deviceId,
123
- channelId,
124
- propertyId,
125
- status: success ? intents_constants_1.IntentTargetStatus.SUCCESS : intents_constants_1.IntentTargetStatus.FAILED,
126
- error: success ? undefined : 'Platform rejected the property write',
101
+ return {
102
+ success: true,
103
+ status: tool_provider_platform_1.ToolExecutionStatus.COMPLETED,
104
+ message: `Set ${result.deviceName ?? result.device} property to ${String(result.value)}`,
105
+ data: {
106
+ device_id: result.device,
107
+ channel_id: result.channel,
108
+ property_id: result.property,
109
+ value: result.value,
127
110
  },
128
- ]);
129
- if (success) {
130
- return { success: true, message: `Set ${device.name} property to ${coercedValue}` };
131
- }
132
- return { success: false, message: `Failed to set property on device "${device.name}"` };
133
- }
134
- coerceValue(value) {
135
- if (typeof value === 'boolean') {
136
- return value;
137
- }
138
- if (typeof value === 'number') {
139
- return value;
140
- }
141
- if (typeof value === 'string') {
142
- if (value.toLowerCase() === 'true')
143
- return true;
144
- if (value.toLowerCase() === 'false')
145
- return false;
146
- const num = Number(value);
147
- if (value.trim() !== '' && !Number.isNaN(num) && Number.isFinite(num)) {
148
- return num;
149
- }
150
- return value;
151
- }
152
- return JSON.stringify(value);
111
+ };
153
112
  }
154
113
  };
155
114
  exports.DeviceControlToolService = DeviceControlToolService;
156
115
  exports.DeviceControlToolService = DeviceControlToolService = __decorate([
157
116
  (0, common_1.Injectable)(),
158
- __metadata("design:paramtypes", [intents_service_1.IntentsService,
159
- devices_service_1.DevicesService,
160
- channels_properties_service_1.ChannelsPropertiesService,
161
- platform_registry_service_1.PlatformRegistryService,
117
+ __metadata("design:paramtypes", [property_command_service_1.PropertyCommandService,
162
118
  short_id_mapping_service_1.ShortIdMappingService])
163
119
  ], DeviceControlToolService);
164
120
  //# sourceMappingURL=device-control-tool.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"device-control-tool.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/device-control-tool.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,mDAA+D;AAC/D,uEAAiF;AACjF,4EAAwE;AAExE,gGAA0F;AAC1F,4FAAsF;AACtF,4DAA2D;AAE3D,+EAA0E;AAC1E,uDAAmD;AACnD,2EAAsE;AAEtE,MAAM,6BAA6B,GAAG,sBAAsB,CAAC;AAOtD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oDAAuB;IAGpE,YACkB,cAA8B,EAC9B,cAA8B,EAC9B,yBAAoD,EACpD,gBAAyC,EACzC,cAAqC;QAEtD,KAAK,EAAE,CAAC;QANS,mBAAc,GAAd,cAAc,CAAgB;QAC9B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,qBAAgB,GAAhB,gBAAgB,CAAyB;QACzC,mBAAc,GAAd,cAAc,CAAuB;QAPpC,WAAM,GAAG,IAAA,8BAAqB,EAAC,uCAAmB,EAAE,0BAA0B,CAAC,CAAC;IAUnG,CAAC;IAED,OAAO;QACN,OAAO,6BAA6B,CAAC;IACtC,CAAC;IAED,kBAAkB;QACjB,OAAO;YACN;gBACC,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EACV,+GAA+G;oBAC/G,6GAA6G;gBAC9G,UAAU,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACX,WAAW,EAAE;4BACZ,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,2DAA2D;yBACxE;wBACD,KAAK,EAAE;4BACN,WAAW,EAAE,yEAAyE;yBACtF;qBACD;oBACD,QAAQ,EAAE,CAAC,aAAa,EA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,CAAC,WAAW,EAAE,KAAK,OAAO;gBAAE,OAAO,KAAK,CAAC;YAGlD,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAE1B,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvE,OAAO,GAAG,CAAC;YACZ,CAAC;YAED,OAAO,KAAK,CAAC;QACd,CAAC;QAGD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACD,CAAA;AA5KY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAKsB,gCAAc;QACd,gCAAc;QACH,uDAAyB;QAClC,mDAAuB;QACzB,gDAAqB;GAR3C,wBAAwB,CA4KpC"}
1
+ {"version":3,"file":"device-control-tool.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/device-control-tool.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AAExB,2CAA4C;AAE5C,mDAA+D;AAC/D,yFASsD;AACtD,gGAA0F;AAC1F,4FAA+G;AAC/G,4DAA2D;AAE3D,yEAAoE;AAEpE,MAAM,6BAA6B,GAAG,sBAAsB,CAAC;AAC7D,MAAM,gCAAgC,GAAG,mEAAmE,CAAC;AAC7G,MAAM,mCAAmC,GAAG,0BAA0B,CAAC;AAEvE,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IACpG,KAAK,EAAE,OAAC;SACN,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SAC5C,QAA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AK,SAAS,EAAE,CAAC;YAC1F,OAAO;gBACN,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,4CAAmB,CAAC,MAAM;gBAClC,OAAO,EAAE,MAAM,CAAC,MAAM,IAAI,+BAA+B;gBACzD,SAAS,EAAE,8BAA8B;aACzC,CAAC;QACH,CAAC;QAED,OAAO;YACN,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,4CAAmB,CAAC,SAAS;YACrC,OAAO,EAAE,OAAO,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,gBAAgB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YACxF,IAAI,EAAE;gBACL,SAAS,EAAE,MAAM,CAAC,MAAM;gBACxB,UAAU,EAAE,MAAM,CAAC,OAAO;gBAC1B,WAAW,EAAE,MAAM,CAAC,QAAQ;gBAC5B,KAAK,EAAE,MAAM,CAAC,KAAK;aACnB;SACD,CAAC;IACH,CAAC;CACD,CAAA;AA7FY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAK8B,iDAAsB;QAC9B,gDAAqB;GAL3C,wBAAwB,CA6FpC"}
@@ -0,0 +1,5 @@
1
+ export declare class DeviceStructureLockService {
2
+ private readonly heldOnThisChain;
3
+ private tail;
4
+ runExclusive<T>(fn: () => Promise<T>): Promise<T>;
5
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.DeviceStructureLockService = void 0;
10
+ const node_async_hooks_1 = require("node:async_hooks");
11
+ const common_1 = require("@nestjs/common");
12
+ let DeviceStructureLockService = class DeviceStructureLockService {
13
+ constructor() {
14
+ this.heldOnThisChain = new node_async_hooks_1.AsyncLocalStorage();
15
+ this.tail = Promise.resolve();
16
+ }
17
+ async runExclusive(fn) {
18
+ if (this.heldOnThisChain.getStore()) {
19
+ return fn();
20
+ }
21
+ const ticket = this.tail.then(() => this.heldOnThisChain.run(true, fn), () => this.heldOnThisChain.run(true, fn));
22
+ this.tail = ticket.then(() => { }, () => { });
23
+ return ticket;
24
+ }
25
+ };
26
+ exports.DeviceStructureLockService = DeviceStructureLockService;
27
+ exports.DeviceStructureLockService = DeviceStructureLockService = __decorate([
28
+ (0, common_1.Injectable)()
29
+ ], DeviceStructureLockService);
30
+ //# sourceMappingURL=device-structure-lock.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-structure-lock.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/device-structure-lock.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAqD;AAErD,2CAA4C;AA0BrC,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAAhC;QACW,oBAAe,GAAG,IAAI,oCAAiB,EAAQ,CAAC;QAEzD,SAAI,GAAqB,OAAO,CAAC,OAAO,EAAE,CAAC;IAqBpD,CAAC;IAnBA,KAAK,CAAC,YAAY,CAAI,EAAoB;QACzC,IAAI,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,EAAE,CAAC;YACrC,OAAO,EAAE,EAAE,CAAC;QACb,CAAC;QAID,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAC5B,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,EACxC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CACxC,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CACtB,GAAG,EAAE,GAAE,CAAC,EACR,GAAG,EAAE,GAAE,CAAC,CACR,CAAC;QAEF,OAAO,MAAM,CAAC;IACf,CAAC;CACD,CAAA;AAxBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;GACA,0BAA0B,CAwBtC"}
@@ -14,6 +14,9 @@ export declare class DeviceZonesService {
14
14
  getZoneDevices(zoneId: string): Promise<DeviceEntity[]>;
15
15
  addDeviceToZone(deviceId: string, zoneId: string): Promise<DeviceZoneEntity>;
16
16
  removeDeviceFromZone(deviceId: string, zoneId: string): Promise<void>;
17
- setDeviceZones(deviceId: string, zoneIds: string[]): Promise<SpaceEntity[]>;
17
+ setDeviceZones(deviceId: string, zoneIds: string[], { initialPlacement }?: {
18
+ initialPlacement?: boolean;
19
+ }): Promise<SpaceEntity[]>;
20
+ private assertPlacementChangeAllowed;
18
21
  clearDeviceZones(deviceId: string): Promise<void>;
19
22
  }
@@ -59,6 +59,7 @@ let DeviceZonesService = class DeviceZonesService {
59
59
  this.logger.error(`Device with id=${deviceId} not found`);
60
60
  throw new devices_exceptions_1.DevicesNotFoundException('Device not found');
61
61
  }
62
+ this.assertPlacementChangeAllowed(device);
62
63
  const zone = await this.spaceRepository.findOne({ where: { id: zoneId } });
63
64
  if (!zone) {
64
65
  this.logger.error(`Zone with id=${zoneId} not found`);
@@ -79,30 +80,48 @@ let DeviceZonesService = class DeviceZonesService {
79
80
  this.logger.debug(`Device ${deviceId} already in zone ${zoneId}`);
80
81
  return existing;
81
82
  }
82
- const deviceZone = this.repository.create({
83
- deviceId,
84
- zoneId,
85
- });
86
- await this.repository.save(deviceZone);
83
+ const zoneTable = this.repository.metadata.tableName;
84
+ const deviceTable = this.deviceRepository.metadata.tableName;
85
+ await this.repository.manager.query(`INSERT INTO "${zoneTable}" ("deviceId", "zoneId") SELECT ?, ? WHERE EXISTS (SELECT 1 FROM "${deviceTable}" d WHERE d.id = ? AND COALESCE(d.hidden, 0) = 0)`, [deviceId, zoneId, deviceId]);
86
+ const inserted = await this.repository.findOne({ where: { deviceId, zoneId } });
87
+ if (!inserted) {
88
+ this.logger.error(`Refused zone membership change on device id=${deviceId} hidden while it was being added`);
89
+ throw new devices_exceptions_1.DevicesNotAllowedException(devices_constants_1.DEVICE_PLACEMENT_LOCKED_MESSAGE);
90
+ }
87
91
  this.logger.debug(`Successfully added device ${deviceId} to zone ${zoneId}`);
88
- this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, device);
89
- return deviceZone;
92
+ const current = await this.deviceRepository.findOne({ where: { id: deviceId } });
93
+ if (!current) {
94
+ this.logger.debug(`Device ${deviceId} was deleted while it was being added to a zone; announcing nothing`);
95
+ return inserted;
96
+ }
97
+ this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, current);
98
+ return inserted;
90
99
  }
91
100
  async removeDeviceFromZone(deviceId, zoneId) {
92
101
  this.logger.debug(`Removing device ${deviceId} from zone ${zoneId}`);
93
- const result = await this.repository.delete({ deviceId, zoneId });
94
- if (result.affected === 0) {
102
+ const device = await this.deviceRepository.findOne({ where: { id: deviceId } });
103
+ this.assertPlacementChangeAllowed(device);
104
+ const zoneTable = this.repository.metadata.tableName;
105
+ const deviceTable = this.deviceRepository.metadata.tableName;
106
+ const wasAMember = await this.repository.findOne({ where: { deviceId, zoneId } });
107
+ await this.repository.manager.query(`DELETE FROM "${zoneTable}" WHERE "deviceId" = ? AND "zoneId" = ? AND EXISTS (SELECT 1 FROM "${deviceTable}" d WHERE d.id = ? AND COALESCE(d.hidden, 0) = 0)`, [deviceId, zoneId, deviceId]);
108
+ if (wasAMember && (await this.repository.findOne({ where: { deviceId, zoneId } }))) {
109
+ this.logger.error(`Refused zone removal on device id=${deviceId} hidden while it was being applied`);
110
+ throw new devices_exceptions_1.DevicesNotAllowedException(devices_constants_1.DEVICE_PLACEMENT_LOCKED_MESSAGE);
111
+ }
112
+ if (!wasAMember) {
95
113
  this.logger.warn(`Device ${deviceId} was not in zone ${zoneId}`);
114
+ return;
96
115
  }
97
- else {
98
- this.logger.debug(`Successfully removed device ${deviceId} from zone ${zoneId}`);
99
- const device = await this.deviceRepository.findOne({ where: { id: deviceId } });
100
- if (device) {
101
- this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, device);
102
- }
116
+ this.logger.debug(`Successfully removed device ${deviceId} from zone ${zoneId}`);
117
+ const stillThere = await this.deviceRepository.findOne({ where: { id: deviceId } });
118
+ if (!stillThere) {
119
+ this.logger.debug(`Device ${deviceId} was deleted while its zone membership was being removed; announcing nothing`);
120
+ return;
103
121
  }
122
+ this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, stillThere);
104
123
  }
105
- async setDeviceZones(deviceId, zoneIds) {
124
+ async setDeviceZones(deviceId, zoneIds, { initialPlacement = false } = {}) {
106
125
  this.logger.debug(`Setting zones for device ${deviceId}: ${zoneIds.join(', ')}`);
107
126
  const device = await this.deviceRepository.findOne({ where: { id: deviceId } });
108
127
  if (!device) {
@@ -126,18 +145,37 @@ let DeviceZonesService = class DeviceZonesService {
126
145
  }
127
146
  validatedZones.push(zone);
128
147
  }
129
- await this.repository.delete({ deviceId });
130
- if (zoneIds.length > 0) {
131
- const deviceZones = zoneIds.map((zoneId) => this.repository.create({
132
- deviceId,
133
- zoneId,
134
- }));
135
- await this.repository.save(deviceZones);
136
- }
148
+ const zoneTable = this.repository.metadata.tableName;
149
+ const deviceTable = this.deviceRepository.metadata.tableName;
150
+ await this.repository.manager.transaction(async (manager) => {
151
+ const visible = initialPlacement
152
+ ? [{ id: deviceId }]
153
+ : await manager.query(`SELECT id FROM "${deviceTable}" WHERE id = ? AND COALESCE(hidden, 0) = 0`, [deviceId]);
154
+ if (visible.length === 0) {
155
+ this.logger.error(`Refused zone replacement on device id=${deviceId} hidden while it was being applied`);
156
+ throw new devices_exceptions_1.DevicesNotAllowedException(devices_constants_1.DEVICE_PLACEMENT_LOCKED_MESSAGE);
157
+ }
158
+ await manager.query(`DELETE FROM "${zoneTable}" WHERE "deviceId" = ?`, [deviceId]);
159
+ for (const zoneId of zoneIds) {
160
+ await manager.query(`INSERT INTO "${zoneTable}" ("deviceId", "zoneId") VALUES (?, ?)`, [deviceId, zoneId]);
161
+ }
162
+ });
137
163
  this.logger.debug(`Successfully set ${zoneIds.length} zones for device ${deviceId}`);
138
- this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, device);
164
+ const current = await this.deviceRepository.findOne({ where: { id: deviceId } });
165
+ if (!current) {
166
+ this.logger.debug(`Device ${deviceId} was deleted while its zones were being set; announcing nothing`);
167
+ return validatedZones;
168
+ }
169
+ this.eventEmitter.emit(devices_constants_1.EventType.DEVICE_UPDATED, current);
139
170
  return validatedZones;
140
171
  }
172
+ assertPlacementChangeAllowed(device) {
173
+ if (!device?.hidden) {
174
+ return;
175
+ }
176
+ this.logger.error(`Refused zone membership change on hidden device id=${device.id}`);
177
+ throw new devices_exceptions_1.DevicesNotAllowedException(devices_constants_1.DEVICE_PLACEMENT_LOCKED_MESSAGE);
178
+ }
141
179
  async clearDeviceZones(deviceId) {
142
180
  this.logger.debug(`Clearing all zones for device ${deviceId}`);
143
181
  const result = await this.repository.delete({ deviceId });
@@ -1 +1 @@
1
- {"version":3,"file":"device-zones.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/device-zones.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqC;AAErC,2CAA4C;AAC5C,yDAAsD;AACtD,6CAAmD;AAEnD,8FAAwF;AACxF,qEAAiE;AACjE,oEAA+E;AAC/E,4DAAsE;AACtE,8DAA6F;AAC7F,uEAAkE;AAClE,+DAA0D;AAGnD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAG9B,YAEC,UAAyD,EAEzD,gBAA2D,EAE3D,eAAyD,EACxC,YAA2B;QAL3B,eAAU,GAAV,UAAU,CAA8B;QAExC,qBA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,CAAC;QAE/D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAE1D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,MAAM,CAAC,QAAQ,IAAI,CAAC,gCAAgC,QAAQ,EAAE,CAAC,CAAC;IAC9F,CAAC;CACD,CAAA;AAvMY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAKV,WAAA,IAAA,0BAAgB,EAAC,qCAAgB,CAAC,CAAA;IAElC,WAAA,IAAA,0BAAgB,EAAC,6BAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,0BAAW,CAAC,CAAA;qCAHD,oBAAU;QAEJ,oBAAU;QAEX,oBAAU;QACb,6BAAa;GAVjC,kBAAkB,CAuM9B"}
1
+ {"version":3,"file":"device-zones.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/device-zones.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqC;AAErC,2CAA4C;AAC5C,yDAAsD;AACtD,6CAAmD;AAEnD,8FAAwF;AACxF,qEAAiE;AACjE,oEAA+E;AAC/E,4DAAuG;AACvG,8DAI+B;AAC/B,uEAAkE;AAClE,+DAA0D;AAGnD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAG9B,YAEC,UAAyD,EAEzD,gBAA2D,EAE3D,eAAyD,EACxC,YAA2B;QAL3B,eAAU,GAAV,UAAU,CAA8B;QAExC,qBAAgB,GAAhB,gBAAgB,CAA0B;QAE1C,oBAAe,GAAf,eAAe,CAAyB;QACxC,iBAAY,GAAZ,YAAY,CAAe;QAT5B,WAAM,GAAG,IAAA,gDAAqB,EAAC,uCAAmB,EAAE,oBAAoB,CAAC,CAAC;IAUxF,CAAC;IAKJ,KAAK,CAAC,cAAc,CAAC,QAAgB;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,QAA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AC,gBAAgB,CAAC,QAAgB;QACtC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,QAAQ,EAAE,CAAC,CAAC;QAE/D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAE1D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,MAAM,CAAC,QAAQ,IAAI,CAAC,gCAAgC,QAAQ,EAAE,CAAC,CAAC;IAC9F,CAAC;CACD,CAAA;AAhWY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAKV,WAAA,IAAA,0BAAgB,EAAC,qCAAgB,CAAC,CAAA;IAElC,WAAA,IAAA,0BAAgB,EAAC,6BAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,0BAAW,CAAC,CAAA;qCAHD,oBAAU;QAEJ,oBAAU;QAEX,oBAAU;QACb,6BAAa;GAVjC,kBAAkB,CAgW9B"}
@@ -0,0 +1,12 @@
1
+ import { BulkResultModel } from '../../api/models/bulk.model';
2
+ import { DevicesTypeMapperService } from './devices-type-mapper.service';
3
+ import { DevicesService } from './devices.service';
4
+ export declare class DevicesBulkService {
5
+ private readonly devicesService;
6
+ private readonly devicesMapperService;
7
+ private readonly logger;
8
+ constructor(devicesService: DevicesService, devicesMapperService: DevicesTypeMapperService);
9
+ remove(ids: string[]): Promise<BulkResultModel>;
10
+ setEnabled(ids: string[], enabled: boolean): Promise<BulkResultModel>;
11
+ private getOrThrow;
12
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DevicesBulkService = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const common_1 = require("@nestjs/common");
15
+ const extension_logger_service_1 = require("../../../common/logger/extension-logger.service");
16
+ const transform_utils_1 = require("../../../common/utils/transform.utils");
17
+ const bulk_utils_1 = require("../../api/utils/bulk.utils");
18
+ const devices_constants_1 = require("../devices.constants");
19
+ const devices_exceptions_1 = require("../devices.exceptions");
20
+ const devices_type_mapper_service_1 = require("./devices-type-mapper.service");
21
+ const devices_service_1 = require("./devices.service");
22
+ let DevicesBulkService = class DevicesBulkService {
23
+ constructor(devicesService, devicesMapperService) {
24
+ this.devicesService = devicesService;
25
+ this.devicesMapperService = devicesMapperService;
26
+ this.logger = (0, extension_logger_service_1.createExtensionLogger)(devices_constants_1.DEVICES_MODULE_NAME, 'DevicesBulkService');
27
+ }
28
+ async remove(ids) {
29
+ const result = await (0, bulk_utils_1.runBulkOperation)(ids, async (id) => {
30
+ const device = await this.getOrThrow(id);
31
+ await this.devicesService.remove(device.id);
32
+ }, { fallbackReason: 'Device could not be removed', safeErrors: [devices_exceptions_1.DevicesException], logger: this.logger });
33
+ this.logger.debug(`Bulk removal finished succeeded=${result.succeeded.length} failed=${result.failed.length}`);
34
+ return result;
35
+ }
36
+ async setEnabled(ids, enabled) {
37
+ const result = await (0, bulk_utils_1.runBulkOperation)(ids, async (id) => {
38
+ const device = await this.getOrThrow(id);
39
+ let mapping;
40
+ try {
41
+ mapping = this.devicesMapperService.getMapping(device.type);
42
+ }
43
+ catch {
44
+ throw new devices_exceptions_1.DevicesException(`Unsupported device type: ${device.type}`);
45
+ }
46
+ const dtoInstance = (0, transform_utils_1.toInstance)(mapping.updateDto, { type: device.type, enabled }, { excludeExtraneousValues: false });
47
+ const errors = await (0, class_validator_1.validate)(dtoInstance, {
48
+ whitelist: true,
49
+ forbidNonWhitelisted: true,
50
+ stopAtFirstError: false,
51
+ });
52
+ if (errors.length > 0) {
53
+ throw new devices_exceptions_1.DevicesValidationException('Device could not be updated');
54
+ }
55
+ await this.devicesService.update(device.id, dtoInstance);
56
+ }, { fallbackReason: 'Device could not be updated', safeErrors: [devices_exceptions_1.DevicesException], logger: this.logger });
57
+ this.logger.debug(`Bulk enabled=${String(enabled)} finished succeeded=${result.succeeded.length} failed=${result.failed.length}`);
58
+ return result;
59
+ }
60
+ async getOrThrow(id) {
61
+ const device = await this.devicesService.findOne(id);
62
+ if (!device) {
63
+ throw new devices_exceptions_1.DevicesNotFoundException('Requested device does not exist');
64
+ }
65
+ return device;
66
+ }
67
+ };
68
+ exports.DevicesBulkService = DevicesBulkService;
69
+ exports.DevicesBulkService = DevicesBulkService = __decorate([
70
+ (0, common_1.Injectable)(),
71
+ __metadata("design:paramtypes", [devices_service_1.DevicesService,
72
+ devices_type_mapper_service_1.DevicesTypeMapperService])
73
+ ], DevicesBulkService);
74
+ //# sourceMappingURL=devices-bulk.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devices-bulk.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/devices-bulk.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,2CAA4C;AAE5C,8FAAwF;AACxF,2EAAmE;AAEnE,2DAA8D;AAC9D,4DAA2D;AAC3D,8DAA+G;AAK/G,+EAA4F;AAC5F,uDAAmD;AAU5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAG9B,YACkB,cAA8B,EAC9B,oBAA8C;QAD9C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAApB,oBAAoB,CAA0B;QAJ/C,WAAM,GAAG,IAAA,gDAAq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Device;
7
7
  createDto: new (...args: any[]) => TCreateDTO;
8
8
  updateDto: new (...args: any[]) => TUpdateDTO;
9
+ beforeUpdate?: (device: TDevice, previous: Readonly<Partial<TDevice>>) => Promise<void>;
9
10
  afterCreate?: (device: TDevice, createDto?: TCreateDTO) => Promise<TDevice>;
10
11
  afterUpdate?: (device: TDevice) => Promise<TDevice>;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"devices-type-mapper.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/devices-type-mapper.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAE5C,8FAAwF;AACxF,4DAA2D;AAC3D,8DAAyD;AAmBlD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACW,WAAM,GAAG,IAAA,gDAAqB,EAAC,uCAAmB,EAAE,0BAA0B,CAAC,CAAC;QAEhF,aAAQ,GAAG,IAAI,GAAG,EAA4C,CAAC;IA6BjF,CAAC;IA3BA,eAAe,CACd,OAA2D;QAE3D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,OAAO,CAAC,IAAI,4BAA4B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED,UAAU,CACT,IAAY;QAEZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gDAAgD,IAAI,GAAG,CAAC,CAAC;QAE3E,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAChB,uCAAuC,IAAI,yCAAyC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,EAAE,CAC3I,CAAC;YAEF,MAAM,IAAI,qCAAgB,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oDAAoD,IAAI,GAAG,CAAC,CAAC;QAE/E,OAAO,OAA6D,CAAC;IACtE,CAAC;CACD,CAAA;AAhCY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;GACA,wBAAwB,CAgCpC"}
1
+ {"version":3,"file":"devices-type-mapper.service.js","sourceRoot":"","sources":["../../../../src/modules/devices/services/devices-type-mapper.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAE5C,8FAAwF;AACxF,4DAA2D;AAC3D,8DAAyD;AAqClD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACW,WAAM,GAAG,IAAA,gDAAqB,EAAC,uCAAmB,EAAE,0BAA0B,CAAC,CAAC;QAEhF,aAAQ,GAAG,IAAI,GAAG,EAA4C,CAAC;IA6BjF,CAAC;IA3BA,eAAe,CACd,OAA2D;QAE3D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,OAAO,CAAC,IAAI,4BAA4B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED,UAAU,CACT,IAAY;QAEZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gDAAgD,IAAI,GAAG,CAAC,CAAC;QAE3E,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAExC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAChB,uCAAuC,IAAI,yCAAyC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,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