@camstack/types 1.2.421 → 1.2.423
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 +129 -57
- package/dist/capabilities/core-blocks.cap.d.ts +936 -410
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/meter.cap.d.ts +53 -0
- package/dist/capabilities/notification-rules.cap.d.ts +12 -0
- package/dist/client.js +17 -1
- package/dist/client.mjs +17 -1
- package/dist/composition/composition-report.d.ts +45 -0
- package/dist/composition/composition.d.ts +196 -19
- package/dist/composition/helpers/compile-history.d.ts +13 -0
- package/dist/composition/helpers/compile.d.ts +2 -1
- package/dist/composition/helpers/energy.d.ts +8 -0
- package/dist/composition/helpers/history-math.d.ts +39 -0
- package/dist/composition/helpers/history-window.d.ts +71 -0
- package/dist/composition/helpers/index.d.ts +6 -2
- package/dist/composition/helpers/source-pick.d.ts +2 -0
- package/dist/composition/helpers/spec.d.ts +23 -10
- package/dist/{composition-B3Hkb6v7.js → composition-CPRAP41h.js} +792 -8
- package/dist/{composition-B2rw5L29.mjs → composition-CpETZ4HL.mjs} +595 -9
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -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 +761 -447
- package/dist/index.mjs +723 -448
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-bykKrTgu.mjs → sleep-0sD_LHLI.mjs} +10 -1
- package/dist/{sleep-YJ6FVsUu.js → sleep-CEKGW7A5.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-CPRAP41h.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 { 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";
|
|
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";
|
|
@@ -6735,6 +6735,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
6735
6735
|
"login-method",
|
|
6736
6736
|
"media-player",
|
|
6737
6737
|
"mesh-network",
|
|
6738
|
+
"meter",
|
|
6738
6739
|
"metrics-provider",
|
|
6739
6740
|
"model-convert",
|
|
6740
6741
|
"model-distributor",
|
|
@@ -7793,6 +7794,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7793
7794
|
]
|
|
7794
7795
|
}
|
|
7795
7796
|
],
|
|
7797
|
+
"meter": [{
|
|
7798
|
+
"path": "value",
|
|
7799
|
+
"valueType": "number"
|
|
7800
|
+
}],
|
|
7796
7801
|
"motion": [
|
|
7797
7802
|
{
|
|
7798
7803
|
"path": "detected",
|
|
@@ -9154,6 +9159,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9154
9159
|
playMedia: (input) => dispatch("media-player", "mediaPlayer", "playMedia", "mutation", input),
|
|
9155
9160
|
getStatus: (input) => dispatch("media-player", "mediaPlayer", "getStatus", "query", input)
|
|
9156
9161
|
};
|
|
9162
|
+
const meterInterface = { getStatus: (input) => dispatch("meter", "meter", "getStatus", "query", input) };
|
|
9157
9163
|
const motionInterface = {
|
|
9158
9164
|
isDetected: (input) => dispatch("motion", "motion", "isDetected", "query", input),
|
|
9159
9165
|
getStatus: (input) => dispatch("motion", "motion", "getStatus", "query", input)
|
|
@@ -9669,6 +9675,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9669
9675
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
9670
9676
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
9671
9677
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
9678
|
+
meter: createSliceHandle(stateSource, binding.deviceId, "meter"),
|
|
9672
9679
|
motion: createSliceHandle(stateSource, binding.deviceId, "motion"),
|
|
9673
9680
|
motionTrigger: createSliceHandle(stateSource, binding.deviceId, "motion-trigger"),
|
|
9674
9681
|
motionZones: createSliceHandle(stateSource, binding.deviceId, "motion-zones"),
|
|
@@ -9754,6 +9761,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9754
9761
|
...bound("lawn-mower-control") ? { lawnMowerControl: lawnMowerControlInterface } : {},
|
|
9755
9762
|
...bound("lock-control") ? { lockControl: lockControlInterface } : {},
|
|
9756
9763
|
...bound("media-player") ? { mediaPlayer: mediaPlayerInterface } : {},
|
|
9764
|
+
...bound("meter") ? { meter: meterInterface } : {},
|
|
9757
9765
|
...bound("motion") ? { motion: motionInterface } : {},
|
|
9758
9766
|
...bound("motion-detection") ? { motionDetection: motionDetectionInterface } : {},
|
|
9759
9767
|
...bound("motion-trigger") ? { motionTrigger: motionTriggerInterface } : {},
|
|
@@ -9827,7 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9827
9835
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
9828
9836
|
* (~144MB RSS per runner, D28).
|
|
9829
9837
|
*
|
|
9830
|
-
* Coverage:
|
|
9838
|
+
* Coverage: 94 device-scoped capabilities.
|
|
9831
9839
|
*/
|
|
9832
9840
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
9833
9841
|
"accessories",
|
|
@@ -9879,6 +9887,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
9879
9887
|
"lawn-mower-control",
|
|
9880
9888
|
"lock-control",
|
|
9881
9889
|
"media-player",
|
|
9890
|
+
"meter",
|
|
9882
9891
|
"motion",
|
|
9883
9892
|
"motion-detection",
|
|
9884
9893
|
"motion-trigger",
|
|
@@ -6735,6 +6735,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
6735
6735
|
"login-method",
|
|
6736
6736
|
"media-player",
|
|
6737
6737
|
"mesh-network",
|
|
6738
|
+
"meter",
|
|
6738
6739
|
"metrics-provider",
|
|
6739
6740
|
"model-convert",
|
|
6740
6741
|
"model-distributor",
|
|
@@ -7793,6 +7794,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7793
7794
|
]
|
|
7794
7795
|
}
|
|
7795
7796
|
],
|
|
7797
|
+
"meter": [{
|
|
7798
|
+
"path": "value",
|
|
7799
|
+
"valueType": "number"
|
|
7800
|
+
}],
|
|
7796
7801
|
"motion": [
|
|
7797
7802
|
{
|
|
7798
7803
|
"path": "detected",
|
|
@@ -9154,6 +9159,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9154
9159
|
playMedia: (input) => dispatch("media-player", "mediaPlayer", "playMedia", "mutation", input),
|
|
9155
9160
|
getStatus: (input) => dispatch("media-player", "mediaPlayer", "getStatus", "query", input)
|
|
9156
9161
|
};
|
|
9162
|
+
const meterInterface = { getStatus: (input) => dispatch("meter", "meter", "getStatus", "query", input) };
|
|
9157
9163
|
const motionInterface = {
|
|
9158
9164
|
isDetected: (input) => dispatch("motion", "motion", "isDetected", "query", input),
|
|
9159
9165
|
getStatus: (input) => dispatch("motion", "motion", "getStatus", "query", input)
|
|
@@ -9669,6 +9675,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9669
9675
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
9670
9676
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
9671
9677
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
9678
|
+
meter: createSliceHandle(stateSource, binding.deviceId, "meter"),
|
|
9672
9679
|
motion: createSliceHandle(stateSource, binding.deviceId, "motion"),
|
|
9673
9680
|
motionTrigger: createSliceHandle(stateSource, binding.deviceId, "motion-trigger"),
|
|
9674
9681
|
motionZones: createSliceHandle(stateSource, binding.deviceId, "motion-zones"),
|
|
@@ -9754,6 +9761,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9754
9761
|
...bound("lawn-mower-control") ? { lawnMowerControl: lawnMowerControlInterface } : {},
|
|
9755
9762
|
...bound("lock-control") ? { lockControl: lockControlInterface } : {},
|
|
9756
9763
|
...bound("media-player") ? { mediaPlayer: mediaPlayerInterface } : {},
|
|
9764
|
+
...bound("meter") ? { meter: meterInterface } : {},
|
|
9757
9765
|
...bound("motion") ? { motion: motionInterface } : {},
|
|
9758
9766
|
...bound("motion-detection") ? { motionDetection: motionDetectionInterface } : {},
|
|
9759
9767
|
...bound("motion-trigger") ? { motionTrigger: motionTriggerInterface } : {},
|
|
@@ -9827,7 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9827
9835
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
9828
9836
|
* (~144MB RSS per runner, D28).
|
|
9829
9837
|
*
|
|
9830
|
-
* Coverage:
|
|
9838
|
+
* Coverage: 94 device-scoped capabilities.
|
|
9831
9839
|
*/
|
|
9832
9840
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
9833
9841
|
"accessories",
|
|
@@ -9879,6 +9887,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
9879
9887
|
"lawn-mower-control",
|
|
9880
9888
|
"lock-control",
|
|
9881
9889
|
"media-player",
|
|
9890
|
+
"meter",
|
|
9882
9891
|
"motion",
|
|
9883
9892
|
"motion-detection",
|
|
9884
9893
|
"motion-trigger",
|