@camstack/addon-provider-homeassistant 1.2.92 → 1.2.94

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-BMe3yNz7.js");
2
+ const require_dist = require("./dist-BUX5QyXt.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-CDclcQZB.mjs";
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-DBwHd9PX.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
@@ -8154,13 +8154,28 @@ var RecordingBandSchema = object({
8154
8154
  end: string().regex(HHMM),
8155
8155
  mode: RecordingBandModeSchema,
8156
8156
  triggers: RecordingBandTriggersSchema.optional(),
8157
+ /**
8158
+ * RETIRED (D381). A band no longer carries a pre-buffer of its own.
8159
+ *
8160
+ * It was the retroactive KEEP bound — which already-written segments survive
8161
+ * a trigger — and it had to be at least as wide as the widest pre-roll the
8162
+ * broker could serve, or the gate would delete the seconds the ring had just
8163
+ * handed the writer. That "at least as wide as" is the tell: it was a second
8164
+ * expression of the broker's retention, in different units, in a different
8165
+ * addon, with an invariant the operator had to maintain by hand. The keep
8166
+ * bound is now derived from the one prebuffer ceiling and there is nothing
8167
+ * left to configure here.
8168
+ *
8169
+ * The key survives in the SHAPE so a config written before that record still
8170
+ * parses and can be migrated deliberately — `RecordingBandSchema` is not
8171
+ * strict, so simply deleting it would strip an operator's value in silence on
8172
+ * the next save (the failure D380 came one commit from shipping). Nothing
8173
+ * reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
8174
+ */
8157
8175
  preBufferSec: number().min(0).optional(),
8158
8176
  postBufferSec: number().min(0).optional()
8159
8177
  });
8160
- ({
8161
- preBufferSec: 15,
8162
- postBufferSec: 30
8163
- }).postBufferSec * 1e3;
8178
+ ({ postBufferSec: 30 }).postBufferSec * 1e3;
8164
8179
  /**
8165
8180
  * Per-device retention overrides. Every field is optional; an unset or `0`
8166
8181
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -10756,12 +10771,30 @@ var BackupDestinationInfoSchema = object({
10756
10771
  lastSuccessAt: number().optional(),
10757
10772
  /** Newest-archive size from `manifests.json`, or undefined. */
10758
10773
  lastSuccessSizeBytes: number().optional(),
10759
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
10774
+ /**
10775
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
10776
+ * destination, comma-joined. Absent when no enabled schedule targets it
10777
+ * — a destination nothing is scheduled to write to must not advertise a
10778
+ * cadence (D384). This is never the `backup_destination_policies.cron`
10779
+ * column: that per-location cron has scheduled nothing since 2026-07-28
10780
+ * and reading it made a destination with a DISABLED schedule claim a
10781
+ * nightly run.
10782
+ */
10760
10783
  cron: string().optional(),
10761
- /** ms-epoch of next computed firing for this destination's cron, if any. */
10784
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
10762
10785
  nextRunAt: number().optional(),
10763
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10764
- lastRunAt: number().optional()
10786
+ /**
10787
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
10788
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
10789
+ * newest archive that actually landed) and `lastError`.
10790
+ */
10791
+ lastAttemptAt: number().optional(),
10792
+ /**
10793
+ * Why the last attempt failed, verbatim. Absent when the last attempt
10794
+ * landed the archive. A destination that has never been written to has
10795
+ * neither this nor `lastAttemptAt`.
10796
+ */
10797
+ lastError: string().optional()
10765
10798
  });
10766
10799
  /**
10767
10800
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10924,8 +10957,16 @@ var BackupScheduleSchema = object({
10924
10957
  retentionCount: number().int().min(1).max(1e3),
10925
10958
  /** Optional subset of source locations to include; omitted = all. */
10926
10959
  dataSources: array(string()).readonly().optional(),
10927
- /** ms-epoch of last successful run. */
10928
- lastRunAt: number().optional(),
10960
+ /**
10961
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
10962
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
10963
+ * "succeeded" — a run refused by every destination stamps it too.
10964
+ */
10965
+ lastAttemptAt: number().optional(),
10966
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
10967
+ lastSuccessAt: number().optional(),
10968
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
10969
+ lastError: string().optional(),
10929
10970
  /** ms-epoch of next computed firing (read-only, filled on list). */
10930
10971
  nextRunAt: number().optional()
10931
10972
  });
@@ -10974,14 +11015,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10974
11015
  locationId: string(),
10975
11016
  enabled: boolean(),
10976
11017
  retentionCount: number().int().min(1).max(1e3),
10977
- label: string().optional(),
10978
- /**
10979
- * Per-destination cron expression. Empty string clears the
10980
- * schedule (manual-only). Validated server-side via croner;
10981
- * malformed expressions reject the upsert with an actionable
10982
- * message.
10983
- */
10984
- cron: string().optional()
11018
+ label: string().optional()
10985
11019
  }), _void(), {
10986
11020
  kind: "mutation",
10987
11021
  auth: "admin"
@@ -8154,13 +8154,28 @@ var RecordingBandSchema = object({
8154
8154
  end: string().regex(HHMM),
8155
8155
  mode: RecordingBandModeSchema,
8156
8156
  triggers: RecordingBandTriggersSchema.optional(),
8157
+ /**
8158
+ * RETIRED (D381). A band no longer carries a pre-buffer of its own.
8159
+ *
8160
+ * It was the retroactive KEEP bound — which already-written segments survive
8161
+ * a trigger — and it had to be at least as wide as the widest pre-roll the
8162
+ * broker could serve, or the gate would delete the seconds the ring had just
8163
+ * handed the writer. That "at least as wide as" is the tell: it was a second
8164
+ * expression of the broker's retention, in different units, in a different
8165
+ * addon, with an invariant the operator had to maintain by hand. The keep
8166
+ * bound is now derived from the one prebuffer ceiling and there is nothing
8167
+ * left to configure here.
8168
+ *
8169
+ * The key survives in the SHAPE so a config written before that record still
8170
+ * parses and can be migrated deliberately — `RecordingBandSchema` is not
8171
+ * strict, so simply deleting it would strip an operator's value in silence on
8172
+ * the next save (the failure D380 came one commit from shipping). Nothing
8173
+ * reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
8174
+ */
8157
8175
  preBufferSec: number().min(0).optional(),
8158
8176
  postBufferSec: number().min(0).optional()
8159
8177
  });
8160
- ({
8161
- preBufferSec: 15,
8162
- postBufferSec: 30
8163
- }).postBufferSec * 1e3;
8178
+ ({ postBufferSec: 30 }).postBufferSec * 1e3;
8164
8179
  /**
8165
8180
  * Per-device retention overrides. Every field is optional; an unset or `0`
8166
8181
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -10756,12 +10771,30 @@ var BackupDestinationInfoSchema = object({
10756
10771
  lastSuccessAt: number().optional(),
10757
10772
  /** Newest-archive size from `manifests.json`, or undefined. */
10758
10773
  lastSuccessSizeBytes: number().optional(),
10759
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
10774
+ /**
10775
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
10776
+ * destination, comma-joined. Absent when no enabled schedule targets it
10777
+ * — a destination nothing is scheduled to write to must not advertise a
10778
+ * cadence (D384). This is never the `backup_destination_policies.cron`
10779
+ * column: that per-location cron has scheduled nothing since 2026-07-28
10780
+ * and reading it made a destination with a DISABLED schedule claim a
10781
+ * nightly run.
10782
+ */
10760
10783
  cron: string().optional(),
10761
- /** ms-epoch of next computed firing for this destination's cron, if any. */
10784
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
10762
10785
  nextRunAt: number().optional(),
10763
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10764
- lastRunAt: number().optional()
10786
+ /**
10787
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
10788
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
10789
+ * newest archive that actually landed) and `lastError`.
10790
+ */
10791
+ lastAttemptAt: number().optional(),
10792
+ /**
10793
+ * Why the last attempt failed, verbatim. Absent when the last attempt
10794
+ * landed the archive. A destination that has never been written to has
10795
+ * neither this nor `lastAttemptAt`.
10796
+ */
10797
+ lastError: string().optional()
10765
10798
  });
10766
10799
  /**
10767
10800
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10924,8 +10957,16 @@ var BackupScheduleSchema = object({
10924
10957
  retentionCount: number().int().min(1).max(1e3),
10925
10958
  /** Optional subset of source locations to include; omitted = all. */
10926
10959
  dataSources: array(string()).readonly().optional(),
10927
- /** ms-epoch of last successful run. */
10928
- lastRunAt: number().optional(),
10960
+ /**
10961
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
10962
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
10963
+ * "succeeded" — a run refused by every destination stamps it too.
10964
+ */
10965
+ lastAttemptAt: number().optional(),
10966
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
10967
+ lastSuccessAt: number().optional(),
10968
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
10969
+ lastError: string().optional(),
10929
10970
  /** ms-epoch of next computed firing (read-only, filled on list). */
10930
10971
  nextRunAt: number().optional()
10931
10972
  });
@@ -10974,14 +11015,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10974
11015
  locationId: string(),
10975
11016
  enabled: boolean(),
10976
11017
  retentionCount: number().int().min(1).max(1e3),
10977
- label: string().optional(),
10978
- /**
10979
- * Per-destination cron expression. Empty string clears the
10980
- * schedule (manual-only). Validated server-side via croner;
10981
- * malformed expressions reject the upsert with an actionable
10982
- * message.
10983
- */
10984
- cron: string().optional()
11018
+ label: string().optional()
10985
11019
  }), _void(), {
10986
11020
  kind: "mutation",
10987
11021
  auth: "admin"
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-BMe3yNz7.js");
6
+ const require_dist = require("../dist-BUX5QyXt.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-CDclcQZB.mjs";
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-DBwHd9PX.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.92",
3
+ "version": "1.2.94",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",