@camstack/types 1.2.529 → 1.2.531

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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/addon.js +1 -1
  3. package/dist/addon.mjs +1 -1
  4. package/dist/capabilities/capability-definition.d.ts +15 -0
  5. package/dist/capabilities/climate-control.cap.d.ts +26 -1
  6. package/dist/capabilities/enum-sensor.cap.d.ts +1 -1
  7. package/dist/capabilities/hero-layout.cap.d.ts +158 -17
  8. package/dist/capabilities/index.d.ts +1 -1
  9. package/dist/capabilities/integration-instances.cap.d.ts +3 -0
  10. package/dist/capabilities/integrations.cap.d.ts +3 -28
  11. package/dist/capabilities/water-heater.cap.d.ts +5 -1
  12. package/dist/client.js +0 -1
  13. package/dist/client.mjs +0 -1
  14. package/dist/device/hero/climate-view.d.ts +45 -0
  15. package/dist/device/hero/hero-contribution-kit.d.ts +27 -0
  16. package/dist/device/hero/hero-contributions-access.d.ts +2 -0
  17. package/dist/device/hero/hero-contributions-actuators.d.ts +2 -0
  18. package/dist/device/hero/hero-contributions-climate.d.ts +3 -0
  19. package/dist/device/hero/hero-contributions-devices.d.ts +2 -0
  20. package/dist/device/hero/hero-contributions-groups.d.ts +2 -0
  21. package/dist/device/hero/hero-contributions-sensors.d.ts +2 -0
  22. package/dist/device/hero/hero-contributions.d.ts +2 -5
  23. package/dist/device/hero/hero-fragment.d.ts +11 -1
  24. package/dist/device/hero/hero-look.d.ts +80 -14
  25. package/dist/device/hero/hero-model.d.ts +224 -34
  26. package/dist/device/hero/hero-row.d.ts +30 -5
  27. package/dist/device/hero/media-player-view.d.ts +6 -0
  28. package/dist/generated/addon-api.d.ts +0 -7
  29. package/dist/generated/addon-cap-facts.d.ts +1 -1
  30. package/dist/generated/method-access-map.d.ts +1 -1
  31. package/dist/generated/runtime-state-durability.d.ts +6 -1
  32. package/dist/generated/system-proxy.d.ts +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2499 -255
  35. package/dist/index.mjs +2500 -254
  36. package/dist/interfaces/addon.d.ts +1 -1
  37. package/dist/interfaces/storage-location.d.ts +0 -15
  38. package/dist/{sleep-CqvzKIq2.mjs → sleep-CS5Xp1iQ.mjs} +18 -1
  39. package/dist/{sleep-DX_umr22.js → sleep-ComzlWyT.js} +18 -1
  40. package/package.json +1 -1
@@ -1062,7 +1062,7 @@ export interface AddonDeclaration {
1062
1062
  * adding/discovering the first device. No config step, no config
1063
1063
  * button on the detail page. (Reolink/ONVIF/Ecowitt/Gree.)
1064
1064
  * - `'account'` — account/connection config; wizard shows the config
1065
- * step, then `integrations.create` with those settings.
1065
+ * step, then `integrationInstances.createInstance` with those settings.
1066
1066
  * (Dreo/Wyze/Dreame.)
1067
1067
  * - `'broker'` — the shared-bus/session broker step. (HomeAssistant/MQTT.)
1068
1068
  * Optional/transitional: when absent, `getAvailableTypes` DERIVES the mode
@@ -69,21 +69,6 @@ export declare const StorageLocationSchema: z.ZodObject<{
69
69
  updatedAt: z.ZodNumber;
70
70
  }, z.core.$strip>;
71
71
  export type StorageLocation = z.infer<typeof StorageLocationSchema>;
72
- /**
73
- * The retired `isDefault` key, DECLARED rather than dropped.
74
- *
75
- * A key removed from a non-strict `z.object` is stripped in silence (D380,
76
- * D381): a reader that still needs the old value gets `undefined` and cannot
77
- * tell "absent" from "never sent". The one reader that legitimately needs it —
78
- * the location store's boot migration, which turns the old default flag into
79
- * the `enabled` write set — parses THIS schema against the raw row instead, so
80
- * the migration is explicit and the live schema stays clean. Nothing else in
81
- * the repo may read it; `scripts/check-no-storage-default.ts` enforces that.
82
- */
83
- export declare const LegacyStorageLocationDefaultSchema: z.ZodObject<{
84
- isDefault: z.ZodOptional<z.ZodBoolean>;
85
- }, z.core.$strip>;
86
- export type LegacyStorageLocationDefault = z.infer<typeof LegacyStorageLocationDefaultSchema>;
87
72
  /**
88
73
  * Is this location a write target?
89
74
  *
@@ -12755,7 +12755,8 @@ var CALLER_STAMPED_CAPABILITIES = [
12755
12755
  "device-manager",
12756
12756
  "core-blocks",
12757
12757
  "migrations",
12758
- "device-transitions"
12758
+ "device-transitions",
12759
+ "integration-instances"
12759
12760
  ];
12760
12761
  /** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
12761
12762
  function withoutCallerStamp(input) {
@@ -13299,6 +13300,18 @@ var CAP_STATE_LEAVES = Object.freeze({
13299
13300
  {
13300
13301
  "path": "tempStep",
13301
13302
  "valueType": "number"
13303
+ },
13304
+ {
13305
+ "path": "lastActiveMode",
13306
+ "valueType": "enum",
13307
+ "enumValues": [
13308
+ "heat",
13309
+ "cool",
13310
+ "auto",
13311
+ "heat_cool",
13312
+ "fan_only",
13313
+ "dry"
13314
+ ]
13302
13315
  }
13303
13316
  ],
13304
13317
  "color": [
@@ -14723,6 +14736,10 @@ var CAP_STATE_LEAVES = Object.freeze({
14723
14736
  {
14724
14737
  "path": "maxTemp",
14725
14738
  "valueType": "number"
14739
+ },
14740
+ {
14741
+ "path": "lastActiveMode",
14742
+ "valueType": "string"
14726
14743
  }
14727
14744
  ],
14728
14745
  "weather": [
@@ -12755,7 +12755,8 @@ var CALLER_STAMPED_CAPABILITIES = [
12755
12755
  "device-manager",
12756
12756
  "core-blocks",
12757
12757
  "migrations",
12758
- "device-transitions"
12758
+ "device-transitions",
12759
+ "integration-instances"
12759
12760
  ];
12760
12761
  /** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
12761
12762
  function withoutCallerStamp(input) {
@@ -13299,6 +13300,18 @@ var CAP_STATE_LEAVES = Object.freeze({
13299
13300
  {
13300
13301
  "path": "tempStep",
13301
13302
  "valueType": "number"
13303
+ },
13304
+ {
13305
+ "path": "lastActiveMode",
13306
+ "valueType": "enum",
13307
+ "enumValues": [
13308
+ "heat",
13309
+ "cool",
13310
+ "auto",
13311
+ "heat_cool",
13312
+ "fan_only",
13313
+ "dry"
13314
+ ]
13302
13315
  }
13303
13316
  ],
13304
13317
  "color": [
@@ -14723,6 +14736,10 @@ var CAP_STATE_LEAVES = Object.freeze({
14723
14736
  {
14724
14737
  "path": "maxTemp",
14725
14738
  "valueType": "number"
14739
+ },
14740
+ {
14741
+ "path": "lastActiveMode",
14742
+ "valueType": "string"
14726
14743
  }
14727
14744
  ],
14728
14745
  "weather": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.529",
3
+ "version": "1.2.531",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",