@camstack/types 1.2.428 → 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 (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/addon/session-health.d.ts +124 -0
  3. package/dist/addon.js +4 -3
  4. package/dist/addon.mjs +4 -3
  5. package/dist/automation/action.d.ts +210 -0
  6. package/dist/automation/condition-eval.d.ts +64 -0
  7. package/dist/automation/detection-trigger.d.ts +66 -0
  8. package/dist/automation/index.d.ts +12 -2
  9. package/dist/automation/recipe.d.ts +103 -1
  10. package/dist/automation/run-gate.d.ts +43 -0
  11. package/dist/automation/step-runner.d.ts +82 -0
  12. package/dist/automation/trace.d.ts +325 -0
  13. package/dist/capabilities/action-source.cap.d.ts +74 -0
  14. package/dist/capabilities/actions.cap.d.ts +459 -0
  15. package/dist/capabilities/core-blocks.cap.d.ts +761 -0
  16. package/dist/capabilities/index.d.ts +5 -1
  17. package/dist/capabilities/pet-feeder.cap.d.ts +15 -1
  18. package/dist/client.js +73 -49
  19. package/dist/client.mjs +73 -49
  20. package/dist/enums/event-category.d.ts +5 -0
  21. package/dist/enums.js +1 -1
  22. package/dist/enums.mjs +1 -1
  23. package/dist/{event-category-Ave2VSxY.js → event-category-BhzwWQCH.js} +5 -0
  24. package/dist/{event-category-CT-hz5Rb.mjs → event-category-hdMR7CTW.mjs} +5 -0
  25. package/dist/generated/addon-api.d.ts +135 -0
  26. package/dist/generated/addon-cap-facts.d.ts +1 -1
  27. package/dist/generated/capability-router-map.d.ts +10 -4
  28. package/dist/generated/collection-array-methods.d.ts +1 -1
  29. package/dist/generated/device-proxy.d.ts +2 -0
  30. package/dist/generated/history-catalog.d.ts +1 -1
  31. package/dist/generated/method-access-map.d.ts +1 -1
  32. package/dist/generated/method-device-selectors.d.ts +2 -2
  33. package/dist/generated/system-proxy.d.ts +5 -1
  34. package/dist/index.d.ts +6 -2
  35. package/dist/index.js +3211 -1093
  36. package/dist/index.mjs +3153 -1094
  37. package/dist/{sleep-edKiOXLo.js → sleep-5zRztaHa.js} +24 -2
  38. package/dist/{sleep--jXS9hWo.mjs → sleep-BHjNez61.mjs} +24 -2
  39. 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",
@@ -7943,6 +7946,18 @@ var CAP_STATE_LEAVES = Object.freeze({
7943
7946
  "path": "foodLevel",
7944
7947
  "valueType": "number"
7945
7948
  },
7949
+ {
7950
+ "path": "bowlFood",
7951
+ "valueType": "number"
7952
+ },
7953
+ {
7954
+ "path": "eating",
7955
+ "valueType": "boolean"
7956
+ },
7957
+ {
7958
+ "path": "supportsMarkRefilled",
7959
+ "valueType": "boolean"
7960
+ },
7946
7961
  {
7947
7962
  "path": "food1",
7948
7963
  "valueType": "number"
@@ -9479,6 +9494,12 @@ function createDeviceProxy(api, binding, opts) {
9479
9494
  removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
9480
9495
  updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
9481
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
+ };
9482
9503
  const addonSettingsInterface = {
9483
9504
  getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
9484
9505
  updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
@@ -9814,6 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
9814
9835
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
9815
9836
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
9816
9837
  ...bound("zones") ? { zones: zonesInterface } : {},
9838
+ actions: actionsInterface,
9817
9839
  addonSettings: addonSettingsInterface,
9818
9840
  audioAnalyzer: audioAnalyzerInterface,
9819
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",
@@ -7943,6 +7946,18 @@ var CAP_STATE_LEAVES = Object.freeze({
7943
7946
  "path": "foodLevel",
7944
7947
  "valueType": "number"
7945
7948
  },
7949
+ {
7950
+ "path": "bowlFood",
7951
+ "valueType": "number"
7952
+ },
7953
+ {
7954
+ "path": "eating",
7955
+ "valueType": "boolean"
7956
+ },
7957
+ {
7958
+ "path": "supportsMarkRefilled",
7959
+ "valueType": "boolean"
7960
+ },
7946
7961
  {
7947
7962
  "path": "food1",
7948
7963
  "valueType": "number"
@@ -9479,6 +9494,12 @@ function createDeviceProxy(api, binding, opts) {
9479
9494
  removeZone: (input) => dispatch("zones", "zones", "removeZone", "mutation", input),
9480
9495
  updateZone: (input) => dispatch("zones", "zones", "updateZone", "mutation", input)
9481
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
+ };
9482
9503
  const addonSettingsInterface = {
9483
9504
  getDeviceSettings: (input) => dispatchSystem("addonSettings", "getDeviceSettings", "query", input),
9484
9505
  updateDeviceSettings: (input) => dispatchSystem("addonSettings", "updateDeviceSettings", "mutation", input)
@@ -9814,6 +9835,7 @@ function createDeviceProxy(api, binding, opts) {
9814
9835
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
9815
9836
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
9816
9837
  ...bound("zones") ? { zones: zonesInterface } : {},
9838
+ actions: actionsInterface,
9817
9839
  addonSettings: addonSettingsInterface,
9818
9840
  audioAnalyzer: audioAnalyzerInterface,
9819
9841
  deviceAdoption: deviceAdoptionInterface,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.428",
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",