@camstack/addon-provider-homeassistant 1.2.35 → 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-
|
|
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-
|
|
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
|
|
@@ -26634,9 +26634,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
26634
26634
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
26635
26635
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
26636
26636
|
locationIds: array(string()).optional(),
|
|
26637
|
-
/**
|
|
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`. */
|
|
26638
26649
|
usedBytes: number(),
|
|
26639
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
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). */
|
|
26640
26652
|
availableBytes: number().nullable(),
|
|
26641
26653
|
/** Total bytes of the location's volume; null when unknown. */
|
|
26642
26654
|
totalBytes: number().nullable()
|
|
@@ -26648,7 +26660,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
26648
26660
|
nodeId: string(),
|
|
26649
26661
|
totalUsedBytes: number(),
|
|
26650
26662
|
devices: array(RecordingDeviceUsageSchema),
|
|
26651
|
-
|
|
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()
|
|
26652
26672
|
});
|
|
26653
26673
|
/**
|
|
26654
26674
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37433,6 +37453,11 @@ Object.freeze({
|
|
|
37433
37453
|
"network-access": "ingress",
|
|
37434
37454
|
"smtp-provider": "email"
|
|
37435
37455
|
});
|
|
37456
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37457
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37458
|
+
hitPercent: 60,
|
|
37459
|
+
samplingSeconds: 10
|
|
37460
|
+
};
|
|
37436
37461
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37437
37462
|
new Set(["devices", "classes"]);
|
|
37438
37463
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
@@ -37642,6 +37667,7 @@ function prepareNotification(caps, n) {
|
|
|
37642
37667
|
renderedAs
|
|
37643
37668
|
};
|
|
37644
37669
|
}
|
|
37670
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37645
37671
|
/**
|
|
37646
37672
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37647
37673
|
*
|
|
@@ -26634,9 +26634,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
26634
26634
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
26635
26635
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
26636
26636
|
locationIds: array(string()).optional(),
|
|
26637
|
-
/**
|
|
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`. */
|
|
26638
26649
|
usedBytes: number(),
|
|
26639
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
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). */
|
|
26640
26652
|
availableBytes: number().nullable(),
|
|
26641
26653
|
/** Total bytes of the location's volume; null when unknown. */
|
|
26642
26654
|
totalBytes: number().nullable()
|
|
@@ -26648,7 +26660,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
26648
26660
|
nodeId: string(),
|
|
26649
26661
|
totalUsedBytes: number(),
|
|
26650
26662
|
devices: array(RecordingDeviceUsageSchema),
|
|
26651
|
-
|
|
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()
|
|
26652
26672
|
});
|
|
26653
26673
|
/**
|
|
26654
26674
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37433,6 +37453,11 @@ Object.freeze({
|
|
|
37433
37453
|
"network-access": "ingress",
|
|
37434
37454
|
"smtp-provider": "email"
|
|
37435
37455
|
});
|
|
37456
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37457
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37458
|
+
hitPercent: 60,
|
|
37459
|
+
samplingSeconds: 10
|
|
37460
|
+
};
|
|
37436
37461
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37437
37462
|
new Set(["devices", "classes"]);
|
|
37438
37463
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
@@ -37642,6 +37667,7 @@ function prepareNotification(caps, n) {
|
|
|
37642
37667
|
renderedAs
|
|
37643
37668
|
};
|
|
37644
37669
|
}
|
|
37670
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37645
37671
|
/**
|
|
37646
37672
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37647
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-
|
|
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-
|
|
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
|
/**
|