@camstack/types 1.2.417 → 1.2.418

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 (42) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/capability-definition.d.ts +5 -0
  4. package/dist/capabilities/composer.cap.d.ts +198 -0
  5. package/dist/capabilities/core-blocks.cap.d.ts +1420 -0
  6. package/dist/capabilities/group-status.cap.d.ts +46 -0
  7. package/dist/capabilities/index.d.ts +3 -1
  8. package/dist/capabilities/motion.cap.d.ts +12 -4
  9. package/dist/client.js +3 -0
  10. package/dist/client.mjs +3 -0
  11. package/dist/composition/composition-report.d.ts +72 -0
  12. package/dist/composition/composition.d.ts +285 -5
  13. package/dist/composition/helpers/aggregate.d.ts +41 -0
  14. package/dist/composition/helpers/catalog.d.ts +42 -0
  15. package/dist/composition/helpers/compile.d.ts +22 -0
  16. package/dist/composition/helpers/index.d.ts +6 -0
  17. package/dist/composition/helpers/save.d.ts +18 -0
  18. package/dist/composition/helpers/source-pick.d.ts +40 -0
  19. package/dist/composition/helpers/spec.d.ts +38 -0
  20. package/dist/composition/index.d.ts +1 -0
  21. package/dist/composition/source-ref.d.ts +11 -0
  22. package/dist/composition/validate-composition.d.ts +5 -0
  23. package/dist/{composition-kEl9mevu.mjs → composition-B85l9j1M.mjs} +114 -8
  24. package/dist/{composition-DsmkwP9-.js → composition-OJKOJJD-.js} +179 -7
  25. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  26. package/dist/generated/addon-api.d.ts +14 -0
  27. package/dist/generated/addon-cap-facts.d.ts +1 -1
  28. package/dist/generated/cap-status-types.d.ts +3 -1
  29. package/dist/generated/capability-router-map.d.ts +5 -2
  30. package/dist/generated/device-local-state.d.ts +3 -0
  31. package/dist/generated/device-proxy.d.ts +3 -0
  32. package/dist/generated/history-catalog.d.ts +1 -1
  33. package/dist/generated/method-access-map.d.ts +1 -1
  34. package/dist/generated/method-device-selectors.d.ts +1 -1
  35. package/dist/generated/runtime-state-durability.d.ts +1 -1
  36. package/dist/index.js +706 -12
  37. package/dist/index.mjs +686 -13
  38. package/dist/node.js +1 -1
  39. package/dist/node.mjs +1 -1
  40. package/dist/{sleep-gtskVoMw.js → sleep-7Gw3GJ4n.js} +18 -0
  41. package/dist/{sleep-CARd6wZF.mjs → sleep-B81gwQuR.mjs} +18 -0
  42. 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-DsmkwP9-.js");
24
+ const require_composition = require("./composition-OJKOJJD-.js");
25
25
  const require_err_msg = require("./err-msg-BhVbr0NX.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 { At as Fmp4BoxSplitter, Ct as FFMPEG_PATH_ENV, Dt as getFfmpegArtifact, Et as FFMPEG_RELEASE, Ot as getFfmpegDownloadUrl, P as compositionSourceKey, Pt as buildFfmpegArgs, Rt as isSoftwareDecode, Tt as ffmpegBinaryName, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, kt as canonicalHash, wt as chooseFfmpegBinary } from "./composition-kEl9mevu.mjs";
1
+ import { Bt as canonicalHash, Ft as chooseFfmpegBinary, Gt as buildFfmpegArgs, It as ffmpegBinaryName, Lt as FFMPEG_RELEASE, P as compositionSourceKey, Pt as FFMPEG_PATH_ENV, Rt as getFfmpegArtifact, Vt as Fmp4BoxSplitter, Yt as isSoftwareDecode, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, zt as getFfmpegDownloadUrl } from "./composition-B85l9j1M.mjs";
2
2
  import { t as errMsg } from "./err-msg-BXKzRBwg.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-status",
6716
6717
  "heating-valve",
6717
6718
  "humidifier",
6718
6719
  "humidity-sensor",
@@ -7532,6 +7533,20 @@ var CAP_STATE_LEAVES = Object.freeze({
7532
7533
  "path": "detected",
7533
7534
  "valueType": "boolean"
7534
7535
  }],
7536
+ "group-status": [
7537
+ {
7538
+ "path": "included",
7539
+ "valueType": "number"
7540
+ },
7541
+ {
7542
+ "path": "excluded",
7543
+ "valueType": "number"
7544
+ },
7545
+ {
7546
+ "path": "total",
7547
+ "valueType": "number"
7548
+ }
7549
+ ],
7535
7550
  "heating-valve": [{
7536
7551
  "path": "position",
7537
7552
  "valueType": "number"
@@ -9086,6 +9101,7 @@ function createDeviceProxy(api, binding, opts) {
9086
9101
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9087
9102
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9088
9103
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9104
+ const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9089
9105
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9090
9106
  const humidifierInterface = {
9091
9107
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
@@ -9640,6 +9656,7 @@ function createDeviceProxy(api, binding, opts) {
9640
9656
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9641
9657
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9642
9658
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9659
+ groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9643
9660
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9644
9661
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
9645
9662
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
@@ -9723,6 +9740,7 @@ function createDeviceProxy(api, binding, opts) {
9723
9740
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9724
9741
  ...bound("flood") ? { flood: floodInterface } : {},
9725
9742
  ...bound("gas") ? { gas: gasInterface } : {},
9743
+ ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9726
9744
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9727
9745
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
9728
9746
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
@@ -6713,6 +6713,7 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-status",
6716
6717
  "heating-valve",
6717
6718
  "humidifier",
6718
6719
  "humidity-sensor",
@@ -7532,6 +7533,20 @@ var CAP_STATE_LEAVES = Object.freeze({
7532
7533
  "path": "detected",
7533
7534
  "valueType": "boolean"
7534
7535
  }],
7536
+ "group-status": [
7537
+ {
7538
+ "path": "included",
7539
+ "valueType": "number"
7540
+ },
7541
+ {
7542
+ "path": "excluded",
7543
+ "valueType": "number"
7544
+ },
7545
+ {
7546
+ "path": "total",
7547
+ "valueType": "number"
7548
+ }
7549
+ ],
7535
7550
  "heating-valve": [{
7536
7551
  "path": "position",
7537
7552
  "valueType": "number"
@@ -9086,6 +9101,7 @@ function createDeviceProxy(api, binding, opts) {
9086
9101
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9087
9102
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9088
9103
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9104
+ const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9089
9105
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9090
9106
  const humidifierInterface = {
9091
9107
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
@@ -9640,6 +9656,7 @@ function createDeviceProxy(api, binding, opts) {
9640
9656
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9641
9657
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9642
9658
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9659
+ groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9643
9660
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9644
9661
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
9645
9662
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
@@ -9723,6 +9740,7 @@ function createDeviceProxy(api, binding, opts) {
9723
9740
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9724
9741
  ...bound("flood") ? { flood: floodInterface } : {},
9725
9742
  ...bound("gas") ? { gas: gasInterface } : {},
9743
+ ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9726
9744
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9727
9745
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
9728
9746
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.417",
3
+ "version": "1.2.418",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",