@camstack/types 1.2.561 → 1.2.563

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 (60) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/addon/instances-of-cap.d.ts +7 -2
  3. package/dist/addon.js +4 -3
  4. package/dist/addon.mjs +4 -3
  5. package/dist/automation/codegen.d.ts +6 -0
  6. package/dist/automation/recipe-literal.d.ts +35 -0
  7. package/dist/automation/recipe.d.ts +46 -0
  8. package/dist/automation/template-link.d.ts +206 -0
  9. package/dist/capabilities/cluster-update.cap.d.ts +16 -0
  10. package/dist/capabilities/device-manager.cap.d.ts +2 -1
  11. package/dist/capabilities/device-search.d.ts +4 -2
  12. package/dist/capabilities/energy-system.cap.d.ts +281 -0
  13. package/dist/capabilities/index.d.ts +4 -2
  14. package/dist/capabilities/integration-instances.cap.d.ts +9 -0
  15. package/dist/capabilities/notification-rules.cap.d.ts +4 -0
  16. package/dist/capabilities/smtp-provider.cap.d.ts +2 -0
  17. package/dist/capabilities/switch.cap.d.ts +5 -0
  18. package/dist/capabilities/template.cap.d.ts +39 -2
  19. package/dist/client.js +54 -1
  20. package/dist/client.mjs +54 -1
  21. package/dist/{composed-stable-id-iddnCQ51.mjs → composed-stable-id-B3wcvtvW.mjs} +4 -0
  22. package/dist/{composed-stable-id-BmJ_5GiE.js → composed-stable-id-Bp33yrYi.js} +4 -0
  23. package/dist/device/cap-vocabulary/index.d.ts +1 -1
  24. package/dist/device/cap-vocabulary/resolve.d.ts +6 -0
  25. package/dist/device/device-control-resolution.d.ts +1 -1
  26. package/dist/device/device-icon.d.ts +1 -0
  27. package/dist/device/device-type.d.ts +5 -1
  28. package/dist/device/hero/hero-layout.d.ts +1 -0
  29. package/dist/device/hero/hero-look.d.ts +6 -0
  30. package/dist/device/hero/hero-scene.d.ts +1 -0
  31. package/dist/generated/addon-api.d.ts +21 -0
  32. package/dist/generated/addon-cap-facts.d.ts +1 -1
  33. package/dist/generated/cap-status-types.d.ts +3 -1
  34. package/dist/generated/cap-vocabulary.d.ts +1 -1
  35. package/dist/generated/capability-router-map.d.ts +5 -2
  36. package/dist/generated/collection-array-methods.d.ts +1 -1
  37. package/dist/generated/customize-catalog.d.ts +1 -1
  38. package/dist/generated/device-local-state.d.ts +3 -0
  39. package/dist/generated/device-proxy.d.ts +3 -0
  40. package/dist/generated/device-scoped-caps.d.ts +1 -1
  41. package/dist/generated/history-catalog.d.ts +1 -1
  42. package/dist/generated/method-access-map.d.ts +1 -1
  43. package/dist/generated/method-device-selectors.d.ts +2 -2
  44. package/dist/generated/runtime-state-durability.d.ts +1 -1
  45. package/dist/{implemented-methods-CfaRR_ki.js → implemented-methods-CDYOCn9a.js} +1 -1
  46. package/dist/{implemented-methods-CSTk6zYK.mjs → implemented-methods-CgUBu6uM.mjs} +1 -1
  47. package/dist/index.d.ts +7 -1
  48. package/dist/index.js +1889 -209
  49. package/dist/index.mjs +1834 -210
  50. package/dist/node.js +2 -2
  51. package/dist/node.mjs +2 -2
  52. package/dist/notification/degrade-engine.d.ts +5 -0
  53. package/dist/notification/email-image-bytes.d.ts +26 -0
  54. package/dist/notification/email-mime.d.ts +52 -0
  55. package/dist/{sleep-C9PbO6Nb.mjs → sleep-BCWQQG52.mjs} +154 -35
  56. package/dist/{sleep-CcUFeK6k.js → sleep-RUgd-FgK.js} +154 -35
  57. package/dist/template/automation-template.d.ts +782 -0
  58. package/dist/template/builtin-automation-templates.d.ts +17 -0
  59. package/dist/template/template-kinds.d.ts +4 -3
  60. package/package.json +1 -1
@@ -0,0 +1,281 @@
1
+ import { z } from 'zod';
2
+ import { type InferProvider } from './capability-definition.js';
3
+ import { DeviceType } from '../device/device-type.js';
4
+ /**
5
+ * Energy system (#513): the one READ-ONLY cap of a home energy installation —
6
+ * solar production, the grid connection, the house, a heat pump where the
7
+ * system meters one, and the storage. Each part is a branch of one bus.
8
+ *
9
+ * A part the system does not have is `null` (the whole object); a value the
10
+ * system did not report is `null`, never `0` (D393).
11
+ *
12
+ * Signs, all in watts:
13
+ * - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
14
+ * - `grid.powerW` is + importing, − exporting;
15
+ * - `storage.powerW` is + charging, − discharging.
16
+ *
17
+ * The storage is a FIELD of this model, never the `battery` cap: that cap says
18
+ * a device runs on a battery and feeds the low-battery alerts, and a home
19
+ * storage at 19 % is not a device about to go flat (#522).
20
+ *
21
+ * Lifetime kWh are counters (D944); a `…TodayKwh` is the system's own day total.
22
+ * The self-consumption share is not a field: it derives at read time
23
+ * ({@link energySystemSelfConsumptionPct}).
24
+ */
25
+ /** Production: the panels. */
26
+ export declare const EnergySolarSchema: z.ZodObject<{
27
+ powerW: z.ZodNullable<z.ZodNumber>;
28
+ energyKwh: z.ZodNullable<z.ZodNumber>;
29
+ todayKwh: z.ZodNullable<z.ZodNumber>;
30
+ }, z.core.$strip>;
31
+ export type EnergySolar = z.infer<typeof EnergySolarSchema>;
32
+ /** The grid connection: + import, − export. */
33
+ export declare const EnergyGridSchema: z.ZodObject<{
34
+ powerW: z.ZodNullable<z.ZodNumber>;
35
+ importKwh: z.ZodNullable<z.ZodNumber>;
36
+ exportKwh: z.ZodNullable<z.ZodNumber>;
37
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
38
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
39
+ }, z.core.$strip>;
40
+ export type EnergyGrid = z.infer<typeof EnergyGridSchema>;
41
+ /** A consumer on the bus (the house, the heat pump): power and energy drawn. */
42
+ export declare const EnergyConsumerSchema: z.ZodObject<{
43
+ powerW: z.ZodNullable<z.ZodNumber>;
44
+ energyKwh: z.ZodNullable<z.ZodNumber>;
45
+ todayKwh: z.ZodNullable<z.ZodNumber>;
46
+ }, z.core.$strip>;
47
+ export type EnergyConsumer = z.infer<typeof EnergyConsumerSchema>;
48
+ /** The home storage (accumulo): + charging, − discharging. */
49
+ export declare const EnergyStorageSchema: z.ZodObject<{
50
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
51
+ storedKwh: z.ZodNullable<z.ZodNumber>;
52
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
53
+ powerW: z.ZodNullable<z.ZodNumber>;
54
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
55
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
56
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
57
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
58
+ }, z.core.$strip>;
59
+ export type EnergyStorage = z.infer<typeof EnergyStorageSchema>;
60
+ export declare const EnergySystemStatusSchema: z.ZodObject<{
61
+ solar: z.ZodNullable<z.ZodObject<{
62
+ powerW: z.ZodNullable<z.ZodNumber>;
63
+ energyKwh: z.ZodNullable<z.ZodNumber>;
64
+ todayKwh: z.ZodNullable<z.ZodNumber>;
65
+ }, z.core.$strip>>;
66
+ grid: z.ZodNullable<z.ZodObject<{
67
+ powerW: z.ZodNullable<z.ZodNumber>;
68
+ importKwh: z.ZodNullable<z.ZodNumber>;
69
+ exportKwh: z.ZodNullable<z.ZodNumber>;
70
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
71
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
72
+ }, z.core.$strip>>;
73
+ house: z.ZodNullable<z.ZodObject<{
74
+ powerW: z.ZodNullable<z.ZodNumber>;
75
+ energyKwh: z.ZodNullable<z.ZodNumber>;
76
+ todayKwh: z.ZodNullable<z.ZodNumber>;
77
+ }, z.core.$strip>>;
78
+ heatPump: z.ZodNullable<z.ZodObject<{
79
+ powerW: z.ZodNullable<z.ZodNumber>;
80
+ energyKwh: z.ZodNullable<z.ZodNumber>;
81
+ todayKwh: z.ZodNullable<z.ZodNumber>;
82
+ }, z.core.$strip>>;
83
+ storage: z.ZodNullable<z.ZodObject<{
84
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
85
+ storedKwh: z.ZodNullable<z.ZodNumber>;
86
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
87
+ powerW: z.ZodNullable<z.ZodNumber>;
88
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
89
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
90
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
91
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
92
+ }, z.core.$strip>>;
93
+ lastFetchedAt: z.ZodNumber;
94
+ }, z.core.$strip>;
95
+ export type EnergySystemStatus = z.infer<typeof EnergySystemStatusSchema>;
96
+ /**
97
+ * Today's self-consumption: the share of today's production that was not
98
+ * exported, in percent. Null unless both totals are known and something was
99
+ * produced — a missing total is never a 0 or a division by it (D393).
100
+ */
101
+ export declare function energySystemSelfConsumptionPct(status: EnergySystemStatus): number | null;
102
+ export declare const energySystemCapability: {
103
+ readonly name: 'energy-system';
104
+ readonly scope: 'device';
105
+ readonly deviceNative: true;
106
+ readonly mode: 'singleton';
107
+ readonly deviceTypes: readonly [DeviceType.EnergySystem];
108
+ readonly methods: {};
109
+ readonly status: {
110
+ readonly schema: z.ZodObject<{
111
+ solar: z.ZodNullable<z.ZodObject<{
112
+ powerW: z.ZodNullable<z.ZodNumber>;
113
+ energyKwh: z.ZodNullable<z.ZodNumber>;
114
+ todayKwh: z.ZodNullable<z.ZodNumber>;
115
+ }, z.core.$strip>>;
116
+ grid: z.ZodNullable<z.ZodObject<{
117
+ powerW: z.ZodNullable<z.ZodNumber>;
118
+ importKwh: z.ZodNullable<z.ZodNumber>;
119
+ exportKwh: z.ZodNullable<z.ZodNumber>;
120
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
121
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
122
+ }, z.core.$strip>>;
123
+ house: z.ZodNullable<z.ZodObject<{
124
+ powerW: z.ZodNullable<z.ZodNumber>;
125
+ energyKwh: z.ZodNullable<z.ZodNumber>;
126
+ todayKwh: z.ZodNullable<z.ZodNumber>;
127
+ }, z.core.$strip>>;
128
+ heatPump: z.ZodNullable<z.ZodObject<{
129
+ powerW: z.ZodNullable<z.ZodNumber>;
130
+ energyKwh: z.ZodNullable<z.ZodNumber>;
131
+ todayKwh: z.ZodNullable<z.ZodNumber>;
132
+ }, z.core.$strip>>;
133
+ storage: z.ZodNullable<z.ZodObject<{
134
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
135
+ storedKwh: z.ZodNullable<z.ZodNumber>;
136
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
137
+ powerW: z.ZodNullable<z.ZodNumber>;
138
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
139
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
140
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
141
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
142
+ }, z.core.$strip>>;
143
+ lastFetchedAt: z.ZodNumber;
144
+ }, z.core.$strip>;
145
+ readonly kind: 'push';
146
+ };
147
+ readonly runtimeState: z.ZodObject<{
148
+ solar: z.ZodNullable<z.ZodObject<{
149
+ powerW: z.ZodNullable<z.ZodNumber>;
150
+ energyKwh: z.ZodNullable<z.ZodNumber>;
151
+ todayKwh: z.ZodNullable<z.ZodNumber>;
152
+ }, z.core.$strip>>;
153
+ grid: z.ZodNullable<z.ZodObject<{
154
+ powerW: z.ZodNullable<z.ZodNumber>;
155
+ importKwh: z.ZodNullable<z.ZodNumber>;
156
+ exportKwh: z.ZodNullable<z.ZodNumber>;
157
+ importTodayKwh: z.ZodNullable<z.ZodNumber>;
158
+ exportTodayKwh: z.ZodNullable<z.ZodNumber>;
159
+ }, z.core.$strip>>;
160
+ house: z.ZodNullable<z.ZodObject<{
161
+ powerW: z.ZodNullable<z.ZodNumber>;
162
+ energyKwh: z.ZodNullable<z.ZodNumber>;
163
+ todayKwh: z.ZodNullable<z.ZodNumber>;
164
+ }, z.core.$strip>>;
165
+ heatPump: z.ZodNullable<z.ZodObject<{
166
+ powerW: z.ZodNullable<z.ZodNumber>;
167
+ energyKwh: z.ZodNullable<z.ZodNumber>;
168
+ todayKwh: z.ZodNullable<z.ZodNumber>;
169
+ }, z.core.$strip>>;
170
+ storage: z.ZodNullable<z.ZodObject<{
171
+ stateOfChargePct: z.ZodNullable<z.ZodNumber>;
172
+ storedKwh: z.ZodNullable<z.ZodNumber>;
173
+ capacityKwh: z.ZodNullable<z.ZodNumber>;
174
+ powerW: z.ZodNullable<z.ZodNumber>;
175
+ chargedKwh: z.ZodNullable<z.ZodNumber>;
176
+ dischargedKwh: z.ZodNullable<z.ZodNumber>;
177
+ chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
178
+ dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
179
+ }, z.core.$strip>>;
180
+ lastFetchedAt: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ /**
183
+ * Runtime-state durability: **session** — the system answers on the next
184
+ * poll, so a restart that clears the slice loses nothing a reader needs (the
185
+ * series are recorded). See `RuntimeStateDurability`.
186
+ */
187
+ readonly durability: 'session';
188
+ /**
189
+ * History (D850): every power is a gauge, every lifetime kWh a counter (the
190
+ * kWh of a period is computed at read time, D944). A part the system does not
191
+ * have is null and records nothing. Day totals are not recorded: they are the
192
+ * counters' difference over the day.
193
+ */
194
+ readonly history: {
195
+ readonly fields: {
196
+ readonly 'solar.powerW': {
197
+ readonly kind: 'gauge';
198
+ readonly unit: 'W';
199
+ readonly deadband: 50;
200
+ readonly displayName: 'Solar power';
201
+ };
202
+ readonly 'solar.energyKwh': {
203
+ readonly kind: 'counter';
204
+ readonly unit: 'kWh';
205
+ readonly displayName: 'Solar energy';
206
+ };
207
+ readonly 'grid.powerW': {
208
+ readonly kind: 'gauge';
209
+ readonly unit: 'W';
210
+ readonly deadband: 50;
211
+ readonly displayName: 'Grid power';
212
+ };
213
+ readonly 'grid.importKwh': {
214
+ readonly kind: 'counter';
215
+ readonly unit: 'kWh';
216
+ readonly displayName: 'Grid import';
217
+ };
218
+ readonly 'grid.exportKwh': {
219
+ readonly kind: 'counter';
220
+ readonly unit: 'kWh';
221
+ readonly displayName: 'Grid export';
222
+ };
223
+ readonly 'house.powerW': {
224
+ readonly kind: 'gauge';
225
+ readonly unit: 'W';
226
+ readonly deadband: 50;
227
+ readonly displayName: 'House power';
228
+ };
229
+ readonly 'house.energyKwh': {
230
+ readonly kind: 'counter';
231
+ readonly unit: 'kWh';
232
+ readonly displayName: 'House energy';
233
+ };
234
+ readonly 'heatPump.powerW': {
235
+ readonly kind: 'gauge';
236
+ readonly unit: 'W';
237
+ readonly deadband: 50;
238
+ readonly displayName: 'Heat pump power';
239
+ };
240
+ readonly 'heatPump.energyKwh': {
241
+ readonly kind: 'counter';
242
+ readonly unit: 'kWh';
243
+ readonly displayName: 'Heat pump energy';
244
+ };
245
+ readonly 'storage.stateOfChargePct': {
246
+ readonly kind: 'gauge';
247
+ readonly unit: '%';
248
+ readonly deadband: 1;
249
+ readonly displayName: 'Storage charge';
250
+ };
251
+ readonly 'storage.storedKwh': {
252
+ readonly kind: 'gauge';
253
+ readonly unit: 'kWh';
254
+ readonly deadband: 0.05;
255
+ readonly displayName: 'Stored energy';
256
+ };
257
+ readonly 'storage.powerW': {
258
+ readonly kind: 'gauge';
259
+ readonly unit: 'W';
260
+ readonly deadband: 50;
261
+ readonly displayName: 'Storage power';
262
+ };
263
+ readonly 'storage.chargedKwh': {
264
+ readonly kind: 'counter';
265
+ readonly unit: 'kWh';
266
+ readonly displayName: 'Storage charged';
267
+ };
268
+ readonly 'storage.dischargedKwh': {
269
+ readonly kind: 'counter';
270
+ readonly unit: 'kWh';
271
+ readonly displayName: 'Storage discharged';
272
+ };
273
+ };
274
+ };
275
+ readonly volatileStateFields: readonly ["lastFetchedAt"];
276
+ readonly vocabulary: {
277
+ readonly noun: import("../index.js").VocabL10n;
278
+ readonly order: 4020;
279
+ };
280
+ };
281
+ export type IEnergySystemProvider = InferProvider<typeof energySystemCapability>;
@@ -173,7 +173,7 @@ export { type BrightnessStatus, BrightnessStatusSchema, brightnessCapability, ty
173
173
  export { FAN_CAPTURE_FIELDS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, type FanCaptureField, FanCaptureFieldSchema, type FanCaptureOmission, FanCaptureOmissionSchema, type FanPreset, type FanPresetApplyResult, FanPresetApplyResultSchema, type FanPresetAxis, FanPresetAxisSchema, type FanPresetCaptureResult, FanPresetCaptureResultSchema, type FanPresetFieldResult, FanPresetFieldResultSchema, FanPresetSchema, type FanPresetState, FanPresetStateSchema, type FanPresetsRefusal, FanPresetsRefusalSchema, type FanPresetsSetResult, FanPresetsSetResultSchema, type IFanPresetsProvider, fanPresetsCapability, } from './fan-presets.cap.js';
174
174
  export { type IRemoteProvider, REMOTE_CONFIG_REFUSALS, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_REFUSAL_REASONS, type RemoteBoundCommand, type RemoteCommandList, RemoteCommandListSchema, RemoteBoundCommandSchema, type RemoteMediaCommand, type RemoteMediaCommandResult, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, type RemoteRefusalReason, RemoteRefusalReasonSchema, type RemoteSendResult, RemoteSendResultSchema, type RemoteSetConfigResult, RemoteSetConfigResultSchema, remoteCapability, } from './remote.cap.js';
175
175
  export { HERO_ROW_MODELS_MAX, heroLayoutCapability, type HeroLayoutRows, HeroLayoutRowsSchema, type IHeroLayoutProvider, } from './hero-layout.cap.js';
176
- export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
176
+ export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateAutomationUser, TemplateAutomationUserSchema, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
177
177
  export { type IRemoteLayoutComponentsProvider, remoteLayoutComponentsCapability, } from './remote-layout-components.cap.js';
178
178
  export { buttonCapability, type IButtonProvider } from './button.cap.js';
179
179
  export { irTransmitterCapability, TransmitSettingKeySchema, IrMediumSchema, IrSendResultSchema, IrTransmitterInfoSchema, type IIrTransmitterProvider, type TransmitSettingKey, type IrMedium, type IrSendResult, type IrTransmitterInfo, IrLearnResultSchema, type IrLearnResult, IrTransmitterAttemptSchema, IrTransmitterSendRecordSchema, IrTransmitterRuntimeStateSchema, type IrTransmitterAttempt, type IrTransmitterSendRecord, type IrTransmitterRuntimeState, type IrTransmitterStateUpdate, irTransmitterStateAfter, irTransmitterRecordsUpdate, irTransmitterErrorCode, IR_LEARN_TIMEOUT_DEFAULT_MS, IR_LEARN_TIMEOUT_MAX_MS, } from './ir-transmitter.cap.js';
@@ -208,6 +208,7 @@ export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } fro
208
208
  export { type GroupCommandResult, GroupCommandResultSchema, type GroupCommands, GroupCommandsSchema, groupCommandsCapability, type IGroupCommandsProvider, } from './group-commands.cap.js';
209
209
  export { type GroupActive, GroupActiveSchema, groupActiveCapability, type IGroupActiveProvider, } from './group-active.cap.js';
210
210
  export { type GroupStatus, GroupStatusSchema, groupStatusCapability, type IGroupStatusProvider, } from './group-status.cap.js';
211
+ export { type EnergyConsumer, type EnergyGrid, type EnergySolar, type EnergyStorage, type EnergySystemStatus, type IEnergySystemProvider, EnergyConsumerSchema, EnergyGridSchema, EnergySolarSchema, EnergyStorageSchema, EnergySystemStatusSchema, energySystemCapability, energySystemSelfConsumptionPct, } from './energy-system.cap.js';
211
212
  export { type HeatPumpCircuit, type HeatPumpCircuitKind, type HeatPumpEnergy, type HeatPumpOptionSetting, type HeatPumpPower, type HeatPumpRangeSetting, type HeatPumpStatus, type HeatPumpSystem, type HeatPumpTemperatures, type IHeatPumpStatusProvider, HEAT_PUMP_CIRCUIT_KINDS, HeatPumpCircuitKindSchema, HeatPumpCircuitSchema, HeatPumpEnergySchema, HeatPumpOptionSettingSchema, HeatPumpPowerSchema, HeatPumpRangeSettingSchema, HeatPumpStatusSchema, HeatPumpSystemSchema, HeatPumpTemperaturesSchema, heatPumpInstantCop, heatPumpStatusCapability, } from './heat-pump-status.cap.js';
212
213
  export { type IHeatPumpControlProvider, heatPumpControlCapability, } from './heat-pump-control.cap.js';
213
214
  export { type HeatingValveStatus, HeatingValveStatusSchema, heatingValveCapability, type IHeatingValveProvider, } from './heating-valve.cap.js';
@@ -384,6 +385,7 @@ import type { groupCommandsCapability } from './group-commands.cap.js';
384
385
  import type { groupStatusCapability } from './group-status.cap.js';
385
386
  import type { heatingValveCapability } from './heating-valve.cap.js';
386
387
  import type { heatPumpStatusCapability } from './heat-pump-status.cap.js';
388
+ import type { energySystemCapability } from './energy-system.cap.js';
387
389
  import type { heatPumpControlCapability } from './heat-pump-control.cap.js';
388
390
  import type { humidifierCapability } from './humidifier.cap.js';
389
391
  import type { humiditySensorCapability } from './humidity-sensor.cap.js';
@@ -491,6 +493,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
491
493
  import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
492
494
  import type { zoneRulesCapability } from './zone-rules.cap.js';
493
495
  import type { zonesCapability } from './zones.cap.js';
494
- type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
496
+ type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
495
497
  export type CapabilityName = AnyCapability['name'];
496
498
  export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
@@ -31,6 +31,9 @@ export declare const IntegrationInstanceKindSchema: z.ZodObject<{
31
31
  label: z.ZodString;
32
32
  functionCap: z.ZodString;
33
33
  brokerKind: z.ZodOptional<z.ZodString>;
34
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ iconUrl: z.ZodOptional<z.ZodString>;
36
+ iconMediaType: z.ZodOptional<z.ZodString>;
34
37
  role: z.ZodOptional<z.ZodEnum<{
35
38
  devices: "devices";
36
39
  services: "services";
@@ -107,6 +110,9 @@ export declare const IntegrationInstanceDescriptionSchema: z.ZodObject<{
107
110
  label: z.ZodString;
108
111
  functionCap: z.ZodString;
109
112
  brokerKind: z.ZodOptional<z.ZodString>;
113
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ iconUrl: z.ZodOptional<z.ZodString>;
115
+ iconMediaType: z.ZodOptional<z.ZodString>;
110
116
  role: z.ZodOptional<z.ZodEnum<{
111
117
  devices: "devices";
112
118
  services: "services";
@@ -207,6 +213,9 @@ export declare const integrationInstancesCapability: {
207
213
  label: z.ZodString;
208
214
  functionCap: z.ZodString;
209
215
  brokerKind: z.ZodOptional<z.ZodString>;
216
+ alsoServes: z.ZodOptional<z.ZodArray<z.ZodString>>;
217
+ iconUrl: z.ZodOptional<z.ZodString>;
218
+ iconMediaType: z.ZodOptional<z.ZodString>;
210
219
  role: z.ZodOptional<z.ZodEnum<{
211
220
  devices: "devices";
212
221
  services: "services";
@@ -3559,6 +3559,8 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
3559
3559
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3560
3560
  }, z.core.$strip>>;
3561
3561
  }, z.core.$strip>;
3562
+ title: z.ZodOptional<z.ZodString>;
3563
+ body: z.ZodOptional<z.ZodString>;
3562
3564
  artifactIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3563
3565
  groupedInto: z.ZodOptional<z.ZodString>;
3564
3566
  }, z.core.$strip>;
@@ -8139,6 +8141,8 @@ export declare const notificationRulesCapability: {
8139
8141
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8140
8142
  }, z.core.$strip>>;
8141
8143
  }, z.core.$strip>;
8144
+ title: z.ZodOptional<z.ZodString>;
8145
+ body: z.ZodOptional<z.ZodString>;
8142
8146
  artifactIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8143
8147
  groupedInto: z.ZodOptional<z.ZodString>;
8144
8148
  }, z.core.$strip>>;
@@ -10,6 +10,7 @@ declare const SendEmailInputSchema: z.ZodObject<{
10
10
  subject: z.ZodString;
11
11
  text: z.ZodString;
12
12
  html: z.ZodOptional<z.ZodString>;
13
+ images: z.ZodOptional<z.ZodArray<z.ZodType<import("../index.js").EmailImagePart, unknown, z.core.$ZodTypeInternals<import("../index.js").EmailImagePart, unknown>>>>;
13
14
  }, z.core.$strip>;
14
15
  declare const SendEmailResultSchema: z.ZodObject<{
15
16
  messageId: z.ZodString;
@@ -40,6 +41,7 @@ export declare const smtpProviderCapability: {
40
41
  subject: z.ZodString;
41
42
  text: z.ZodString;
42
43
  html: z.ZodOptional<z.ZodString>;
44
+ images: z.ZodOptional<z.ZodArray<z.ZodType<import("../index.js").EmailImagePart, unknown, z.core.$ZodTypeInternals<import("../index.js").EmailImagePart, unknown>>>>;
43
45
  }, z.core.$strip>, z.ZodObject<{
44
46
  messageId: z.ZodString;
45
47
  accepted: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
@@ -24,6 +24,11 @@ export declare const switchCapability: {
24
24
  deviceId: z.ZodNumber;
25
25
  on: z.ZodBoolean;
26
26
  }, z.core.$strip>, z.ZodVoid, "mutation">;
27
+ readonly toggle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
28
+ deviceId: z.ZodNumber;
29
+ }, z.core.$strip>, z.ZodVoid, "mutation"> & {
30
+ readonly providerOptional: true;
31
+ };
27
32
  };
28
33
  readonly events: {
29
34
  readonly onStateChanged: {
@@ -6,7 +6,9 @@ import { type InferProvider } from './capability-definition.js';
6
6
  * button grid of a remote) and the schema each payload must satisfy are
7
7
  * declared by the system in `template-kinds.ts`. Nothing here is specific to a
8
8
  * kind: the engine validates a payload against its kind's schema and, on a
9
- * delete, asks the kind's owner whether anything still points at the record.
9
+ * delete, asks the kind's owner whether anything still points at the record
10
+ * (a device's remote, an automation made from the template). Saving an
11
+ * `automation` template re-expands every automation made from it (#527).
10
12
  *
11
13
  * Every refusal is a typed result — a UI says "unknown kind" or names the
12
14
  * devices that still use a template, without parsing text.
@@ -14,32 +16,37 @@ import { type InferProvider } from './capability-definition.js';
14
16
  export declare const TemplateRecordSchema: z.ZodObject<{
15
17
  id: z.ZodString;
16
18
  kind: z.ZodEnum<{
19
+ automation: "automation";
17
20
  remote: "remote";
18
21
  }>;
19
22
  name: z.ZodString;
20
23
  payload: z.ZodUnknown;
21
24
  createdAt: z.ZodNumber;
22
25
  updatedAt: z.ZodNumber;
26
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
23
27
  }, z.core.$strip>;
24
28
  export type TemplateRecord = z.infer<typeof TemplateRecordSchema>;
25
- export declare const TEMPLATE_WRITE_REFUSALS: readonly ['invalid-payload', 'not-found'];
29
+ export declare const TEMPLATE_WRITE_REFUSALS: readonly ['invalid-payload', 'not-found', 'read-only'];
26
30
  export declare const TemplateWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
31
  status: z.ZodLiteral<"saved">;
28
32
  template: z.ZodObject<{
29
33
  id: z.ZodString;
30
34
  kind: z.ZodEnum<{
35
+ automation: "automation";
31
36
  remote: "remote";
32
37
  }>;
33
38
  name: z.ZodString;
34
39
  payload: z.ZodUnknown;
35
40
  createdAt: z.ZodNumber;
36
41
  updatedAt: z.ZodNumber;
42
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
37
43
  }, z.core.$strip>;
38
44
  }, z.core.$strip>, z.ZodObject<{
39
45
  status: z.ZodLiteral<"refused">;
40
46
  reason: z.ZodEnum<{
41
47
  "invalid-payload": "invalid-payload";
42
48
  "not-found": "not-found";
49
+ "read-only": "read-only";
43
50
  }>;
44
51
  detail: z.ZodString;
45
52
  }, z.core.$strip>], "status">;
@@ -50,16 +57,28 @@ export declare const TemplateUserSchema: z.ZodObject<{
50
57
  name: z.ZodString;
51
58
  }, z.core.$strip>;
52
59
  export type TemplateUser = z.infer<typeof TemplateUserSchema>;
60
+ /** An automation made from a template (#527): a core block whose recipe links to it. */
61
+ export declare const TemplateAutomationUserSchema: z.ZodObject<{
62
+ blockId: z.ZodString;
63
+ name: z.ZodString;
64
+ }, z.core.$strip>;
65
+ export type TemplateAutomationUser = z.infer<typeof TemplateAutomationUserSchema>;
53
66
  export declare const TemplateDeleteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
67
  status: z.ZodLiteral<"deleted">;
55
68
  }, z.core.$strip>, z.ZodObject<{
56
69
  status: z.ZodLiteral<"not-found">;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ status: z.ZodLiteral<"read-only">;
57
72
  }, z.core.$strip>, z.ZodObject<{
58
73
  status: z.ZodLiteral<"in-use">;
59
74
  devices: z.ZodArray<z.ZodObject<{
60
75
  deviceId: z.ZodNumber;
61
76
  name: z.ZodString;
62
77
  }, z.core.$strip>>;
78
+ automations: z.ZodArray<z.ZodObject<{
79
+ blockId: z.ZodString;
80
+ name: z.ZodString;
81
+ }, z.core.$strip>>;
63
82
  }, z.core.$strip>], "status">;
64
83
  export type TemplateDeleteResult = z.infer<typeof TemplateDeleteResultSchema>;
65
84
  export declare const templateCapability: {
@@ -69,32 +88,38 @@ export declare const templateCapability: {
69
88
  readonly methods: {
70
89
  readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
71
90
  kind: z.ZodOptional<z.ZodEnum<{
91
+ automation: "automation";
72
92
  remote: "remote";
73
93
  }>>;
74
94
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
75
95
  id: z.ZodString;
76
96
  kind: z.ZodEnum<{
97
+ automation: "automation";
77
98
  remote: "remote";
78
99
  }>;
79
100
  name: z.ZodString;
80
101
  payload: z.ZodUnknown;
81
102
  createdAt: z.ZodNumber;
82
103
  updatedAt: z.ZodNumber;
104
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
83
105
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
84
106
  readonly get: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
85
107
  id: z.ZodString;
86
108
  }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
87
109
  id: z.ZodString;
88
110
  kind: z.ZodEnum<{
111
+ automation: "automation";
89
112
  remote: "remote";
90
113
  }>;
91
114
  name: z.ZodString;
92
115
  payload: z.ZodUnknown;
93
116
  createdAt: z.ZodNumber;
94
117
  updatedAt: z.ZodNumber;
118
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
95
119
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
96
120
  readonly create: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
97
121
  kind: z.ZodEnum<{
122
+ automation: "automation";
98
123
  remote: "remote";
99
124
  }>;
100
125
  name: z.ZodString;
@@ -104,18 +129,21 @@ export declare const templateCapability: {
104
129
  template: z.ZodObject<{
105
130
  id: z.ZodString;
106
131
  kind: z.ZodEnum<{
132
+ automation: "automation";
107
133
  remote: "remote";
108
134
  }>;
109
135
  name: z.ZodString;
110
136
  payload: z.ZodUnknown;
111
137
  createdAt: z.ZodNumber;
112
138
  updatedAt: z.ZodNumber;
139
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
113
140
  }, z.core.$strip>;
114
141
  }, z.core.$strip>, z.ZodObject<{
115
142
  status: z.ZodLiteral<"refused">;
116
143
  reason: z.ZodEnum<{
117
144
  "invalid-payload": "invalid-payload";
118
145
  "not-found": "not-found";
146
+ "read-only": "read-only";
119
147
  }>;
120
148
  detail: z.ZodString;
121
149
  }, z.core.$strip>], "status">, "mutation">;
@@ -128,18 +156,21 @@ export declare const templateCapability: {
128
156
  template: z.ZodObject<{
129
157
  id: z.ZodString;
130
158
  kind: z.ZodEnum<{
159
+ automation: "automation";
131
160
  remote: "remote";
132
161
  }>;
133
162
  name: z.ZodString;
134
163
  payload: z.ZodUnknown;
135
164
  createdAt: z.ZodNumber;
136
165
  updatedAt: z.ZodNumber;
166
+ builtIn: z.ZodOptional<z.ZodLiteral<true>>;
137
167
  }, z.core.$strip>;
138
168
  }, z.core.$strip>, z.ZodObject<{
139
169
  status: z.ZodLiteral<"refused">;
140
170
  reason: z.ZodEnum<{
141
171
  "invalid-payload": "invalid-payload";
142
172
  "not-found": "not-found";
173
+ "read-only": "read-only";
143
174
  }>;
144
175
  detail: z.ZodString;
145
176
  }, z.core.$strip>], "status">, "mutation">;
@@ -149,12 +180,18 @@ export declare const templateCapability: {
149
180
  status: z.ZodLiteral<"deleted">;
150
181
  }, z.core.$strip>, z.ZodObject<{
151
182
  status: z.ZodLiteral<"not-found">;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ status: z.ZodLiteral<"read-only">;
152
185
  }, z.core.$strip>, z.ZodObject<{
153
186
  status: z.ZodLiteral<"in-use">;
154
187
  devices: z.ZodArray<z.ZodObject<{
155
188
  deviceId: z.ZodNumber;
156
189
  name: z.ZodString;
157
190
  }, z.core.$strip>>;
191
+ automations: z.ZodArray<z.ZodObject<{
192
+ blockId: z.ZodString;
193
+ name: z.ZodString;
194
+ }, z.core.$strip>>;
158
195
  }, z.core.$strip>], "status">, "mutation">;
159
196
  };
160
197
  readonly vocabulary: {