@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/addon.js +4 -3
  3. package/dist/addon.mjs +4 -3
  4. package/dist/automation/action.d.ts +210 -0
  5. package/dist/automation/condition-eval.d.ts +64 -0
  6. package/dist/automation/detection-trigger.d.ts +66 -0
  7. package/dist/automation/index.d.ts +12 -2
  8. package/dist/automation/recipe.d.ts +103 -1
  9. package/dist/automation/run-gate.d.ts +43 -0
  10. package/dist/automation/step-runner.d.ts +82 -0
  11. package/dist/automation/trace.d.ts +325 -0
  12. package/dist/capabilities/action-source.cap.d.ts +74 -0
  13. package/dist/capabilities/actions.cap.d.ts +459 -0
  14. package/dist/capabilities/core-blocks.cap.d.ts +761 -0
  15. package/dist/capabilities/index.d.ts +5 -1
  16. package/dist/client.js +73 -49
  17. package/dist/client.mjs +73 -49
  18. package/dist/enums/event-category.d.ts +5 -0
  19. package/dist/enums.js +1 -1
  20. package/dist/enums.mjs +1 -1
  21. package/dist/{event-category-Ave2VSxY.js → event-category-BhzwWQCH.js} +5 -0
  22. package/dist/{event-category-CT-hz5Rb.mjs → event-category-hdMR7CTW.mjs} +5 -0
  23. package/dist/generated/addon-api.d.ts +135 -0
  24. package/dist/generated/capability-router-map.d.ts +10 -4
  25. package/dist/generated/collection-array-methods.d.ts +1 -1
  26. package/dist/generated/device-proxy.d.ts +2 -0
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/method-device-selectors.d.ts +2 -2
  29. package/dist/generated/system-proxy.d.ts +5 -1
  30. package/dist/index.d.ts +4 -2
  31. package/dist/index.js +3032 -1182
  32. package/dist/index.mjs +2980 -1183
  33. package/dist/{sleep-hRhTSDlN.js → sleep-5zRztaHa.js} +12 -2
  34. package/dist/{sleep-BE7IAR2p.mjs → sleep-BHjNez61.mjs} +12 -2
  35. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-Ave2VSxY.js");
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-CT-hz5Rb.mjs";
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.429",
3
+ "version": "1.2.430",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",