@camstack/addon-provider-homeassistant 1.2.34 → 1.2.36

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/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-ubUo7WrJ.js");
2
+ const require_dist = require("./dist-B175JmMz.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-device-source.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-AzTGVuqy.mjs";
1
+ import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-GYR22fXi.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-device-source.ts
@@ -20515,6 +20515,14 @@ var ClipSchema = object({
20515
20515
  endMs: number()
20516
20516
  }),
20517
20517
  /**
20518
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20519
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20520
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20521
+ * did not. Absent (never empty) when the visit attached no classified object
20522
+ * event, so a motion/audio-only visit keeps its kind label.
20523
+ */
20524
+ labels: array(string()).max(3).optional(),
20525
+ /**
20518
20526
  * Lazy thumbnail URL, never inlined.
20519
20527
  *
20520
20528
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26626,9 +26634,21 @@ var RecordingLocationUsageSchema = object({
26626
26634
  * previously rendered as two identical "disks" with a nonsensical used
26627
26635
  * split — hydrate attribution across aliases is arbitrary by nature. */
26628
26636
  locationIds: array(string()).optional(),
26629
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26637
+ /**
26638
+ * Filesystem root of the physical volume this row accounts — the only
26639
+ * operator-legible identity when a location has no `displayName` yet, and
26640
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26641
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26642
+ * it, and this schema must keep validating that older provider's payload.
26643
+ */
26644
+ root: string().optional(),
26645
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26646
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26647
+ * also holds everything that is not recordings. Volume fill is
26648
+ * `(totalBytes - availableBytes) / totalBytes`. */
26630
26649
  usedBytes: number(),
26631
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26650
+ /** Free bytes on the location's volume; null when capacity is unknown
26651
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26632
26652
  availableBytes: number().nullable(),
26633
26653
  /** Total bytes of the location's volume; null when unknown. */
26634
26654
  totalBytes: number().nullable()
@@ -26640,7 +26660,15 @@ var RecordingStorageUsageSchema = object({
26640
26660
  nodeId: string(),
26641
26661
  totalUsedBytes: number(),
26642
26662
  devices: array(RecordingDeviceUsageSchema),
26643
- locations: array(RecordingLocationUsageSchema)
26663
+ /**
26664
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26665
+ * of the payload without it: the hub serves this method through a BAKED
26666
+ * router, so a hub whose framework train predates a change to this array
26667
+ * strips it out of an answer a newer recorder happily produced. A UI that
26668
+ * dereferences it unconditionally crashes the whole Storage page over a
26669
+ * missing disk bar.
26670
+ */
26671
+ locations: array(RecordingLocationUsageSchema).optional()
26644
26672
  });
26645
26673
  /**
26646
26674
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37425,6 +37453,11 @@ Object.freeze({
37425
37453
  "network-access": "ingress",
37426
37454
  "smtp-provider": "email"
37427
37455
  });
37456
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37457
+ var NC_AUDIO_DEFAULTS = {
37458
+ hitPercent: 60,
37459
+ samplingSeconds: 10
37460
+ };
37428
37461
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37429
37462
  new Set(["devices", "classes"]);
37430
37463
  /** Strip a small, safe subset of Markdown down to plain text. */
@@ -37634,6 +37667,7 @@ function prepareNotification(caps, n) {
37634
37667
  renderedAs
37635
37668
  };
37636
37669
  }
37670
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37637
37671
  /**
37638
37672
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37639
37673
  *
@@ -20515,6 +20515,14 @@ var ClipSchema = object({
20515
20515
  endMs: number()
20516
20516
  }),
20517
20517
  /**
20518
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20519
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20520
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20521
+ * did not. Absent (never empty) when the visit attached no classified object
20522
+ * event, so a motion/audio-only visit keeps its kind label.
20523
+ */
20524
+ labels: array(string()).max(3).optional(),
20525
+ /**
20518
20526
  * Lazy thumbnail URL, never inlined.
20519
20527
  *
20520
20528
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -26626,9 +26634,21 @@ var RecordingLocationUsageSchema = object({
26626
26634
  * previously rendered as two identical "disks" with a nonsensical used
26627
26635
  * split — hydrate attribution across aliases is arbitrary by nature. */
26628
26636
  locationIds: array(string()).optional(),
26629
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
26637
+ /**
26638
+ * Filesystem root of the physical volume this row accounts — the only
26639
+ * operator-legible identity when a location has no `displayName` yet, and
26640
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
26641
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
26642
+ * it, and this schema must keep validating that older provider's payload.
26643
+ */
26644
+ root: string().optional(),
26645
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
26646
+ * the footage's SHARE of the volume, not how full the volume is — the disk
26647
+ * also holds everything that is not recordings. Volume fill is
26648
+ * `(totalBytes - availableBytes) / totalBytes`. */
26630
26649
  usedBytes: number(),
26631
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
26650
+ /** Free bytes on the location's volume; null when capacity is unknown
26651
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
26632
26652
  availableBytes: number().nullable(),
26633
26653
  /** Total bytes of the location's volume; null when unknown. */
26634
26654
  totalBytes: number().nullable()
@@ -26640,7 +26660,15 @@ var RecordingStorageUsageSchema = object({
26640
26660
  nodeId: string(),
26641
26661
  totalUsedBytes: number(),
26642
26662
  devices: array(RecordingDeviceUsageSchema),
26643
- locations: array(RecordingLocationUsageSchema)
26663
+ /**
26664
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
26665
+ * of the payload without it: the hub serves this method through a BAKED
26666
+ * router, so a hub whose framework train predates a change to this array
26667
+ * strips it out of an answer a newer recorder happily produced. A UI that
26668
+ * dereferences it unconditionally crashes the whole Storage page over a
26669
+ * missing disk bar.
26670
+ */
26671
+ locations: array(RecordingLocationUsageSchema).optional()
26644
26672
  });
26645
26673
  /**
26646
26674
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -37425,6 +37453,11 @@ Object.freeze({
37425
37453
  "network-access": "ingress",
37426
37454
  "smtp-provider": "email"
37427
37455
  });
37456
+ /** Schema defaults — an untouched sub-field must author exactly these. */
37457
+ var NC_AUDIO_DEFAULTS = {
37458
+ hitPercent: 60,
37459
+ samplingSeconds: 10
37460
+ };
37428
37461
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
37429
37462
  new Set(["devices", "classes"]);
37430
37463
  /** Strip a small, safe subset of Markdown down to plain text. */
@@ -37634,6 +37667,7 @@ function prepareNotification(caps, n) {
37634
37667
  renderedAs
37635
37668
  };
37636
37669
  }
37670
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
37637
37671
  /**
37638
37672
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
37639
37673
  *
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-ubUo7WrJ.js");
6
+ const require_dist = require("../dist-B175JmMz.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/ha-export/topics.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-AzTGVuqy.mjs";
1
+ import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-GYR22fXi.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  //#region src/ha-export/topics.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",