@camstack/types 1.2.423 → 1.2.424

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 (46) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/composer.cap.d.ts +6 -0
  4. package/dist/capabilities/core-blocks.cap.d.ts +43 -0
  5. package/dist/capabilities/group-active.cap.d.ts +46 -0
  6. package/dist/capabilities/group-commands.cap.d.ts +1 -1
  7. package/dist/capabilities/group-status.cap.d.ts +1 -1
  8. package/dist/capabilities/index.d.ts +3 -1
  9. package/dist/capabilities/lock-control.cap.d.ts +1 -0
  10. package/dist/capabilities/switch.cap.d.ts +1 -1
  11. package/dist/client.js +3 -0
  12. package/dist/client.mjs +3 -0
  13. package/dist/composition/composition-report.d.ts +2 -0
  14. package/dist/composition/composition.d.ts +9 -0
  15. package/dist/composition/helpers/actuator-methods.d.ts +39 -0
  16. package/dist/composition/helpers/aggregate.d.ts +2 -0
  17. package/dist/composition/helpers/catalog.d.ts +7 -1
  18. package/dist/composition/helpers/compile-history.d.ts +16 -1
  19. package/dist/composition/helpers/compile-math.d.ts +9 -0
  20. package/dist/composition/helpers/history-math.d.ts +8 -0
  21. package/dist/composition/helpers/index.d.ts +6 -4
  22. package/dist/composition/helpers/source-pick.d.ts +8 -1
  23. package/dist/composition/helpers/spec.d.ts +49 -3
  24. package/dist/{composition-CpETZ4HL.mjs → composition-Bb8iwHEJ.mjs} +175 -5
  25. package/dist/{composition-CPRAP41h.js → composition-CpAc0YfQ.js} +228 -4
  26. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  27. package/dist/expression/builtins.d.ts +11 -2
  28. package/dist/expression/expression-source.d.ts +6 -1
  29. package/dist/generated/addon-api.d.ts +14 -0
  30. package/dist/generated/addon-cap-facts.d.ts +1 -1
  31. package/dist/generated/cap-status-types.d.ts +3 -1
  32. package/dist/generated/capability-router-map.d.ts +5 -2
  33. package/dist/generated/device-local-state.d.ts +3 -0
  34. package/dist/generated/device-proxy.d.ts +3 -0
  35. package/dist/generated/device-scoped-caps.d.ts +1 -1
  36. package/dist/generated/history-catalog.d.ts +1 -1
  37. package/dist/generated/method-access-map.d.ts +1 -1
  38. package/dist/generated/method-device-selectors.d.ts +1 -1
  39. package/dist/generated/runtime-state-durability.d.ts +1 -1
  40. package/dist/index.js +634 -33
  41. package/dist/index.mjs +611 -34
  42. package/dist/node.js +1 -1
  43. package/dist/node.mjs +1 -1
  44. package/dist/{sleep-0sD_LHLI.mjs → sleep--jXS9hWo.mjs} +10 -1
  45. package/dist/{sleep-CEKGW7A5.js → sleep-edKiOXLo.js} +10 -1
  46. package/package.json +1 -1
package/dist/node.js CHANGED
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_composition = require("./composition-CPRAP41h.js");
24
+ const require_composition = require("./composition-CpAc0YfQ.js");
25
25
  const require_err_msg = require("./err-msg-U7lLUMNz.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { An as Fmp4BoxSplitter, Cn as FFMPEG_PATH_ENV, Dn as getFfmpegArtifact, En as FFMPEG_RELEASE, F as compositionSourceKey, On as getFfmpegDownloadUrl, Pn as buildFfmpegArgs, Rn as isSoftwareDecode, Tn as ffmpegBinaryName, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, kn as canonicalHash, wn as chooseFfmpegBinary } from "./composition-CpETZ4HL.mjs";
1
+ import { F as compositionSourceKey, Fn as FFMPEG_RELEASE, In as getFfmpegArtifact, Ln as getFfmpegDownloadUrl, Mn as FFMPEG_PATH_ENV, Nn as chooseFfmpegBinary, Pn as ffmpegBinaryName, Rn as canonicalHash, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, qn as isSoftwareDecode, zn as Fmp4BoxSplitter } from "./composition-Bb8iwHEJ.mjs";
2
2
  import { t as errMsg } from "./err-msg-DIorGYeC.mjs";
3
3
  import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
4
4
  import * as fs from "node:fs";
@@ -6713,6 +6713,7 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-active",
6716
6717
  "group-commands",
6717
6718
  "group-status",
6718
6719
  "heating-valve",
@@ -7535,6 +7536,10 @@ var CAP_STATE_LEAVES = Object.freeze({
7535
7536
  "path": "detected",
7536
7537
  "valueType": "boolean"
7537
7538
  }],
7539
+ "group-active": [{
7540
+ "path": "active",
7541
+ "valueType": "boolean"
7542
+ }],
7538
7543
  "group-status": [
7539
7544
  {
7540
7545
  "path": "included",
@@ -9107,6 +9112,7 @@ function createDeviceProxy(api, binding, opts) {
9107
9112
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9108
9113
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9109
9114
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9115
+ const groupActiveInterface = { getStatus: (input) => dispatch("group-active", "groupActive", "getStatus", "query", input) };
9110
9116
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9111
9117
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9112
9118
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
@@ -9664,6 +9670,7 @@ function createDeviceProxy(api, binding, opts) {
9664
9670
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9665
9671
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9666
9672
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9673
+ groupActive: createSliceHandle(stateSource, binding.deviceId, "group-active"),
9667
9674
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9668
9675
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9669
9676
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
@@ -9750,6 +9757,7 @@ function createDeviceProxy(api, binding, opts) {
9750
9757
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9751
9758
  ...bound("flood") ? { flood: floodInterface } : {},
9752
9759
  ...bound("gas") ? { gas: gasInterface } : {},
9760
+ ...bound("group-active") ? { groupActive: groupActiveInterface } : {},
9753
9761
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9754
9762
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9755
9763
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
@@ -9835,7 +9843,7 @@ function createDeviceProxy(api, binding, opts) {
9835
9843
  * can answer "may a rule actuate this?" without importing the schema barrel
9836
9844
  * (~144MB RSS per runner, D28).
9837
9845
  *
9838
- * Coverage: 94 device-scoped capabilities.
9846
+ * Coverage: 95 device-scoped capabilities.
9839
9847
  */
9840
9848
  var DEVICE_SCOPED_CAPS = new Set([
9841
9849
  "accessories",
@@ -9876,6 +9884,7 @@ var DEVICE_SCOPED_CAPS = new Set([
9876
9884
  "feature-probe",
9877
9885
  "flood",
9878
9886
  "gas",
9887
+ "group-active",
9879
9888
  "group-commands",
9880
9889
  "group-status",
9881
9890
  "heating-valve",
@@ -6713,6 +6713,7 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-active",
6716
6717
  "group-commands",
6717
6718
  "group-status",
6718
6719
  "heating-valve",
@@ -7535,6 +7536,10 @@ var CAP_STATE_LEAVES = Object.freeze({
7535
7536
  "path": "detected",
7536
7537
  "valueType": "boolean"
7537
7538
  }],
7539
+ "group-active": [{
7540
+ "path": "active",
7541
+ "valueType": "boolean"
7542
+ }],
7538
7543
  "group-status": [
7539
7544
  {
7540
7545
  "path": "included",
@@ -9107,6 +9112,7 @@ function createDeviceProxy(api, binding, opts) {
9107
9112
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9108
9113
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9109
9114
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9115
+ const groupActiveInterface = { getStatus: (input) => dispatch("group-active", "groupActive", "getStatus", "query", input) };
9110
9116
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9111
9117
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9112
9118
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
@@ -9664,6 +9670,7 @@ function createDeviceProxy(api, binding, opts) {
9664
9670
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9665
9671
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9666
9672
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9673
+ groupActive: createSliceHandle(stateSource, binding.deviceId, "group-active"),
9667
9674
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9668
9675
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9669
9676
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
@@ -9750,6 +9757,7 @@ function createDeviceProxy(api, binding, opts) {
9750
9757
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9751
9758
  ...bound("flood") ? { flood: floodInterface } : {},
9752
9759
  ...bound("gas") ? { gas: gasInterface } : {},
9760
+ ...bound("group-active") ? { groupActive: groupActiveInterface } : {},
9753
9761
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9754
9762
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9755
9763
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
@@ -9835,7 +9843,7 @@ function createDeviceProxy(api, binding, opts) {
9835
9843
  * can answer "may a rule actuate this?" without importing the schema barrel
9836
9844
  * (~144MB RSS per runner, D28).
9837
9845
  *
9838
- * Coverage: 94 device-scoped capabilities.
9846
+ * Coverage: 95 device-scoped capabilities.
9839
9847
  */
9840
9848
  var DEVICE_SCOPED_CAPS = new Set([
9841
9849
  "accessories",
@@ -9876,6 +9884,7 @@ var DEVICE_SCOPED_CAPS = new Set([
9876
9884
  "feature-probe",
9877
9885
  "flood",
9878
9886
  "gas",
9887
+ "group-active",
9879
9888
  "group-commands",
9880
9889
  "group-status",
9881
9890
  "heating-valve",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.423",
3
+ "version": "1.2.424",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",