@camstack/addon-export-hap 1.2.181 → 1.2.182

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.
@@ -49,7 +49,7 @@ let node_fs_promises = require("node:fs/promises");
49
49
  node_fs_promises = __toESM(node_fs_promises, 1);
50
50
  let node_events = require("node:events");
51
51
  let node_dgram = require("node:dgram");
52
- //#region ../types/dist/event-category-DHXxB8t9.mjs
52
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
53
53
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
54
54
  EventCategory["SystemBoot"] = "system.boot";
55
55
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -375,6 +375,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
375
375
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
376
376
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
377
377
  /**
378
+ * A camera's package LLM confirm has failed closed three times in a row
379
+ * (D931, 2026-10-26). One edge per camera until
380
+ * {@link PipelinePackageLlmAnswered}.
381
+ */
382
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
383
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
384
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
385
+ /**
378
386
  * Per-camera pipeline config was mutated by the orchestrator
379
387
  * (a settings change via `setAgentInferenceDevices` /
380
388
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5484,7 +5492,7 @@ var ZodIssueCode = {
5484
5492
  var ZodFirstPartyTypeKind;
5485
5493
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5486
5494
  //#endregion
5487
- //#region ../types/dist/sleep-CARd6wZF.mjs
5495
+ //#region ../types/dist/sleep-bykKrTgu.mjs
5488
5496
  /**
5489
5497
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5490
5498
  * window to float samples (D455).
@@ -8010,6 +8018,53 @@ var READING_QUANTITIES = [
8010
8018
  ];
8011
8019
  var ReadingQuantitySchema = _enum(READING_QUANTITIES);
8012
8020
  new Set(READING_QUANTITIES);
8021
+ /**
8022
+ * Stored unit symbol for a quantity. `none` means the number is dimensionless
8023
+ * (or an index / ratio / count). `device` means the cap has no single unit.
8024
+ */
8025
+ var QUANTITY_BASE = {
8026
+ temperature: "°C",
8027
+ pressure: "hPa",
8028
+ speed: "m/s",
8029
+ precipitation: "mm",
8030
+ "precipitation-rate": "mm/h",
8031
+ length: "m",
8032
+ area: "m²",
8033
+ illuminance: "lx",
8034
+ irradiance: "W/m²",
8035
+ power: "W",
8036
+ energy: "kWh",
8037
+ voltage: "V",
8038
+ current: "A",
8039
+ "apparent-power": "VA",
8040
+ humidity: "%",
8041
+ percentage: "%",
8042
+ "concentration-volume": "ppm",
8043
+ "concentration-mass": "µg/m³",
8044
+ "concentration-ppb": "ppb",
8045
+ volume: "L",
8046
+ duration: "s",
8047
+ "duration-ms": "ms",
8048
+ information: "B",
8049
+ "sound-level": "dBFS",
8050
+ "signal-level": "dBm",
8051
+ "colour-temperature": "mired",
8052
+ angle: "°",
8053
+ bitrate: "kbps",
8054
+ rate: "fps",
8055
+ mass: "kg",
8056
+ index: "none",
8057
+ ratio: "none",
8058
+ count: "none",
8059
+ none: "none",
8060
+ device: "device"
8061
+ };
8062
+ /** The stored unit, or `undefined` when the quantity has no unit symbol. */
8063
+ function baseUnitOf(quantity) {
8064
+ const symbol = QUANTITY_BASE[quantity];
8065
+ if (symbol === "none" || symbol === "device") return void 0;
8066
+ return symbol;
8067
+ }
8013
8068
  function readingMeta(quantity, extras) {
8014
8069
  return {
8015
8070
  quantity,
@@ -8618,6 +8673,8 @@ var CAP_NAMES = Object.freeze([
8618
8673
  "filesystem-browse",
8619
8674
  "flood",
8620
8675
  "gas",
8676
+ "group-commands",
8677
+ "group-status",
8621
8678
  "heating-valve",
8622
8679
  "humidifier",
8623
8680
  "humidity-sensor",
@@ -9436,6 +9493,20 @@ Object.freeze({
9436
9493
  "path": "detected",
9437
9494
  "valueType": "boolean"
9438
9495
  }],
9496
+ "group-status": [
9497
+ {
9498
+ "path": "included",
9499
+ "valueType": "number"
9500
+ },
9501
+ {
9502
+ "path": "excluded",
9503
+ "valueType": "number"
9504
+ },
9505
+ {
9506
+ "path": "total",
9507
+ "valueType": "number"
9508
+ }
9509
+ ],
9439
9510
  "heating-valve": [{
9440
9511
  "path": "position",
9441
9512
  "valueType": "number"
@@ -10777,7 +10848,7 @@ function errMsg$16(err) {
10777
10848
  return String(err);
10778
10849
  }
10779
10850
  //#endregion
10780
- //#region ../types/dist/composition-kEl9mevu.mjs
10851
+ //#region ../types/dist/composition-OhpuespA.mjs
10781
10852
  var AUDIO_ENCODER_BY_CODEC = {
10782
10853
  opus: "libopus",
10783
10854
  aac: "aac",
@@ -12127,15 +12198,74 @@ function validateExpressionSource(src) {
12127
12198
  }
12128
12199
  return null;
12129
12200
  }
12130
- /** A composed device's stableId is this prefix plus the block id. */
12131
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
12132
- /** Longest snippet a `code` source may carry (slice 4). */
12133
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
12201
+ /**
12202
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
12203
+ * id. Split out so helper schemas can name it without a cycle through
12204
+ * `composition.ts` (D659).
12205
+ */
12134
12206
  var CompositionSourceRefSchema = object({
12135
12207
  /** The owning addon; `stableId` is unique only within it. */
12136
12208
  addonId: string().min(1),
12137
12209
  stableId: string().min(1)
12138
12210
  });
12211
+ var GROUP_TEMPLATE_IDS = [
12212
+ "temperature",
12213
+ "humidity",
12214
+ "pressure",
12215
+ "illuminance",
12216
+ "power",
12217
+ "energy",
12218
+ "battery",
12219
+ "numeric",
12220
+ "motion",
12221
+ "contact",
12222
+ "leak",
12223
+ "smoke",
12224
+ "occupancy",
12225
+ "binary",
12226
+ "switch",
12227
+ "light"
12228
+ ];
12229
+ var NUMERIC_AGGREGATES = [
12230
+ "mean",
12231
+ "median",
12232
+ "min",
12233
+ "max",
12234
+ "sum"
12235
+ ];
12236
+ var BINARY_AGGREGATES = ["any", "all"];
12237
+ /** How an actuator group decides it is on. Unknown members never count as off. */
12238
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
12239
+ var AGGREGATE_REDUCERS = [
12240
+ "mean",
12241
+ "median",
12242
+ "min",
12243
+ "max",
12244
+ "sum",
12245
+ "any",
12246
+ "all"
12247
+ ];
12248
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
12249
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
12250
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
12251
+ /** One member. The field is stored so occupancy can name motion or binary. */
12252
+ var HelperMemberSchema = object({
12253
+ source: CompositionSourceRefSchema,
12254
+ cap: string().min(1),
12255
+ fieldPath: string().min(1)
12256
+ });
12257
+ var HelperSpecSchema = discriminatedUnion("kind", [object({
12258
+ kind: literal("group"),
12259
+ templateId: GroupTemplateIdSchema,
12260
+ aggregate: AggregateReducerSchema,
12261
+ members: array(HelperMemberSchema).min(1).max(64),
12262
+ /** Actuator groups only. Readings leave this unset. */
12263
+ active: ActiveCriterionSchema.optional()
12264
+ })]);
12265
+ /** A composed device's stableId is this prefix plus the block id. */
12266
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
12267
+ /** Longest snippet a `code` source may carry (slice 4). */
12268
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
12139
12269
  /** One field of one capability of one source device. */
12140
12270
  var CompositionFieldReadSchema = object({
12141
12271
  source: CompositionSourceRefSchema,
@@ -12179,7 +12309,33 @@ var CompositionCodeSourceSchema = object({
12179
12309
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
12180
12310
  CompositionFromSourceSchema,
12181
12311
  CompositionExpressionSourceSchema,
12182
- CompositionCodeSourceSchema
12312
+ CompositionCodeSourceSchema,
12313
+ object({
12314
+ kind: literal("aggregate"),
12315
+ reducer: _enum([
12316
+ "mean",
12317
+ "median",
12318
+ "min",
12319
+ "max",
12320
+ "sum",
12321
+ "any",
12322
+ "all"
12323
+ ]),
12324
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
12325
+ /** `value` is the reading; the others are the member counts. */
12326
+ publish: _enum([
12327
+ "value",
12328
+ "included",
12329
+ "excluded",
12330
+ "total"
12331
+ ]),
12332
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
12333
+ empty: _enum([
12334
+ "null",
12335
+ "omit",
12336
+ "offline"
12337
+ ])
12338
+ })
12183
12339
  ]);
12184
12340
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
12185
12341
  kind: literal("forward"),
@@ -12225,7 +12381,13 @@ var CompositionSchema = object({
12225
12381
  kind: literal("existing"),
12226
12382
  device: CompositionSourceRefSchema
12227
12383
  })]),
12228
- features: array(CompositionFeatureSchema).min(1).max(16)
12384
+ features: array(CompositionFeatureSchema).min(1).max(16),
12385
+ /**
12386
+ * Present when the block is a helper template. Absent on a free
12387
+ * composition (the room example, device 4603). The editor reads this,
12388
+ * never the compiled features.
12389
+ */
12390
+ helper: HelperSpecSchema.optional()
12229
12391
  }).superRefine((composition, ctx) => {
12230
12392
  const seen = /* @__PURE__ */ new Set();
12231
12393
  composition.features.forEach((feature, index) => {
@@ -18552,7 +18714,10 @@ var CompositionProblemSchema = object({
18552
18714
  "target-missing",
18553
18715
  "target-unreadable",
18554
18716
  "not-replaceable",
18555
- "native-capability-replace"
18717
+ "native-capability-replace",
18718
+ "mixed-quantity",
18719
+ "helper-mismatch",
18720
+ "member-constraint"
18556
18721
  ]),
18557
18722
  path: string(),
18558
18723
  message: string()
@@ -18573,7 +18738,8 @@ var CompositionUnavailableModeSchema = _enum([
18573
18738
  "null",
18574
18739
  "offline",
18575
18740
  "unknown",
18576
- "release"
18741
+ "release",
18742
+ "omit"
18577
18743
  ]);
18578
18744
  /**
18579
18745
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -18787,6 +18953,275 @@ Object.freeze({
18787
18953
  result: ["number", "null"]
18788
18954
  }
18789
18955
  });
18956
+ /**
18957
+ * One catalog row per base reading a group helper can build (D944 §3).
18958
+ * Data, not a form default written into the block.
18959
+ */
18960
+ var NOW = {
18961
+ fieldPath: "lastFetchedAt",
18962
+ expr: "now"
18963
+ };
18964
+ var CHANGED = {
18965
+ fieldPath: "lastChangedAt",
18966
+ expr: "now"
18967
+ };
18968
+ function numeric(input) {
18969
+ return {
18970
+ ...input,
18971
+ family: "numeric",
18972
+ deviceType: DeviceType.Sensor,
18973
+ memberDeviceType: DeviceType.Sensor,
18974
+ commandCaps: [],
18975
+ baseUnit: baseUnitOf(input.quantity),
18976
+ aggregates: NUMERIC_AGGREGATES,
18977
+ accept: [{
18978
+ cap: input.outputCap,
18979
+ fieldPath: input.outputField
18980
+ }]
18981
+ };
18982
+ }
18983
+ function binary(input) {
18984
+ return {
18985
+ ...input,
18986
+ family: "binary",
18987
+ deviceType: DeviceType.Sensor,
18988
+ memberDeviceType: DeviceType.Sensor,
18989
+ commandCaps: [],
18990
+ quantity: "none",
18991
+ baseUnit: void 0,
18992
+ aggregates: BINARY_AGGREGATES,
18993
+ empty: "offline"
18994
+ };
18995
+ }
18996
+ var GROUP_TEMPLATES = [
18997
+ numeric({
18998
+ id: "temperature",
18999
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
19000
+ role: DeviceRole.TemperatureSensor,
19001
+ outputCap: "temperature-sensor",
19002
+ outputField: "celsius",
19003
+ quantity: "temperature",
19004
+ defaultAggregate: "mean",
19005
+ empty: "null",
19006
+ companions: [NOW]
19007
+ }),
19008
+ numeric({
19009
+ id: "humidity",
19010
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
19011
+ role: DeviceRole.HumiditySensor,
19012
+ outputCap: "humidity-sensor",
19013
+ outputField: "percent",
19014
+ quantity: "humidity",
19015
+ defaultAggregate: "mean",
19016
+ empty: "null",
19017
+ companions: [NOW]
19018
+ }),
19019
+ numeric({
19020
+ id: "pressure",
19021
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
19022
+ role: DeviceRole.PressureSensor,
19023
+ outputCap: "pressure-sensor",
19024
+ outputField: "hpa",
19025
+ quantity: "pressure",
19026
+ defaultAggregate: "mean",
19027
+ empty: "null",
19028
+ companions: [NOW]
19029
+ }),
19030
+ numeric({
19031
+ id: "illuminance",
19032
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
19033
+ role: DeviceRole.AmbientLightSensor,
19034
+ outputCap: "ambient-light-sensor",
19035
+ outputField: "lux",
19036
+ quantity: "illuminance",
19037
+ defaultAggregate: "mean",
19038
+ empty: "null",
19039
+ companions: [NOW]
19040
+ }),
19041
+ numeric({
19042
+ id: "power",
19043
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
19044
+ role: DeviceRole.PowerSensor,
19045
+ outputCap: "power-meter",
19046
+ outputField: "watts",
19047
+ quantity: "power",
19048
+ defaultAggregate: "sum",
19049
+ empty: "omit",
19050
+ companions: [NOW]
19051
+ }),
19052
+ numeric({
19053
+ id: "energy",
19054
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
19055
+ role: DeviceRole.EnergySensor,
19056
+ outputCap: "power-meter",
19057
+ outputField: "kwhTotal",
19058
+ quantity: "energy",
19059
+ defaultAggregate: "sum",
19060
+ empty: "omit",
19061
+ companions: [NOW]
19062
+ }),
19063
+ numeric({
19064
+ id: "battery",
19065
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
19066
+ role: DeviceRole.BatterySensor,
19067
+ outputCap: "battery",
19068
+ outputField: "percentage",
19069
+ quantity: "percentage",
19070
+ defaultAggregate: "mean",
19071
+ empty: "null",
19072
+ companions: [
19073
+ {
19074
+ fieldPath: "charging",
19075
+ expr: "\"unknown\""
19076
+ },
19077
+ {
19078
+ fieldPath: "sleeping",
19079
+ expr: "false"
19080
+ },
19081
+ {
19082
+ fieldPath: "lastUpdated",
19083
+ expr: "now"
19084
+ }
19085
+ ]
19086
+ }),
19087
+ numeric({
19088
+ id: "numeric",
19089
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
19090
+ role: DeviceRole.NumericSensor,
19091
+ outputCap: "numeric-sensor",
19092
+ outputField: "value",
19093
+ quantity: "device",
19094
+ defaultAggregate: "mean",
19095
+ empty: "null",
19096
+ companions: [NOW]
19097
+ }),
19098
+ binary({
19099
+ id: "motion",
19100
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
19101
+ role: DeviceRole.MotionSensor,
19102
+ outputCap: "motion",
19103
+ outputField: "detected",
19104
+ defaultAggregate: "any",
19105
+ accept: [{
19106
+ cap: "motion",
19107
+ fieldPath: "detected"
19108
+ }],
19109
+ companions: [{
19110
+ fieldPath: "lastDetectedAt",
19111
+ expr: "null"
19112
+ }, {
19113
+ fieldPath: "autoClearAfterMs",
19114
+ expr: "null"
19115
+ }]
19116
+ }),
19117
+ binary({
19118
+ id: "contact",
19119
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
19120
+ role: DeviceRole.ContactSensor,
19121
+ outputCap: "contact",
19122
+ outputField: "entryOpen",
19123
+ defaultAggregate: "any",
19124
+ accept: [{
19125
+ cap: "contact",
19126
+ fieldPath: "entryOpen"
19127
+ }],
19128
+ companions: [CHANGED]
19129
+ }),
19130
+ binary({
19131
+ id: "leak",
19132
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
19133
+ role: DeviceRole.LeakSensor,
19134
+ outputCap: "flood",
19135
+ outputField: "flooded",
19136
+ defaultAggregate: "any",
19137
+ accept: [{
19138
+ cap: "flood",
19139
+ fieldPath: "flooded"
19140
+ }],
19141
+ companions: [CHANGED]
19142
+ }),
19143
+ binary({
19144
+ id: "smoke",
19145
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
19146
+ role: DeviceRole.SmokeSensor,
19147
+ outputCap: "smoke",
19148
+ outputField: "detected",
19149
+ defaultAggregate: "any",
19150
+ accept: [{
19151
+ cap: "smoke",
19152
+ fieldPath: "detected"
19153
+ }],
19154
+ companions: [CHANGED]
19155
+ }),
19156
+ binary({
19157
+ id: "occupancy",
19158
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
19159
+ role: DeviceRole.BinarySensor,
19160
+ outputCap: "binary",
19161
+ outputField: "on",
19162
+ defaultAggregate: "any",
19163
+ accept: [{
19164
+ cap: "motion",
19165
+ fieldPath: "detected"
19166
+ }, {
19167
+ cap: "binary",
19168
+ fieldPath: "on"
19169
+ }],
19170
+ companions: [CHANGED]
19171
+ }),
19172
+ binary({
19173
+ id: "binary",
19174
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
19175
+ role: DeviceRole.BinarySensor,
19176
+ outputCap: "binary",
19177
+ outputField: "on",
19178
+ defaultAggregate: "any",
19179
+ accept: [{
19180
+ cap: "binary",
19181
+ fieldPath: "on"
19182
+ }],
19183
+ companions: [CHANGED]
19184
+ }),
19185
+ actuator({
19186
+ id: "switch",
19187
+ summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
19188
+ deviceType: DeviceType.Switch,
19189
+ outputCap: "switch",
19190
+ commandCaps: ["switch"]
19191
+ }),
19192
+ actuator({
19193
+ id: "light",
19194
+ summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
19195
+ deviceType: DeviceType.Light,
19196
+ outputCap: "switch",
19197
+ commandCaps: [
19198
+ "switch",
19199
+ "brightness",
19200
+ "color"
19201
+ ]
19202
+ })
19203
+ ];
19204
+ function actuator(input) {
19205
+ return {
19206
+ ...input,
19207
+ family: "actuator",
19208
+ role: void 0,
19209
+ memberDeviceType: input.deviceType,
19210
+ outputField: "on",
19211
+ quantity: "none",
19212
+ baseUnit: void 0,
19213
+ aggregates: BINARY_AGGREGATES,
19214
+ defaultAggregate: "any",
19215
+ empty: "offline",
19216
+ accept: [{
19217
+ cap: "switch",
19218
+ fieldPath: "on"
19219
+ }],
19220
+ companions: [CHANGED]
19221
+ };
19222
+ }
19223
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
19224
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18790
19225
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18791
19226
  /**
18792
19227
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -45434,6 +45869,8 @@ var NcSystemEventKindSchema = _enum([
45434
45869
  "detection-blind",
45435
45870
  "motion-noisy",
45436
45871
  "motion-calm",
45872
+ "package-llm-silent",
45873
+ "package-llm-answered",
45437
45874
  "recording-stalled",
45438
45875
  "recording-healthy",
45439
45876
  "recording-degraded",
@@ -56641,6 +57078,28 @@ var PackageVersionInfoSchema = object({
56641
57078
  deprecated: string().optional(),
56642
57079
  distTags: array(string()).readonly()
56643
57080
  });
57081
+ /**
57082
+ * One published document. `ok` is markdown from the registry. `missing` means
57083
+ * the registry answered and the file was not there. `error` is a registry or
57084
+ * tarball failure — never an empty string standing in for either.
57085
+ */
57086
+ var PackageDocBodySchema = discriminatedUnion("status", [
57087
+ object({
57088
+ status: literal("ok"),
57089
+ markdown: string()
57090
+ }),
57091
+ object({ status: literal("missing") }),
57092
+ object({
57093
+ status: literal("error"),
57094
+ message: string()
57095
+ })
57096
+ ]);
57097
+ var PackageDocsSchema = object({
57098
+ name: string(),
57099
+ version: string(),
57100
+ readme: PackageDocBodySchema,
57101
+ changelog: PackageDocBodySchema
57102
+ });
56644
57103
  var SearchResultSchema = object({
56645
57104
  name: string(),
56646
57105
  version: string(),
@@ -56859,7 +57318,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56859
57318
  }), object({ success: literal(true) }), {
56860
57319
  kind: "mutation",
56861
57320
  auth: "admin"
56862
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
57321
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
57322
+ name: string().min(1),
57323
+ version: string().min(1).optional()
57324
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
56863
57325
  kind: "mutation",
56864
57326
  auth: "admin"
56865
57327
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -58909,6 +59371,36 @@ object({
58909
59371
  lastChangedAt: number()
58910
59372
  });
58911
59373
  DeviceType.Sensor;
59374
+ object({
59375
+ /** One row per member that has been commanded. A later command replaces that member's row. */
59376
+ results: array(object({
59377
+ deviceId: number().int().nonnegative(),
59378
+ cap: string().min(1),
59379
+ method: string().min(1),
59380
+ ok: boolean(),
59381
+ error: string().optional(),
59382
+ /** Ms epoch of the attempt. */
59383
+ at: number()
59384
+ })) });
59385
+ DeviceType.Switch, DeviceType.Light;
59386
+ object({
59387
+ /** Members whose current value entered the aggregate. */
59388
+ included: number().int().nonnegative().meta(readingMeta("count", {
59389
+ precision: 0,
59390
+ label: "Reporting"
59391
+ })),
59392
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
59393
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
59394
+ precision: 0,
59395
+ label: "Excluded"
59396
+ })),
59397
+ /** `included` + `excluded`. */
59398
+ total: number().int().nonnegative().meta(readingMeta("count", {
59399
+ precision: 0,
59400
+ label: "Members"
59401
+ }))
59402
+ });
59403
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58912
59404
  object({
58913
59405
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58914
59406
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -66109,6 +66601,13 @@ Object.freeze({
66109
66601
  access: "view",
66110
66602
  role: "admin"
66111
66603
  },
66604
+ "addons.getPackageDocs": {
66605
+ capName: "addons",
66606
+ capScope: "system",
66607
+ addonId: null,
66608
+ access: "view",
66609
+ role: "admin"
66610
+ },
66112
66611
  "addons.getVersions": {
66113
66612
  capName: "addons",
66114
66613
  capScope: "system",
@@ -69217,6 +69716,20 @@ Object.freeze({
69217
69716
  access: "view",
69218
69717
  role: "viewer"
69219
69718
  },
69719
+ "groupCommands.getStatus": {
69720
+ capName: "group-commands",
69721
+ capScope: "device",
69722
+ addonId: null,
69723
+ access: "view",
69724
+ role: "viewer"
69725
+ },
69726
+ "groupStatus.getStatus": {
69727
+ capName: "group-status",
69728
+ capScope: "device",
69729
+ addonId: null,
69730
+ access: "view",
69731
+ role: "viewer"
69732
+ },
69220
69733
  "heatingValve.getStatus": {
69221
69734
  capName: "heating-valve",
69222
69735
  capScope: "device",
@@ -79039,6 +79552,37 @@ var SENSOR_CAP_VOCABULARY = {
79039
79552
  icon: "flame"
79040
79553
  }]
79041
79554
  },
79555
+ "group-commands": {
79556
+ scope: "device",
79557
+ noun: t("Group command", "Comando di gruppo")
79558
+ },
79559
+ "group-status": {
79560
+ scope: "device",
79561
+ noun: t("Group", "Gruppo"),
79562
+ state: [
79563
+ {
79564
+ kind: "numeric",
79565
+ field: "included",
79566
+ quantity: t("the members reporting", "i membri che rispondono"),
79567
+ label: t("Reporting", "Rispondono"),
79568
+ icon: "users"
79569
+ },
79570
+ {
79571
+ kind: "numeric",
79572
+ field: "excluded",
79573
+ quantity: t("the members left out", "i membri esclusi"),
79574
+ label: t("Excluded", "Esclusi"),
79575
+ icon: "users"
79576
+ },
79577
+ {
79578
+ kind: "numeric",
79579
+ field: "total",
79580
+ quantity: t("the member count", "il numero di membri"),
79581
+ label: t("Members", "Membri"),
79582
+ icon: "sigma"
79583
+ }
79584
+ ]
79585
+ },
79042
79586
  "humidity-sensor": {
79043
79587
  scope: "device",
79044
79588
  noun: t("Humidity", "Umidità"),
@@ -80504,6 +81048,16 @@ Object.freeze({
80504
81048
  form: "single",
80505
81049
  optional: false
80506
81050
  }],
81051
+ "groupCommands.getStatus": [{
81052
+ name: "deviceId",
81053
+ form: "single",
81054
+ optional: false
81055
+ }],
81056
+ "groupStatus.getStatus": [{
81057
+ name: "deviceId",
81058
+ form: "single",
81059
+ optional: false
81060
+ }],
80507
81061
  "heatingValve.getStatus": [{
80508
81062
  name: "deviceId",
80509
81063
  form: "single",
@@ -82488,6 +83042,8 @@ new Map(Object.entries({
82488
83042
  "detection-blind": "device-events",
82489
83043
  "motion-noisy": "device-events",
82490
83044
  "motion-calm": "device-events",
83045
+ "package-llm-silent": "device-events",
83046
+ "package-llm-answered": "device-events",
82491
83047
  "recording-stalled": "device-events",
82492
83048
  "recording-healthy": "device-events",
82493
83049
  "recording-degraded": "device-events",
@@ -82571,6 +83127,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
82571
83127
  label: "Motion without a subject",
82572
83128
  kinds: ["motion-noisy", "motion-calm"]
82573
83129
  },
83130
+ {
83131
+ id: "package-llm",
83132
+ family: "device-events",
83133
+ label: "Package confirm",
83134
+ kinds: ["package-llm-silent", "package-llm-answered"]
83135
+ },
82574
83136
  {
82575
83137
  id: "recording",
82576
83138
  family: "device-events",
@@ -82752,6 +83314,8 @@ var DEVICE_EVENTS = [
82752
83314
  "detection-blind",
82753
83315
  "motion-noisy",
82754
83316
  "motion-calm",
83317
+ "package-llm-silent",
83318
+ "package-llm-answered",
82755
83319
  "recording-stalled",
82756
83320
  "recording-healthy",
82757
83321
  "recording-degraded",
@@ -83020,6 +83584,15 @@ new Map([
83020
83584
  snapshotLabel: "Cameras with constant motion now",
83021
83585
  snapshotSection: null
83022
83586
  },
83587
+ {
83588
+ id: "package-llm-confirm",
83589
+ family: "device-events",
83590
+ label: "Package confirm (not answering / answering again)",
83591
+ bad: ["package-llm-silent"],
83592
+ recovery: ["package-llm-answered"],
83593
+ snapshotLabel: "Cameras whose package confirm is not answering",
83594
+ snapshotSection: null
83595
+ },
83023
83596
  {
83024
83597
  id: "recording-health",
83025
83598
  family: "device-events",