@camstack/types 1.2.575 → 1.2.577

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 (47) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/addon.js +1 -1
  3. package/dist/addon.mjs +1 -1
  4. package/dist/automation/action.d.ts +2 -0
  5. package/dist/automation/scheduler.d.ts +2 -0
  6. package/dist/capabilities/action-source.cap.d.ts +1 -0
  7. package/dist/capabilities/actions.cap.d.ts +7 -0
  8. package/dist/capabilities/air-quality-sensor.cap.d.ts +2 -0
  9. package/dist/capabilities/capability-definition.d.ts +22 -0
  10. package/dist/capabilities/climate-control.cap.d.ts +6 -0
  11. package/dist/capabilities/core-blocks.cap.d.ts +20 -0
  12. package/dist/capabilities/device-manager.cap.d.ts +18 -0
  13. package/dist/capabilities/energy-system.cap.d.ts +7 -0
  14. package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
  15. package/dist/capabilities/humidity-sensor.cap.d.ts +2 -0
  16. package/dist/capabilities/index.d.ts +4 -2
  17. package/dist/capabilities/power-meter.cap.d.ts +2 -0
  18. package/dist/capabilities/schedulers.cap.d.ts +8 -0
  19. package/dist/capabilities/stream-params.cap.d.ts +4 -0
  20. package/dist/capabilities/tags.cap.d.ts +123 -0
  21. package/dist/capabilities/temperature-sensor.cap.d.ts +2 -0
  22. package/dist/capabilities/template.cap.d.ts +8 -0
  23. package/dist/capabilities/water-heater.cap.d.ts +2 -0
  24. package/dist/capabilities/weather-station.cap.d.ts +10 -0
  25. package/dist/client.js +685 -678
  26. package/dist/client.mjs +685 -678
  27. package/dist/device/device-management.d.ts +4 -0
  28. package/dist/device-template-catalogue.d.ts +67 -0
  29. package/dist/device-template-catalogue.js +361 -0
  30. package/dist/device-template-catalogue.mjs +346 -0
  31. package/dist/expression/device-template.d.ts +5 -6
  32. package/dist/generated/addon-api.d.ts +43 -0
  33. package/dist/generated/cap-vocabulary.d.ts +1 -1
  34. package/dist/generated/capability-router-map.d.ts +5 -2
  35. package/dist/generated/device-proxy.d.ts +1 -1
  36. package/dist/generated/history-catalog.d.ts +6 -1
  37. package/dist/generated/method-access-map.d.ts +1 -1
  38. package/dist/generated/method-device-selectors.d.ts +2 -2
  39. package/dist/generated/system-proxy.d.ts +2 -0
  40. package/dist/history/primary-series.d.ts +10 -0
  41. package/dist/index.d.ts +7 -1
  42. package/dist/index.js +4110 -3735
  43. package/dist/index.mjs +4076 -3736
  44. package/dist/{sleep-CsIzA4m_.js → sleep-BURDyp_n.js} +7 -1
  45. package/dist/{sleep-CLDVTB5R.mjs → sleep-C9EWTQr9.mjs} +7 -1
  46. package/dist/tags/tag.d.ts +56 -0
  47. package/package.json +6 -1
@@ -47,6 +47,8 @@ export declare const temperatureSensorCapability: {
47
47
  * History (D850): recorded series.
48
48
  */
49
49
  readonly history: {
50
+ readonly primary: 'temperature';
51
+ readonly priority: 100;
50
52
  readonly fields: {
51
53
  readonly temperature: {
52
54
  readonly kind: 'gauge';
@@ -24,6 +24,7 @@ export declare const TemplateRecordSchema: z.ZodObject<{
24
24
  createdAt: z.ZodNumber;
25
25
  updatedAt: z.ZodNumber;
26
26
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
27
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
28
  }, z.core.$strip>;
28
29
  export type TemplateRecord = z.infer<typeof TemplateRecordSchema>;
29
30
  export declare const TEMPLATE_WRITE_REFUSALS: readonly ['invalid-payload', 'not-found', 'read-only'];
@@ -40,6 +41,7 @@ export declare const TemplateWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
40
41
  createdAt: z.ZodNumber;
41
42
  updatedAt: z.ZodNumber;
42
43
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
44
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
45
  }, z.core.$strip>;
44
46
  }, z.core.$strip>, z.ZodObject<{
45
47
  status: z.ZodLiteral<"refused">;
@@ -102,6 +104,7 @@ export declare const templateCapability: {
102
104
  createdAt: z.ZodNumber;
103
105
  updatedAt: z.ZodNumber;
104
106
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
107
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
108
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
106
109
  readonly get: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
107
110
  id: z.ZodString;
@@ -116,6 +119,7 @@ export declare const templateCapability: {
116
119
  createdAt: z.ZodNumber;
117
120
  updatedAt: z.ZodNumber;
118
121
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
122
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
123
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
120
124
  readonly create: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
121
125
  kind: z.ZodEnum<{
@@ -124,6 +128,7 @@ export declare const templateCapability: {
124
128
  }>;
125
129
  name: z.ZodString;
126
130
  payload: z.ZodUnknown;
131
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
132
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
128
133
  status: z.ZodLiteral<"saved">;
129
134
  template: z.ZodObject<{
@@ -137,6 +142,7 @@ export declare const templateCapability: {
137
142
  createdAt: z.ZodNumber;
138
143
  updatedAt: z.ZodNumber;
139
144
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
145
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
146
  }, z.core.$strip>;
141
147
  }, z.core.$strip>, z.ZodObject<{
142
148
  status: z.ZodLiteral<"refused">;
@@ -151,6 +157,7 @@ export declare const templateCapability: {
151
157
  id: z.ZodString;
152
158
  name: z.ZodOptional<z.ZodString>;
153
159
  payload: z.ZodOptional<z.ZodUnknown>;
160
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
161
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
155
162
  status: z.ZodLiteral<"saved">;
156
163
  template: z.ZodObject<{
@@ -164,6 +171,7 @@ export declare const templateCapability: {
164
171
  createdAt: z.ZodNumber;
165
172
  updatedAt: z.ZodNumber;
166
173
  builtIn: z.ZodOptional<z.ZodLiteral<true>>;
174
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
175
  }, z.core.$strip>;
168
176
  }, z.core.$strip>, z.ZodObject<{
169
177
  status: z.ZodLiteral<"refused">;
@@ -97,11 +97,13 @@ export declare const waterHeaterCapability: {
97
97
  readonly history: {
98
98
  readonly fields: {
99
99
  readonly currentTemp: {
100
+ readonly group: 'temperature';
100
101
  readonly kind: 'gauge';
101
102
  readonly unit: '°C';
102
103
  readonly deadband: 0.5;
103
104
  };
104
105
  readonly targetTemp: {
106
+ readonly group: 'temperature';
105
107
  readonly kind: 'gauge';
106
108
  readonly unit: '°C';
107
109
  readonly minIntervalMs: 0;
@@ -122,8 +122,11 @@ export declare const weatherStationCapability: {
122
122
  * levels, so `gauge`; `counter` is for a monotonic meter only.
123
123
  */
124
124
  readonly history: {
125
+ readonly primary: 'temperature';
126
+ readonly priority: 60;
125
127
  readonly fields: {
126
128
  readonly temperature: {
129
+ readonly group: 'temperature';
127
130
  readonly kind: 'gauge';
128
131
  readonly unit: '°C';
129
132
  readonly deadband: 0.1;
@@ -139,16 +142,19 @@ export declare const weatherStationCapability: {
139
142
  readonly deadband: 0.2;
140
143
  };
141
144
  readonly windSpeed: {
145
+ readonly group: 'wind-speed';
142
146
  readonly kind: 'gauge';
143
147
  readonly unit: 'm/s';
144
148
  readonly deadband: 0.2;
145
149
  };
146
150
  readonly windGust: {
151
+ readonly group: 'wind-speed';
147
152
  readonly kind: 'gauge';
148
153
  readonly unit: 'm/s';
149
154
  readonly deadband: 0.2;
150
155
  };
151
156
  readonly windBearing: {
157
+ readonly group: 'wind-bearing';
152
158
  readonly kind: 'gauge';
153
159
  readonly unit: '°';
154
160
  readonly deadband: 5;
@@ -179,11 +185,13 @@ export declare const weatherStationCapability: {
179
185
  readonly deadband: 5;
180
186
  };
181
187
  readonly dewPoint: {
188
+ readonly group: 'temperature';
182
189
  readonly kind: 'gauge';
183
190
  readonly unit: '°C';
184
191
  readonly deadband: 0.1;
185
192
  };
186
193
  readonly feelsLike: {
194
+ readonly group: 'temperature';
187
195
  readonly kind: 'gauge';
188
196
  readonly unit: '°C';
189
197
  readonly deadband: 0.1;
@@ -194,11 +202,13 @@ export declare const weatherStationCapability: {
194
202
  readonly deadband: 0.05;
195
203
  };
196
204
  readonly windGustMax: {
205
+ readonly group: 'wind-speed';
197
206
  readonly kind: 'gauge';
198
207
  readonly unit: 'm/s';
199
208
  readonly deadband: 0.2;
200
209
  };
201
210
  readonly windBearingAvg: {
211
+ readonly group: 'wind-bearing';
202
212
  readonly kind: 'gauge';
203
213
  readonly unit: '°';
204
214
  readonly deadband: 5;