@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.
@@ -39,7 +39,7 @@ var __copyProps = (to, from, except, desc) => {
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-DHXxB8t9.mjs
42
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -365,6 +365,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
365
365
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
366
366
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
367
367
  /**
368
+ * A camera's package LLM confirm has failed closed three times in a row
369
+ * (D931, 2026-10-26). One edge per camera until
370
+ * {@link PipelinePackageLlmAnswered}.
371
+ */
372
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
373
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
374
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
375
+ /**
368
376
  * Per-camera pipeline config was mutated by the orchestrator
369
377
  * (a settings change via `setAgentInferenceDevices` /
370
378
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5474,7 +5482,7 @@ var ZodIssueCode = {
5474
5482
  var ZodFirstPartyTypeKind;
5475
5483
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5476
5484
  //#endregion
5477
- //#region ../types/dist/sleep-CARd6wZF.mjs
5485
+ //#region ../types/dist/sleep-bykKrTgu.mjs
5478
5486
  /**
5479
5487
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5480
5488
  * window to float samples (D455).
@@ -8000,6 +8008,53 @@ var READING_QUANTITIES = [
8000
8008
  ];
8001
8009
  var ReadingQuantitySchema = _enum(READING_QUANTITIES);
8002
8010
  new Set(READING_QUANTITIES);
8011
+ /**
8012
+ * Stored unit symbol for a quantity. `none` means the number is dimensionless
8013
+ * (or an index / ratio / count). `device` means the cap has no single unit.
8014
+ */
8015
+ var QUANTITY_BASE = {
8016
+ temperature: "°C",
8017
+ pressure: "hPa",
8018
+ speed: "m/s",
8019
+ precipitation: "mm",
8020
+ "precipitation-rate": "mm/h",
8021
+ length: "m",
8022
+ area: "m²",
8023
+ illuminance: "lx",
8024
+ irradiance: "W/m²",
8025
+ power: "W",
8026
+ energy: "kWh",
8027
+ voltage: "V",
8028
+ current: "A",
8029
+ "apparent-power": "VA",
8030
+ humidity: "%",
8031
+ percentage: "%",
8032
+ "concentration-volume": "ppm",
8033
+ "concentration-mass": "µg/m³",
8034
+ "concentration-ppb": "ppb",
8035
+ volume: "L",
8036
+ duration: "s",
8037
+ "duration-ms": "ms",
8038
+ information: "B",
8039
+ "sound-level": "dBFS",
8040
+ "signal-level": "dBm",
8041
+ "colour-temperature": "mired",
8042
+ angle: "°",
8043
+ bitrate: "kbps",
8044
+ rate: "fps",
8045
+ mass: "kg",
8046
+ index: "none",
8047
+ ratio: "none",
8048
+ count: "none",
8049
+ none: "none",
8050
+ device: "device"
8051
+ };
8052
+ /** The stored unit, or `undefined` when the quantity has no unit symbol. */
8053
+ function baseUnitOf(quantity) {
8054
+ const symbol = QUANTITY_BASE[quantity];
8055
+ if (symbol === "none" || symbol === "device") return void 0;
8056
+ return symbol;
8057
+ }
8003
8058
  function readingMeta(quantity, extras) {
8004
8059
  return {
8005
8060
  quantity,
@@ -8608,6 +8663,8 @@ var CAP_NAMES = Object.freeze([
8608
8663
  "filesystem-browse",
8609
8664
  "flood",
8610
8665
  "gas",
8666
+ "group-commands",
8667
+ "group-status",
8611
8668
  "heating-valve",
8612
8669
  "humidifier",
8613
8670
  "humidity-sensor",
@@ -9426,6 +9483,20 @@ Object.freeze({
9426
9483
  "path": "detected",
9427
9484
  "valueType": "boolean"
9428
9485
  }],
9486
+ "group-status": [
9487
+ {
9488
+ "path": "included",
9489
+ "valueType": "number"
9490
+ },
9491
+ {
9492
+ "path": "excluded",
9493
+ "valueType": "number"
9494
+ },
9495
+ {
9496
+ "path": "total",
9497
+ "valueType": "number"
9498
+ }
9499
+ ],
9429
9500
  "heating-valve": [{
9430
9501
  "path": "position",
9431
9502
  "valueType": "number"
@@ -10767,7 +10838,7 @@ function errMsg$16(err) {
10767
10838
  return String(err);
10768
10839
  }
10769
10840
  //#endregion
10770
- //#region ../types/dist/composition-kEl9mevu.mjs
10841
+ //#region ../types/dist/composition-OhpuespA.mjs
10771
10842
  var AUDIO_ENCODER_BY_CODEC = {
10772
10843
  opus: "libopus",
10773
10844
  aac: "aac",
@@ -12117,15 +12188,74 @@ function validateExpressionSource(src) {
12117
12188
  }
12118
12189
  return null;
12119
12190
  }
12120
- /** A composed device's stableId is this prefix plus the block id. */
12121
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
12122
- /** Longest snippet a `code` source may carry (slice 4). */
12123
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
12191
+ /**
12192
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
12193
+ * id. Split out so helper schemas can name it without a cycle through
12194
+ * `composition.ts` (D659).
12195
+ */
12124
12196
  var CompositionSourceRefSchema = object({
12125
12197
  /** The owning addon; `stableId` is unique only within it. */
12126
12198
  addonId: string().min(1),
12127
12199
  stableId: string().min(1)
12128
12200
  });
12201
+ var GROUP_TEMPLATE_IDS = [
12202
+ "temperature",
12203
+ "humidity",
12204
+ "pressure",
12205
+ "illuminance",
12206
+ "power",
12207
+ "energy",
12208
+ "battery",
12209
+ "numeric",
12210
+ "motion",
12211
+ "contact",
12212
+ "leak",
12213
+ "smoke",
12214
+ "occupancy",
12215
+ "binary",
12216
+ "switch",
12217
+ "light"
12218
+ ];
12219
+ var NUMERIC_AGGREGATES = [
12220
+ "mean",
12221
+ "median",
12222
+ "min",
12223
+ "max",
12224
+ "sum"
12225
+ ];
12226
+ var BINARY_AGGREGATES = ["any", "all"];
12227
+ /** How an actuator group decides it is on. Unknown members never count as off. */
12228
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
12229
+ var AGGREGATE_REDUCERS = [
12230
+ "mean",
12231
+ "median",
12232
+ "min",
12233
+ "max",
12234
+ "sum",
12235
+ "any",
12236
+ "all"
12237
+ ];
12238
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
12239
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
12240
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
12241
+ /** One member. The field is stored so occupancy can name motion or binary. */
12242
+ var HelperMemberSchema = object({
12243
+ source: CompositionSourceRefSchema,
12244
+ cap: string().min(1),
12245
+ fieldPath: string().min(1)
12246
+ });
12247
+ var HelperSpecSchema = discriminatedUnion("kind", [object({
12248
+ kind: literal("group"),
12249
+ templateId: GroupTemplateIdSchema,
12250
+ aggregate: AggregateReducerSchema,
12251
+ members: array(HelperMemberSchema).min(1).max(64),
12252
+ /** Actuator groups only. Readings leave this unset. */
12253
+ active: ActiveCriterionSchema.optional()
12254
+ })]);
12255
+ /** A composed device's stableId is this prefix plus the block id. */
12256
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
12257
+ /** Longest snippet a `code` source may carry (slice 4). */
12258
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
12129
12259
  /** One field of one capability of one source device. */
12130
12260
  var CompositionFieldReadSchema = object({
12131
12261
  source: CompositionSourceRefSchema,
@@ -12169,7 +12299,33 @@ var CompositionCodeSourceSchema = object({
12169
12299
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
12170
12300
  CompositionFromSourceSchema,
12171
12301
  CompositionExpressionSourceSchema,
12172
- CompositionCodeSourceSchema
12302
+ CompositionCodeSourceSchema,
12303
+ object({
12304
+ kind: literal("aggregate"),
12305
+ reducer: _enum([
12306
+ "mean",
12307
+ "median",
12308
+ "min",
12309
+ "max",
12310
+ "sum",
12311
+ "any",
12312
+ "all"
12313
+ ]),
12314
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
12315
+ /** `value` is the reading; the others are the member counts. */
12316
+ publish: _enum([
12317
+ "value",
12318
+ "included",
12319
+ "excluded",
12320
+ "total"
12321
+ ]),
12322
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
12323
+ empty: _enum([
12324
+ "null",
12325
+ "omit",
12326
+ "offline"
12327
+ ])
12328
+ })
12173
12329
  ]);
12174
12330
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
12175
12331
  kind: literal("forward"),
@@ -12215,7 +12371,13 @@ var CompositionSchema = object({
12215
12371
  kind: literal("existing"),
12216
12372
  device: CompositionSourceRefSchema
12217
12373
  })]),
12218
- features: array(CompositionFeatureSchema).min(1).max(16)
12374
+ features: array(CompositionFeatureSchema).min(1).max(16),
12375
+ /**
12376
+ * Present when the block is a helper template. Absent on a free
12377
+ * composition (the room example, device 4603). The editor reads this,
12378
+ * never the compiled features.
12379
+ */
12380
+ helper: HelperSpecSchema.optional()
12219
12381
  }).superRefine((composition, ctx) => {
12220
12382
  const seen = /* @__PURE__ */ new Set();
12221
12383
  composition.features.forEach((feature, index) => {
@@ -18542,7 +18704,10 @@ var CompositionProblemSchema = object({
18542
18704
  "target-missing",
18543
18705
  "target-unreadable",
18544
18706
  "not-replaceable",
18545
- "native-capability-replace"
18707
+ "native-capability-replace",
18708
+ "mixed-quantity",
18709
+ "helper-mismatch",
18710
+ "member-constraint"
18546
18711
  ]),
18547
18712
  path: string(),
18548
18713
  message: string()
@@ -18563,7 +18728,8 @@ var CompositionUnavailableModeSchema = _enum([
18563
18728
  "null",
18564
18729
  "offline",
18565
18730
  "unknown",
18566
- "release"
18731
+ "release",
18732
+ "omit"
18567
18733
  ]);
18568
18734
  /**
18569
18735
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -18777,6 +18943,275 @@ Object.freeze({
18777
18943
  result: ["number", "null"]
18778
18944
  }
18779
18945
  });
18946
+ /**
18947
+ * One catalog row per base reading a group helper can build (D944 §3).
18948
+ * Data, not a form default written into the block.
18949
+ */
18950
+ var NOW = {
18951
+ fieldPath: "lastFetchedAt",
18952
+ expr: "now"
18953
+ };
18954
+ var CHANGED = {
18955
+ fieldPath: "lastChangedAt",
18956
+ expr: "now"
18957
+ };
18958
+ function numeric(input) {
18959
+ return {
18960
+ ...input,
18961
+ family: "numeric",
18962
+ deviceType: DeviceType.Sensor,
18963
+ memberDeviceType: DeviceType.Sensor,
18964
+ commandCaps: [],
18965
+ baseUnit: baseUnitOf(input.quantity),
18966
+ aggregates: NUMERIC_AGGREGATES,
18967
+ accept: [{
18968
+ cap: input.outputCap,
18969
+ fieldPath: input.outputField
18970
+ }]
18971
+ };
18972
+ }
18973
+ function binary(input) {
18974
+ return {
18975
+ ...input,
18976
+ family: "binary",
18977
+ deviceType: DeviceType.Sensor,
18978
+ memberDeviceType: DeviceType.Sensor,
18979
+ commandCaps: [],
18980
+ quantity: "none",
18981
+ baseUnit: void 0,
18982
+ aggregates: BINARY_AGGREGATES,
18983
+ empty: "offline"
18984
+ };
18985
+ }
18986
+ var GROUP_TEMPLATES = [
18987
+ numeric({
18988
+ id: "temperature",
18989
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
18990
+ role: DeviceRole.TemperatureSensor,
18991
+ outputCap: "temperature-sensor",
18992
+ outputField: "celsius",
18993
+ quantity: "temperature",
18994
+ defaultAggregate: "mean",
18995
+ empty: "null",
18996
+ companions: [NOW]
18997
+ }),
18998
+ numeric({
18999
+ id: "humidity",
19000
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
19001
+ role: DeviceRole.HumiditySensor,
19002
+ outputCap: "humidity-sensor",
19003
+ outputField: "percent",
19004
+ quantity: "humidity",
19005
+ defaultAggregate: "mean",
19006
+ empty: "null",
19007
+ companions: [NOW]
19008
+ }),
19009
+ numeric({
19010
+ id: "pressure",
19011
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
19012
+ role: DeviceRole.PressureSensor,
19013
+ outputCap: "pressure-sensor",
19014
+ outputField: "hpa",
19015
+ quantity: "pressure",
19016
+ defaultAggregate: "mean",
19017
+ empty: "null",
19018
+ companions: [NOW]
19019
+ }),
19020
+ numeric({
19021
+ id: "illuminance",
19022
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
19023
+ role: DeviceRole.AmbientLightSensor,
19024
+ outputCap: "ambient-light-sensor",
19025
+ outputField: "lux",
19026
+ quantity: "illuminance",
19027
+ defaultAggregate: "mean",
19028
+ empty: "null",
19029
+ companions: [NOW]
19030
+ }),
19031
+ numeric({
19032
+ id: "power",
19033
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
19034
+ role: DeviceRole.PowerSensor,
19035
+ outputCap: "power-meter",
19036
+ outputField: "watts",
19037
+ quantity: "power",
19038
+ defaultAggregate: "sum",
19039
+ empty: "omit",
19040
+ companions: [NOW]
19041
+ }),
19042
+ numeric({
19043
+ id: "energy",
19044
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
19045
+ role: DeviceRole.EnergySensor,
19046
+ outputCap: "power-meter",
19047
+ outputField: "kwhTotal",
19048
+ quantity: "energy",
19049
+ defaultAggregate: "sum",
19050
+ empty: "omit",
19051
+ companions: [NOW]
19052
+ }),
19053
+ numeric({
19054
+ id: "battery",
19055
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
19056
+ role: DeviceRole.BatterySensor,
19057
+ outputCap: "battery",
19058
+ outputField: "percentage",
19059
+ quantity: "percentage",
19060
+ defaultAggregate: "mean",
19061
+ empty: "null",
19062
+ companions: [
19063
+ {
19064
+ fieldPath: "charging",
19065
+ expr: "\"unknown\""
19066
+ },
19067
+ {
19068
+ fieldPath: "sleeping",
19069
+ expr: "false"
19070
+ },
19071
+ {
19072
+ fieldPath: "lastUpdated",
19073
+ expr: "now"
19074
+ }
19075
+ ]
19076
+ }),
19077
+ numeric({
19078
+ id: "numeric",
19079
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
19080
+ role: DeviceRole.NumericSensor,
19081
+ outputCap: "numeric-sensor",
19082
+ outputField: "value",
19083
+ quantity: "device",
19084
+ defaultAggregate: "mean",
19085
+ empty: "null",
19086
+ companions: [NOW]
19087
+ }),
19088
+ binary({
19089
+ id: "motion",
19090
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
19091
+ role: DeviceRole.MotionSensor,
19092
+ outputCap: "motion",
19093
+ outputField: "detected",
19094
+ defaultAggregate: "any",
19095
+ accept: [{
19096
+ cap: "motion",
19097
+ fieldPath: "detected"
19098
+ }],
19099
+ companions: [{
19100
+ fieldPath: "lastDetectedAt",
19101
+ expr: "null"
19102
+ }, {
19103
+ fieldPath: "autoClearAfterMs",
19104
+ expr: "null"
19105
+ }]
19106
+ }),
19107
+ binary({
19108
+ id: "contact",
19109
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
19110
+ role: DeviceRole.ContactSensor,
19111
+ outputCap: "contact",
19112
+ outputField: "entryOpen",
19113
+ defaultAggregate: "any",
19114
+ accept: [{
19115
+ cap: "contact",
19116
+ fieldPath: "entryOpen"
19117
+ }],
19118
+ companions: [CHANGED]
19119
+ }),
19120
+ binary({
19121
+ id: "leak",
19122
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
19123
+ role: DeviceRole.LeakSensor,
19124
+ outputCap: "flood",
19125
+ outputField: "flooded",
19126
+ defaultAggregate: "any",
19127
+ accept: [{
19128
+ cap: "flood",
19129
+ fieldPath: "flooded"
19130
+ }],
19131
+ companions: [CHANGED]
19132
+ }),
19133
+ binary({
19134
+ id: "smoke",
19135
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
19136
+ role: DeviceRole.SmokeSensor,
19137
+ outputCap: "smoke",
19138
+ outputField: "detected",
19139
+ defaultAggregate: "any",
19140
+ accept: [{
19141
+ cap: "smoke",
19142
+ fieldPath: "detected"
19143
+ }],
19144
+ companions: [CHANGED]
19145
+ }),
19146
+ binary({
19147
+ id: "occupancy",
19148
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
19149
+ role: DeviceRole.BinarySensor,
19150
+ outputCap: "binary",
19151
+ outputField: "on",
19152
+ defaultAggregate: "any",
19153
+ accept: [{
19154
+ cap: "motion",
19155
+ fieldPath: "detected"
19156
+ }, {
19157
+ cap: "binary",
19158
+ fieldPath: "on"
19159
+ }],
19160
+ companions: [CHANGED]
19161
+ }),
19162
+ binary({
19163
+ id: "binary",
19164
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
19165
+ role: DeviceRole.BinarySensor,
19166
+ outputCap: "binary",
19167
+ outputField: "on",
19168
+ defaultAggregate: "any",
19169
+ accept: [{
19170
+ cap: "binary",
19171
+ fieldPath: "on"
19172
+ }],
19173
+ companions: [CHANGED]
19174
+ }),
19175
+ actuator({
19176
+ id: "switch",
19177
+ 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.",
19178
+ deviceType: DeviceType.Switch,
19179
+ outputCap: "switch",
19180
+ commandCaps: ["switch"]
19181
+ }),
19182
+ actuator({
19183
+ id: "light",
19184
+ 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.",
19185
+ deviceType: DeviceType.Light,
19186
+ outputCap: "switch",
19187
+ commandCaps: [
19188
+ "switch",
19189
+ "brightness",
19190
+ "color"
19191
+ ]
19192
+ })
19193
+ ];
19194
+ function actuator(input) {
19195
+ return {
19196
+ ...input,
19197
+ family: "actuator",
19198
+ role: void 0,
19199
+ memberDeviceType: input.deviceType,
19200
+ outputField: "on",
19201
+ quantity: "none",
19202
+ baseUnit: void 0,
19203
+ aggregates: BINARY_AGGREGATES,
19204
+ defaultAggregate: "any",
19205
+ empty: "offline",
19206
+ accept: [{
19207
+ cap: "switch",
19208
+ fieldPath: "on"
19209
+ }],
19210
+ companions: [CHANGED]
19211
+ };
19212
+ }
19213
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
19214
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18780
19215
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18781
19216
  /**
18782
19217
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -45424,6 +45859,8 @@ var NcSystemEventKindSchema = _enum([
45424
45859
  "detection-blind",
45425
45860
  "motion-noisy",
45426
45861
  "motion-calm",
45862
+ "package-llm-silent",
45863
+ "package-llm-answered",
45427
45864
  "recording-stalled",
45428
45865
  "recording-healthy",
45429
45866
  "recording-degraded",
@@ -56631,6 +57068,28 @@ var PackageVersionInfoSchema = object({
56631
57068
  deprecated: string().optional(),
56632
57069
  distTags: array(string()).readonly()
56633
57070
  });
57071
+ /**
57072
+ * One published document. `ok` is markdown from the registry. `missing` means
57073
+ * the registry answered and the file was not there. `error` is a registry or
57074
+ * tarball failure — never an empty string standing in for either.
57075
+ */
57076
+ var PackageDocBodySchema = discriminatedUnion("status", [
57077
+ object({
57078
+ status: literal("ok"),
57079
+ markdown: string()
57080
+ }),
57081
+ object({ status: literal("missing") }),
57082
+ object({
57083
+ status: literal("error"),
57084
+ message: string()
57085
+ })
57086
+ ]);
57087
+ var PackageDocsSchema = object({
57088
+ name: string(),
57089
+ version: string(),
57090
+ readme: PackageDocBodySchema,
57091
+ changelog: PackageDocBodySchema
57092
+ });
56634
57093
  var SearchResultSchema = object({
56635
57094
  name: string(),
56636
57095
  version: string(),
@@ -56849,7 +57308,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56849
57308
  }), object({ success: literal(true) }), {
56850
57309
  kind: "mutation",
56851
57310
  auth: "admin"
56852
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
57311
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
57312
+ name: string().min(1),
57313
+ version: string().min(1).optional()
57314
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
56853
57315
  kind: "mutation",
56854
57316
  auth: "admin"
56855
57317
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -58899,6 +59361,36 @@ object({
58899
59361
  lastChangedAt: number()
58900
59362
  });
58901
59363
  DeviceType.Sensor;
59364
+ object({
59365
+ /** One row per member that has been commanded. A later command replaces that member's row. */
59366
+ results: array(object({
59367
+ deviceId: number().int().nonnegative(),
59368
+ cap: string().min(1),
59369
+ method: string().min(1),
59370
+ ok: boolean(),
59371
+ error: string().optional(),
59372
+ /** Ms epoch of the attempt. */
59373
+ at: number()
59374
+ })) });
59375
+ DeviceType.Switch, DeviceType.Light;
59376
+ object({
59377
+ /** Members whose current value entered the aggregate. */
59378
+ included: number().int().nonnegative().meta(readingMeta("count", {
59379
+ precision: 0,
59380
+ label: "Reporting"
59381
+ })),
59382
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
59383
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
59384
+ precision: 0,
59385
+ label: "Excluded"
59386
+ })),
59387
+ /** `included` + `excluded`. */
59388
+ total: number().int().nonnegative().meta(readingMeta("count", {
59389
+ precision: 0,
59390
+ label: "Members"
59391
+ }))
59392
+ });
59393
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58902
59394
  object({
58903
59395
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58904
59396
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -66099,6 +66591,13 @@ Object.freeze({
66099
66591
  access: "view",
66100
66592
  role: "admin"
66101
66593
  },
66594
+ "addons.getPackageDocs": {
66595
+ capName: "addons",
66596
+ capScope: "system",
66597
+ addonId: null,
66598
+ access: "view",
66599
+ role: "admin"
66600
+ },
66102
66601
  "addons.getVersions": {
66103
66602
  capName: "addons",
66104
66603
  capScope: "system",
@@ -69207,6 +69706,20 @@ Object.freeze({
69207
69706
  access: "view",
69208
69707
  role: "viewer"
69209
69708
  },
69709
+ "groupCommands.getStatus": {
69710
+ capName: "group-commands",
69711
+ capScope: "device",
69712
+ addonId: null,
69713
+ access: "view",
69714
+ role: "viewer"
69715
+ },
69716
+ "groupStatus.getStatus": {
69717
+ capName: "group-status",
69718
+ capScope: "device",
69719
+ addonId: null,
69720
+ access: "view",
69721
+ role: "viewer"
69722
+ },
69210
69723
  "heatingValve.getStatus": {
69211
69724
  capName: "heating-valve",
69212
69725
  capScope: "device",
@@ -79029,6 +79542,37 @@ var SENSOR_CAP_VOCABULARY = {
79029
79542
  icon: "flame"
79030
79543
  }]
79031
79544
  },
79545
+ "group-commands": {
79546
+ scope: "device",
79547
+ noun: t("Group command", "Comando di gruppo")
79548
+ },
79549
+ "group-status": {
79550
+ scope: "device",
79551
+ noun: t("Group", "Gruppo"),
79552
+ state: [
79553
+ {
79554
+ kind: "numeric",
79555
+ field: "included",
79556
+ quantity: t("the members reporting", "i membri che rispondono"),
79557
+ label: t("Reporting", "Rispondono"),
79558
+ icon: "users"
79559
+ },
79560
+ {
79561
+ kind: "numeric",
79562
+ field: "excluded",
79563
+ quantity: t("the members left out", "i membri esclusi"),
79564
+ label: t("Excluded", "Esclusi"),
79565
+ icon: "users"
79566
+ },
79567
+ {
79568
+ kind: "numeric",
79569
+ field: "total",
79570
+ quantity: t("the member count", "il numero di membri"),
79571
+ label: t("Members", "Membri"),
79572
+ icon: "sigma"
79573
+ }
79574
+ ]
79575
+ },
79032
79576
  "humidity-sensor": {
79033
79577
  scope: "device",
79034
79578
  noun: t("Humidity", "Umidità"),
@@ -80494,6 +81038,16 @@ Object.freeze({
80494
81038
  form: "single",
80495
81039
  optional: false
80496
81040
  }],
81041
+ "groupCommands.getStatus": [{
81042
+ name: "deviceId",
81043
+ form: "single",
81044
+ optional: false
81045
+ }],
81046
+ "groupStatus.getStatus": [{
81047
+ name: "deviceId",
81048
+ form: "single",
81049
+ optional: false
81050
+ }],
80497
81051
  "heatingValve.getStatus": [{
80498
81052
  name: "deviceId",
80499
81053
  form: "single",
@@ -82478,6 +83032,8 @@ new Map(Object.entries({
82478
83032
  "detection-blind": "device-events",
82479
83033
  "motion-noisy": "device-events",
82480
83034
  "motion-calm": "device-events",
83035
+ "package-llm-silent": "device-events",
83036
+ "package-llm-answered": "device-events",
82481
83037
  "recording-stalled": "device-events",
82482
83038
  "recording-healthy": "device-events",
82483
83039
  "recording-degraded": "device-events",
@@ -82561,6 +83117,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
82561
83117
  label: "Motion without a subject",
82562
83118
  kinds: ["motion-noisy", "motion-calm"]
82563
83119
  },
83120
+ {
83121
+ id: "package-llm",
83122
+ family: "device-events",
83123
+ label: "Package confirm",
83124
+ kinds: ["package-llm-silent", "package-llm-answered"]
83125
+ },
82564
83126
  {
82565
83127
  id: "recording",
82566
83128
  family: "device-events",
@@ -82742,6 +83304,8 @@ var DEVICE_EVENTS = [
82742
83304
  "detection-blind",
82743
83305
  "motion-noisy",
82744
83306
  "motion-calm",
83307
+ "package-llm-silent",
83308
+ "package-llm-answered",
82745
83309
  "recording-stalled",
82746
83310
  "recording-healthy",
82747
83311
  "recording-degraded",
@@ -83010,6 +83574,15 @@ new Map([
83010
83574
  snapshotLabel: "Cameras with constant motion now",
83011
83575
  snapshotSection: null
83012
83576
  },
83577
+ {
83578
+ id: "package-llm-confirm",
83579
+ family: "device-events",
83580
+ label: "Package confirm (not answering / answering again)",
83581
+ bad: ["package-llm-silent"],
83582
+ recovery: ["package-llm-answered"],
83583
+ snapshotLabel: "Cameras whose package confirm is not answering",
83584
+ snapshotSection: null
83585
+ },
83013
83586
  {
83014
83587
  id: "recording-health",
83015
83588
  family: "device-events",