@camstack/server 1.2.932 → 1.2.934

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 (45) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/trpc/generated-cap-routers.js +20 -0
  3. package/package.json +8 -7
  4. package/system/dist/addon-utils.mjs +1 -1
  5. package/system/dist/{base-device-IuM1AwXZ.mjs → base-device-Bwiblqmn.mjs} +1 -1
  6. package/system/dist/{base-device-2sL1DMm1.js → base-device-C1z4zYGR.js} +1 -1
  7. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +3 -3
  8. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +4 -4
  9. package/system/dist/builtins/alerts/alerts.addon.js +2 -2
  10. package/system/dist/builtins/alerts/alerts.addon.mjs +4 -4
  11. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +4 -4
  12. package/system/dist/builtins/camera-grid/index.js +2 -2
  13. package/system/dist/builtins/camera-grid/index.mjs +2 -2
  14. package/system/dist/builtins/composer/composer.addon.js +5 -5
  15. package/system/dist/builtins/composer/composer.addon.mjs +5 -5
  16. package/system/dist/builtins/core-blocks/cap-links.d.ts +34 -0
  17. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +4 -0
  18. package/system/dist/builtins/core-blocks/core-blocks.addon.js +282 -8
  19. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +282 -8
  20. package/system/dist/builtins/device-manager/device-manager.addon.js +18 -4
  21. package/system/dist/builtins/device-manager/device-manager.addon.mjs +18 -4
  22. package/system/dist/builtins/local-auth/local-auth.addon.mjs +3 -3
  23. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  24. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +9 -9
  25. package/system/dist/builtins/platform-probe/index.mjs +9 -9
  26. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +19 -19
  27. package/system/dist/builtins/system-config/system-config.addon.mjs +113 -113
  28. package/system/dist/{composition-sources-BEUWn2s_.mjs → composition-sources-B0QW4g86.mjs} +2 -2
  29. package/system/dist/{composition-sources-acfR4hDq.js → composition-sources-BtUx1MfU.js} +2 -2
  30. package/system/dist/{coral-accelerators-zTMTEd-8.mjs → coral-accelerators-BKcXP59c.mjs} +6 -6
  31. package/system/dist/{core-blocks.cap-BRPsLAij.mjs → core-blocks.cap-CnwBuf7E.mjs} +1524 -1267
  32. package/system/dist/{core-blocks.cap-BMeMCBrx.js → core-blocks.cap-DlEuHq-S.js} +1555 -1268
  33. package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
  34. package/system/dist/{error.cap-CSM_SRfR.mjs → error.cap-5zNPAgU2.mjs} +19 -2
  35. package/system/dist/{error.cap-DBhgPeWK.js → error.cap-BCqzFlo2.js} +24 -1
  36. package/system/dist/{hub-identity-_IOgPJ00.mjs → hub-identity-DjMN9Ac2.mjs} +9 -9
  37. package/system/dist/{hub-mdns-ciao-Dk7ts_Uk.mjs → hub-mdns-ciao-DBrtHOcc.mjs} +1 -1
  38. package/system/dist/index.js +2 -2
  39. package/system/dist/index.mjs +214 -214
  40. package/system/dist/{prefix-walk-ifwg_ukx.mjs → prefix-walk-CRnbYJcC.mjs} +2 -2
  41. package/system/dist/{prefix-walk-BkMxoXpL.js → prefix-walk-DD1BM923.js} +2 -2
  42. package/system/dist/{rename-composition-block-BJsL58Ih.js → rename-composition-block-BRgyBO25.js} +20 -2
  43. package/system/dist/{rename-composition-block-OAtErZgq.mjs → rename-composition-block-BYRBlx-V.mjs} +20 -2
  44. package/system/dist/{restore-archive-kSFNjkWY.mjs → restore-archive-CjAyKpgX.mjs} +93 -93
  45. package/system/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { At as eventLeafIdAt, Bt as anySubjectMatches, Ft as describeHoldMs, Lt as describeWantedFaults, Nt as isEventLeaf, Pt as compareValues, Qt as occurrenceOn, Rt as faultMatches, Ut as isQuantityValue, Xt as localDateOf, Yt as isKnownTimeZone, en as weekdayOfLocalDate, jt as forEachLeaf, zt as readFault } from "./core-blocks.cap-BRPsLAij.mjs";
2
- import { lt as toExpressionValue, st as evaluateExpressionSource } from "./error.cap-CSM_SRfR.mjs";
1
+ import { Bt as describeHoldMs, Ft as eventLeafIdAt, Gt as anySubjectMatches, Ht as describeWantedFaults, It as forEachLeaf, Jt as isQuantityValue, Rt as isEventLeaf, Ut as faultMatches, Wt as readFault, an as weekdayOfLocalDate, en as isKnownTimeZone, rn as occurrenceOn, tn as localDateOf, zt as compareValues } from "./core-blocks.cap-CnwBuf7E.mjs";
2
+ import { ct as evaluateExpressionSource, ut as toExpressionValue } from "./error.cap-5zNPAgU2.mjs";
3
3
  import { t as prefixRange } from "./prefix-range-Dl0znowN.mjs";
4
4
  //#region ../types/dist/esm/time/time-window.mjs
5
5
  /**
@@ -1,5 +1,5 @@
1
- const require_core_blocks_cap = require("./core-blocks.cap-BMeMCBrx.js");
2
- const require_error_cap = require("./error.cap-DBhgPeWK.js");
1
+ const require_core_blocks_cap = require("./core-blocks.cap-DlEuHq-S.js");
2
+ const require_error_cap = require("./error.cap-BCqzFlo2.js");
3
3
  const require_prefix_range = require("./prefix-range-D_KueXbQ.js");
4
4
  //#region ../types/dist/esm/time/time-window.mjs
5
5
  /**
@@ -19,9 +19,9 @@ const require_platform_probe_cap = require("./platform-probe.cap-1WrMhWHx.js");
19
19
  const require_user_management_cap = require("./user-management.cap-B9QDu8NE.js");
20
20
  const require_device_type = require("./device-type-CbQsnFdC.js");
21
21
  const require_device_certificate = require("./device-certificate-CguVACQO.js");
22
- const require_core_blocks_cap = require("./core-blocks.cap-BMeMCBrx.js");
22
+ const require_core_blocks_cap = require("./core-blocks.cap-DlEuHq-S.js");
23
23
  const require_addon_settings_cap = require("./addon-settings.cap-DAiE0Nb0.js");
24
- const require_error_cap = require("./error.cap-DBhgPeWK.js");
24
+ const require_error_cap = require("./error.cap-BCqzFlo2.js");
25
25
  const require_source_info = require("./source-info-DtWf4k2j.js");
26
26
  const require_l10n = require("./l10n-CGMvp7NF.js");
27
27
  const require_addon_pages_cap = require("./addon-pages.cap-Df9FQwN1.js");
@@ -10069,6 +10069,17 @@ var energySystemCapability = {
10069
10069
  }
10070
10070
  },
10071
10071
  volatileStateFields: ["lastFetchedAt"],
10072
+ customize: {
10073
+ version: 1,
10074
+ targets: [],
10075
+ links: [{
10076
+ id: "heat-pump",
10077
+ sourceCap: "heat-pump-status",
10078
+ mode: "reference",
10079
+ slot: "heatPump",
10080
+ apply: "add"
10081
+ }]
10082
+ },
10072
10083
  vocabulary: {
10073
10084
  noun: /* @__PURE__ */ require_l10n.t("Energy system", "Sistema energetico"),
10074
10085
  order: 4020
@@ -22096,6 +22107,13 @@ var powerMeterCapability = {
22096
22107
  "voltage",
22097
22108
  "current"
22098
22109
  ]
22110
+ }],
22111
+ links: [{
22112
+ id: "meter-device",
22113
+ sourceCap: "power-meter",
22114
+ mode: "project",
22115
+ apply: "add",
22116
+ deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES
22099
22117
  }]
22100
22118
  },
22101
22119
  vocabulary: {
@@ -19,9 +19,9 @@ import { r as MODEL_FORMATS, t as platformProbeCapability } from "./platform-pro
19
19
  import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, r as ssoBridgeCapability, t as userManagementCapability } from "./user-management.cap-DBIi77sB.mjs";
20
20
  import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
21
21
  import { d as AppLoginPathSchema } from "./device-certificate-Cddm4Idn.mjs";
22
- import { $ as alertsCapability, B as customKeyOfRole, C as powerSourceCapability, Dt as TemplateTimeWindowValueSchema, Et as TemplateEventValueSchema, G as IrNativeCodeSchema, Gt as paramMetaOf, H as isRemoteRole, Ht as convertQuantityInput, I as irSourceProblem, J as TransmitSettingsSchema, Jt as unwrapSchema, K as IrNativeFormatSchema, Kt as enumerateItemArrayFields, L as remoteSourceSteps, M as mediaPlayerCapability, N as REMOTE_STEP_DELAY_MAX_MS, Ot as AutomationWhenSchema, P as RemoteSourceSchema, Tt as TemplateEntriesValueSchema, U as isRemoteWidgetRole, Ut as isQuantityValue, V as isRemoteCustomKey, Vt as QuantityUnitError, Wt as paramMeta, X as CompositionRunStatusSchema, Y as CompositionBlockStateSchema, _t as AutomationRecipeSchema, c as coreBlocksCapability, ct as SchedulerConflictSchema, dt as SchedulerPreviewSchema, et as AutomationRunOutcomeSchema, fn as vocabCall, ft as SchedulerSchema, gt as AutomationBranchStepSchema, ht as ActionStepSchema, j as MediaPlayerStatusSchema, kt as EVENT_LEAF_ID_RE, nn as EventVocabularyEntrySchema, pt as SchedulerStatusSchema, q as IrTimingsSchema, qt as enumerateSchemaFields, st as LOCAL_DATE_PATTERN, tt as AutomationRunTraceSchema, un as findVocabAction, ut as SchedulerInputSchema, wt as TemplateActionValueSchema, z as RemoteRoleSchema } from "./core-blocks.cap-BRPsLAij.mjs";
22
+ import { $t as unwrapSchema, A as MediaPlayerStatusSchema, At as TemplateEntriesValueSchema, B as isRemoteCustomKey, F as irSourceProblem, G as IrNativeFormatSchema, H as isRemoteWidgetRole, I as remoteSourceSteps, Jt as isQuantityValue, K as IrTimingsSchema, Kt as QuantityUnitError, M as REMOTE_STEP_DELAY_MAX_MS, Mt as TemplateTimeWindowValueSchema, N as RemoteSourceSchema, Nt as AutomationWhenSchema, Pt as EVENT_LEAF_ID_RE, Qt as enumerateSchemaFields, R as RemoteRoleSchema, St as AutomationRecipeSchema, V as isRemoteRole, W as IrNativeCodeSchema, Xt as paramMetaOf, Yt as paramMeta, Zt as enumerateItemArrayFields, _n as vocabCall, _t as SchedulerSchema, at as AutomationRunOutcomeSchema, bt as ActionStepSchema, c as coreBlocksCapability, et as CompositionBlockStateSchema, ft as LOCAL_DATE_PATTERN, gt as SchedulerPreviewSchema, hn as findVocabAction, ht as SchedulerInputSchema, it as alertsCapability, j as mediaPlayerCapability, jt as TemplateEventValueSchema, kt as TemplateActionValueSchema, ot as AutomationRunTraceSchema, pt as SchedulerConflictSchema, q as TransmitSettingsSchema, qt as convertQuantityInput, sn as EventVocabularyEntrySchema, tt as CompositionRunStatusSchema, vt as SchedulerStatusSchema, w as powerSourceCapability, xt as AutomationBranchStepSchema, z as customKeyOfRole } from "./core-blocks.cap-CnwBuf7E.mjs";
23
23
  import { i as addonSettingsCapability, o as unitDimension, s as unitsForDimension } from "./addon-settings.cap-3-TIIMq_.mjs";
24
- import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-CSM_SRfR.mjs";
24
+ import { R as COMPOSED_DEVICE_STABLE_ID_PREFIX, T as CompositionSchema, r as errorCapability, x as COMPOSER_ADDON_ID } from "./error.cap-5zNPAgU2.mjs";
25
25
  import { a as normalizeUnit } from "./source-info-DGB7SdB_.mjs";
26
26
  import { t } from "./l10n-Bu6aUvSY.mjs";
27
27
  import { t as addonPagesCapability } from "./addon-pages.cap-DksUlE8j.mjs";
@@ -10066,6 +10066,17 @@ var energySystemCapability = {
10066
10066
  }
10067
10067
  },
10068
10068
  volatileStateFields: ["lastFetchedAt"],
10069
+ customize: {
10070
+ version: 1,
10071
+ targets: [],
10072
+ links: [{
10073
+ id: "heat-pump",
10074
+ sourceCap: "heat-pump-status",
10075
+ mode: "reference",
10076
+ slot: "heatPump",
10077
+ apply: "add"
10078
+ }]
10079
+ },
10069
10080
  vocabulary: {
10070
10081
  noun: /* @__PURE__ */ t("Energy system", "Sistema energetico"),
10071
10082
  order: 4020
@@ -22026,6 +22037,13 @@ var powerMeterCapability = {
22026
22037
  "voltage",
22027
22038
  "current"
22028
22039
  ]
22040
+ }],
22041
+ links: [{
22042
+ id: "meter-device",
22043
+ sourceCap: "power-meter",
22044
+ mode: "project",
22045
+ apply: "add",
22046
+ deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES
22029
22047
  }]
22030
22048
  },
22031
22049
  vocabulary: {