@camstack/types 1.2.562 → 1.2.564
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 +27 -0
- package/dist/addon.js +3 -2
- package/dist/addon.mjs +3 -2
- package/dist/capabilities/cluster-update.cap.d.ts +16 -0
- package/dist/capabilities/device-manager.cap.d.ts +18 -17
- package/dist/capabilities/device-provider.cap.d.ts +7 -7
- package/dist/capabilities/device-search.d.ts +8 -6
- package/dist/capabilities/energy-system.cap.d.ts +10 -0
- package/dist/capabilities/media-player.cap.d.ts +3 -0
- package/dist/capabilities/notification-rules.cap.d.ts +4 -0
- package/dist/capabilities/remote.cap.d.ts +1 -0
- package/dist/capabilities/smtp-provider.cap.d.ts +2 -0
- package/dist/capabilities/switch.cap.d.ts +5 -0
- package/dist/client.js +48 -1
- package/dist/client.mjs +48 -1
- package/dist/{convert-BmtM6K-5.js → convert-BI8iTXn6.js} +15 -0
- package/dist/{convert-BAzH15HU.mjs → convert-BwMfbk5b.mjs} +15 -0
- package/dist/device/cap-vocabulary/index.d.ts +1 -1
- package/dist/device/cap-vocabulary/resolve.d.ts +6 -0
- package/dist/device/hero/build-hero-model.d.ts +3 -0
- package/dist/device/hero/hero-fragment.d.ts +3 -0
- package/dist/device/hero/hero-row.d.ts +1 -1
- package/dist/device/hero/media-player-view.d.ts +2 -1
- package/dist/device/source-info.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +434 -53
- package/dist/index.mjs +427 -54
- package/dist/notification/degrade-engine.d.ts +5 -0
- package/dist/notification/email-image-bytes.d.ts +26 -0
- package/dist/notification/email-mime.d.ts +52 -0
- package/dist/{sleep-Cb2px0Nb.js → sleep-B1IED7ED.js} +61 -32
- package/dist/{sleep-Cykc2bzi.mjs → sleep-D7hCDd7y.mjs} +61 -32
- package/dist/units/quantity.d.ts +1 -1
- package/dist/units/unit-table.d.ts +1 -1
- package/dist/units-lean.js +1 -1
- package/dist/units-lean.mjs +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
14
14
|
export declare const DEVICE_SEARCH_DEFAULT_LIMIT = 50;
|
|
15
15
|
export declare const DEVICE_SEARCH_MAX_LIMIT = 200;
|
|
16
16
|
export declare const DeviceSearchRequiresSchema: z.ZodObject<{
|
|
17
|
-
caps: z.ZodReadonly<z.ZodArray<z.ZodString
|
|
17
|
+
caps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
actions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
18
19
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
19
20
|
all: "all";
|
|
20
21
|
any: "any";
|
|
@@ -30,7 +31,8 @@ export type DeviceSearchFilters = z.infer<typeof DeviceSearchFiltersSchema>;
|
|
|
30
31
|
export declare const DeviceSearchInputSchema: z.ZodObject<{
|
|
31
32
|
text: z.ZodOptional<z.ZodString>;
|
|
32
33
|
requires: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
caps: z.ZodReadonly<z.ZodArray<z.ZodString
|
|
34
|
+
caps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
35
|
+
actions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
34
36
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
35
37
|
all: "all";
|
|
36
38
|
any: "any";
|
|
@@ -54,7 +56,7 @@ export declare const DeviceValueOptionSchema: z.ZodObject<{
|
|
|
54
56
|
label: z.ZodString;
|
|
55
57
|
reading: z.ZodNullable<z.ZodString>;
|
|
56
58
|
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
59
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
58
60
|
}, z.core.$strip>;
|
|
59
61
|
export type DeviceValueOption = z.infer<typeof DeviceValueOptionSchema>;
|
|
60
62
|
export declare const DeviceSearchItemSchema: z.ZodObject<{
|
|
@@ -73,7 +75,7 @@ export declare const DeviceSearchItemSchema: z.ZodObject<{
|
|
|
73
75
|
label: z.ZodString;
|
|
74
76
|
reading: z.ZodNullable<z.ZodString>;
|
|
75
77
|
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
78
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
77
79
|
}, z.core.$strip>>>;
|
|
78
80
|
}, z.core.$strip>;
|
|
79
81
|
export type DeviceSearchItem = z.infer<typeof DeviceSearchItemSchema>;
|
|
@@ -121,7 +123,7 @@ export declare const DeviceSearchResultSchema: z.ZodObject<{
|
|
|
121
123
|
label: z.ZodString;
|
|
122
124
|
reading: z.ZodNullable<z.ZodString>;
|
|
123
125
|
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
126
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
125
127
|
}, z.core.$strip>>>;
|
|
126
128
|
}, z.core.$strip>>>;
|
|
127
129
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -160,7 +162,7 @@ export declare const DeviceSearchResultSchema: z.ZodObject<{
|
|
|
160
162
|
label: z.ZodString;
|
|
161
163
|
reading: z.ZodNullable<z.ZodString>;
|
|
162
164
|
unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
165
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
164
166
|
}, z.core.$strip>>>;
|
|
165
167
|
}, z.core.$strip>>>;
|
|
166
168
|
missingIds: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
|
|
@@ -55,6 +55,7 @@ export declare const EnergyStorageSchema: z.ZodObject<{
|
|
|
55
55
|
dischargedKwh: z.ZodNullable<z.ZodNumber>;
|
|
56
56
|
chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
healthPct: z.ZodNullable<z.ZodNumber>;
|
|
58
59
|
}, z.core.$strip>;
|
|
59
60
|
export type EnergyStorage = z.infer<typeof EnergyStorageSchema>;
|
|
60
61
|
export declare const EnergySystemStatusSchema: z.ZodObject<{
|
|
@@ -89,6 +90,7 @@ export declare const EnergySystemStatusSchema: z.ZodObject<{
|
|
|
89
90
|
dischargedKwh: z.ZodNullable<z.ZodNumber>;
|
|
90
91
|
chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
91
92
|
dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
healthPct: z.ZodNullable<z.ZodNumber>;
|
|
92
94
|
}, z.core.$strip>>;
|
|
93
95
|
lastFetchedAt: z.ZodNumber;
|
|
94
96
|
}, z.core.$strip>;
|
|
@@ -139,6 +141,7 @@ export declare const energySystemCapability: {
|
|
|
139
141
|
dischargedKwh: z.ZodNullable<z.ZodNumber>;
|
|
140
142
|
chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
141
143
|
dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
144
|
+
healthPct: z.ZodNullable<z.ZodNumber>;
|
|
142
145
|
}, z.core.$strip>>;
|
|
143
146
|
lastFetchedAt: z.ZodNumber;
|
|
144
147
|
}, z.core.$strip>;
|
|
@@ -176,6 +179,7 @@ export declare const energySystemCapability: {
|
|
|
176
179
|
dischargedKwh: z.ZodNullable<z.ZodNumber>;
|
|
177
180
|
chargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
178
181
|
dischargedTodayKwh: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
healthPct: z.ZodNullable<z.ZodNumber>;
|
|
179
183
|
}, z.core.$strip>>;
|
|
180
184
|
lastFetchedAt: z.ZodNumber;
|
|
181
185
|
}, z.core.$strip>;
|
|
@@ -270,6 +274,12 @@ export declare const energySystemCapability: {
|
|
|
270
274
|
readonly unit: 'kWh';
|
|
271
275
|
readonly displayName: 'Storage discharged';
|
|
272
276
|
};
|
|
277
|
+
readonly 'storage.healthPct': {
|
|
278
|
+
readonly kind: 'gauge';
|
|
279
|
+
readonly unit: '%';
|
|
280
|
+
readonly deadband: 1;
|
|
281
|
+
readonly displayName: 'Storage health';
|
|
282
|
+
};
|
|
273
283
|
};
|
|
274
284
|
};
|
|
275
285
|
readonly volatileStateFields: readonly ["lastFetchedAt"];
|
|
@@ -79,6 +79,7 @@ export declare const MediaPlayerStatusSchema: z.ZodObject<{
|
|
|
79
79
|
}>>>;
|
|
80
80
|
volumeLevel: z.ZodNullable<z.ZodNumber>;
|
|
81
81
|
isMuted: z.ZodNullable<z.ZodBoolean>;
|
|
82
|
+
muteReadback: z.ZodOptional<z.ZodBoolean>;
|
|
82
83
|
source: z.ZodString;
|
|
83
84
|
availableSources: z.ZodArray<z.ZodString>;
|
|
84
85
|
declaredSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -251,6 +252,7 @@ export declare const mediaPlayerCapability: {
|
|
|
251
252
|
}>>>;
|
|
252
253
|
volumeLevel: z.ZodNullable<z.ZodNumber>;
|
|
253
254
|
isMuted: z.ZodNullable<z.ZodBoolean>;
|
|
255
|
+
muteReadback: z.ZodOptional<z.ZodBoolean>;
|
|
254
256
|
source: z.ZodString;
|
|
255
257
|
availableSources: z.ZodArray<z.ZodString>;
|
|
256
258
|
declaredSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -309,6 +311,7 @@ export declare const mediaPlayerCapability: {
|
|
|
309
311
|
}>>>;
|
|
310
312
|
volumeLevel: z.ZodNullable<z.ZodNumber>;
|
|
311
313
|
isMuted: z.ZodNullable<z.ZodBoolean>;
|
|
314
|
+
muteReadback: z.ZodOptional<z.ZodBoolean>;
|
|
312
315
|
source: z.ZodString;
|
|
313
316
|
availableSources: z.ZodArray<z.ZodString>;
|
|
314
317
|
declaredSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -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>>;
|
|
@@ -422,6 +422,7 @@ export declare const remoteCapability: {
|
|
|
422
422
|
}>>>;
|
|
423
423
|
volumeLevel: z.ZodNullable<z.ZodNumber>;
|
|
424
424
|
isMuted: z.ZodNullable<z.ZodBoolean>;
|
|
425
|
+
muteReadback: z.ZodOptional<z.ZodBoolean>;
|
|
425
426
|
source: z.ZodString;
|
|
426
427
|
availableSources: z.ZodArray<z.ZodString>;
|
|
427
428
|
declaredSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -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: {
|
package/dist/client.js
CHANGED
|
@@ -847,6 +847,8 @@ var READING_QUANTITIES = [
|
|
|
847
847
|
"information",
|
|
848
848
|
"sound-level",
|
|
849
849
|
"signal-level",
|
|
850
|
+
"signal-ratio",
|
|
851
|
+
"frequency",
|
|
850
852
|
"colour-temperature",
|
|
851
853
|
"angle",
|
|
852
854
|
"bitrate",
|
|
@@ -24907,6 +24909,13 @@ var NcHistoryEntrySchema = zod.z.object({
|
|
|
24907
24909
|
error: zod.z.string().optional(),
|
|
24908
24910
|
subject: NcHistorySubjectSchema,
|
|
24909
24911
|
/**
|
|
24912
|
+
* The title and body actually sent, frozen at delivery. Absent on a row
|
|
24913
|
+
* still pending, a row suppressed before a notification was built, and a
|
|
24914
|
+
* row delivered before this field shipped.
|
|
24915
|
+
*/
|
|
24916
|
+
title: zod.z.string().optional(),
|
|
24917
|
+
body: zod.z.string().optional(),
|
|
24918
|
+
/**
|
|
24910
24919
|
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
24911
24920
|
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
24912
24921
|
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
@@ -28027,6 +28036,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28027
28036
|
const streamSignalsInterface = { listSignals: (input) => dispatch("stream-signals", "streamSignals", "listSignals", "query", input) };
|
|
28028
28037
|
const switchInterface = {
|
|
28029
28038
|
setState: (input) => dispatch("switch", "switch", "setState", "mutation", input),
|
|
28039
|
+
toggle: (input) => dispatch("switch", "switch", "toggle", "mutation", input),
|
|
28030
28040
|
getStatus: (input) => dispatch("switch", "switch", "getStatus", "query", input)
|
|
28031
28041
|
};
|
|
28032
28042
|
const tamperInterface = { getStatus: (input) => dispatch("tamper", "tamper", "getStatus", "query", input) };
|
|
@@ -31633,6 +31643,28 @@ var STATE_SUMMARY_VARS = [
|
|
|
31633
31643
|
systemEventKinds: [...SUMMARISABLE],
|
|
31634
31644
|
systemEventDeliveries: ["summary"]
|
|
31635
31645
|
},
|
|
31646
|
+
{
|
|
31647
|
+
name: "offlineCount",
|
|
31648
|
+
label: "Summary: how many went offline",
|
|
31649
|
+
example: "2",
|
|
31650
|
+
group: "system",
|
|
31651
|
+
families: ["rule"],
|
|
31652
|
+
fields: [...RULE_TEXT],
|
|
31653
|
+
kinds: ["system"],
|
|
31654
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
31655
|
+
systemEventDeliveries: ["summary"]
|
|
31656
|
+
},
|
|
31657
|
+
{
|
|
31658
|
+
name: "onlineCount",
|
|
31659
|
+
label: "Summary: how many came back",
|
|
31660
|
+
example: "5",
|
|
31661
|
+
group: "system",
|
|
31662
|
+
families: ["rule"],
|
|
31663
|
+
fields: [...RULE_TEXT],
|
|
31664
|
+
kinds: ["system"],
|
|
31665
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
31666
|
+
systemEventDeliveries: ["summary"]
|
|
31667
|
+
},
|
|
31636
31668
|
{
|
|
31637
31669
|
name: "summaryCount",
|
|
31638
31670
|
label: "Summary: items reported",
|
|
@@ -31723,6 +31755,21 @@ var NC_TEMPLATE_VARS = [
|
|
|
31723
31755
|
kinds: ["detection", "system"],
|
|
31724
31756
|
systemEventKinds: [...COMBINED_ALARM]
|
|
31725
31757
|
},
|
|
31758
|
+
{
|
|
31759
|
+
name: "headline",
|
|
31760
|
+
label: "Subject and place",
|
|
31761
|
+
description: "The default detection title: the label when one is set, otherwise the translated class, then the zone or the device. The subject alone when neither place is known.",
|
|
31762
|
+
example: "Persona — Uscio",
|
|
31763
|
+
group: "subject",
|
|
31764
|
+
families: ["rule"],
|
|
31765
|
+
fields: [...RULE_TEXT],
|
|
31766
|
+
kinds: [
|
|
31767
|
+
"detection",
|
|
31768
|
+
"occupancy",
|
|
31769
|
+
"sound",
|
|
31770
|
+
"sensor"
|
|
31771
|
+
]
|
|
31772
|
+
},
|
|
31726
31773
|
{
|
|
31727
31774
|
name: "subject",
|
|
31728
31775
|
label: "Subject sentence",
|
|
@@ -32017,7 +32064,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32017
32064
|
families: ["rule"],
|
|
32018
32065
|
fields: [...RULE_TEXT],
|
|
32019
32066
|
kinds: ["system"],
|
|
32020
|
-
systemEventKinds: ["device-command"]
|
|
32067
|
+
systemEventKinds: ["device-command", "alarm-disarmed"]
|
|
32021
32068
|
},
|
|
32022
32069
|
{
|
|
32023
32070
|
name: "deviceLabel",
|
package/dist/client.mjs
CHANGED
|
@@ -846,6 +846,8 @@ var READING_QUANTITIES = [
|
|
|
846
846
|
"information",
|
|
847
847
|
"sound-level",
|
|
848
848
|
"signal-level",
|
|
849
|
+
"signal-ratio",
|
|
850
|
+
"frequency",
|
|
849
851
|
"colour-temperature",
|
|
850
852
|
"angle",
|
|
851
853
|
"bitrate",
|
|
@@ -24906,6 +24908,13 @@ var NcHistoryEntrySchema = z.object({
|
|
|
24906
24908
|
error: z.string().optional(),
|
|
24907
24909
|
subject: NcHistorySubjectSchema,
|
|
24908
24910
|
/**
|
|
24911
|
+
* The title and body actually sent, frozen at delivery. Absent on a row
|
|
24912
|
+
* still pending, a row suppressed before a notification was built, and a
|
|
24913
|
+
* row delivered before this field shipped.
|
|
24914
|
+
*/
|
|
24915
|
+
title: z.string().optional(),
|
|
24916
|
+
body: z.string().optional(),
|
|
24917
|
+
/**
|
|
24909
24918
|
* Ids of the artefacts (still, then gif, then clip) this row's successful
|
|
24910
24919
|
* delivery indexed in the artefact library — a REFERENCE, never the bytes
|
|
24911
24920
|
* (an artefact is often megabytes; this row is durable JSON rewritten on
|
|
@@ -28026,6 +28035,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
28026
28035
|
const streamSignalsInterface = { listSignals: (input) => dispatch("stream-signals", "streamSignals", "listSignals", "query", input) };
|
|
28027
28036
|
const switchInterface = {
|
|
28028
28037
|
setState: (input) => dispatch("switch", "switch", "setState", "mutation", input),
|
|
28038
|
+
toggle: (input) => dispatch("switch", "switch", "toggle", "mutation", input),
|
|
28029
28039
|
getStatus: (input) => dispatch("switch", "switch", "getStatus", "query", input)
|
|
28030
28040
|
};
|
|
28031
28041
|
const tamperInterface = { getStatus: (input) => dispatch("tamper", "tamper", "getStatus", "query", input) };
|
|
@@ -31632,6 +31642,28 @@ var STATE_SUMMARY_VARS = [
|
|
|
31632
31642
|
systemEventKinds: [...SUMMARISABLE],
|
|
31633
31643
|
systemEventDeliveries: ["summary"]
|
|
31634
31644
|
},
|
|
31645
|
+
{
|
|
31646
|
+
name: "offlineCount",
|
|
31647
|
+
label: "Summary: how many went offline",
|
|
31648
|
+
example: "2",
|
|
31649
|
+
group: "system",
|
|
31650
|
+
families: ["rule"],
|
|
31651
|
+
fields: [...RULE_TEXT],
|
|
31652
|
+
kinds: ["system"],
|
|
31653
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
31654
|
+
systemEventDeliveries: ["summary"]
|
|
31655
|
+
},
|
|
31656
|
+
{
|
|
31657
|
+
name: "onlineCount",
|
|
31658
|
+
label: "Summary: how many came back",
|
|
31659
|
+
example: "5",
|
|
31660
|
+
group: "system",
|
|
31661
|
+
families: ["rule"],
|
|
31662
|
+
fields: [...RULE_TEXT],
|
|
31663
|
+
kinds: ["system"],
|
|
31664
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
31665
|
+
systemEventDeliveries: ["summary"]
|
|
31666
|
+
},
|
|
31635
31667
|
{
|
|
31636
31668
|
name: "summaryCount",
|
|
31637
31669
|
label: "Summary: items reported",
|
|
@@ -31722,6 +31754,21 @@ var NC_TEMPLATE_VARS = [
|
|
|
31722
31754
|
kinds: ["detection", "system"],
|
|
31723
31755
|
systemEventKinds: [...COMBINED_ALARM]
|
|
31724
31756
|
},
|
|
31757
|
+
{
|
|
31758
|
+
name: "headline",
|
|
31759
|
+
label: "Subject and place",
|
|
31760
|
+
description: "The default detection title: the label when one is set, otherwise the translated class, then the zone or the device. The subject alone when neither place is known.",
|
|
31761
|
+
example: "Persona — Uscio",
|
|
31762
|
+
group: "subject",
|
|
31763
|
+
families: ["rule"],
|
|
31764
|
+
fields: [...RULE_TEXT],
|
|
31765
|
+
kinds: [
|
|
31766
|
+
"detection",
|
|
31767
|
+
"occupancy",
|
|
31768
|
+
"sound",
|
|
31769
|
+
"sensor"
|
|
31770
|
+
]
|
|
31771
|
+
},
|
|
31725
31772
|
{
|
|
31726
31773
|
name: "subject",
|
|
31727
31774
|
label: "Subject sentence",
|
|
@@ -32016,7 +32063,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
32016
32063
|
families: ["rule"],
|
|
32017
32064
|
fields: [...RULE_TEXT],
|
|
32018
32065
|
kinds: ["system"],
|
|
32019
|
-
systemEventKinds: ["device-command"]
|
|
32066
|
+
systemEventKinds: ["device-command", "alarm-disarmed"]
|
|
32020
32067
|
},
|
|
32021
32068
|
{
|
|
32022
32069
|
name: "deviceLabel",
|
|
@@ -331,6 +331,21 @@ var UNIT_TABLE = {
|
|
|
331
331
|
factor: 1,
|
|
332
332
|
offset: 0
|
|
333
333
|
},
|
|
334
|
+
dB: {
|
|
335
|
+
dimension: "signal-ratio",
|
|
336
|
+
factor: 1,
|
|
337
|
+
offset: 0
|
|
338
|
+
},
|
|
339
|
+
Hz: {
|
|
340
|
+
dimension: "frequency",
|
|
341
|
+
factor: 1,
|
|
342
|
+
offset: 0
|
|
343
|
+
},
|
|
344
|
+
kHz: {
|
|
345
|
+
dimension: "frequency",
|
|
346
|
+
factor: 1e3,
|
|
347
|
+
offset: 0
|
|
348
|
+
},
|
|
334
349
|
mired: {
|
|
335
350
|
dimension: "colour-temperature",
|
|
336
351
|
factor: 1,
|
|
@@ -331,6 +331,21 @@ var UNIT_TABLE = {
|
|
|
331
331
|
factor: 1,
|
|
332
332
|
offset: 0
|
|
333
333
|
},
|
|
334
|
+
dB: {
|
|
335
|
+
dimension: "signal-ratio",
|
|
336
|
+
factor: 1,
|
|
337
|
+
offset: 0
|
|
338
|
+
},
|
|
339
|
+
Hz: {
|
|
340
|
+
dimension: "frequency",
|
|
341
|
+
factor: 1,
|
|
342
|
+
offset: 0
|
|
343
|
+
},
|
|
344
|
+
kHz: {
|
|
345
|
+
dimension: "frequency",
|
|
346
|
+
factor: 1e3,
|
|
347
|
+
offset: 0
|
|
348
|
+
},
|
|
334
349
|
mired: {
|
|
335
350
|
dimension: "colour-temperature",
|
|
336
351
|
factor: 1,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* device and WATCH it for, in one cap-keyed map generated from the caps (D1050).
|
|
4
4
|
*/
|
|
5
5
|
export type { ResolvedBooleanTrigger, ResolvedEnumTrigger, ResolvedEnumValue, ResolvedEventTrigger, ResolvedNumericTrigger, ResolvedValueTrigger, ResolvedVocabAction, ResolvedVocabTrigger, VocabBindingsInput, } from './resolve.js';
|
|
6
|
-
export { actionsForDevice, renderVocabPhrase, triggersForDevice, } from './resolve.js';
|
|
6
|
+
export { actionsForDevice, deviceOffersActions, renderVocabPhrase, triggersForDevice, } from './resolve.js';
|
|
7
7
|
export type { ActionEffect, IndexedVocabAction, VocabActionRefusal, VocabCall, } from './action-index.js';
|
|
8
8
|
export { actionEffect, allVocabActions, assertDeviceOffers, findVocabAction, VocabActionError, vocabActionIdFor, vocabCall, } from './action-index.js';
|
|
9
9
|
export type { CommandEffect } from './command-catalog.js';
|
|
@@ -92,6 +92,12 @@ export declare function renderVocabPhrase(phrase: L10n, locale: VocabLocale, val
|
|
|
92
92
|
* METHOD_ACCESS_MAP, or a read) is dropped.
|
|
93
93
|
*/
|
|
94
94
|
export declare function actionsForDevice(bindings: VocabBindingsInput, deviceType?: string, role?: string | null): readonly ResolvedVocabAction[];
|
|
95
|
+
/**
|
|
96
|
+
* Whether a device offers the vocabulary actions, with the same `any` / `all`
|
|
97
|
+
* rule a cap require uses. An empty list passes. This is the one check the
|
|
98
|
+
* device search and the command picker share.
|
|
99
|
+
*/
|
|
100
|
+
export declare function deviceOffersActions(bindings: VocabBindingsInput, actionIds: readonly string[], mode?: 'any' | 'all', deviceType?: string): boolean;
|
|
95
101
|
/**
|
|
96
102
|
* The triggers a device can be watched for — its state fields, then the bus
|
|
97
103
|
* events it emits — phrased for its type and role.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReadingQuantity } from '../../units/quantity.js';
|
|
1
2
|
import type { HeroModel } from './hero-model.js';
|
|
2
3
|
export interface HeroModelInput {
|
|
3
4
|
readonly device: {
|
|
@@ -8,6 +9,8 @@ export interface HeroModelInput {
|
|
|
8
9
|
readonly online: boolean;
|
|
9
10
|
/** The integration or brand the device comes from ("Midea"); drawn as a chip when known. */
|
|
10
11
|
readonly integration?: string | null;
|
|
12
|
+
/** What a numeric-sensor measures; names the unit its reading shows. */
|
|
13
|
+
readonly quantity?: ReadingQuantity | null;
|
|
11
14
|
};
|
|
12
15
|
/** Kebab cap names the device is bound to. */
|
|
13
16
|
readonly caps: readonly string[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* What ONE capability adds to a hero (D1023), and the context it reads.
|
|
3
3
|
* Contributions return a fragment; `buildHeroModel` merges the fragments.
|
|
4
4
|
*/
|
|
5
|
+
import type { ReadingQuantity } from '../../units/quantity.js';
|
|
5
6
|
import type { HeroBadge, HeroConsumablesSlot, HeroConsumptionSlot, HeroFact, HeroOwnPowerSlot, HeroPowerSupplySlot, HeroRemoteSlot, HeroRow, HeroSideTile, HeroTimedRunSlot } from './hero-model.js';
|
|
6
7
|
import type { HeroMeasurement } from './hero-measurement.js';
|
|
7
8
|
import type { HeroSceneMode } from './hero-scene.js';
|
|
@@ -33,6 +34,8 @@ export interface HeroContext {
|
|
|
33
34
|
readonly remoteCommands: number | null;
|
|
34
35
|
/** The caps the device is bound to: a contribution that overlaps another cap's fact yields to it. */
|
|
35
36
|
readonly caps: readonly string[];
|
|
37
|
+
/** What a numeric-sensor measures (stored at adopt); `null`/absent = unknown, the number shows bare. */
|
|
38
|
+
readonly quantity?: ReadingQuantity | null;
|
|
36
39
|
}
|
|
37
40
|
export interface HeroFragment {
|
|
38
41
|
readonly reading?: StateReading;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
25
25
|
* ({@link ROW_EXTRAS_BY_TYPE}): climate setpoint, a robot's return to base,
|
|
26
|
-
* a player's volume and remote. Each is a control the model already has, named by id,
|
|
26
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
27
27
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
28
28
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
29
29
|
* row of an older server: `primary` alone.
|
|
@@ -86,10 +86,11 @@ export interface MediaPlayerView {
|
|
|
86
86
|
readonly volume: VolumeView;
|
|
87
87
|
/** The device reported a level; false draws the slider as unknown. */
|
|
88
88
|
readonly volumeKnown: boolean;
|
|
89
|
+
/** True only when the status sets `muteReadback`. Absent or false is not a reading. */
|
|
89
90
|
readonly muteKnown: boolean;
|
|
90
91
|
/** Artwork of what is playing; null when there is none. */
|
|
91
92
|
readonly artworkUrl: string | null;
|
|
92
|
-
/** A mute toggle
|
|
93
|
+
/** A mute control is offered; a toggle only when `muteKnown`, else a momentary key. */
|
|
93
94
|
readonly mute: boolean;
|
|
94
95
|
readonly source: SourceView | null;
|
|
95
96
|
/** Channel up / down is offered; null when the device does not declare channel stepping. */
|
|
@@ -32,7 +32,7 @@ export declare const SourceInfoSchema: z.ZodObject<{
|
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
system: z.ZodString;
|
|
34
34
|
uniqueId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
35
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
36
36
|
dateTimeShape: z.ZodOptional<z.ZodEnum<{
|
|
37
37
|
date: "date";
|
|
38
38
|
datetime: "datetime";
|
|
@@ -10665,6 +10665,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10665
10665
|
output: z.infer<typeof switchCapability.methods.setState.output>;
|
|
10666
10666
|
meta: object;
|
|
10667
10667
|
}>;
|
|
10668
|
+
toggle: TRPCMutationProcedure<{
|
|
10669
|
+
input: {
|
|
10670
|
+
[x: string]: unknown;
|
|
10671
|
+
} & z.input<typeof switchCapability.methods.toggle.input>;
|
|
10672
|
+
output: z.infer<typeof switchCapability.methods.toggle.output>;
|
|
10673
|
+
meta: object;
|
|
10674
|
+
}>;
|
|
10668
10675
|
}>>;
|
|
10669
10676
|
system: TRPCBuiltRouter<{
|
|
10670
10677
|
ctx: TrpcContext;
|
|
@@ -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, 84 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 84 caps with 418 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 {
|
|
@@ -21,7 +21,7 @@ export declare function isCollectionArrayMethodName(capName: string, method: str
|
|
|
21
21
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
22
22
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
23
23
|
*
|
|
24
|
-
* Coverage:
|
|
24
|
+
* Coverage: 11 caps, 45 methods.
|
|
25
25
|
*/
|
|
26
26
|
export declare const PROVIDER_OPTIONAL_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
27
27
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
* 45 caps with series (
|
|
4
|
+
* 45 caps with series (104 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>>>>;
|
|
@@ -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 206 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 617 methods carry a device reference, of which
|
|
10
|
+
* 196 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
package/dist/index.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ export { DEVICE_TYPE_CONTROL_KIND, hasMotionTrigger, isNode, MOTION_TRIGGER_FEAT
|
|
|
267
267
|
export * from './device/hero/index.js';
|
|
268
268
|
export { isDoPickerDeviceType } from './device/device-do-actions.js';
|
|
269
269
|
export type { CapVocabularyEntry, CapVocabularyMap, L10n as VocabL10n, ActionEffect, CommandEffect, IndexedVocabAction, VocabActionRefusal, VocabCall, LooseCapVocabularyEntry, LooseVocabEffect, LooseVocabOffer, LooseVocabOpenArg, ResolvedBooleanTrigger, ResolvedEnumTrigger, ResolvedEnumValue, ResolvedEventTrigger, ResolvedNumericTrigger, ResolvedValueTrigger, ResolvedVocabAction, ResolvedVocabTrigger, VocabBindingsInput, VocabCapName, VocabLocale, CapVocabularyDecl, DeviceCapVocabularyDecl, EventVocabularyDecl, LooseMethodActionDecl, MethodActionArgs, MethodActionDecl, MethodActionEffect, MethodActionOpenArg, SystemCapVocabularyDecl, } from './device/cap-vocabulary/index.js';
|
|
270
|
-
export { actionEffect, actionsForDevice as vocabularyActionsForDevice, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, vocabCall, VocabActionError, assertDeviceOffers, NOT_A_DEVICE, } from './device/cap-vocabulary/index.js';
|
|
270
|
+
export { actionEffect, actionsForDevice as vocabularyActionsForDevice, deviceOffersActions, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, vocabCall, VocabActionError, assertDeviceOffers, NOT_A_DEVICE, } from './device/cap-vocabulary/index.js';
|
|
271
271
|
export type { ChildLayout, ChildLayoutEntry, CreateDeviceSpec, DeviceCapDisplayOverride, DeviceDiscovery, DeviceDisplayOverride, DeviceManualCreation, DeviceMeta, DiscoveredDevice, InitialDeviceMeta, RoleDisplayDefault, SavedDevice, } from './device/device-management.js';
|
|
272
272
|
export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device/device-profile.js';
|
|
273
273
|
export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device/device-profile.js';
|
|
@@ -363,6 +363,8 @@ export { AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, type AudioScaleEra, audioS
|
|
|
363
363
|
export { audioIsFailClosed, audioKindId, audioLabelChoices, audioModeOf, audioOrDefaults, isAudioLabelSelected, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, type NcAudioLabelChoice, type NcAudioMode, type NcAudioPatch, normalizeAudioLabel, patchAudio, toggleAudioLabel, } from './notification/audio-condition.js';
|
|
364
364
|
export { isAudioClassName, isBaseConditionKey, knownValues, NC_BASE_CONDITION_KEYS, type NcBaseConditionKey, pickerForCondition, pickerForRuleClasses, type TaxonomyGroup, type TaxonomyOption, type TaxonomyPicker, } from './notification/condition-taxonomy.js';
|
|
365
365
|
export { type PreparedAction, type PreparedAttachment, type PreparedNotification, prepareNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
|
|
366
|
+
export { assembleEmailMime, type EmailImageDropped, type OpenEmailImage, type OutboundEmail, materializeEmailImages, } from './notification/email-image-bytes.js';
|
|
367
|
+
export { EMAIL_IMAGE_MAX_COUNT, EMAIL_IMAGE_MAX_TOTAL_BYTES, EMAIL_IMAGE_SLOT, EmailImagePartSchema, type EmailImagePart, type EmailMimeImage, type RawMimeInput, buildRawMime, } from './notification/email-mime.js';
|
|
366
368
|
export { isRootRelativeUrl, type PublicEndpointReader, type PublicEndpointReading, type PublicEndpointSource, publicEndpointReaderFrom, type ResolveAttachmentUrlsDeps, resolveAttachmentUrls, } from './notification/attachment-url.js';
|
|
367
369
|
export { deliveryParamsDeclaredBy, resolveDeliveryParams } from './notification/delivery-params.js';
|
|
368
370
|
export { attachmentKindsOf, deliverableFields, fieldSupportForTargets, NOTIFICATION_FIELDS, priorityLevelsOf, targetAttachmentAllows, type NotificationFieldSupport, type NotificationFieldTarget, sanitizeTargetOverride, } from './notification/notification-fields.js';
|