@camstack/addon-export-hap 1.2.88 → 1.2.89

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.
@@ -11269,12 +11269,30 @@ var BackupDestinationInfoSchema = object({
11269
11269
  lastSuccessAt: number().optional(),
11270
11270
  /** Newest-archive size from `manifests.json`, or undefined. */
11271
11271
  lastSuccessSizeBytes: number().optional(),
11272
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
11272
+ /**
11273
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
11274
+ * destination, comma-joined. Absent when no enabled schedule targets it
11275
+ * — a destination nothing is scheduled to write to must not advertise a
11276
+ * cadence (D384). This is never the `backup_destination_policies.cron`
11277
+ * column: that per-location cron has scheduled nothing since 2026-07-28
11278
+ * and reading it made a destination with a DISABLED schedule claim a
11279
+ * nightly run.
11280
+ */
11273
11281
  cron: string().optional(),
11274
- /** ms-epoch of next computed firing for this destination's cron, if any. */
11282
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
11275
11283
  nextRunAt: number().optional(),
11276
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
11277
- lastRunAt: number().optional()
11284
+ /**
11285
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
11286
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
11287
+ * newest archive that actually landed) and `lastError`.
11288
+ */
11289
+ lastAttemptAt: number().optional(),
11290
+ /**
11291
+ * Why the last attempt failed, verbatim. Absent when the last attempt
11292
+ * landed the archive. A destination that has never been written to has
11293
+ * neither this nor `lastAttemptAt`.
11294
+ */
11295
+ lastError: string().optional()
11278
11296
  });
11279
11297
  /**
11280
11298
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -11437,8 +11455,16 @@ var BackupScheduleSchema = object({
11437
11455
  retentionCount: number().int().min(1).max(1e3),
11438
11456
  /** Optional subset of source locations to include; omitted = all. */
11439
11457
  dataSources: array(string()).readonly().optional(),
11440
- /** ms-epoch of last successful run. */
11441
- lastRunAt: number().optional(),
11458
+ /**
11459
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
11460
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
11461
+ * "succeeded" — a run refused by every destination stamps it too.
11462
+ */
11463
+ lastAttemptAt: number().optional(),
11464
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
11465
+ lastSuccessAt: number().optional(),
11466
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
11467
+ lastError: string().optional(),
11442
11468
  /** ms-epoch of next computed firing (read-only, filled on list). */
11443
11469
  nextRunAt: number().optional()
11444
11470
  });
@@ -11487,14 +11513,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
11487
11513
  locationId: string(),
11488
11514
  enabled: boolean(),
11489
11515
  retentionCount: number().int().min(1).max(1e3),
11490
- label: string().optional(),
11491
- /**
11492
- * Per-destination cron expression. Empty string clears the
11493
- * schedule (manual-only). Validated server-side via croner;
11494
- * malformed expressions reject the upsert with an actionable
11495
- * message.
11496
- */
11497
- cron: string().optional()
11516
+ label: string().optional()
11498
11517
  }), _void(), {
11499
11518
  kind: "mutation",
11500
11519
  auth: "admin"
@@ -11257,12 +11257,30 @@ var BackupDestinationInfoSchema = object({
11257
11257
  lastSuccessAt: number().optional(),
11258
11258
  /** Newest-archive size from `manifests.json`, or undefined. */
11259
11259
  lastSuccessSizeBytes: number().optional(),
11260
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
11260
+ /**
11261
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
11262
+ * destination, comma-joined. Absent when no enabled schedule targets it
11263
+ * — a destination nothing is scheduled to write to must not advertise a
11264
+ * cadence (D384). This is never the `backup_destination_policies.cron`
11265
+ * column: that per-location cron has scheduled nothing since 2026-07-28
11266
+ * and reading it made a destination with a DISABLED schedule claim a
11267
+ * nightly run.
11268
+ */
11261
11269
  cron: string().optional(),
11262
- /** ms-epoch of next computed firing for this destination's cron, if any. */
11270
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
11263
11271
  nextRunAt: number().optional(),
11264
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
11265
- lastRunAt: number().optional()
11272
+ /**
11273
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
11274
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
11275
+ * newest archive that actually landed) and `lastError`.
11276
+ */
11277
+ lastAttemptAt: number().optional(),
11278
+ /**
11279
+ * Why the last attempt failed, verbatim. Absent when the last attempt
11280
+ * landed the archive. A destination that has never been written to has
11281
+ * neither this nor `lastAttemptAt`.
11282
+ */
11283
+ lastError: string().optional()
11266
11284
  });
11267
11285
  /**
11268
11286
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -11425,8 +11443,16 @@ var BackupScheduleSchema = object({
11425
11443
  retentionCount: number().int().min(1).max(1e3),
11426
11444
  /** Optional subset of source locations to include; omitted = all. */
11427
11445
  dataSources: array(string()).readonly().optional(),
11428
- /** ms-epoch of last successful run. */
11429
- lastRunAt: number().optional(),
11446
+ /**
11447
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
11448
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
11449
+ * "succeeded" — a run refused by every destination stamps it too.
11450
+ */
11451
+ lastAttemptAt: number().optional(),
11452
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
11453
+ lastSuccessAt: number().optional(),
11454
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
11455
+ lastError: string().optional(),
11430
11456
  /** ms-epoch of next computed firing (read-only, filled on list). */
11431
11457
  nextRunAt: number().optional()
11432
11458
  });
@@ -11475,14 +11501,7 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
11475
11501
  locationId: string(),
11476
11502
  enabled: boolean(),
11477
11503
  retentionCount: number().int().min(1).max(1e3),
11478
- label: string().optional(),
11479
- /**
11480
- * Per-destination cron expression. Empty string clears the
11481
- * schedule (manual-only). Validated server-side via croner;
11482
- * malformed expressions reject the upsert with an actionable
11483
- * message.
11484
- */
11485
- cron: string().optional()
11504
+ label: string().optional()
11486
11505
  }), _void(), {
11487
11506
  kind: "mutation",
11488
11507
  auth: "admin"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.88",
3
+ "version": "1.2.89",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",