@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.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/air-quality-sensor.cap.d.ts +2 -8
- package/dist/capabilities/ambient-light-sensor.cap.d.ts +3 -14
- package/dist/capabilities/battery.cap.d.ts +9 -2
- package/dist/capabilities/binary.cap.d.ts +0 -5
- package/dist/capabilities/capability-definition.d.ts +11 -6
- package/dist/capabilities/composer.cap.d.ts +198 -0
- package/dist/capabilities/consumables.cap.d.ts +30 -41
- package/dist/capabilities/control.cap.d.ts +3 -25
- package/dist/capabilities/core-blocks.cap.d.ts +1421 -0
- package/dist/capabilities/customize-catalog.d.ts +0 -8
- package/dist/capabilities/customize-spec.d.ts +2 -3
- package/dist/capabilities/device-manager.cap.d.ts +79 -0
- package/dist/capabilities/device-provider.cap.d.ts +36 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +5 -17
- package/dist/capabilities/group-status.cap.d.ts +46 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +3 -14
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/motion.cap.d.ts +13 -5
- package/dist/capabilities/numeric-sensor.cap.d.ts +8 -16
- package/dist/capabilities/pet-feeder.cap.d.ts +1 -1
- package/dist/capabilities/power-meter.cap.d.ts +0 -11
- package/dist/capabilities/pressure-sensor.cap.d.ts +3 -9
- package/dist/capabilities/running-state.cap.d.ts +1 -2
- package/dist/capabilities/runtime-field-unit.d.ts +1 -0
- package/dist/capabilities/runtime-field-units.d.ts +8 -0
- package/dist/capabilities/switch.cap.d.ts +0 -5
- package/dist/capabilities/temperature-sensor.cap.d.ts +5 -20
- package/dist/capabilities/weather.cap.d.ts +4 -13
- package/dist/client.d.ts +2 -1
- package/dist/client.js +57 -5
- package/dist/client.mjs +55 -6
- package/dist/composition/composition-report.d.ts +80 -3
- package/dist/composition/composition.d.ts +285 -5
- package/dist/composition/helpers/aggregate.d.ts +41 -0
- package/dist/composition/helpers/catalog.d.ts +42 -0
- package/dist/composition/helpers/compile.d.ts +22 -0
- package/dist/composition/helpers/index.d.ts +6 -0
- package/dist/composition/helpers/save.d.ts +18 -0
- package/dist/composition/helpers/source-pick.d.ts +40 -0
- package/dist/composition/helpers/spec.d.ts +38 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/source-ref.d.ts +11 -0
- package/dist/composition/state-fields.d.ts +1 -1
- package/dist/composition/validate-composition.d.ts +8 -2
- package/dist/{composition-kEl9mevu.mjs → composition-B85l9j1M.mjs} +114 -8
- package/dist/{composition-DsmkwP9-.js → composition-OJKOJJD-.js} +179 -7
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
- package/dist/device/cap-vocabulary/types.d.ts +2 -2
- package/dist/device/schema-fields.d.ts +3 -0
- package/dist/device/source-info.d.ts +12 -6
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/customize-catalog.d.ts +11 -87
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1458 -499
- package/dist/index.mjs +1420 -499
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-BPQ2ZyaI.js → sleep-7Gw3GJ4n.js} +232 -127
- package/dist/{sleep-BErAxhul.mjs → sleep-B81gwQuR.mjs} +179 -128
- package/dist/units/convert.d.ts +5 -0
- package/dist/units/format-reading.d.ts +15 -0
- package/dist/units/index.d.ts +8 -1
- package/dist/units/ingest-reading.d.ts +21 -0
- package/dist/units/quantity.d.ts +47 -0
- package/dist/units/threshold.d.ts +6 -0
- package/dist/units/unit-table.d.ts +2 -228
- package/package.json +1 -1
- 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
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
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.
|