@camstack/types 1.2.534 → 1.2.536
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 +18 -3
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/action.d.ts +105 -0
- package/dist/automation/index.d.ts +1 -0
- package/dist/automation/recipe.d.ts +450 -6
- package/dist/automation/scheduler.d.ts +208 -0
- package/dist/automation/step-condition.d.ts +19 -0
- package/dist/automation/step-runner.d.ts +50 -5
- package/dist/automation/trace.d.ts +129 -0
- package/dist/capabilities/action-source.cap.d.ts +52 -0
- package/dist/capabilities/actions.cap.d.ts +406 -0
- package/dist/capabilities/core-blocks.cap.d.ts +3782 -120
- package/dist/capabilities/device-manager.cap.d.ts +96 -0
- package/dist/capabilities/fan-presets.cap.d.ts +312 -0
- 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 +58 -0
- package/dist/capabilities/index.d.ts +6 -2
- package/dist/capabilities/schedulers.cap.d.ts +458 -0
- package/dist/capabilities/timed-run.cap.d.ts +5 -0
- package/dist/client.js +26 -0
- package/dist/client.mjs +26 -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 +82 -1
- package/dist/device/hero/hero-row.d.ts +38 -2
- 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/expression/device-template.d.ts +80 -19
- package/dist/generated/addon-api.d.ts +134 -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/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2021 -293
- package/dist/index.mjs +1996 -294
- 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
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
* 4. a trailing fact (power, else battery, else consumables).
|
|
9
9
|
*
|
|
10
10
|
* Selection rules, all taken from the model:
|
|
11
|
-
* -
|
|
11
|
+
* - the primary control is the device's own power; else the FIRST control of
|
|
12
12
|
* the FIRST row that has any (a later row's control is never promoted). When
|
|
13
13
|
* the model lists that part in `gated`, the row has no inline control: the
|
|
14
14
|
* projection never falls through to another control the caller could use.
|
|
15
|
+
* - a timed run, when the model carries the slot, sits beside that primary:
|
|
16
|
+
* Run while idle, Stop while armed. Gating the slot hides the control.
|
|
15
17
|
* - the status line is the head (what plays, else the state) plus at most
|
|
16
|
-
* {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded
|
|
18
|
+
* {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded, then the
|
|
19
|
+
* time left on an armed timed run;
|
|
17
20
|
* - the trailing fact is the first of power, battery, consumables.
|
|
18
21
|
*
|
|
19
22
|
* `projectDeviceRow` is pure and computes nothing: it selects from a
|
|
@@ -22,6 +25,23 @@
|
|
|
22
25
|
*/
|
|
23
26
|
import { z } from 'zod';
|
|
24
27
|
import { type HeroModel } from './hero-model.js';
|
|
28
|
+
/**
|
|
29
|
+
* The row's timed-run control. `id` is `timed-run.run` while idle and
|
|
30
|
+
* `timed-run.cancel` while armed; `duration` and `unit` are the one-tap run
|
|
31
|
+
* a Run press starts.
|
|
32
|
+
*/
|
|
33
|
+
export declare const HeroRowTimedRunSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodEnum<{
|
|
35
|
+
"timed-run.cancel": "timed-run.cancel";
|
|
36
|
+
"timed-run.run": "timed-run.run";
|
|
37
|
+
}>;
|
|
38
|
+
duration: z.ZodNumber;
|
|
39
|
+
unit: z.ZodEnum<{
|
|
40
|
+
min: "min";
|
|
41
|
+
s: "s";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type HeroRowTimedRun = z.infer<typeof HeroRowTimedRunSchema>;
|
|
25
45
|
export declare const HeroRowModelSchema: z.ZodObject<{
|
|
26
46
|
deviceId: z.ZodNumber;
|
|
27
47
|
name: z.ZodString;
|
|
@@ -88,6 +108,7 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
88
108
|
fan: "fan";
|
|
89
109
|
gateway: "gateway";
|
|
90
110
|
generic: "generic";
|
|
111
|
+
"heat-pump": "heat-pump";
|
|
91
112
|
heater: "heater";
|
|
92
113
|
"lawn-mower": "lawn-mower";
|
|
93
114
|
light: "light";
|
|
@@ -229,6 +250,10 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
229
250
|
}, z.core.$strip>;
|
|
230
251
|
current: z.ZodNullable<z.ZodString>;
|
|
231
252
|
options: z.ZodArray<z.ZodString>;
|
|
253
|
+
optionLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
254
|
+
en: z.ZodString;
|
|
255
|
+
it: z.ZodString;
|
|
256
|
+
}, z.core.$strip>>>;
|
|
232
257
|
call: z.ZodObject<{
|
|
233
258
|
cap: z.ZodString;
|
|
234
259
|
method: z.ZodString;
|
|
@@ -236,6 +261,17 @@ export declare const HeroRowModelSchema: z.ZodObject<{
|
|
|
236
261
|
}, z.core.$strip>;
|
|
237
262
|
valueArg: z.ZodString;
|
|
238
263
|
}, z.core.$strip>], "kind">>;
|
|
264
|
+
timedRun: z.ZodNullable<z.ZodObject<{
|
|
265
|
+
id: z.ZodEnum<{
|
|
266
|
+
"timed-run.cancel": "timed-run.cancel";
|
|
267
|
+
"timed-run.run": "timed-run.run";
|
|
268
|
+
}>;
|
|
269
|
+
duration: z.ZodNumber;
|
|
270
|
+
unit: z.ZodEnum<{
|
|
271
|
+
min: "min";
|
|
272
|
+
s: "s";
|
|
273
|
+
}>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
239
275
|
trailing: z.ZodNullable<z.ZodObject<{
|
|
240
276
|
id: z.ZodEnum<{
|
|
241
277
|
"air-quality": "air-quality";
|
|
@@ -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) {
|
|
@@ -30,27 +30,88 @@ export interface DeviceTemplateRef {
|
|
|
30
30
|
readonly alias: string;
|
|
31
31
|
readonly path: readonly (string | number)[];
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export declare const DEVICE_TEMPLATE_REFUSAL_REASONS: readonly ['too-long', 'syntax', 'forbidden-syntax', 'forbidden-member', 'unknown-filter', 'ambiguous-field', 'busy', 'budget-exceeded', 'timeout', 'output-too-large', 'render-failed',
|
|
34
|
+
/** The template names a device the caller was not proven to see (D1021 run-time contract). */
|
|
35
|
+
'out-of-scope',
|
|
36
|
+
/** No renderer on this node, or the call to it failed: the template was not run. */
|
|
37
|
+
'unavailable'];
|
|
38
|
+
export type DeviceTemplateRefusalReason = (typeof DEVICE_TEMPLATE_REFUSAL_REASONS)[number];
|
|
39
|
+
export declare const DeviceTemplateRefusalSchema: z.ZodObject<{
|
|
40
|
+
reason: z.ZodEnum<{
|
|
41
|
+
"ambiguous-field": "ambiguous-field";
|
|
42
|
+
"budget-exceeded": "budget-exceeded";
|
|
43
|
+
busy: "busy";
|
|
44
|
+
"forbidden-member": "forbidden-member";
|
|
45
|
+
"forbidden-syntax": "forbidden-syntax";
|
|
46
|
+
"out-of-scope": "out-of-scope";
|
|
47
|
+
"output-too-large": "output-too-large";
|
|
48
|
+
"render-failed": "render-failed";
|
|
49
|
+
syntax: "syntax";
|
|
50
|
+
timeout: "timeout";
|
|
51
|
+
"too-long": "too-long";
|
|
52
|
+
unavailable: "unavailable";
|
|
53
|
+
"unknown-filter": "unknown-filter";
|
|
54
|
+
}>;
|
|
55
|
+
message: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
34
57
|
/** A template the engine will not run, or a render that did not finish — named, never a bare string. */
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
58
|
+
export type DeviceTemplateRefusal = z.infer<typeof DeviceTemplateRefusalSchema>;
|
|
59
|
+
export declare const DEVICE_TEMPLATE_TRACE_REASONS: readonly ['unknown-alias', 'unknown-field', 'no-field', 'unavailable'];
|
|
60
|
+
export type DeviceTemplateTraceReason = (typeof DEVICE_TEMPLATE_TRACE_REASONS)[number];
|
|
61
|
+
export declare const DeviceTemplateTraceEntrySchema: z.ZodObject<{
|
|
62
|
+
ref: z.ZodString;
|
|
63
|
+
reason: z.ZodEnum<{
|
|
64
|
+
"no-field": "no-field";
|
|
65
|
+
unavailable: "unavailable";
|
|
66
|
+
"unknown-alias": "unknown-alias";
|
|
67
|
+
"unknown-field": "unknown-field";
|
|
68
|
+
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
40
70
|
/** One value that rendered as `—`, and why. */
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
71
|
+
export type DeviceTemplateTraceEntry = z.infer<typeof DeviceTemplateTraceEntrySchema>;
|
|
72
|
+
export declare const DeviceTemplateRenderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
73
|
+
ok: z.ZodLiteral<true>;
|
|
74
|
+
text: z.ZodString;
|
|
75
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
76
|
+
ref: z.ZodString;
|
|
77
|
+
reason: z.ZodEnum<{
|
|
78
|
+
"no-field": "no-field";
|
|
79
|
+
unavailable: "unavailable";
|
|
80
|
+
"unknown-alias": "unknown-alias";
|
|
81
|
+
"unknown-field": "unknown-field";
|
|
82
|
+
}>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
ok: z.ZodLiteral<false>;
|
|
86
|
+
refusal: z.ZodObject<{
|
|
87
|
+
reason: z.ZodEnum<{
|
|
88
|
+
"ambiguous-field": "ambiguous-field";
|
|
89
|
+
"budget-exceeded": "budget-exceeded";
|
|
90
|
+
busy: "busy";
|
|
91
|
+
"forbidden-member": "forbidden-member";
|
|
92
|
+
"forbidden-syntax": "forbidden-syntax";
|
|
93
|
+
"out-of-scope": "out-of-scope";
|
|
94
|
+
"output-too-large": "output-too-large";
|
|
95
|
+
"render-failed": "render-failed";
|
|
96
|
+
syntax: "syntax";
|
|
97
|
+
timeout: "timeout";
|
|
98
|
+
"too-long": "too-long";
|
|
99
|
+
unavailable: "unavailable";
|
|
100
|
+
"unknown-filter": "unknown-filter";
|
|
101
|
+
}>;
|
|
102
|
+
message: z.ZodString;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
105
|
+
ref: z.ZodString;
|
|
106
|
+
reason: z.ZodEnum<{
|
|
107
|
+
"no-field": "no-field";
|
|
108
|
+
unavailable: "unavailable";
|
|
109
|
+
"unknown-alias": "unknown-alias";
|
|
110
|
+
"unknown-field": "unknown-field";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>], "ok">;
|
|
114
|
+
export type DeviceTemplateRender = z.infer<typeof DeviceTemplateRenderSchema>;
|
|
54
115
|
/** What the renderer knows about one device when it resolves an alias. */
|
|
55
116
|
export interface DeviceTemplateView {
|
|
56
117
|
readonly deviceId: number;
|
|
@@ -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';
|
|
@@ -2676,6 +2677,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2676
2677
|
output: z.infer<typeof deviceManagerCapability.methods.setAlias.output>;
|
|
2677
2678
|
meta: object;
|
|
2678
2679
|
}>;
|
|
2680
|
+
renderDeviceTemplates: TRPCQueryProcedure<{
|
|
2681
|
+
input: {
|
|
2682
|
+
[x: string]: unknown;
|
|
2683
|
+
} & z.input<typeof deviceManagerCapability.methods.renderDeviceTemplates.input>;
|
|
2684
|
+
output: z.infer<typeof deviceManagerCapability.methods.renderDeviceTemplates.output>;
|
|
2685
|
+
meta: object;
|
|
2686
|
+
}>;
|
|
2687
|
+
checkDeviceTemplates: TRPCQueryProcedure<{
|
|
2688
|
+
input: {
|
|
2689
|
+
[x: string]: unknown;
|
|
2690
|
+
} & z.input<typeof deviceManagerCapability.methods.checkDeviceTemplates.input>;
|
|
2691
|
+
output: z.infer<typeof deviceManagerCapability.methods.checkDeviceTemplates.output>;
|
|
2692
|
+
meta: object;
|
|
2693
|
+
}>;
|
|
2679
2694
|
setLocation: TRPCMutationProcedure<{
|
|
2680
2695
|
input: {
|
|
2681
2696
|
[x: string]: unknown;
|
|
@@ -4195,6 +4210,125 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4195
4210
|
meta: object;
|
|
4196
4211
|
}>;
|
|
4197
4212
|
}>>;
|
|
4213
|
+
heatPumpControl: TRPCBuiltRouter<{
|
|
4214
|
+
ctx: TrpcContext;
|
|
4215
|
+
meta: object;
|
|
4216
|
+
errorShape: AugmentedErrorShape;
|
|
4217
|
+
transformer: true;
|
|
4218
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
4219
|
+
setSilentMode: TRPCMutationProcedure<{
|
|
4220
|
+
input: {
|
|
4221
|
+
[x: string]: unknown;
|
|
4222
|
+
} & z.input<typeof heatPumpControlCapability.methods.setSilentMode.input>;
|
|
4223
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setSilentMode.output>;
|
|
4224
|
+
meta: object;
|
|
4225
|
+
}>;
|
|
4226
|
+
setAwayMode: TRPCMutationProcedure<{
|
|
4227
|
+
input: {
|
|
4228
|
+
[x: string]: unknown;
|
|
4229
|
+
} & z.input<typeof heatPumpControlCapability.methods.setAwayMode.input>;
|
|
4230
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setAwayMode.output>;
|
|
4231
|
+
meta: object;
|
|
4232
|
+
}>;
|
|
4233
|
+
setAdditionalHeaterMode: TRPCMutationProcedure<{
|
|
4234
|
+
input: {
|
|
4235
|
+
[x: string]: unknown;
|
|
4236
|
+
} & z.input<typeof heatPumpControlCapability.methods.setAdditionalHeaterMode.input>;
|
|
4237
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setAdditionalHeaterMode.output>;
|
|
4238
|
+
meta: object;
|
|
4239
|
+
}>;
|
|
4240
|
+
setHolidayMode: TRPCMutationProcedure<{
|
|
4241
|
+
input: {
|
|
4242
|
+
[x: string]: unknown;
|
|
4243
|
+
} & z.input<typeof heatPumpControlCapability.methods.setHolidayMode.input>;
|
|
4244
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setHolidayMode.output>;
|
|
4245
|
+
meta: object;
|
|
4246
|
+
}>;
|
|
4247
|
+
setCircuitOperationMode: TRPCMutationProcedure<{
|
|
4248
|
+
input: {
|
|
4249
|
+
[x: string]: unknown;
|
|
4250
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitOperationMode.input>;
|
|
4251
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitOperationMode.output>;
|
|
4252
|
+
meta: object;
|
|
4253
|
+
}>;
|
|
4254
|
+
setCircuitHeatCoolMode: TRPCMutationProcedure<{
|
|
4255
|
+
input: {
|
|
4256
|
+
[x: string]: unknown;
|
|
4257
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitHeatCoolMode.input>;
|
|
4258
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitHeatCoolMode.output>;
|
|
4259
|
+
meta: object;
|
|
4260
|
+
}>;
|
|
4261
|
+
setCircuitSummerWinter: TRPCMutationProcedure<{
|
|
4262
|
+
input: {
|
|
4263
|
+
[x: string]: unknown;
|
|
4264
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitSummerWinter.input>;
|
|
4265
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitSummerWinter.output>;
|
|
4266
|
+
meta: object;
|
|
4267
|
+
}>;
|
|
4268
|
+
setCircuitComfortSetpoint: TRPCMutationProcedure<{
|
|
4269
|
+
input: {
|
|
4270
|
+
[x: string]: unknown;
|
|
4271
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitComfortSetpoint.input>;
|
|
4272
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitComfortSetpoint.output>;
|
|
4273
|
+
meta: object;
|
|
4274
|
+
}>;
|
|
4275
|
+
setCircuitEcoSetpoint: TRPCMutationProcedure<{
|
|
4276
|
+
input: {
|
|
4277
|
+
[x: string]: unknown;
|
|
4278
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitEcoSetpoint.input>;
|
|
4279
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitEcoSetpoint.output>;
|
|
4280
|
+
meta: object;
|
|
4281
|
+
}>;
|
|
4282
|
+
setCircuitMaxFlowTemp: TRPCMutationProcedure<{
|
|
4283
|
+
input: {
|
|
4284
|
+
[x: string]: unknown;
|
|
4285
|
+
} & z.input<typeof heatPumpControlCapability.methods.setCircuitMaxFlowTemp.input>;
|
|
4286
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setCircuitMaxFlowTemp.output>;
|
|
4287
|
+
meta: object;
|
|
4288
|
+
}>;
|
|
4289
|
+
setDhwOperationMode: TRPCMutationProcedure<{
|
|
4290
|
+
input: {
|
|
4291
|
+
[x: string]: unknown;
|
|
4292
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwOperationMode.input>;
|
|
4293
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwOperationMode.output>;
|
|
4294
|
+
meta: object;
|
|
4295
|
+
}>;
|
|
4296
|
+
setDhwTemperatureLevel: TRPCMutationProcedure<{
|
|
4297
|
+
input: {
|
|
4298
|
+
[x: string]: unknown;
|
|
4299
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwTemperatureLevel.input>;
|
|
4300
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwTemperatureLevel.output>;
|
|
4301
|
+
meta: object;
|
|
4302
|
+
}>;
|
|
4303
|
+
setDhwChargeDuration: TRPCMutationProcedure<{
|
|
4304
|
+
input: {
|
|
4305
|
+
[x: string]: unknown;
|
|
4306
|
+
} & z.input<typeof heatPumpControlCapability.methods.setDhwChargeDuration.input>;
|
|
4307
|
+
output: z.infer<typeof heatPumpControlCapability.methods.setDhwChargeDuration.output>;
|
|
4308
|
+
meta: object;
|
|
4309
|
+
}>;
|
|
4310
|
+
startExtraHotWater: TRPCMutationProcedure<{
|
|
4311
|
+
input: {
|
|
4312
|
+
[x: string]: unknown;
|
|
4313
|
+
} & z.input<typeof heatPumpControlCapability.methods.startExtraHotWater.input>;
|
|
4314
|
+
output: z.infer<typeof heatPumpControlCapability.methods.startExtraHotWater.output>;
|
|
4315
|
+
meta: object;
|
|
4316
|
+
}>;
|
|
4317
|
+
}>>;
|
|
4318
|
+
heatPumpStatus: TRPCBuiltRouter<{
|
|
4319
|
+
ctx: TrpcContext;
|
|
4320
|
+
meta: object;
|
|
4321
|
+
errorShape: AugmentedErrorShape;
|
|
4322
|
+
transformer: true;
|
|
4323
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
4324
|
+
getStatus: TRPCQueryProcedure<{
|
|
4325
|
+
input: {
|
|
4326
|
+
[x: string]: unknown;
|
|
4327
|
+
} & z.input<typeof DEVICE_STATUS_METHOD.getStatus.input>;
|
|
4328
|
+
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
4329
|
+
meta: object;
|
|
4330
|
+
}>;
|
|
4331
|
+
}>>;
|
|
4198
4332
|
heatingValve: TRPCBuiltRouter<{
|
|
4199
4333
|
ctx: TrpcContext;
|
|
4200
4334
|
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: 1487 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.
|