@camstack/types 1.2.534 → 1.2.535
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/CHANGELOG.md +10 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/heat-pump-control.cap.d.ts +83 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +517 -0
- package/dist/capabilities/hero-layout.cap.d.ts +46 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/client.js +24 -0
- package/dist/client.mjs +24 -0
- package/dist/{composition-BjHGoicU.js → composition-BxalDSTt.js} +1 -1
- package/dist/{composition-CXCX78IR.mjs → composition-C6TZGqUb.mjs} +1 -1
- package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +4 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/build-hero-model.d.ts +2 -0
- package/dist/device/hero/climate-view.d.ts +4 -0
- package/dist/device/hero/hero-contributions-heat-pump.d.ts +2 -0
- package/dist/device/hero/hero-fragment.d.ts +4 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-model.d.ts +80 -1
- package/dist/device/hero/hero-row.d.ts +5 -0
- package/dist/device/hero/hero-scene.d.ts +4 -1
- package/dist/device/hero/index.d.ts +1 -1
- package/dist/{device-type-BaYa0UGS.js → device-type-BfvqqzRp.js} +4 -0
- package/dist/{device-type-CbDhVwFP.mjs → device-type-DTTZKB2I.mjs} +4 -0
- package/dist/generated/addon-api.d.ts +120 -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 +8 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +2 -2
- 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.js +1375 -139
- package/dist/index.mjs +1361 -140
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-DhZXJtPH.js → sleep-CCAQ_PEp.js} +201 -5
- package/dist/{sleep-CkinsFFb.mjs → sleep-DnVqHJc4.mjs} +201 -5
- package/package.json +1 -1
|
@@ -88,6 +88,7 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
88
88
|
fan: "fan";
|
|
89
89
|
gateway: "gateway";
|
|
90
90
|
generic: "generic";
|
|
91
|
+
"heat-pump": "heat-pump";
|
|
91
92
|
heater: "heater";
|
|
92
93
|
"lawn-mower": "lawn-mower";
|
|
93
94
|
light: "light";
|
|
@@ -229,6 +230,10 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
229
230
|
}, z.core.$strip>;
|
|
230
231
|
current: z.ZodNullable<z.ZodString>;
|
|
231
232
|
options: z.ZodArray<z.ZodString>;
|
|
233
|
+
optionLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
234
|
+
en: z.ZodString;
|
|
235
|
+
it: z.ZodString;
|
|
236
|
+
}, z.core.$strip>>>;
|
|
232
237
|
call: z.ZodObject<{
|
|
233
238
|
cap: z.ZodString;
|
|
234
239
|
method: z.ZodString;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* runtime by `scripts/check-hero-look-exhaustive.ts`.
|
|
14
14
|
*/
|
|
15
15
|
import { z } from 'zod';
|
|
16
|
-
export declare const HERO_SCENES: readonly ['ac', 'thermostat', 'heater', 'fan', 'washer', 'dryer', 'dishwasher', 'pet-fountain', 'pet-feeder', 'vacuum', 'lawn-mower', 'tv', 'speaker', 'camera', 'light', 'cover', 'lock', 'alarm', 'siren', 'sensor-sparkline', 'contact', 'presence', 'weather', 'plug', 'button', 'update', 'control-dial', 'event-stream', 'gateway', 'generic'];
|
|
16
|
+
export declare const HERO_SCENES: readonly ['ac', 'thermostat', 'heater', 'heat-pump', 'fan', 'washer', 'dryer', 'dishwasher', 'pet-fountain', 'pet-feeder', 'vacuum', 'lawn-mower', 'tv', 'speaker', 'camera', 'light', 'cover', 'lock', 'alarm', 'siren', 'sensor-sparkline', 'contact', 'presence', 'weather', 'plug', 'button', 'update', 'control-dial', 'event-stream', 'gateway', 'generic'];
|
|
17
17
|
export type HeroSceneId = (typeof HERO_SCENES)[number];
|
|
18
18
|
export declare const HeroSceneIdSchema: z.ZodEnum<{
|
|
19
19
|
ac: "ac";
|
|
@@ -29,6 +29,7 @@ export declare const HeroSceneIdSchema: z.ZodEnum<{
|
|
|
29
29
|
fan: "fan";
|
|
30
30
|
gateway: "gateway";
|
|
31
31
|
generic: "generic";
|
|
32
|
+
"heat-pump": "heat-pump";
|
|
32
33
|
heater: "heater";
|
|
33
34
|
"lawn-mower": "lawn-mower";
|
|
34
35
|
light: "light";
|
|
@@ -77,6 +78,7 @@ export declare const HeroSceneSchema: z.ZodObject<{
|
|
|
77
78
|
fan: "fan";
|
|
78
79
|
gateway: "gateway";
|
|
79
80
|
generic: "generic";
|
|
81
|
+
"heat-pump": "heat-pump";
|
|
80
82
|
heater: "heater";
|
|
81
83
|
"lawn-mower": "lawn-mower";
|
|
82
84
|
light: "light";
|
|
@@ -130,6 +132,7 @@ export declare const HERO_SCENE_BY_TYPE: {
|
|
|
130
132
|
readonly valve: 'control-dial';
|
|
131
133
|
readonly humidifier: 'control-dial';
|
|
132
134
|
readonly "water-heater": 'heater';
|
|
135
|
+
readonly "heat-pump": 'heat-pump';
|
|
133
136
|
readonly fan: 'fan';
|
|
134
137
|
readonly "media-player": 'tv';
|
|
135
138
|
readonly "alarm-panel": 'alarm';
|
|
@@ -5,7 +5,7 @@ export { HERO_CAP_CONTRIBUTIONS, type HeroContribution, } from './hero-contribut
|
|
|
5
5
|
export type { HeroContext, HeroFragment, StateReading, StateSource, } from './hero-fragment.js';
|
|
6
6
|
export { HERO_LAYOUT_BY_TYPE, HERO_LAYOUT_DEFAULT, resolveHeroLayout, type HeroLayout, } from './hero-layout.js';
|
|
7
7
|
export { allHeroLooks, HERO_LOOK_BY_ROLE, HERO_LOOK_BY_TYPE, HERO_LOOK_DEFAULT, resolveHeroLook, } from './hero-look.js';
|
|
8
|
-
export { HERO_ROW_IDS, type HeroAction, type HeroArgs, type HeroBackground, type HeroBadge, type HeroCall, type HeroConfirm, type HeroConsumableItem, type HeroConsumablesSlot, type HeroConsumptionSlot, type HeroControl, type HeroDetail, type HeroFact, type HeroSideTile, type HeroSideTiles, type HeroModel, type HeroOwnPowerSlot, type HeroPowerSupplySlot, type HeroProvenance, type HeroRemoteSlot, type HeroRow, type HeroRowId, type HeroTimedRunSlot, } from './hero-model.js';
|
|
8
|
+
export { HERO_ROW_IDS, HERO_ROW_LABELS, heroArgsWithValue, type HeroAction, type HeroArgs, type HeroBackground, type HeroBadge, type HeroCall, type HeroConfirm, type HeroConsumableItem, type HeroConsumablesSlot, type HeroConsumptionSlot, type HeroControl, type HeroDetail, type HeroFact, type HeroSideTile, type HeroSideTiles, type HeroModel, type HeroOwnPowerSlot, type HeroPowerSupplySlot, type HeroProvenance, type HeroRemoteSlot, type HeroRow, type HeroRowId, type HeroTimedRunSlot, } from './hero-model.js';
|
|
9
9
|
export { HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_STATES, HERO_TONES, type HeroAnimation, type HeroBackgroundToken, type HeroLook, type HeroState, type HeroTone, type StateLook, } from './hero-state.js';
|
|
10
10
|
export { HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENES, HERO_SCENE_MODES, resolveHeroSceneId, type HeroScene, type HeroSceneId, type HeroSceneMode, } from './hero-scene.js';
|
|
11
11
|
export { HeroRowModelSchema, projectDeviceRow, type HeroRowModel, } from './hero-row.js';
|
|
@@ -126,6 +126,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
126
126
|
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
127
127
|
* adopted beside it — and its connection settings stay on the integration. */
|
|
128
128
|
DeviceType["Gateway"] = "gateway";
|
|
129
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
130
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
131
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
132
|
+
DeviceType["HeatPump"] = "heat-pump";
|
|
129
133
|
return DeviceType;
|
|
130
134
|
}({});
|
|
131
135
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -126,6 +126,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
126
126
|
* (`reboot`, `device-admin-link`). Products are NOT its children — they are
|
|
127
127
|
* adopted beside it — and its connection settings stay on the integration. */
|
|
128
128
|
DeviceType["Gateway"] = "gateway";
|
|
129
|
+
/** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
|
|
130
|
+
* water, cooling, solar), its system modes and its power. One main read-only
|
|
131
|
+
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
132
|
+
DeviceType["HeatPump"] = "heat-pump";
|
|
129
133
|
return DeviceType;
|
|
130
134
|
}({});
|
|
131
135
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -65,6 +65,7 @@ import type { failureContributionCapability } from '../capabilities/failure-cont
|
|
|
65
65
|
import type { fanControlCapability } from '../capabilities/fan-control.cap.js';
|
|
66
66
|
import type { fanPresetsCapability } from '../capabilities/fan-presets.cap.js';
|
|
67
67
|
import type { filesystemBrowseCapability } from '../capabilities/filesystem-browse.cap.js';
|
|
68
|
+
import type { heatPumpControlCapability } from '../capabilities/heat-pump-control.cap.js';
|
|
68
69
|
import type { heroLayoutCapability } from '../capabilities/hero-layout.cap.js';
|
|
69
70
|
import type { humidifierCapability } from '../capabilities/humidifier.cap.js';
|
|
70
71
|
import type { imageSettingsCapability } from '../capabilities/image-settings.cap.js';
|
|
@@ -4195,6 +4196,125 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4195
4196
|
meta: object;
|
|
4196
4197
|
}>;
|
|
4197
4198
|
}>>;
|
|
4199
|
+
heatPumpControl: TRPCBuiltRouter<{
|
|
4200
|
+
ctx: TrpcContext;
|
|
4201
|
+
meta: object;
|
|
4202
|
+
errorShape: AugmentedErrorShape;
|
|
4203
|
+
transformer: true;
|
|
4204
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
4205
|
+
setSilentMode: TRPCMutationProcedure<{
|
|
4206
|
+
input: {
|
|
4207
|
+
[x: string]: unknown;
|
|
4208
|
+
} & z.input<typeof heatPumpControlCapability.methods.setSilentMode.input>;
|
|
4209
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setSilentMode.output>;
|
|
4210
|
+
meta: object;
|
|
4211
|
+
}>;
|
|
4212
|
+
setAwayMode: TRPCMutationProcedure<{
|
|
4213
|
+
input: {
|
|
4214
|
+
[x: string]: unknown;
|
|
4215
|
+
} & z.input<typeof heatPumpControlCapability.methods.setAwayMode.input>;
|
|
4216
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setAwayMode.output>;
|
|
4217
|
+
meta: object;
|
|
4218
|
+
}>;
|
|
4219
|
+
setAdditionalHeaterMode: TRPCMutationProcedure<{
|
|
4220
|
+
input: {
|
|
4221
|
+
[x: string]: unknown;
|
|
4222
|
+
} & z.input<typeof heatPumpControlCapability.methods.setAdditionalHeaterMode.input>;
|
|
4223
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setAdditionalHeaterMode.output>;
|
|
4224
|
+
meta: object;
|
|
4225
|
+
}>;
|
|
4226
|
+
setHolidayMode: TRPCMutationProcedure<{
|
|
4227
|
+
input: {
|
|
4228
|
+
[x: string]: unknown;
|
|
4229
|
+
} & z.input<typeof heatPumpControlCapability.methods.setHolidayMode.input>;
|
|
4230
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setHolidayMode.output>;
|
|
4231
|
+
meta: object;
|
|
4232
|
+
}>;
|
|
4233
|
+
setCircuitOperationMode: TRPCMutationProcedure<{
|
|
4234
|
+
input: {
|
|
4235
|
+
[x: string]: unknown;
|
|
4236
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitOperationMode.input>;
|
|
4237
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitOperationMode.output>;
|
|
4238
|
+
meta: object;
|
|
4239
|
+
}>;
|
|
4240
|
+
setCircuitHeatCoolMode: TRPCMutationProcedure<{
|
|
4241
|
+
input: {
|
|
4242
|
+
[x: string]: unknown;
|
|
4243
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitHeatCoolMode.input>;
|
|
4244
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitHeatCoolMode.output>;
|
|
4245
|
+
meta: object;
|
|
4246
|
+
}>;
|
|
4247
|
+
setCircuitSummerWinter: TRPCMutationProcedure<{
|
|
4248
|
+
input: {
|
|
4249
|
+
[x: string]: unknown;
|
|
4250
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitSummerWinter.input>;
|
|
4251
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitSummerWinter.output>;
|
|
4252
|
+
meta: object;
|
|
4253
|
+
}>;
|
|
4254
|
+
setCircuitComfortSetpoint: TRPCMutationProcedure<{
|
|
4255
|
+
input: {
|
|
4256
|
+
[x: string]: unknown;
|
|
4257
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitComfortSetpoint.input>;
|
|
4258
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitComfortSetpoint.output>;
|
|
4259
|
+
meta: object;
|
|
4260
|
+
}>;
|
|
4261
|
+
setCircuitEcoSetpoint: TRPCMutationProcedure<{
|
|
4262
|
+
input: {
|
|
4263
|
+
[x: string]: unknown;
|
|
4264
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitEcoSetpoint.input>;
|
|
4265
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitEcoSetpoint.output>;
|
|
4266
|
+
meta: object;
|
|
4267
|
+
}>;
|
|
4268
|
+
setCircuitMaxFlowTemp: TRPCMutationProcedure<{
|
|
4269
|
+
input: {
|
|
4270
|
+
[x: string]: unknown;
|
|
4271
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitMaxFlowTemp.input>;
|
|
4272
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitMaxFlowTemp.output>;
|
|
4273
|
+
meta: object;
|
|
4274
|
+
}>;
|
|
4275
|
+
setDhwOperationMode: TRPCMutationProcedure<{
|
|
4276
|
+
input: {
|
|
4277
|
+
[x: string]: unknown;
|
|
4278
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwOperationMode.input>;
|
|
4279
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwOperationMode.output>;
|
|
4280
|
+
meta: object;
|
|
4281
|
+
}>;
|
|
4282
|
+
setDhwTemperatureLevel: TRPCMutationProcedure<{
|
|
4283
|
+
input: {
|
|
4284
|
+
[x: string]: unknown;
|
|
4285
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwTemperatureLevel.input>;
|
|
4286
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwTemperatureLevel.output>;
|
|
4287
|
+
meta: object;
|
|
4288
|
+
}>;
|
|
4289
|
+
setDhwChargeDuration: TRPCMutationProcedure<{
|
|
4290
|
+
input: {
|
|
4291
|
+
[x: string]: unknown;
|
|
4292
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwChargeDuration.input>;
|
|
4293
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwChargeDuration.output>;
|
|
4294
|
+
meta: object;
|
|
4295
|
+
}>;
|
|
4296
|
+
startExtraHotWater: TRPCMutationProcedure<{
|
|
4297
|
+
input: {
|
|
4298
|
+
[x: string]: unknown;
|
|
4299
|
+
} & z.input<typeof heatPumpControlCapability.methods.startExtraHotWater.input>;
|
|
4300
|
+
output: z.infer<typeof heatPumpControlCapability.methods.startExtraHotWater.output>;
|
|
4301
|
+
meta: object;
|
|
4302
|
+
}>;
|
|
4303
|
+
}>>;
|
|
4304
|
+
heatPumpStatus: TRPCBuiltRouter<{
|
|
4305
|
+
ctx: TrpcContext;
|
|
4306
|
+
meta: object;
|
|
4307
|
+
errorShape: AugmentedErrorShape;
|
|
4308
|
+
transformer: true;
|
|
4309
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
4310
|
+
getStatus: TRPCQueryProcedure<{
|
|
4311
|
+
input: {
|
|
4312
|
+
[x: string]: unknown;
|
|
4313
|
+
} & z.input<typeof DEVICE_STATUS_METHOD.getStatus.input>;
|
|
4314
|
+
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
4315
|
+
meta: object;
|
|
4316
|
+
}>;
|
|
4317
|
+
}>>;
|
|
4198
4318
|
heatingValve: TRPCBuiltRouter<{
|
|
4199
4319
|
ctx: TrpcContext;
|
|
4200
4320
|
meta: object;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps,
|
|
8
|
+
* Coverage: 1 advance-derived caps, 83 caps with 388 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -34,6 +34,7 @@ import type { GasStatusSchema } from '../capabilities/gas.cap.js';
|
|
|
34
34
|
import type { groupActiveCapability } from '../capabilities/group-active.cap.js';
|
|
35
35
|
import type { groupCommandsCapability } from '../capabilities/group-commands.cap.js';
|
|
36
36
|
import type { groupStatusCapability } from '../capabilities/group-status.cap.js';
|
|
37
|
+
import type { heatPumpStatusCapability } from '../capabilities/heat-pump-status.cap.js';
|
|
37
38
|
import type { HeatingValveStatusSchema } from '../capabilities/heating-valve.cap.js';
|
|
38
39
|
import type { HumidifierStatusSchema } from '../capabilities/humidifier.cap.js';
|
|
39
40
|
import type { HumiditySensorStatusSchema } from '../capabilities/humidity-sensor.cap.js';
|
|
@@ -123,6 +124,7 @@ export type CapStatusTypeMap = {
|
|
|
123
124
|
readonly 'group-active': z.infer<(typeof groupActiveCapability)['status']['schema']>;
|
|
124
125
|
readonly 'group-commands': z.infer<(typeof groupCommandsCapability)['status']['schema']>;
|
|
125
126
|
readonly 'group-status': z.infer<(typeof groupStatusCapability)['status']['schema']>;
|
|
127
|
+
readonly 'heat-pump-status': z.infer<(typeof heatPumpStatusCapability)['status']['schema']>;
|
|
126
128
|
readonly 'heating-valve': z.infer<typeof HeatingValveStatusSchema>;
|
|
127
129
|
readonly 'humidifier': z.infer<typeof HumidifierStatusSchema>;
|
|
128
130
|
readonly 'humidity-sensor': z.infer<typeof HumiditySensorStatusSchema>;
|
|
@@ -179,4 +181,4 @@ export type CapNameWithStatus = keyof CapStatusTypeMap;
|
|
|
179
181
|
* aggregator to enumerate caps whose `status` should be polled +
|
|
180
182
|
* streamed via `subscribeDeviceStatusAggregate`.
|
|
181
183
|
*/
|
|
182
|
-
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-discovery", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "enum-sensor", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather"];
|
|
184
|
+
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-discovery", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "enum-sensor", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heat-pump-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather"];
|
|
@@ -81,6 +81,8 @@ export { gasCapability } from '../capabilities/gas.cap.js';
|
|
|
81
81
|
export { groupActiveCapability } from '../capabilities/group-active.cap.js';
|
|
82
82
|
export { groupCommandsCapability } from '../capabilities/group-commands.cap.js';
|
|
83
83
|
export { groupStatusCapability } from '../capabilities/group-status.cap.js';
|
|
84
|
+
export { heatPumpControlCapability } from '../capabilities/heat-pump-control.cap.js';
|
|
85
|
+
export { heatPumpStatusCapability } from '../capabilities/heat-pump-status.cap.js';
|
|
84
86
|
export { heatingValveCapability } from '../capabilities/heating-valve.cap.js';
|
|
85
87
|
export { heroLayoutCapability } from '../capabilities/hero-layout.cap.js';
|
|
86
88
|
export { humidifierCapability } from '../capabilities/humidifier.cap.js';
|
|
@@ -285,6 +287,8 @@ export declare const CAPABILITY_NAMES: {
|
|
|
285
287
|
readonly groupActive: 'group-active';
|
|
286
288
|
readonly groupCommands: 'group-commands';
|
|
287
289
|
readonly groupStatus: 'group-status';
|
|
290
|
+
readonly heatPumpControl: 'heat-pump-control';
|
|
291
|
+
readonly heatPumpStatus: 'heat-pump-status';
|
|
288
292
|
readonly heatingValve: 'heating-valve';
|
|
289
293
|
readonly heroLayout: 'hero-layout';
|
|
290
294
|
readonly humidifier: 'humidifier';
|
|
@@ -502,6 +506,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
502
506
|
readonly groupActive: TRouter;
|
|
503
507
|
readonly groupCommands: TRouter;
|
|
504
508
|
readonly groupStatus: TRouter;
|
|
509
|
+
readonly heatPumpControl: TRouter;
|
|
510
|
+
readonly heatPumpStatus: TRouter;
|
|
505
511
|
readonly heatingValve: TRouter;
|
|
506
512
|
readonly heroLayout: TRouter;
|
|
507
513
|
readonly humidifier: TRouter;
|
|
@@ -623,8 +629,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
623
629
|
readonly zoneRules: TRouter;
|
|
624
630
|
readonly zones: TRouter;
|
|
625
631
|
}
|
|
626
|
-
/** Capability names whose mode is `singleton` (
|
|
627
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
632
|
+
/** Capability names whose mode is `singleton` (165 caps). */
|
|
633
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
628
634
|
/** Union of singleton capability names (literal string union). */
|
|
629
635
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
630
636
|
/** Capability names whose mode is `collection` (40 caps). */
|
|
@@ -56,7 +56,7 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
56
56
|
readonly targets: readonly [{
|
|
57
57
|
readonly id: 'items';
|
|
58
58
|
readonly cardinality: 'keyedArray';
|
|
59
|
-
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway];
|
|
59
|
+
readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump];
|
|
60
60
|
readonly apply: 'add';
|
|
61
61
|
readonly vocabularyCap: 'consumables';
|
|
62
62
|
readonly sources: readonly [];
|
|
@@ -32,6 +32,7 @@ import { groupActiveCapability } from '../capabilities/group-active.cap.js';
|
|
|
32
32
|
import { groupCommandsCapability } from '../capabilities/group-commands.cap.js';
|
|
33
33
|
import { groupStatusCapability } from '../capabilities/group-status.cap.js';
|
|
34
34
|
import { heatingValveCapability } from '../capabilities/heating-valve.cap.js';
|
|
35
|
+
import { heatPumpStatusCapability } from '../capabilities/heat-pump-status.cap.js';
|
|
35
36
|
import { humidifierCapability } from '../capabilities/humidifier.cap.js';
|
|
36
37
|
import { humiditySensorCapability } from '../capabilities/humidity-sensor.cap.js';
|
|
37
38
|
import { imageCapability } from '../capabilities/image.cap.js';
|
|
@@ -125,6 +126,7 @@ export interface DeviceLocalState {
|
|
|
125
126
|
groupCommands: InferRuntimeState<typeof groupCommandsCapability>;
|
|
126
127
|
groupStatus: InferRuntimeState<typeof groupStatusCapability>;
|
|
127
128
|
heatingValve: InferRuntimeState<typeof heatingValveCapability>;
|
|
129
|
+
heatPumpStatus: InferRuntimeState<typeof heatPumpStatusCapability>;
|
|
128
130
|
humidifier: InferRuntimeState<typeof humidifierCapability>;
|
|
129
131
|
humiditySensor: InferRuntimeState<typeof humiditySensorCapability>;
|
|
130
132
|
image: InferRuntimeState<typeof imageCapability>;
|
|
@@ -228,6 +230,7 @@ export interface CapNameToRuntimeStateMap {
|
|
|
228
230
|
'group-commands': InferRuntimeState<typeof groupCommandsCapability>;
|
|
229
231
|
'group-status': InferRuntimeState<typeof groupStatusCapability>;
|
|
230
232
|
'heating-valve': InferRuntimeState<typeof heatingValveCapability>;
|
|
233
|
+
'heat-pump-status': InferRuntimeState<typeof heatPumpStatusCapability>;
|
|
231
234
|
'humidifier': InferRuntimeState<typeof humidifierCapability>;
|
|
232
235
|
'humidity-sensor': InferRuntimeState<typeof humiditySensorCapability>;
|
|
233
236
|
'image': InferRuntimeState<typeof imageCapability>;
|
|
@@ -47,6 +47,8 @@ import type { groupActiveCapability } from '../capabilities/group-active.cap.js'
|
|
|
47
47
|
import type { groupCommandsCapability } from '../capabilities/group-commands.cap.js';
|
|
48
48
|
import type { groupStatusCapability } from '../capabilities/group-status.cap.js';
|
|
49
49
|
import type { heatingValveCapability } from '../capabilities/heating-valve.cap.js';
|
|
50
|
+
import type { heatPumpControlCapability } from '../capabilities/heat-pump-control.cap.js';
|
|
51
|
+
import type { heatPumpStatusCapability } from '../capabilities/heat-pump-status.cap.js';
|
|
50
52
|
import type { humidifierCapability } from '../capabilities/humidifier.cap.js';
|
|
51
53
|
import type { humiditySensorCapability } from '../capabilities/humidity-sensor.cap.js';
|
|
52
54
|
import type { imageCapability } from '../capabilities/image.cap.js';
|
|
@@ -164,6 +166,7 @@ export interface DeviceProxyState {
|
|
|
164
166
|
readonly groupCommands: SliceHandle<InferRuntimeState<typeof groupCommandsCapability>>;
|
|
165
167
|
readonly groupStatus: SliceHandle<InferRuntimeState<typeof groupStatusCapability>>;
|
|
166
168
|
readonly heatingValve: SliceHandle<InferRuntimeState<typeof heatingValveCapability>>;
|
|
169
|
+
readonly heatPumpStatus: SliceHandle<InferRuntimeState<typeof heatPumpStatusCapability>>;
|
|
167
170
|
readonly humidifier: SliceHandle<InferRuntimeState<typeof humidifierCapability>>;
|
|
168
171
|
readonly humiditySensor: SliceHandle<InferRuntimeState<typeof humiditySensorCapability>>;
|
|
169
172
|
readonly image: SliceHandle<InferRuntimeState<typeof imageCapability>>;
|
|
@@ -276,6 +279,8 @@ export interface DeviceProxy {
|
|
|
276
279
|
readonly groupCommands?: InferDeviceProxyCap<typeof groupCommandsCapability>;
|
|
277
280
|
readonly groupStatus?: InferDeviceProxyCap<typeof groupStatusCapability>;
|
|
278
281
|
readonly heatingValve?: InferDeviceProxyCap<typeof heatingValveCapability>;
|
|
282
|
+
readonly heatPumpControl?: InferDeviceProxyCap<typeof heatPumpControlCapability>;
|
|
283
|
+
readonly heatPumpStatus?: InferDeviceProxyCap<typeof heatPumpStatusCapability>;
|
|
279
284
|
readonly humidifier?: InferDeviceProxyCap<typeof humidifierCapability>;
|
|
280
285
|
readonly humiditySensor?: InferDeviceProxyCap<typeof humiditySensorCapability>;
|
|
281
286
|
readonly image?: InferDeviceProxyCap<typeof imageCapability>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
6
6
|
* (~144MB RSS per runner, D28).
|
|
7
7
|
*
|
|
8
|
-
* Coverage:
|
|
8
|
+
* Coverage: 105 device-scoped capabilities.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DEVICE_SCOPED_CAPS: ReadonlySet<string>;
|
|
11
11
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
*
|
|
4
|
+
* 44 caps with series (87 series), 37 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
|
8
8
|
/**
|
|
9
9
|
* Keyed-array series (D917), projected from every `history.items` block:
|
|
10
|
-
*
|
|
10
|
+
* 2 caps (6 item fields). The item key is the series SCOPE;
|
|
11
11
|
* the series key is `cap:<capName>.<path>[].<field>`.
|
|
12
12
|
*/
|
|
13
13
|
export declare const HISTORY_ITEM_CATALOG: Readonly<Record<string, CapabilityHistoryItems>>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1485 method paths across 205 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 616 methods carry a device reference, of which
|
|
10
10
|
* 194 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -16,7 +16,7 @@ export interface RuntimeStatePolicy {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
19
|
-
* `runtimeState`.
|
|
19
|
+
* `runtimeState`. 82 caps: 41 `restored`, 41 `session`.
|
|
20
20
|
*
|
|
21
21
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
22
22
|
* with `durability: 'session'` has one and has decided not to keep it.
|