@camstack/addon-provider-dreame 0.2.76 → 0.2.78

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
@@ -60624,13 +60624,28 @@ var RecordingBandSchema = object({
60624
60624
  end: string().regex(HHMM),
60625
60625
  mode: RecordingBandModeSchema,
60626
60626
  triggers: RecordingBandTriggersSchema.optional(),
60627
+ /**
60628
+ * RETIRED (D381). A band no longer carries a pre-buffer of its own.
60629
+ *
60630
+ * It was the retroactive KEEP bound — which already-written segments survive
60631
+ * a trigger — and it had to be at least as wide as the widest pre-roll the
60632
+ * broker could serve, or the gate would delete the seconds the ring had just
60633
+ * handed the writer. That "at least as wide as" is the tell: it was a second
60634
+ * expression of the broker's retention, in different units, in a different
60635
+ * addon, with an invariant the operator had to maintain by hand. The keep
60636
+ * bound is now derived from the one prebuffer ceiling and there is nothing
60637
+ * left to configure here.
60638
+ *
60639
+ * The key survives in the SHAPE so a config written before that record still
60640
+ * parses and can be migrated deliberately — `RecordingBandSchema` is not
60641
+ * strict, so simply deleting it would strip an operator's value in silence on
60642
+ * the next save (the failure D380 came one commit from shipping). Nothing
60643
+ * reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
60644
+ */
60627
60645
  preBufferSec: number().min(0).optional(),
60628
60646
  postBufferSec: number().min(0).optional()
60629
60647
  });
60630
- ({
60631
- preBufferSec: 15,
60632
- postBufferSec: 30
60633
- }).postBufferSec * 1e3;
60648
+ ({ postBufferSec: 30 }).postBufferSec * 1e3;
60634
60649
  /**
60635
60650
  * Per-device retention overrides. Every field is optional; an unset or `0`
60636
60651
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -63207,12 +63222,30 @@ var BackupDestinationInfoSchema = object({
63207
63222
  lastSuccessAt: number().optional(),
63208
63223
  /** Newest-archive size from `manifests.json`, or undefined. */
63209
63224
  lastSuccessSizeBytes: number().optional(),
63210
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
63225
+ /**
63226
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
63227
+ * destination, comma-joined. Absent when no enabled schedule targets it
63228
+ * — a destination nothing is scheduled to write to must not advertise a
63229
+ * cadence (D384). This is never the `backup_destination_policies.cron`
63230
+ * column: that per-location cron has scheduled nothing since 2026-07-28
63231
+ * and reading it made a destination with a DISABLED schedule claim a
63232
+ * nightly run.
63233
+ */
63211
63234
  cron: string().optional(),
63212
- /** ms-epoch of next computed firing for this destination's cron, if any. */
63235
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
63213
63236
  nextRunAt: number().optional(),
63214
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
63215
- lastRunAt: number().optional()
63237
+ /**
63238
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
63239
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
63240
+ * newest archive that actually landed) and `lastError`.
63241
+ */
63242
+ lastAttemptAt: number().optional(),
63243
+ /**
63244
+ * Why the last attempt failed, verbatim. Absent when the last attempt
63245
+ * landed the archive. A destination that has never been written to has
63246
+ * neither this nor `lastAttemptAt`.
63247
+ */
63248
+ lastError: string().optional()
63216
63249
  });
63217
63250
  /**
63218
63251
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -63375,8 +63408,16 @@ var BackupScheduleSchema = object({
63375
63408
  retentionCount: number().int().min(1).max(1e3),
63376
63409
  /** Optional subset of source locations to include; omitted = all. */
63377
63410
  dataSources: array(string()).readonly().optional(),
63378
- /** ms-epoch of last successful run. */
63379
- lastRunAt: number().optional(),
63411
+ /**
63412
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
63413
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
63414
+ * "succeeded" — a run refused by every destination stamps it too.
63415
+ */
63416
+ lastAttemptAt: number().optional(),
63417
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
63418
+ lastSuccessAt: number().optional(),
63419
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
63420
+ lastError: string().optional(),
63380
63421
  /** ms-epoch of next computed firing (read-only, filled on list). */
63381
63422
  nextRunAt: number().optional()
63382
63423
  });
@@ -63425,14 +63466,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
63425
63466
  locationId: string(),
63426
63467
  enabled: boolean(),
63427
63468
  retentionCount: number().int().min(1).max(1e3),
63428
- label: string().optional(),
63429
- /**
63430
- * Per-destination cron expression. Empty string clears the
63431
- * schedule (manual-only). Validated server-side via croner;
63432
- * malformed expressions reject the upsert with an actionable
63433
- * message.
63434
- */
63435
- cron: string().optional()
63469
+ label: string().optional()
63436
63470
  }), _void(), {
63437
63471
  kind: "mutation",
63438
63472
  auth: "admin"
package/dist/addon.mjs CHANGED
@@ -60621,13 +60621,28 @@ var RecordingBandSchema = object({
60621
60621
  end: string().regex(HHMM),
60622
60622
  mode: RecordingBandModeSchema,
60623
60623
  triggers: RecordingBandTriggersSchema.optional(),
60624
+ /**
60625
+ * RETIRED (D381). A band no longer carries a pre-buffer of its own.
60626
+ *
60627
+ * It was the retroactive KEEP bound — which already-written segments survive
60628
+ * a trigger — and it had to be at least as wide as the widest pre-roll the
60629
+ * broker could serve, or the gate would delete the seconds the ring had just
60630
+ * handed the writer. That "at least as wide as" is the tell: it was a second
60631
+ * expression of the broker's retention, in different units, in a different
60632
+ * addon, with an invariant the operator had to maintain by hand. The keep
60633
+ * bound is now derived from the one prebuffer ceiling and there is nothing
60634
+ * left to configure here.
60635
+ *
60636
+ * The key survives in the SHAPE so a config written before that record still
60637
+ * parses and can be migrated deliberately — `RecordingBandSchema` is not
60638
+ * strict, so simply deleting it would strip an operator's value in silence on
60639
+ * the next save (the failure D380 came one commit from shipping). Nothing
60640
+ * reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
60641
+ */
60624
60642
  preBufferSec: number().min(0).optional(),
60625
60643
  postBufferSec: number().min(0).optional()
60626
60644
  });
60627
- ({
60628
- preBufferSec: 15,
60629
- postBufferSec: 30
60630
- }).postBufferSec * 1e3;
60645
+ ({ postBufferSec: 30 }).postBufferSec * 1e3;
60631
60646
  /**
60632
60647
  * Per-device retention overrides. Every field is optional; an unset or `0`
60633
60648
  * value inherits the node-wide recorder default. Only footage-lifetime limits
@@ -63204,12 +63219,30 @@ var BackupDestinationInfoSchema = object({
63204
63219
  lastSuccessAt: number().optional(),
63205
63220
  /** Newest-archive size from `manifests.json`, or undefined. */
63206
63221
  lastSuccessSizeBytes: number().optional(),
63207
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
63222
+ /**
63223
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
63224
+ * destination, comma-joined. Absent when no enabled schedule targets it
63225
+ * — a destination nothing is scheduled to write to must not advertise a
63226
+ * cadence (D384). This is never the `backup_destination_policies.cron`
63227
+ * column: that per-location cron has scheduled nothing since 2026-07-28
63228
+ * and reading it made a destination with a DISABLED schedule claim a
63229
+ * nightly run.
63230
+ */
63208
63231
  cron: string().optional(),
63209
- /** ms-epoch of next computed firing for this destination's cron, if any. */
63232
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
63210
63233
  nextRunAt: number().optional(),
63211
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
63212
- lastRunAt: number().optional()
63234
+ /**
63235
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
63236
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
63237
+ * newest archive that actually landed) and `lastError`.
63238
+ */
63239
+ lastAttemptAt: number().optional(),
63240
+ /**
63241
+ * Why the last attempt failed, verbatim. Absent when the last attempt
63242
+ * landed the archive. A destination that has never been written to has
63243
+ * neither this nor `lastAttemptAt`.
63244
+ */
63245
+ lastError: string().optional()
63213
63246
  });
63214
63247
  /**
63215
63248
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -63372,8 +63405,16 @@ var BackupScheduleSchema = object({
63372
63405
  retentionCount: number().int().min(1).max(1e3),
63373
63406
  /** Optional subset of source locations to include; omitted = all. */
63374
63407
  dataSources: array(string()).readonly().optional(),
63375
- /** ms-epoch of last successful run. */
63376
- lastRunAt: number().optional(),
63408
+ /**
63409
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
63410
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
63411
+ * "succeeded" — a run refused by every destination stamps it too.
63412
+ */
63413
+ lastAttemptAt: number().optional(),
63414
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
63415
+ lastSuccessAt: number().optional(),
63416
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
63417
+ lastError: string().optional(),
63377
63418
  /** ms-epoch of next computed firing (read-only, filled on list). */
63378
63419
  nextRunAt: number().optional()
63379
63420
  });
@@ -63422,14 +63463,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
63422
63463
  locationId: string(),
63423
63464
  enabled: boolean(),
63424
63465
  retentionCount: number().int().min(1).max(1e3),
63425
- label: string().optional(),
63426
- /**
63427
- * Per-destination cron expression. Empty string clears the
63428
- * schedule (manual-only). Validated server-side via croner;
63429
- * malformed expressions reject the upsert with an actionable
63430
- * message.
63431
- */
63432
- cron: string().optional()
63466
+ label: string().optional()
63433
63467
  }), _void(), {
63434
63468
  kind: "mutation",
63435
63469
  auth: "admin"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.76",
3
+ "version": "0.2.78",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",