@camstack/addon-provider-homeassistant 1.2.93 → 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-14FaSOPJ.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-5-dwtcpP.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
@@ -10771,12 +10771,30 @@ var BackupDestinationInfoSchema = object({
10771
10771
  lastSuccessAt: number().optional(),
10772
10772
  /** Newest-archive size from `manifests.json`, or undefined. */
10773
10773
  lastSuccessSizeBytes: number().optional(),
10774
- /** 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
+ */
10775
10783
  cron: string().optional(),
10776
- /** 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. */
10777
10785
  nextRunAt: number().optional(),
10778
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10779
- 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()
10780
10798
  });
10781
10799
  /**
10782
10800
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10939,8 +10957,16 @@ var BackupScheduleSchema = object({
10939
10957
  retentionCount: number().int().min(1).max(1e3),
10940
10958
  /** Optional subset of source locations to include; omitted = all. */
10941
10959
  dataSources: array(string()).readonly().optional(),
10942
- /** ms-epoch of last successful run. */
10943
- 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(),
10944
10970
  /** ms-epoch of next computed firing (read-only, filled on list). */
10945
10971
  nextRunAt: number().optional()
10946
10972
  });
@@ -10989,14 +11015,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10989
11015
  locationId: string(),
10990
11016
  enabled: boolean(),
10991
11017
  retentionCount: number().int().min(1).max(1e3),
10992
- label: string().optional(),
10993
- /**
10994
- * Per-destination cron expression. Empty string clears the
10995
- * schedule (manual-only). Validated server-side via croner;
10996
- * malformed expressions reject the upsert with an actionable
10997
- * message.
10998
- */
10999
- cron: string().optional()
11018
+ label: string().optional()
11000
11019
  }), _void(), {
11001
11020
  kind: "mutation",
11002
11021
  auth: "admin"
@@ -10771,12 +10771,30 @@ var BackupDestinationInfoSchema = object({
10771
10771
  lastSuccessAt: number().optional(),
10772
10772
  /** Newest-archive size from `manifests.json`, or undefined. */
10773
10773
  lastSuccessSizeBytes: number().optional(),
10774
- /** 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
+ */
10775
10783
  cron: string().optional(),
10776
- /** 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. */
10777
10785
  nextRunAt: number().optional(),
10778
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10779
- 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()
10780
10798
  });
10781
10799
  /**
10782
10800
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -10939,8 +10957,16 @@ var BackupScheduleSchema = object({
10939
10957
  retentionCount: number().int().min(1).max(1e3),
10940
10958
  /** Optional subset of source locations to include; omitted = all. */
10941
10959
  dataSources: array(string()).readonly().optional(),
10942
- /** ms-epoch of last successful run. */
10943
- 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(),
10944
10970
  /** ms-epoch of next computed firing (read-only, filled on list). */
10945
10971
  nextRunAt: number().optional()
10946
10972
  });
@@ -10989,14 +11015,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10989
11015
  locationId: string(),
10990
11016
  enabled: boolean(),
10991
11017
  retentionCount: number().int().min(1).max(1e3),
10992
- label: string().optional(),
10993
- /**
10994
- * Per-destination cron expression. Empty string clears the
10995
- * schedule (manual-only). Validated server-side via croner;
10996
- * malformed expressions reject the upsert with an actionable
10997
- * message.
10998
- */
10999
- cron: string().optional()
11018
+ label: string().optional()
11000
11019
  }), _void(), {
11001
11020
  kind: "mutation",
11002
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-14FaSOPJ.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-5-dwtcpP.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.93",
3
+ "version": "1.2.94",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",