@camstack/types 1.2.416 → 1.2.418

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 (79) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/air-quality-sensor.cap.d.ts +2 -8
  4. package/dist/capabilities/ambient-light-sensor.cap.d.ts +3 -14
  5. package/dist/capabilities/battery.cap.d.ts +9 -2
  6. package/dist/capabilities/binary.cap.d.ts +0 -5
  7. package/dist/capabilities/capability-definition.d.ts +11 -6
  8. package/dist/capabilities/composer.cap.d.ts +198 -0
  9. package/dist/capabilities/consumables.cap.d.ts +30 -41
  10. package/dist/capabilities/control.cap.d.ts +3 -25
  11. package/dist/capabilities/core-blocks.cap.d.ts +1421 -0
  12. package/dist/capabilities/customize-catalog.d.ts +0 -8
  13. package/dist/capabilities/customize-spec.d.ts +2 -3
  14. package/dist/capabilities/device-manager.cap.d.ts +79 -0
  15. package/dist/capabilities/device-provider.cap.d.ts +36 -0
  16. package/dist/capabilities/enum-sensor.cap.d.ts +5 -17
  17. package/dist/capabilities/group-status.cap.d.ts +46 -0
  18. package/dist/capabilities/humidity-sensor.cap.d.ts +3 -14
  19. package/dist/capabilities/index.d.ts +4 -2
  20. package/dist/capabilities/motion.cap.d.ts +13 -5
  21. package/dist/capabilities/numeric-sensor.cap.d.ts +8 -16
  22. package/dist/capabilities/pet-feeder.cap.d.ts +1 -1
  23. package/dist/capabilities/power-meter.cap.d.ts +0 -11
  24. package/dist/capabilities/pressure-sensor.cap.d.ts +3 -9
  25. package/dist/capabilities/running-state.cap.d.ts +1 -2
  26. package/dist/capabilities/runtime-field-unit.d.ts +1 -0
  27. package/dist/capabilities/runtime-field-units.d.ts +8 -0
  28. package/dist/capabilities/switch.cap.d.ts +0 -5
  29. package/dist/capabilities/temperature-sensor.cap.d.ts +5 -20
  30. package/dist/capabilities/weather.cap.d.ts +4 -13
  31. package/dist/client.d.ts +2 -1
  32. package/dist/client.js +57 -5
  33. package/dist/client.mjs +55 -6
  34. package/dist/composition/composition-report.d.ts +80 -3
  35. package/dist/composition/composition.d.ts +285 -5
  36. package/dist/composition/helpers/aggregate.d.ts +41 -0
  37. package/dist/composition/helpers/catalog.d.ts +42 -0
  38. package/dist/composition/helpers/compile.d.ts +22 -0
  39. package/dist/composition/helpers/index.d.ts +6 -0
  40. package/dist/composition/helpers/save.d.ts +18 -0
  41. package/dist/composition/helpers/source-pick.d.ts +40 -0
  42. package/dist/composition/helpers/spec.d.ts +38 -0
  43. package/dist/composition/index.d.ts +1 -0
  44. package/dist/composition/source-ref.d.ts +11 -0
  45. package/dist/composition/state-fields.d.ts +1 -1
  46. package/dist/composition/validate-composition.d.ts +8 -2
  47. package/dist/{composition-kEl9mevu.mjs → composition-B85l9j1M.mjs} +114 -8
  48. package/dist/{composition-DsmkwP9-.js → composition-OJKOJJD-.js} +179 -7
  49. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  50. package/dist/device/cap-vocabulary/types.d.ts +2 -2
  51. package/dist/device/schema-fields.d.ts +3 -0
  52. package/dist/device/source-info.d.ts +12 -6
  53. package/dist/generated/addon-api.d.ts +14 -0
  54. package/dist/generated/addon-cap-facts.d.ts +1 -1
  55. package/dist/generated/cap-status-types.d.ts +3 -1
  56. package/dist/generated/capability-router-map.d.ts +5 -2
  57. package/dist/generated/customize-catalog.d.ts +11 -87
  58. package/dist/generated/device-local-state.d.ts +3 -0
  59. package/dist/generated/device-proxy.d.ts +3 -0
  60. package/dist/generated/history-catalog.d.ts +1 -1
  61. package/dist/generated/method-access-map.d.ts +1 -1
  62. package/dist/generated/method-device-selectors.d.ts +1 -1
  63. package/dist/generated/runtime-state-durability.d.ts +1 -1
  64. package/dist/index.d.ts +3 -1
  65. package/dist/index.js +1458 -499
  66. package/dist/index.mjs +1420 -499
  67. package/dist/node.js +1 -1
  68. package/dist/node.mjs +1 -1
  69. package/dist/{sleep-BPQ2ZyaI.js → sleep-7Gw3GJ4n.js} +232 -127
  70. package/dist/{sleep-BErAxhul.mjs → sleep-B81gwQuR.mjs} +179 -128
  71. package/dist/units/convert.d.ts +5 -0
  72. package/dist/units/format-reading.d.ts +15 -0
  73. package/dist/units/index.d.ts +8 -1
  74. package/dist/units/ingest-reading.d.ts +21 -0
  75. package/dist/units/quantity.d.ts +47 -0
  76. package/dist/units/threshold.d.ts +6 -0
  77. package/dist/units/unit-table.d.ts +2 -228
  78. package/package.json +1 -1
  79. package/dist/capabilities/advanced-parameters.d.ts +0 -17
@@ -46,10 +46,9 @@ export type ControlKind = z.infer<typeof ControlKindSchema>;
46
46
  * (empty array for the other kinds). It lives in the slice because
47
47
  * HA `select.*` entities may update their options at runtime.
48
48
  *
49
- * The `unit`/`min`/`max`/`step` fields are meaningful for
50
- * `kind === 'numeric'` and are absent (undefined) for all other
51
- * kinds. They are populated live from HA attributes on each state
52
- * push — consistent with `options` and the sensor-unit approach.
49
+ * Numeric `min` / `max` / `step` live in the slice and share the device
50
+ * quantity (`SourceInfo.quantity`, D944). Display precision is a read-time
51
+ * preference. A datetime control's shape is `SourceInfo.dateTimeShape`.
53
52
  */
54
53
  export declare const ControlStatusSchema: z.ZodObject<{
55
54
  kind: z.ZodEnum<{
@@ -61,16 +60,9 @@ export declare const ControlStatusSchema: z.ZodObject<{
61
60
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
62
61
  options: z.ZodArray<z.ZodString>;
63
62
  lastChangedAt: z.ZodNumber;
64
- unit: z.ZodOptional<z.ZodString>;
65
63
  min: z.ZodOptional<z.ZodNumber>;
66
64
  max: z.ZodOptional<z.ZodNumber>;
67
65
  step: z.ZodOptional<z.ZodNumber>;
68
- precision: z.ZodOptional<z.ZodNumber>;
69
- format: z.ZodOptional<z.ZodEnum<{
70
- date: "date";
71
- datetime: "datetime";
72
- time: "time";
73
- }>>;
74
66
  }, z.core.$strip>;
75
67
  export type ControlStatus = z.infer<typeof ControlStatusSchema>;
76
68
  declare const ControlSetValueInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -122,16 +114,9 @@ export declare const controlCapability: {
122
114
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
123
115
  options: z.ZodArray<z.ZodString>;
124
116
  lastChangedAt: z.ZodNumber;
125
- unit: z.ZodOptional<z.ZodString>;
126
117
  min: z.ZodOptional<z.ZodNumber>;
127
118
  max: z.ZodOptional<z.ZodNumber>;
128
119
  step: z.ZodOptional<z.ZodNumber>;
129
- precision: z.ZodOptional<z.ZodNumber>;
130
- format: z.ZodOptional<z.ZodEnum<{
131
- date: "date";
132
- datetime: "datetime";
133
- time: "time";
134
- }>>;
135
120
  }, z.core.$strip>;
136
121
  readonly kind: 'push';
137
122
  };
@@ -150,16 +135,9 @@ export declare const controlCapability: {
150
135
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
151
136
  options: z.ZodArray<z.ZodString>;
152
137
  lastChangedAt: z.ZodNumber;
153
- unit: z.ZodOptional<z.ZodString>;
154
138
  min: z.ZodOptional<z.ZodNumber>;
155
139
  max: z.ZodOptional<z.ZodNumber>;
156
140
  step: z.ZodOptional<z.ZodNumber>;
157
- precision: z.ZodOptional<z.ZodNumber>;
158
- format: z.ZodOptional<z.ZodEnum<{
159
- date: "date";
160
- datetime: "datetime";
161
- time: "time";
162
- }>>;
163
141
  }, z.core.$strip>;
164
142
  /**
165
143
  * Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.