@camstack/types 1.2.429 → 1.2.430
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/CHANGELOG.md +7 -0
- package/dist/addon.js +4 -3
- package/dist/addon.mjs +4 -3
- package/dist/automation/action.d.ts +210 -0
- package/dist/automation/condition-eval.d.ts +64 -0
- package/dist/automation/detection-trigger.d.ts +66 -0
- package/dist/automation/index.d.ts +12 -2
- package/dist/automation/recipe.d.ts +103 -1
- package/dist/automation/run-gate.d.ts +43 -0
- package/dist/automation/step-runner.d.ts +82 -0
- package/dist/automation/trace.d.ts +325 -0
- package/dist/capabilities/action-source.cap.d.ts +74 -0
- package/dist/capabilities/actions.cap.d.ts +459 -0
- package/dist/capabilities/core-blocks.cap.d.ts +761 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/client.js +73 -49
- package/dist/client.mjs +73 -49
- package/dist/enums/event-category.d.ts +5 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-Ave2VSxY.js → event-category-BhzwWQCH.js} +5 -0
- package/dist/{event-category-CT-hz5Rb.mjs → event-category-hdMR7CTW.mjs} +5 -0
- package/dist/generated/addon-api.d.ts +135 -0
- package/dist/generated/capability-router-map.d.ts +10 -4
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +2 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +5 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3032 -1182
- package/dist/index.mjs +2980 -1183
- package/dist/{sleep-hRhTSDlN.js → sleep-5zRztaHa.js} +12 -2
- package/dist/{sleep-BE7IAR2p.mjs → sleep-BHjNez61.mjs} +12 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
1
|
+
const require_event_category = require("./event-category-BhzwWQCH.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6428,7 +6428,8 @@ var CALLER_STAMPED_CAPABILITIES = [
|
|
|
6428
6428
|
"device-history",
|
|
6429
6429
|
"records",
|
|
6430
6430
|
"integrations",
|
|
6431
|
-
"device-manager"
|
|
6431
|
+
"device-manager",
|
|
6432
|
+
"core-blocks"
|
|
6432
6433
|
];
|
|
6433
6434
|
/** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
|
|
6434
6435
|
function withoutCallerStamp(input) {
|
|
@@ -6640,6 +6641,8 @@ var CAP_ADVANCE_FIELDS = Object.freeze({ "doorbell": "lastPressedAt" });
|
|
|
6640
6641
|
/** Every capability name, so addon code can check a name without the schema graph. */
|
|
6641
6642
|
var CAP_NAMES = Object.freeze([
|
|
6642
6643
|
"accessories",
|
|
6644
|
+
"action-source",
|
|
6645
|
+
"actions",
|
|
6643
6646
|
"addon-pages",
|
|
6644
6647
|
"addon-pages-source",
|
|
6645
6648
|
"addon-routes",
|
|
@@ -9491,6 +9494,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9491
9494
|
removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
|
|
9492
9495
|
updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
|
|
9493
9496
|
};
|
|
9497
|
+
const actionsInterface = {
|
|
9498
|
+
get: (input) => dispatchSystem("actions", "get", "query", input),
|
|
9499
|
+
run: (input) => dispatchSystem("actions", "run", "mutation", input),
|
|
9500
|
+
listForCamera: (input) => dispatchSystem("actions", "listForCamera", "query", input),
|
|
9501
|
+
getLinks: (input) => dispatchSystem("actions", "getLinks", "query", input)
|
|
9502
|
+
};
|
|
9494
9503
|
const addonSettingsInterface = {
|
|
9495
9504
|
getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
|
|
9496
9505
|
updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
|
|
@@ -9826,6 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9826
9835
|
...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
|
|
9827
9836
|
...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
|
|
9828
9837
|
...bound("zones") ? { zones: zonesInterface } : {},
|
|
9838
|
+
actions: actionsInterface,
|
|
9829
9839
|
addonSettings: addonSettingsInterface,
|
|
9830
9840
|
audioAnalyzer: audioAnalyzerInterface,
|
|
9831
9841
|
deviceAdoption: deviceAdoptionInterface,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-hdMR7CTW.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6428,7 +6428,8 @@ var CALLER_STAMPED_CAPABILITIES = [
|
|
|
6428
6428
|
"device-history",
|
|
6429
6429
|
"records",
|
|
6430
6430
|
"integrations",
|
|
6431
|
-
"device-manager"
|
|
6431
|
+
"device-manager",
|
|
6432
|
+
"core-blocks"
|
|
6432
6433
|
];
|
|
6433
6434
|
/** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
|
|
6434
6435
|
function withoutCallerStamp(input) {
|
|
@@ -6640,6 +6641,8 @@ var CAP_ADVANCE_FIELDS = Object.freeze({ "doorbell": "lastPressedAt" });
|
|
|
6640
6641
|
/** Every capability name, so addon code can check a name without the schema graph. */
|
|
6641
6642
|
var CAP_NAMES = Object.freeze([
|
|
6642
6643
|
"accessories",
|
|
6644
|
+
"action-source",
|
|
6645
|
+
"actions",
|
|
6643
6646
|
"addon-pages",
|
|
6644
6647
|
"addon-pages-source",
|
|
6645
6648
|
"addon-routes",
|
|
@@ -9491,6 +9494,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9491
9494
|
removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
|
|
9492
9495
|
updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
|
|
9493
9496
|
};
|
|
9497
|
+
const actionsInterface = {
|
|
9498
|
+
get: (input) => dispatchSystem("actions", "get", "query", input),
|
|
9499
|
+
run: (input) => dispatchSystem("actions", "run", "mutation", input),
|
|
9500
|
+
listForCamera: (input) => dispatchSystem("actions", "listForCamera", "query", input),
|
|
9501
|
+
getLinks: (input) => dispatchSystem("actions", "getLinks", "query", input)
|
|
9502
|
+
};
|
|
9494
9503
|
const addonSettingsInterface = {
|
|
9495
9504
|
getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
|
|
9496
9505
|
updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
|
|
@@ -9826,6 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
9826
9835
|
...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
|
|
9827
9836
|
...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
|
|
9828
9837
|
...bound("zones") ? { zones: zonesInterface } : {},
|
|
9838
|
+
actions: actionsInterface,
|
|
9829
9839
|
addonSettings: addonSettingsInterface,
|
|
9830
9840
|
audioAnalyzer: audioAnalyzerInterface,
|
|
9831
9841
|
deviceAdoption: deviceAdoptionInterface,
|