@camstack/addon-provider-homeassistant 1.2.112 → 1.2.113
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-DU9rYiaM.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-65xKnX_d.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
|
|
@@ -21086,6 +21086,14 @@ var NativeCropResultSchema = object({
|
|
|
21086
21086
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
21087
21087
|
*/
|
|
21088
21088
|
jpeg: string().optional(),
|
|
21089
|
+
/**
|
|
21090
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
21091
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
21092
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
21093
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
21094
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
21095
|
+
*/
|
|
21096
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21089
21097
|
width: number().int().positive(),
|
|
21090
21098
|
height: number().int().positive(),
|
|
21091
21099
|
/**
|
|
@@ -21152,7 +21160,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
21152
21160
|
})]);
|
|
21153
21161
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21154
21162
|
var ParkedTrackFrameSchema = object({
|
|
21155
|
-
|
|
21163
|
+
/**
|
|
21164
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
21165
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
21166
|
+
* Exactly one of the two is present.
|
|
21167
|
+
*/
|
|
21168
|
+
jpeg: string().optional(),
|
|
21169
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
21170
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21156
21171
|
width: number().int().positive(),
|
|
21157
21172
|
height: number().int().positive(),
|
|
21158
21173
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -21739,6 +21754,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21739
21754
|
bbox: NativeCropBboxSchema,
|
|
21740
21755
|
maxWidth: number().int().positive().optional(),
|
|
21741
21756
|
/**
|
|
21757
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21758
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21759
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21760
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21761
|
+
*/
|
|
21762
|
+
acceptJpegBytes: boolean().optional(),
|
|
21763
|
+
/**
|
|
21742
21764
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
21743
21765
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
21744
21766
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -21806,7 +21828,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21806
21828
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21807
21829
|
deviceId: number(),
|
|
21808
21830
|
trackId: string(),
|
|
21809
|
-
kind: ParkedFrameKindSchema
|
|
21831
|
+
kind: ParkedFrameKindSchema,
|
|
21832
|
+
/**
|
|
21833
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21834
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21835
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21836
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21837
|
+
*/
|
|
21838
|
+
acceptJpegBytes: boolean().optional()
|
|
21810
21839
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21811
21840
|
deviceId: number(),
|
|
21812
21841
|
trackId: string()
|
|
@@ -21086,6 +21086,14 @@ var NativeCropResultSchema = object({
|
|
|
21086
21086
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
21087
21087
|
*/
|
|
21088
21088
|
jpeg: string().optional(),
|
|
21089
|
+
/**
|
|
21090
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
21091
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
21092
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
21093
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
21094
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
21095
|
+
*/
|
|
21096
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21089
21097
|
width: number().int().positive(),
|
|
21090
21098
|
height: number().int().positive(),
|
|
21091
21099
|
/**
|
|
@@ -21152,7 +21160,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
21152
21160
|
})]);
|
|
21153
21161
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
21154
21162
|
var ParkedTrackFrameSchema = object({
|
|
21155
|
-
|
|
21163
|
+
/**
|
|
21164
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
21165
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
21166
|
+
* Exactly one of the two is present.
|
|
21167
|
+
*/
|
|
21168
|
+
jpeg: string().optional(),
|
|
21169
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
21170
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
21156
21171
|
width: number().int().positive(),
|
|
21157
21172
|
height: number().int().positive(),
|
|
21158
21173
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -21739,6 +21754,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21739
21754
|
bbox: NativeCropBboxSchema,
|
|
21740
21755
|
maxWidth: number().int().positive().optional(),
|
|
21741
21756
|
/**
|
|
21757
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21758
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21759
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21760
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21761
|
+
*/
|
|
21762
|
+
acceptJpegBytes: boolean().optional(),
|
|
21763
|
+
/**
|
|
21742
21764
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
21743
21765
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
21744
21766
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -21806,7 +21828,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21806
21828
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21807
21829
|
deviceId: number(),
|
|
21808
21830
|
trackId: string(),
|
|
21809
|
-
kind: ParkedFrameKindSchema
|
|
21831
|
+
kind: ParkedFrameKindSchema,
|
|
21832
|
+
/**
|
|
21833
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21834
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21835
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21836
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21837
|
+
*/
|
|
21838
|
+
acceptJpegBytes: boolean().optional()
|
|
21810
21839
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21811
21840
|
deviceId: number(),
|
|
21812
21841
|
trackId: 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-DU9rYiaM.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-65xKnX_d.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|