@camstack/types 1.2.422 → 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.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/composer.cap.d.ts +6 -0
- package/dist/capabilities/core-blocks.cap.d.ts +43 -0
- package/dist/capabilities/group-active.cap.d.ts +46 -0
- package/dist/capabilities/group-commands.cap.d.ts +1 -1
- package/dist/capabilities/group-status.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/lock-control.cap.d.ts +1 -0
- package/dist/capabilities/notification-rules.cap.d.ts +12 -0
- package/dist/capabilities/switch.cap.d.ts +1 -1
- package/dist/client.js +17 -1
- package/dist/client.mjs +17 -1
- package/dist/composition/composition-report.d.ts +2 -0
- package/dist/composition/composition.d.ts +9 -0
- package/dist/composition/helpers/actuator-methods.d.ts +39 -0
- package/dist/composition/helpers/aggregate.d.ts +2 -0
- package/dist/composition/helpers/catalog.d.ts +7 -1
- package/dist/composition/helpers/compile-history.d.ts +16 -1
- package/dist/composition/helpers/compile-math.d.ts +9 -0
- package/dist/composition/helpers/history-math.d.ts +8 -0
- package/dist/composition/helpers/index.d.ts +6 -4
- package/dist/composition/helpers/source-pick.d.ts +8 -1
- package/dist/composition/helpers/spec.d.ts +49 -3
- package/dist/{composition-CpETZ4HL.mjs → composition-Bb8iwHEJ.mjs} +175 -5
- package/dist/{composition-CPRAP41h.js → composition-CpAc0YfQ.js} +228 -4
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
- package/dist/expression/builtins.d.ts +11 -2
- package/dist/expression/expression-source.d.ts +6 -1
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/index.js +648 -34
- package/dist/index.mjs +625 -35
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-0sD_LHLI.mjs → sleep--jXS9hWo.mjs} +10 -1
- package/dist/{sleep-CEKGW7A5.js → sleep-edKiOXLo.js} +10 -1
- 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-
|
|
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 {
|
|
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:
|
|
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:
|
|
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",
|