@camstack/addon-export-alexa 1.2.169 → 1.2.170

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.
@@ -34,7 +34,7 @@ let node_path = require("node:path");
34
34
  node_path = __toESM(node_path, 1);
35
35
  require("node:child_process");
36
36
  require("node:zlib");
37
- //#region ../types/dist/event-category-DHXxB8t9.mjs
37
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -360,6 +360,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
360
360
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
361
361
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
362
362
  /**
363
+ * A camera's package LLM confirm has failed closed three times in a row
364
+ * (D931, 2026-10-26). One edge per camera until
365
+ * {@link PipelinePackageLlmAnswered}.
366
+ */
367
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
368
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
369
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
370
+ /**
363
371
  * Per-camera pipeline config was mutated by the orchestrator
364
372
  * (a settings change via `setAgentInferenceDevices` /
365
373
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5469,7 +5477,7 @@ var ZodIssueCode = {
5469
5477
  var ZodFirstPartyTypeKind;
5470
5478
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5471
5479
  //#endregion
5472
- //#region ../types/dist/sleep-CARd6wZF.mjs
5480
+ //#region ../types/dist/sleep-bykKrTgu.mjs
5473
5481
  /**
5474
5482
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5475
5483
  * window to float samples (D455).
@@ -7995,6 +8003,53 @@ var READING_QUANTITIES = [
7995
8003
  ];
7996
8004
  var ReadingQuantitySchema = _enum(READING_QUANTITIES);
7997
8005
  new Set(READING_QUANTITIES);
8006
+ /**
8007
+ * Stored unit symbol for a quantity. `none` means the number is dimensionless
8008
+ * (or an index / ratio / count). `device` means the cap has no single unit.
8009
+ */
8010
+ var QUANTITY_BASE = {
8011
+ temperature: "°C",
8012
+ pressure: "hPa",
8013
+ speed: "m/s",
8014
+ precipitation: "mm",
8015
+ "precipitation-rate": "mm/h",
8016
+ length: "m",
8017
+ area: "m²",
8018
+ illuminance: "lx",
8019
+ irradiance: "W/m²",
8020
+ power: "W",
8021
+ energy: "kWh",
8022
+ voltage: "V",
8023
+ current: "A",
8024
+ "apparent-power": "VA",
8025
+ humidity: "%",
8026
+ percentage: "%",
8027
+ "concentration-volume": "ppm",
8028
+ "concentration-mass": "µg/m³",
8029
+ "concentration-ppb": "ppb",
8030
+ volume: "L",
8031
+ duration: "s",
8032
+ "duration-ms": "ms",
8033
+ information: "B",
8034
+ "sound-level": "dBFS",
8035
+ "signal-level": "dBm",
8036
+ "colour-temperature": "mired",
8037
+ angle: "°",
8038
+ bitrate: "kbps",
8039
+ rate: "fps",
8040
+ mass: "kg",
8041
+ index: "none",
8042
+ ratio: "none",
8043
+ count: "none",
8044
+ none: "none",
8045
+ device: "device"
8046
+ };
8047
+ /** The stored unit, or `undefined` when the quantity has no unit symbol. */
8048
+ function baseUnitOf(quantity) {
8049
+ const symbol = QUANTITY_BASE[quantity];
8050
+ if (symbol === "none" || symbol === "device") return void 0;
8051
+ return symbol;
8052
+ }
7998
8053
  function readingMeta(quantity, extras) {
7999
8054
  return {
8000
8055
  quantity,
@@ -8566,6 +8621,8 @@ var CAP_NAMES = Object.freeze([
8566
8621
  "filesystem-browse",
8567
8622
  "flood",
8568
8623
  "gas",
8624
+ "group-commands",
8625
+ "group-status",
8569
8626
  "heating-valve",
8570
8627
  "humidifier",
8571
8628
  "humidity-sensor",
@@ -9384,6 +9441,20 @@ Object.freeze({
9384
9441
  "path": "detected",
9385
9442
  "valueType": "boolean"
9386
9443
  }],
9444
+ "group-status": [
9445
+ {
9446
+ "path": "included",
9447
+ "valueType": "number"
9448
+ },
9449
+ {
9450
+ "path": "excluded",
9451
+ "valueType": "number"
9452
+ },
9453
+ {
9454
+ "path": "total",
9455
+ "valueType": "number"
9456
+ }
9457
+ ],
9387
9458
  "heating-valve": [{
9388
9459
  "path": "position",
9389
9460
  "valueType": "number"
@@ -10725,7 +10796,7 @@ function errMsg(err) {
10725
10796
  return String(err);
10726
10797
  }
10727
10798
  //#endregion
10728
- //#region ../types/dist/composition-kEl9mevu.mjs
10799
+ //#region ../types/dist/composition-OhpuespA.mjs
10729
10800
  /**
10730
10801
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10731
10802
  *
@@ -11480,15 +11551,74 @@ function validateExpressionSource(src) {
11480
11551
  }
11481
11552
  return null;
11482
11553
  }
11483
- /** A composed device's stableId is this prefix plus the block id. */
11484
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11485
- /** Longest snippet a `code` source may carry (slice 4). */
11486
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11554
+ /**
11555
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
11556
+ * id. Split out so helper schemas can name it without a cycle through
11557
+ * `composition.ts` (D659).
11558
+ */
11487
11559
  var CompositionSourceRefSchema = object({
11488
11560
  /** The owning addon; `stableId` is unique only within it. */
11489
11561
  addonId: string().min(1),
11490
11562
  stableId: string().min(1)
11491
11563
  });
11564
+ var GROUP_TEMPLATE_IDS = [
11565
+ "temperature",
11566
+ "humidity",
11567
+ "pressure",
11568
+ "illuminance",
11569
+ "power",
11570
+ "energy",
11571
+ "battery",
11572
+ "numeric",
11573
+ "motion",
11574
+ "contact",
11575
+ "leak",
11576
+ "smoke",
11577
+ "occupancy",
11578
+ "binary",
11579
+ "switch",
11580
+ "light"
11581
+ ];
11582
+ var NUMERIC_AGGREGATES = [
11583
+ "mean",
11584
+ "median",
11585
+ "min",
11586
+ "max",
11587
+ "sum"
11588
+ ];
11589
+ var BINARY_AGGREGATES = ["any", "all"];
11590
+ /** How an actuator group decides it is on. Unknown members never count as off. */
11591
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
11592
+ var AGGREGATE_REDUCERS = [
11593
+ "mean",
11594
+ "median",
11595
+ "min",
11596
+ "max",
11597
+ "sum",
11598
+ "any",
11599
+ "all"
11600
+ ];
11601
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
11602
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
11603
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
11604
+ /** One member. The field is stored so occupancy can name motion or binary. */
11605
+ var HelperMemberSchema = object({
11606
+ source: CompositionSourceRefSchema,
11607
+ cap: string().min(1),
11608
+ fieldPath: string().min(1)
11609
+ });
11610
+ var HelperSpecSchema = discriminatedUnion("kind", [object({
11611
+ kind: literal("group"),
11612
+ templateId: GroupTemplateIdSchema,
11613
+ aggregate: AggregateReducerSchema,
11614
+ members: array(HelperMemberSchema).min(1).max(64),
11615
+ /** Actuator groups only. Readings leave this unset. */
11616
+ active: ActiveCriterionSchema.optional()
11617
+ })]);
11618
+ /** A composed device's stableId is this prefix plus the block id. */
11619
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11620
+ /** Longest snippet a `code` source may carry (slice 4). */
11621
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11492
11622
  /** One field of one capability of one source device. */
11493
11623
  var CompositionFieldReadSchema = object({
11494
11624
  source: CompositionSourceRefSchema,
@@ -11532,7 +11662,33 @@ var CompositionCodeSourceSchema = object({
11532
11662
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11533
11663
  CompositionFromSourceSchema,
11534
11664
  CompositionExpressionSourceSchema,
11535
- CompositionCodeSourceSchema
11665
+ CompositionCodeSourceSchema,
11666
+ object({
11667
+ kind: literal("aggregate"),
11668
+ reducer: _enum([
11669
+ "mean",
11670
+ "median",
11671
+ "min",
11672
+ "max",
11673
+ "sum",
11674
+ "any",
11675
+ "all"
11676
+ ]),
11677
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
11678
+ /** `value` is the reading; the others are the member counts. */
11679
+ publish: _enum([
11680
+ "value",
11681
+ "included",
11682
+ "excluded",
11683
+ "total"
11684
+ ]),
11685
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
11686
+ empty: _enum([
11687
+ "null",
11688
+ "omit",
11689
+ "offline"
11690
+ ])
11691
+ })
11536
11692
  ]);
11537
11693
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
11538
11694
  kind: literal("forward"),
@@ -11578,7 +11734,13 @@ var CompositionSchema = object({
11578
11734
  kind: literal("existing"),
11579
11735
  device: CompositionSourceRefSchema
11580
11736
  })]),
11581
- features: array(CompositionFeatureSchema).min(1).max(16)
11737
+ features: array(CompositionFeatureSchema).min(1).max(16),
11738
+ /**
11739
+ * Present when the block is a helper template. Absent on a free
11740
+ * composition (the room example, device 4603). The editor reads this,
11741
+ * never the compiled features.
11742
+ */
11743
+ helper: HelperSpecSchema.optional()
11582
11744
  }).superRefine((composition, ctx) => {
11583
11745
  const seen = /* @__PURE__ */ new Set();
11584
11746
  composition.features.forEach((feature, index) => {
@@ -17987,7 +18149,10 @@ var CompositionProblemSchema = object({
17987
18149
  "target-missing",
17988
18150
  "target-unreadable",
17989
18151
  "not-replaceable",
17990
- "native-capability-replace"
18152
+ "native-capability-replace",
18153
+ "mixed-quantity",
18154
+ "helper-mismatch",
18155
+ "member-constraint"
17991
18156
  ]),
17992
18157
  path: string(),
17993
18158
  message: string()
@@ -18008,7 +18173,8 @@ var CompositionUnavailableModeSchema = _enum([
18008
18173
  "null",
18009
18174
  "offline",
18010
18175
  "unknown",
18011
- "release"
18176
+ "release",
18177
+ "omit"
18012
18178
  ]);
18013
18179
  /**
18014
18180
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -18222,6 +18388,275 @@ Object.freeze({
18222
18388
  result: ["number", "null"]
18223
18389
  }
18224
18390
  });
18391
+ /**
18392
+ * One catalog row per base reading a group helper can build (D944 §3).
18393
+ * Data, not a form default written into the block.
18394
+ */
18395
+ var NOW = {
18396
+ fieldPath: "lastFetchedAt",
18397
+ expr: "now"
18398
+ };
18399
+ var CHANGED = {
18400
+ fieldPath: "lastChangedAt",
18401
+ expr: "now"
18402
+ };
18403
+ function numeric(input) {
18404
+ return {
18405
+ ...input,
18406
+ family: "numeric",
18407
+ deviceType: DeviceType.Sensor,
18408
+ memberDeviceType: DeviceType.Sensor,
18409
+ commandCaps: [],
18410
+ baseUnit: baseUnitOf(input.quantity),
18411
+ aggregates: NUMERIC_AGGREGATES,
18412
+ accept: [{
18413
+ cap: input.outputCap,
18414
+ fieldPath: input.outputField
18415
+ }]
18416
+ };
18417
+ }
18418
+ function binary(input) {
18419
+ return {
18420
+ ...input,
18421
+ family: "binary",
18422
+ deviceType: DeviceType.Sensor,
18423
+ memberDeviceType: DeviceType.Sensor,
18424
+ commandCaps: [],
18425
+ quantity: "none",
18426
+ baseUnit: void 0,
18427
+ aggregates: BINARY_AGGREGATES,
18428
+ empty: "offline"
18429
+ };
18430
+ }
18431
+ var GROUP_TEMPLATES = [
18432
+ numeric({
18433
+ id: "temperature",
18434
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
18435
+ role: DeviceRole.TemperatureSensor,
18436
+ outputCap: "temperature-sensor",
18437
+ outputField: "celsius",
18438
+ quantity: "temperature",
18439
+ defaultAggregate: "mean",
18440
+ empty: "null",
18441
+ companions: [NOW]
18442
+ }),
18443
+ numeric({
18444
+ id: "humidity",
18445
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
18446
+ role: DeviceRole.HumiditySensor,
18447
+ outputCap: "humidity-sensor",
18448
+ outputField: "percent",
18449
+ quantity: "humidity",
18450
+ defaultAggregate: "mean",
18451
+ empty: "null",
18452
+ companions: [NOW]
18453
+ }),
18454
+ numeric({
18455
+ id: "pressure",
18456
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
18457
+ role: DeviceRole.PressureSensor,
18458
+ outputCap: "pressure-sensor",
18459
+ outputField: "hpa",
18460
+ quantity: "pressure",
18461
+ defaultAggregate: "mean",
18462
+ empty: "null",
18463
+ companions: [NOW]
18464
+ }),
18465
+ numeric({
18466
+ id: "illuminance",
18467
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
18468
+ role: DeviceRole.AmbientLightSensor,
18469
+ outputCap: "ambient-light-sensor",
18470
+ outputField: "lux",
18471
+ quantity: "illuminance",
18472
+ defaultAggregate: "mean",
18473
+ empty: "null",
18474
+ companions: [NOW]
18475
+ }),
18476
+ numeric({
18477
+ id: "power",
18478
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
18479
+ role: DeviceRole.PowerSensor,
18480
+ outputCap: "power-meter",
18481
+ outputField: "watts",
18482
+ quantity: "power",
18483
+ defaultAggregate: "sum",
18484
+ empty: "omit",
18485
+ companions: [NOW]
18486
+ }),
18487
+ numeric({
18488
+ id: "energy",
18489
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
18490
+ role: DeviceRole.EnergySensor,
18491
+ outputCap: "power-meter",
18492
+ outputField: "kwhTotal",
18493
+ quantity: "energy",
18494
+ defaultAggregate: "sum",
18495
+ empty: "omit",
18496
+ companions: [NOW]
18497
+ }),
18498
+ numeric({
18499
+ id: "battery",
18500
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
18501
+ role: DeviceRole.BatterySensor,
18502
+ outputCap: "battery",
18503
+ outputField: "percentage",
18504
+ quantity: "percentage",
18505
+ defaultAggregate: "mean",
18506
+ empty: "null",
18507
+ companions: [
18508
+ {
18509
+ fieldPath: "charging",
18510
+ expr: "\"unknown\""
18511
+ },
18512
+ {
18513
+ fieldPath: "sleeping",
18514
+ expr: "false"
18515
+ },
18516
+ {
18517
+ fieldPath: "lastUpdated",
18518
+ expr: "now"
18519
+ }
18520
+ ]
18521
+ }),
18522
+ numeric({
18523
+ id: "numeric",
18524
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
18525
+ role: DeviceRole.NumericSensor,
18526
+ outputCap: "numeric-sensor",
18527
+ outputField: "value",
18528
+ quantity: "device",
18529
+ defaultAggregate: "mean",
18530
+ empty: "null",
18531
+ companions: [NOW]
18532
+ }),
18533
+ binary({
18534
+ id: "motion",
18535
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
18536
+ role: DeviceRole.MotionSensor,
18537
+ outputCap: "motion",
18538
+ outputField: "detected",
18539
+ defaultAggregate: "any",
18540
+ accept: [{
18541
+ cap: "motion",
18542
+ fieldPath: "detected"
18543
+ }],
18544
+ companions: [{
18545
+ fieldPath: "lastDetectedAt",
18546
+ expr: "null"
18547
+ }, {
18548
+ fieldPath: "autoClearAfterMs",
18549
+ expr: "null"
18550
+ }]
18551
+ }),
18552
+ binary({
18553
+ id: "contact",
18554
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
18555
+ role: DeviceRole.ContactSensor,
18556
+ outputCap: "contact",
18557
+ outputField: "entryOpen",
18558
+ defaultAggregate: "any",
18559
+ accept: [{
18560
+ cap: "contact",
18561
+ fieldPath: "entryOpen"
18562
+ }],
18563
+ companions: [CHANGED]
18564
+ }),
18565
+ binary({
18566
+ id: "leak",
18567
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
18568
+ role: DeviceRole.LeakSensor,
18569
+ outputCap: "flood",
18570
+ outputField: "flooded",
18571
+ defaultAggregate: "any",
18572
+ accept: [{
18573
+ cap: "flood",
18574
+ fieldPath: "flooded"
18575
+ }],
18576
+ companions: [CHANGED]
18577
+ }),
18578
+ binary({
18579
+ id: "smoke",
18580
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
18581
+ role: DeviceRole.SmokeSensor,
18582
+ outputCap: "smoke",
18583
+ outputField: "detected",
18584
+ defaultAggregate: "any",
18585
+ accept: [{
18586
+ cap: "smoke",
18587
+ fieldPath: "detected"
18588
+ }],
18589
+ companions: [CHANGED]
18590
+ }),
18591
+ binary({
18592
+ id: "occupancy",
18593
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
18594
+ role: DeviceRole.BinarySensor,
18595
+ outputCap: "binary",
18596
+ outputField: "on",
18597
+ defaultAggregate: "any",
18598
+ accept: [{
18599
+ cap: "motion",
18600
+ fieldPath: "detected"
18601
+ }, {
18602
+ cap: "binary",
18603
+ fieldPath: "on"
18604
+ }],
18605
+ companions: [CHANGED]
18606
+ }),
18607
+ binary({
18608
+ id: "binary",
18609
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
18610
+ role: DeviceRole.BinarySensor,
18611
+ outputCap: "binary",
18612
+ outputField: "on",
18613
+ defaultAggregate: "any",
18614
+ accept: [{
18615
+ cap: "binary",
18616
+ fieldPath: "on"
18617
+ }],
18618
+ companions: [CHANGED]
18619
+ }),
18620
+ actuator({
18621
+ id: "switch",
18622
+ 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.",
18623
+ deviceType: DeviceType.Switch,
18624
+ outputCap: "switch",
18625
+ commandCaps: ["switch"]
18626
+ }),
18627
+ actuator({
18628
+ id: "light",
18629
+ 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.",
18630
+ deviceType: DeviceType.Light,
18631
+ outputCap: "switch",
18632
+ commandCaps: [
18633
+ "switch",
18634
+ "brightness",
18635
+ "color"
18636
+ ]
18637
+ })
18638
+ ];
18639
+ function actuator(input) {
18640
+ return {
18641
+ ...input,
18642
+ family: "actuator",
18643
+ role: void 0,
18644
+ memberDeviceType: input.deviceType,
18645
+ outputField: "on",
18646
+ quantity: "none",
18647
+ baseUnit: void 0,
18648
+ aggregates: BINARY_AGGREGATES,
18649
+ defaultAggregate: "any",
18650
+ empty: "offline",
18651
+ accept: [{
18652
+ cap: "switch",
18653
+ fieldPath: "on"
18654
+ }],
18655
+ companions: [CHANGED]
18656
+ };
18657
+ }
18658
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18659
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18225
18660
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18226
18661
  /**
18227
18662
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -44813,6 +45248,8 @@ var NcSystemEventKindSchema = _enum([
44813
45248
  "detection-blind",
44814
45249
  "motion-noisy",
44815
45250
  "motion-calm",
45251
+ "package-llm-silent",
45252
+ "package-llm-answered",
44816
45253
  "recording-stalled",
44817
45254
  "recording-healthy",
44818
45255
  "recording-degraded",
@@ -55843,6 +56280,28 @@ var PackageVersionInfoSchema = object({
55843
56280
  deprecated: string().optional(),
55844
56281
  distTags: array(string()).readonly()
55845
56282
  });
56283
+ /**
56284
+ * One published document. `ok` is markdown from the registry. `missing` means
56285
+ * the registry answered and the file was not there. `error` is a registry or
56286
+ * tarball failure — never an empty string standing in for either.
56287
+ */
56288
+ var PackageDocBodySchema = discriminatedUnion("status", [
56289
+ object({
56290
+ status: literal("ok"),
56291
+ markdown: string()
56292
+ }),
56293
+ object({ status: literal("missing") }),
56294
+ object({
56295
+ status: literal("error"),
56296
+ message: string()
56297
+ })
56298
+ ]);
56299
+ var PackageDocsSchema = object({
56300
+ name: string(),
56301
+ version: string(),
56302
+ readme: PackageDocBodySchema,
56303
+ changelog: PackageDocBodySchema
56304
+ });
55846
56305
  var SearchResultSchema = object({
55847
56306
  name: string(),
55848
56307
  version: string(),
@@ -56061,7 +56520,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56061
56520
  }), object({ success: literal(true) }), {
56062
56521
  kind: "mutation",
56063
56522
  auth: "admin"
56064
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
56523
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
56524
+ name: string().min(1),
56525
+ version: string().min(1).optional()
56526
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
56065
56527
  kind: "mutation",
56066
56528
  auth: "admin"
56067
56529
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -58107,6 +58569,36 @@ object({
58107
58569
  lastChangedAt: number()
58108
58570
  });
58109
58571
  DeviceType.Sensor;
58572
+ object({
58573
+ /** One row per member that has been commanded. A later command replaces that member's row. */
58574
+ results: array(object({
58575
+ deviceId: number().int().nonnegative(),
58576
+ cap: string().min(1),
58577
+ method: string().min(1),
58578
+ ok: boolean(),
58579
+ error: string().optional(),
58580
+ /** Ms epoch of the attempt. */
58581
+ at: number()
58582
+ })) });
58583
+ DeviceType.Switch, DeviceType.Light;
58584
+ object({
58585
+ /** Members whose current value entered the aggregate. */
58586
+ included: number().int().nonnegative().meta(readingMeta("count", {
58587
+ precision: 0,
58588
+ label: "Reporting"
58589
+ })),
58590
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
58591
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
58592
+ precision: 0,
58593
+ label: "Excluded"
58594
+ })),
58595
+ /** `included` + `excluded`. */
58596
+ total: number().int().nonnegative().meta(readingMeta("count", {
58597
+ precision: 0,
58598
+ label: "Members"
58599
+ }))
58600
+ });
58601
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58110
58602
  object({
58111
58603
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58112
58604
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -65305,6 +65797,13 @@ Object.freeze({
65305
65797
  access: "view",
65306
65798
  role: "admin"
65307
65799
  },
65800
+ "addons.getPackageDocs": {
65801
+ capName: "addons",
65802
+ capScope: "system",
65803
+ addonId: null,
65804
+ access: "view",
65805
+ role: "admin"
65806
+ },
65308
65807
  "addons.getVersions": {
65309
65808
  capName: "addons",
65310
65809
  capScope: "system",
@@ -68413,6 +68912,20 @@ Object.freeze({
68413
68912
  access: "view",
68414
68913
  role: "viewer"
68415
68914
  },
68915
+ "groupCommands.getStatus": {
68916
+ capName: "group-commands",
68917
+ capScope: "device",
68918
+ addonId: null,
68919
+ access: "view",
68920
+ role: "viewer"
68921
+ },
68922
+ "groupStatus.getStatus": {
68923
+ capName: "group-status",
68924
+ capScope: "device",
68925
+ addonId: null,
68926
+ access: "view",
68927
+ role: "viewer"
68928
+ },
68416
68929
  "heatingValve.getStatus": {
68417
68930
  capName: "heating-valve",
68418
68931
  capScope: "device",
@@ -78235,6 +78748,37 @@ var SENSOR_CAP_VOCABULARY = {
78235
78748
  icon: "flame"
78236
78749
  }]
78237
78750
  },
78751
+ "group-commands": {
78752
+ scope: "device",
78753
+ noun: t("Group command", "Comando di gruppo")
78754
+ },
78755
+ "group-status": {
78756
+ scope: "device",
78757
+ noun: t("Group", "Gruppo"),
78758
+ state: [
78759
+ {
78760
+ kind: "numeric",
78761
+ field: "included",
78762
+ quantity: t("the members reporting", "i membri che rispondono"),
78763
+ label: t("Reporting", "Rispondono"),
78764
+ icon: "users"
78765
+ },
78766
+ {
78767
+ kind: "numeric",
78768
+ field: "excluded",
78769
+ quantity: t("the members left out", "i membri esclusi"),
78770
+ label: t("Excluded", "Esclusi"),
78771
+ icon: "users"
78772
+ },
78773
+ {
78774
+ kind: "numeric",
78775
+ field: "total",
78776
+ quantity: t("the member count", "il numero di membri"),
78777
+ label: t("Members", "Membri"),
78778
+ icon: "sigma"
78779
+ }
78780
+ ]
78781
+ },
78238
78782
  "humidity-sensor": {
78239
78783
  scope: "device",
78240
78784
  noun: t("Humidity", "Umidità"),
@@ -79700,6 +80244,16 @@ Object.freeze({
79700
80244
  form: "single",
79701
80245
  optional: false
79702
80246
  }],
80247
+ "groupCommands.getStatus": [{
80248
+ name: "deviceId",
80249
+ form: "single",
80250
+ optional: false
80251
+ }],
80252
+ "groupStatus.getStatus": [{
80253
+ name: "deviceId",
80254
+ form: "single",
80255
+ optional: false
80256
+ }],
79703
80257
  "heatingValve.getStatus": [{
79704
80258
  name: "deviceId",
79705
80259
  form: "single",
@@ -81684,6 +82238,8 @@ new Map(Object.entries({
81684
82238
  "detection-blind": "device-events",
81685
82239
  "motion-noisy": "device-events",
81686
82240
  "motion-calm": "device-events",
82241
+ "package-llm-silent": "device-events",
82242
+ "package-llm-answered": "device-events",
81687
82243
  "recording-stalled": "device-events",
81688
82244
  "recording-healthy": "device-events",
81689
82245
  "recording-degraded": "device-events",
@@ -81767,6 +82323,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
81767
82323
  label: "Motion without a subject",
81768
82324
  kinds: ["motion-noisy", "motion-calm"]
81769
82325
  },
82326
+ {
82327
+ id: "package-llm",
82328
+ family: "device-events",
82329
+ label: "Package confirm",
82330
+ kinds: ["package-llm-silent", "package-llm-answered"]
82331
+ },
81770
82332
  {
81771
82333
  id: "recording",
81772
82334
  family: "device-events",
@@ -81948,6 +82510,8 @@ var DEVICE_EVENTS = [
81948
82510
  "detection-blind",
81949
82511
  "motion-noisy",
81950
82512
  "motion-calm",
82513
+ "package-llm-silent",
82514
+ "package-llm-answered",
81951
82515
  "recording-stalled",
81952
82516
  "recording-healthy",
81953
82517
  "recording-degraded",
@@ -82216,6 +82780,15 @@ new Map([
82216
82780
  snapshotLabel: "Cameras with constant motion now",
82217
82781
  snapshotSection: null
82218
82782
  },
82783
+ {
82784
+ id: "package-llm-confirm",
82785
+ family: "device-events",
82786
+ label: "Package confirm (not answering / answering again)",
82787
+ bad: ["package-llm-silent"],
82788
+ recovery: ["package-llm-answered"],
82789
+ snapshotLabel: "Cameras whose package confirm is not answering",
82790
+ snapshotSection: null
82791
+ },
82219
82792
  {
82220
82793
  id: "recording-health",
82221
82794
  family: "device-events",