@camstack/addon-provider-homematic 1.2.58 → 1.2.60

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
@@ -10536,6 +10536,89 @@ var LocationStatSchema = object({
10536
10536
  fileCount: number(),
10537
10537
  present: boolean()
10538
10538
  });
10539
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10540
+ var BackupRunStateSchema = _enum([
10541
+ "queued",
10542
+ "running",
10543
+ "succeeded",
10544
+ "failed",
10545
+ "cancelled"
10546
+ ]);
10547
+ /**
10548
+ * Where a running backup currently is. `queued` before it starts,
10549
+ * `building` while the tar.gz is being staged, `uploading` during the
10550
+ * per-destination fan-out, `done` once terminal.
10551
+ */
10552
+ var BackupRunPhaseSchema = _enum([
10553
+ "queued",
10554
+ "building",
10555
+ "uploading",
10556
+ "done"
10557
+ ]);
10558
+ /**
10559
+ * Observable state of one backup run — readable WHILE it runs via
10560
+ * `backup.listRuns`. This is what makes the execution queue and
10561
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10562
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10563
+ * diagnosable with `du` because nothing reported that runs existed or
10564
+ * how large the staged archive had grown.
10565
+ */
10566
+ var BackupRunSchema = object({
10567
+ /** Stable run id — the handle `backup.cancel` takes. */
10568
+ id: string(),
10569
+ state: BackupRunStateSchema,
10570
+ phase: BackupRunPhaseSchema,
10571
+ /**
10572
+ * Resolved destination location ids. Empty while queued (targets are
10573
+ * resolved when the run starts, against the then-current policies).
10574
+ */
10575
+ destinationIds: array(string()).readonly(),
10576
+ label: string().optional(),
10577
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10578
+ requestedAt: number(),
10579
+ /** ms-epoch when the run left the queue and started building. */
10580
+ startedAt: number().optional(),
10581
+ /** ms-epoch when the run reached a terminal state. */
10582
+ finishedAt: number().optional(),
10583
+ /** Compressed bytes of the staging archive written so far. */
10584
+ stagedBytes: number(),
10585
+ /** Final staged archive size, once the build phase completes. */
10586
+ archiveSizeBytes: number().optional(),
10587
+ /** Bytes pushed to the destination currently uploading. */
10588
+ uploadedBytes: number(),
10589
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10590
+ completedDestinationIds: array(string()).readonly(),
10591
+ /** Destinations that failed during the fan-out. */
10592
+ failedDestinationIds: array(string()).readonly(),
10593
+ /** Failure message when `state === 'failed'`. */
10594
+ error: string().optional(),
10595
+ /**
10596
+ * 1-based place in the execution queue — 1 = runs next. Present only
10597
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10598
+ * queue's OWN pending order, never derived from timestamps, so the
10599
+ * UI cannot show an order the executor will not honour.
10600
+ */
10601
+ queuePosition: number().int().min(1).optional()
10602
+ });
10603
+ /**
10604
+ * Result of `backup.trigger`. The call still resolves when the run
10605
+ * terminates (compat with schedule-driven runs and the admin UI), but
10606
+ * it now names the run and says whether it had to WAIT: a trigger that
10607
+ * arrives while another run is in flight is enqueued (or joined onto
10608
+ * an identical already-queued run), never started concurrently.
10609
+ */
10610
+ var BackupTriggerResultSchema = object({
10611
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10612
+ runId: string(),
10613
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10614
+ queued: boolean(),
10615
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10616
+ joined: boolean(),
10617
+ /** True when the run was cancelled before completing every destination. */
10618
+ cancelled: boolean(),
10619
+ /** One entry per destination the archive landed at (partial on cancel). */
10620
+ entries: array(BackupEntrySchema).readonly()
10621
+ });
10539
10622
  /**
10540
10623
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10541
10624
  * SET of destination locations. Supersedes the per-location cron on
@@ -10583,7 +10666,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10583
10666
  * retention (manual runs).
10584
10667
  */
10585
10668
  retentionCount: number().int().min(1).max(1e3).optional()
10586
- }).optional(), array(BackupEntrySchema).readonly(), {
10669
+ }).optional(), BackupTriggerResultSchema, {
10670
+ kind: "mutation",
10671
+ auth: "admin"
10672
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10587
10673
  kind: "mutation",
10588
10674
  auth: "admin"
10589
10675
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11349,6 +11435,14 @@ method(object({
11349
11435
  }), object({ success: literal(true) }), {
11350
11436
  kind: "mutation",
11351
11437
  auth: "admin"
11438
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11439
+ derivedStreamsDeleted: array(string()).readonly(),
11440
+ assignmentsPurged: boolean(),
11441
+ probeSnapshotsDropped: number().int().nonnegative(),
11442
+ rtspTokenRowsDeleted: number().int().nonnegative()
11443
+ }), {
11444
+ kind: "mutation",
11445
+ auth: "admin"
11352
11446
  }), method(object({
11353
11447
  deviceId: number(),
11354
11448
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -19258,7 +19352,20 @@ var RecentTracksQueryInput = object({
19258
19352
  projection: TrackProjectionSchema.optional(),
19259
19353
  /** Include stationary-promoted rows (parked objects). Default false: the
19260
19354
  * feed lists passages; parking records live on the stationary registry. */
19261
- includeStationary: boolean().optional()
19355
+ includeStationary: boolean().optional(),
19356
+ /**
19357
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19358
+ *
19359
+ * The same filter `listTracks` takes, because the timeline's class chips must
19360
+ * mean the same thing whether the scope is one camera or twelve. Until this
19361
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19362
+ * while the single-camera path narrowed the read — one filter, two costs.
19363
+ *
19364
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19365
+ * whose class list is unreadable are kept, and the client's rule stays the
19366
+ * exact one.
19367
+ */
19368
+ classes: array(string()).optional()
19262
19369
  });
19263
19370
  var RecentTracksPageSchema = object({
19264
19371
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23428,8 +23535,22 @@ var automationControlCapability = {
23428
23535
  * threshold.
23429
23536
  */
23430
23537
  var BatteryStatusSchema = object({
23431
- /** 0..100 inclusive. Firmware-reported. */
23432
- percentage: number().min(0).max(100),
23538
+ /**
23539
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23540
+ * provider has registered the capability but no reading has landed.
23541
+ *
23542
+ * It is nullable because it was not, and the only value a provider could
23543
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23544
+ * itself at 0% on every start and corrected itself a moment later, which is
23545
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23546
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23547
+ * reading the difference is an alarm.
23548
+ *
23549
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23550
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23551
+ * declines to band a non-finite reading, which is the correct shape.
23552
+ */
23553
+ percentage: number().min(0).max(100).nullable(),
23433
23554
  /**
23434
23555
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23435
23556
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -33190,6 +33311,12 @@ Object.freeze({
33190
33311
  addonId: null,
33191
33312
  access: "create"
33192
33313
  },
33314
+ "backup.cancel": {
33315
+ capName: "backup",
33316
+ capScope: "system",
33317
+ addonId: null,
33318
+ access: "create"
33319
+ },
33193
33320
  "backup.delete": {
33194
33321
  capName: "backup",
33195
33322
  capScope: "system",
@@ -33232,6 +33359,12 @@ Object.freeze({
33232
33359
  addonId: null,
33233
33360
  access: "view"
33234
33361
  },
33362
+ "backup.listRuns": {
33363
+ capName: "backup",
33364
+ capScope: "system",
33365
+ addonId: null,
33366
+ access: "view"
33367
+ },
33235
33368
  "backup.listSchedules": {
33236
33369
  capName: "backup",
33237
33370
  capScope: "system",
@@ -37798,6 +37931,12 @@ Object.freeze({
37798
37931
  addonId: null,
37799
37932
  access: "create"
37800
37933
  },
37934
+ "streamBroker.forgetDeviceHardware": {
37935
+ capName: "stream-broker",
37936
+ capScope: "system",
37937
+ addonId: null,
37938
+ access: "delete"
37939
+ },
37801
37940
  "streamBroker.getAllRtspEntries": {
37802
37941
  capName: "stream-broker",
37803
37942
  capScope: "system",
@@ -40256,6 +40395,11 @@ Object.freeze({
40256
40395
  form: "single",
40257
40396
  optional: false
40258
40397
  }],
40398
+ "streamBroker.forgetDeviceHardware": [{
40399
+ name: "deviceId",
40400
+ form: "single",
40401
+ optional: false
40402
+ }],
40259
40403
  "streamBroker.getDeviceAudioMute": [{
40260
40404
  name: "deviceId",
40261
40405
  form: "single",
package/dist/addon.mjs CHANGED
@@ -10537,6 +10537,89 @@ var LocationStatSchema = object({
10537
10537
  fileCount: number(),
10538
10538
  present: boolean()
10539
10539
  });
10540
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10541
+ var BackupRunStateSchema = _enum([
10542
+ "queued",
10543
+ "running",
10544
+ "succeeded",
10545
+ "failed",
10546
+ "cancelled"
10547
+ ]);
10548
+ /**
10549
+ * Where a running backup currently is. `queued` before it starts,
10550
+ * `building` while the tar.gz is being staged, `uploading` during the
10551
+ * per-destination fan-out, `done` once terminal.
10552
+ */
10553
+ var BackupRunPhaseSchema = _enum([
10554
+ "queued",
10555
+ "building",
10556
+ "uploading",
10557
+ "done"
10558
+ ]);
10559
+ /**
10560
+ * Observable state of one backup run — readable WHILE it runs via
10561
+ * `backup.listRuns`. This is what makes the execution queue and
10562
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10563
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10564
+ * diagnosable with `du` because nothing reported that runs existed or
10565
+ * how large the staged archive had grown.
10566
+ */
10567
+ var BackupRunSchema = object({
10568
+ /** Stable run id — the handle `backup.cancel` takes. */
10569
+ id: string(),
10570
+ state: BackupRunStateSchema,
10571
+ phase: BackupRunPhaseSchema,
10572
+ /**
10573
+ * Resolved destination location ids. Empty while queued (targets are
10574
+ * resolved when the run starts, against the then-current policies).
10575
+ */
10576
+ destinationIds: array(string()).readonly(),
10577
+ label: string().optional(),
10578
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10579
+ requestedAt: number(),
10580
+ /** ms-epoch when the run left the queue and started building. */
10581
+ startedAt: number().optional(),
10582
+ /** ms-epoch when the run reached a terminal state. */
10583
+ finishedAt: number().optional(),
10584
+ /** Compressed bytes of the staging archive written so far. */
10585
+ stagedBytes: number(),
10586
+ /** Final staged archive size, once the build phase completes. */
10587
+ archiveSizeBytes: number().optional(),
10588
+ /** Bytes pushed to the destination currently uploading. */
10589
+ uploadedBytes: number(),
10590
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10591
+ completedDestinationIds: array(string()).readonly(),
10592
+ /** Destinations that failed during the fan-out. */
10593
+ failedDestinationIds: array(string()).readonly(),
10594
+ /** Failure message when `state === 'failed'`. */
10595
+ error: string().optional(),
10596
+ /**
10597
+ * 1-based place in the execution queue — 1 = runs next. Present only
10598
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10599
+ * queue's OWN pending order, never derived from timestamps, so the
10600
+ * UI cannot show an order the executor will not honour.
10601
+ */
10602
+ queuePosition: number().int().min(1).optional()
10603
+ });
10604
+ /**
10605
+ * Result of `backup.trigger`. The call still resolves when the run
10606
+ * terminates (compat with schedule-driven runs and the admin UI), but
10607
+ * it now names the run and says whether it had to WAIT: a trigger that
10608
+ * arrives while another run is in flight is enqueued (or joined onto
10609
+ * an identical already-queued run), never started concurrently.
10610
+ */
10611
+ var BackupTriggerResultSchema = object({
10612
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10613
+ runId: string(),
10614
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10615
+ queued: boolean(),
10616
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10617
+ joined: boolean(),
10618
+ /** True when the run was cancelled before completing every destination. */
10619
+ cancelled: boolean(),
10620
+ /** One entry per destination the archive landed at (partial on cancel). */
10621
+ entries: array(BackupEntrySchema).readonly()
10622
+ });
10540
10623
  /**
10541
10624
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10542
10625
  * SET of destination locations. Supersedes the per-location cron on
@@ -10584,7 +10667,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10584
10667
  * retention (manual runs).
10585
10668
  */
10586
10669
  retentionCount: number().int().min(1).max(1e3).optional()
10587
- }).optional(), array(BackupEntrySchema).readonly(), {
10670
+ }).optional(), BackupTriggerResultSchema, {
10671
+ kind: "mutation",
10672
+ auth: "admin"
10673
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10588
10674
  kind: "mutation",
10589
10675
  auth: "admin"
10590
10676
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11350,6 +11436,14 @@ method(object({
11350
11436
  }), object({ success: literal(true) }), {
11351
11437
  kind: "mutation",
11352
11438
  auth: "admin"
11439
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11440
+ derivedStreamsDeleted: array(string()).readonly(),
11441
+ assignmentsPurged: boolean(),
11442
+ probeSnapshotsDropped: number().int().nonnegative(),
11443
+ rtspTokenRowsDeleted: number().int().nonnegative()
11444
+ }), {
11445
+ kind: "mutation",
11446
+ auth: "admin"
11353
11447
  }), method(object({
11354
11448
  deviceId: number(),
11355
11449
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -19259,7 +19353,20 @@ var RecentTracksQueryInput = object({
19259
19353
  projection: TrackProjectionSchema.optional(),
19260
19354
  /** Include stationary-promoted rows (parked objects). Default false: the
19261
19355
  * feed lists passages; parking records live on the stationary registry. */
19262
- includeStationary: boolean().optional()
19356
+ includeStationary: boolean().optional(),
19357
+ /**
19358
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19359
+ *
19360
+ * The same filter `listTracks` takes, because the timeline's class chips must
19361
+ * mean the same thing whether the scope is one camera or twelve. Until this
19362
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19363
+ * while the single-camera path narrowed the read — one filter, two costs.
19364
+ *
19365
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19366
+ * whose class list is unreadable are kept, and the client's rule stays the
19367
+ * exact one.
19368
+ */
19369
+ classes: array(string()).optional()
19263
19370
  });
19264
19371
  var RecentTracksPageSchema = object({
19265
19372
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23429,8 +23536,22 @@ var automationControlCapability = {
23429
23536
  * threshold.
23430
23537
  */
23431
23538
  var BatteryStatusSchema = object({
23432
- /** 0..100 inclusive. Firmware-reported. */
23433
- percentage: number().min(0).max(100),
23539
+ /**
23540
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23541
+ * provider has registered the capability but no reading has landed.
23542
+ *
23543
+ * It is nullable because it was not, and the only value a provider could
23544
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23545
+ * itself at 0% on every start and corrected itself a moment later, which is
23546
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23547
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23548
+ * reading the difference is an alarm.
23549
+ *
23550
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23551
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23552
+ * declines to band a non-finite reading, which is the correct shape.
23553
+ */
23554
+ percentage: number().min(0).max(100).nullable(),
23434
23555
  /**
23435
23556
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23436
23557
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -33191,6 +33312,12 @@ Object.freeze({
33191
33312
  addonId: null,
33192
33313
  access: "create"
33193
33314
  },
33315
+ "backup.cancel": {
33316
+ capName: "backup",
33317
+ capScope: "system",
33318
+ addonId: null,
33319
+ access: "create"
33320
+ },
33194
33321
  "backup.delete": {
33195
33322
  capName: "backup",
33196
33323
  capScope: "system",
@@ -33233,6 +33360,12 @@ Object.freeze({
33233
33360
  addonId: null,
33234
33361
  access: "view"
33235
33362
  },
33363
+ "backup.listRuns": {
33364
+ capName: "backup",
33365
+ capScope: "system",
33366
+ addonId: null,
33367
+ access: "view"
33368
+ },
33236
33369
  "backup.listSchedules": {
33237
33370
  capName: "backup",
33238
33371
  capScope: "system",
@@ -37799,6 +37932,12 @@ Object.freeze({
37799
37932
  addonId: null,
37800
37933
  access: "create"
37801
37934
  },
37935
+ "streamBroker.forgetDeviceHardware": {
37936
+ capName: "stream-broker",
37937
+ capScope: "system",
37938
+ addonId: null,
37939
+ access: "delete"
37940
+ },
37802
37941
  "streamBroker.getAllRtspEntries": {
37803
37942
  capName: "stream-broker",
37804
37943
  capScope: "system",
@@ -40257,6 +40396,11 @@ Object.freeze({
40257
40396
  form: "single",
40258
40397
  optional: false
40259
40398
  }],
40399
+ "streamBroker.forgetDeviceHardware": [{
40400
+ name: "deviceId",
40401
+ form: "single",
40402
+ optional: false
40403
+ }],
40260
40404
  "streamBroker.getDeviceAudioMute": [{
40261
40405
  name: "deviceId",
40262
40406
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.58",
3
+ "version": "1.2.60",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",