@camstack/addon-provider-homeassistant 1.2.109 → 1.2.110
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-DYX4j65H.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 presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-CQP9bPT3.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
|
|
@@ -16842,6 +16842,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16842
16842
|
"addon-crash-loop",
|
|
16843
16843
|
"addon-update-available",
|
|
16844
16844
|
"server-update-available",
|
|
16845
|
+
"wrapper-update-available",
|
|
16845
16846
|
"alarm-triggered",
|
|
16846
16847
|
"alarm-armed",
|
|
16847
16848
|
"alarm-disarmed",
|
|
@@ -22414,6 +22415,53 @@ var ImageContractSchema = object({
|
|
|
22414
22415
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22415
22416
|
message: string()
|
|
22416
22417
|
});
|
|
22418
|
+
/**
|
|
22419
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22420
|
+
* produced it.
|
|
22421
|
+
*
|
|
22422
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22423
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22424
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22425
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22426
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22427
|
+
*/
|
|
22428
|
+
var WrapperIdentitySchema = object({
|
|
22429
|
+
kind: _enum([
|
|
22430
|
+
"docker",
|
|
22431
|
+
"electron",
|
|
22432
|
+
"native",
|
|
22433
|
+
"contradictory",
|
|
22434
|
+
"unknown"
|
|
22435
|
+
]),
|
|
22436
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22437
|
+
evidence: array(object({
|
|
22438
|
+
/** Which probe this row reports. */
|
|
22439
|
+
fact: _enum([
|
|
22440
|
+
"dockerenv-file",
|
|
22441
|
+
"proc-1-cgroup",
|
|
22442
|
+
"platform",
|
|
22443
|
+
"electron-app-version-env"
|
|
22444
|
+
]),
|
|
22445
|
+
/**
|
|
22446
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22447
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22448
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22449
|
+
*/
|
|
22450
|
+
mode: _enum(["observed", "declared"]),
|
|
22451
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22452
|
+
holds: boolean(),
|
|
22453
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22454
|
+
detail: string()
|
|
22455
|
+
})),
|
|
22456
|
+
/**
|
|
22457
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22458
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22459
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22460
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22461
|
+
* known there.
|
|
22462
|
+
*/
|
|
22463
|
+
currentVersion: string().nullable()
|
|
22464
|
+
});
|
|
22417
22465
|
var ServerRollbackInfoSchema = object({
|
|
22418
22466
|
/** The version that failed (or was manually rolled back). */
|
|
22419
22467
|
fromVersion: string(),
|
|
@@ -22455,7 +22503,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22455
22503
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22456
22504
|
* version skew: an older provider's payload simply omits it.
|
|
22457
22505
|
*/
|
|
22458
|
-
imageContract: ImageContractSchema.optional()
|
|
22506
|
+
imageContract: ImageContractSchema.optional(),
|
|
22507
|
+
/**
|
|
22508
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22509
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22510
|
+
* absent wrapper is unknown — never `native`.
|
|
22511
|
+
*/
|
|
22512
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22459
22513
|
});
|
|
22460
22514
|
var ServerUpdateCheckResultSchema = object({
|
|
22461
22515
|
packageName: string(),
|
|
@@ -16842,6 +16842,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16842
16842
|
"addon-crash-loop",
|
|
16843
16843
|
"addon-update-available",
|
|
16844
16844
|
"server-update-available",
|
|
16845
|
+
"wrapper-update-available",
|
|
16845
16846
|
"alarm-triggered",
|
|
16846
16847
|
"alarm-armed",
|
|
16847
16848
|
"alarm-disarmed",
|
|
@@ -22414,6 +22415,53 @@ var ImageContractSchema = object({
|
|
|
22414
22415
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22415
22416
|
message: string()
|
|
22416
22417
|
});
|
|
22418
|
+
/**
|
|
22419
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22420
|
+
* produced it.
|
|
22421
|
+
*
|
|
22422
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22423
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22424
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22425
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22426
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22427
|
+
*/
|
|
22428
|
+
var WrapperIdentitySchema = object({
|
|
22429
|
+
kind: _enum([
|
|
22430
|
+
"docker",
|
|
22431
|
+
"electron",
|
|
22432
|
+
"native",
|
|
22433
|
+
"contradictory",
|
|
22434
|
+
"unknown"
|
|
22435
|
+
]),
|
|
22436
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22437
|
+
evidence: array(object({
|
|
22438
|
+
/** Which probe this row reports. */
|
|
22439
|
+
fact: _enum([
|
|
22440
|
+
"dockerenv-file",
|
|
22441
|
+
"proc-1-cgroup",
|
|
22442
|
+
"platform",
|
|
22443
|
+
"electron-app-version-env"
|
|
22444
|
+
]),
|
|
22445
|
+
/**
|
|
22446
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22447
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22448
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22449
|
+
*/
|
|
22450
|
+
mode: _enum(["observed", "declared"]),
|
|
22451
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22452
|
+
holds: boolean(),
|
|
22453
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22454
|
+
detail: string()
|
|
22455
|
+
})),
|
|
22456
|
+
/**
|
|
22457
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22458
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22459
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22460
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22461
|
+
* known there.
|
|
22462
|
+
*/
|
|
22463
|
+
currentVersion: string().nullable()
|
|
22464
|
+
});
|
|
22417
22465
|
var ServerRollbackInfoSchema = object({
|
|
22418
22466
|
/** The version that failed (or was manually rolled back). */
|
|
22419
22467
|
fromVersion: string(),
|
|
@@ -22455,7 +22503,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22455
22503
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22456
22504
|
* version skew: an older provider's payload simply omits it.
|
|
22457
22505
|
*/
|
|
22458
|
-
imageContract: ImageContractSchema.optional()
|
|
22506
|
+
imageContract: ImageContractSchema.optional(),
|
|
22507
|
+
/**
|
|
22508
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22509
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22510
|
+
* absent wrapper is unknown — never `native`.
|
|
22511
|
+
*/
|
|
22512
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22459
22513
|
});
|
|
22460
22514
|
var ServerUpdateCheckResultSchema = object({
|
|
22461
22515
|
packageName: string(),
|
|
@@ -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-DYX4j65H.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 { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-CQP9bPT3.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|