@camstack/addon-decoder-ffmpeg 1.2.57 → 1.2.59

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/index.js CHANGED
@@ -10565,6 +10565,89 @@ var LocationStatSchema = object({
10565
10565
  fileCount: number(),
10566
10566
  present: boolean()
10567
10567
  });
10568
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10569
+ var BackupRunStateSchema = _enum([
10570
+ "queued",
10571
+ "running",
10572
+ "succeeded",
10573
+ "failed",
10574
+ "cancelled"
10575
+ ]);
10576
+ /**
10577
+ * Where a running backup currently is. `queued` before it starts,
10578
+ * `building` while the tar.gz is being staged, `uploading` during the
10579
+ * per-destination fan-out, `done` once terminal.
10580
+ */
10581
+ var BackupRunPhaseSchema = _enum([
10582
+ "queued",
10583
+ "building",
10584
+ "uploading",
10585
+ "done"
10586
+ ]);
10587
+ /**
10588
+ * Observable state of one backup run — readable WHILE it runs via
10589
+ * `backup.listRuns`. This is what makes the execution queue and
10590
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10591
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10592
+ * diagnosable with `du` because nothing reported that runs existed or
10593
+ * how large the staged archive had grown.
10594
+ */
10595
+ var BackupRunSchema = object({
10596
+ /** Stable run id — the handle `backup.cancel` takes. */
10597
+ id: string(),
10598
+ state: BackupRunStateSchema,
10599
+ phase: BackupRunPhaseSchema,
10600
+ /**
10601
+ * Resolved destination location ids. Empty while queued (targets are
10602
+ * resolved when the run starts, against the then-current policies).
10603
+ */
10604
+ destinationIds: array(string()).readonly(),
10605
+ label: string().optional(),
10606
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10607
+ requestedAt: number(),
10608
+ /** ms-epoch when the run left the queue and started building. */
10609
+ startedAt: number().optional(),
10610
+ /** ms-epoch when the run reached a terminal state. */
10611
+ finishedAt: number().optional(),
10612
+ /** Compressed bytes of the staging archive written so far. */
10613
+ stagedBytes: number(),
10614
+ /** Final staged archive size, once the build phase completes. */
10615
+ archiveSizeBytes: number().optional(),
10616
+ /** Bytes pushed to the destination currently uploading. */
10617
+ uploadedBytes: number(),
10618
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10619
+ completedDestinationIds: array(string()).readonly(),
10620
+ /** Destinations that failed during the fan-out. */
10621
+ failedDestinationIds: array(string()).readonly(),
10622
+ /** Failure message when `state === 'failed'`. */
10623
+ error: string().optional(),
10624
+ /**
10625
+ * 1-based place in the execution queue — 1 = runs next. Present only
10626
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10627
+ * queue's OWN pending order, never derived from timestamps, so the
10628
+ * UI cannot show an order the executor will not honour.
10629
+ */
10630
+ queuePosition: number().int().min(1).optional()
10631
+ });
10632
+ /**
10633
+ * Result of `backup.trigger`. The call still resolves when the run
10634
+ * terminates (compat with schedule-driven runs and the admin UI), but
10635
+ * it now names the run and says whether it had to WAIT: a trigger that
10636
+ * arrives while another run is in flight is enqueued (or joined onto
10637
+ * an identical already-queued run), never started concurrently.
10638
+ */
10639
+ var BackupTriggerResultSchema = object({
10640
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10641
+ runId: string(),
10642
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10643
+ queued: boolean(),
10644
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10645
+ joined: boolean(),
10646
+ /** True when the run was cancelled before completing every destination. */
10647
+ cancelled: boolean(),
10648
+ /** One entry per destination the archive landed at (partial on cancel). */
10649
+ entries: array(BackupEntrySchema).readonly()
10650
+ });
10568
10651
  /**
10569
10652
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10570
10653
  * SET of destination locations. Supersedes the per-location cron on
@@ -10612,7 +10695,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10612
10695
  * retention (manual runs).
10613
10696
  */
10614
10697
  retentionCount: number().int().min(1).max(1e3).optional()
10615
- }).optional(), array(BackupEntrySchema).readonly(), {
10698
+ }).optional(), BackupTriggerResultSchema, {
10699
+ kind: "mutation",
10700
+ auth: "admin"
10701
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10616
10702
  kind: "mutation",
10617
10703
  auth: "admin"
10618
10704
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11329,6 +11415,14 @@ method(object({
11329
11415
  }), object({ success: literal(true) }), {
11330
11416
  kind: "mutation",
11331
11417
  auth: "admin"
11418
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11419
+ derivedStreamsDeleted: array(string()).readonly(),
11420
+ assignmentsPurged: boolean(),
11421
+ probeSnapshotsDropped: number().int().nonnegative(),
11422
+ rtspTokenRowsDeleted: number().int().nonnegative()
11423
+ }), {
11424
+ kind: "mutation",
11425
+ auth: "admin"
11332
11426
  }), method(object({
11333
11427
  deviceId: number(),
11334
11428
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -18972,7 +19066,20 @@ var RecentTracksQueryInput = object({
18972
19066
  projection: TrackProjectionSchema.optional(),
18973
19067
  /** Include stationary-promoted rows (parked objects). Default false: the
18974
19068
  * feed lists passages; parking records live on the stationary registry. */
18975
- includeStationary: boolean().optional()
19069
+ includeStationary: boolean().optional(),
19070
+ /**
19071
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19072
+ *
19073
+ * The same filter `listTracks` takes, because the timeline's class chips must
19074
+ * mean the same thing whether the scope is one camera or twelve. Until this
19075
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19076
+ * while the single-camera path narrowed the read — one filter, two costs.
19077
+ *
19078
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19079
+ * whose class list is unreadable are kept, and the client's rule stays the
19080
+ * exact one.
19081
+ */
19082
+ classes: array(string()).optional()
18976
19083
  });
18977
19084
  var RecentTracksPageSchema = object({
18978
19085
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23010,8 +23117,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23010
23117
  * threshold.
23011
23118
  */
23012
23119
  var BatteryStatusSchema = object({
23013
- /** 0..100 inclusive. Firmware-reported. */
23014
- percentage: number().min(0).max(100),
23120
+ /**
23121
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23122
+ * provider has registered the capability but no reading has landed.
23123
+ *
23124
+ * It is nullable because it was not, and the only value a provider could
23125
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23126
+ * itself at 0% on every start and corrected itself a moment later, which is
23127
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23128
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23129
+ * reading the difference is an alarm.
23130
+ *
23131
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23132
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23133
+ * declines to band a non-finite reading, which is the correct shape.
23134
+ */
23135
+ percentage: number().min(0).max(100).nullable(),
23015
23136
  /**
23016
23137
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23017
23138
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -29490,6 +29611,12 @@ Object.freeze({
29490
29611
  addonId: null,
29491
29612
  access: "create"
29492
29613
  },
29614
+ "backup.cancel": {
29615
+ capName: "backup",
29616
+ capScope: "system",
29617
+ addonId: null,
29618
+ access: "create"
29619
+ },
29493
29620
  "backup.delete": {
29494
29621
  capName: "backup",
29495
29622
  capScope: "system",
@@ -29532,6 +29659,12 @@ Object.freeze({
29532
29659
  addonId: null,
29533
29660
  access: "view"
29534
29661
  },
29662
+ "backup.listRuns": {
29663
+ capName: "backup",
29664
+ capScope: "system",
29665
+ addonId: null,
29666
+ access: "view"
29667
+ },
29535
29668
  "backup.listSchedules": {
29536
29669
  capName: "backup",
29537
29670
  capScope: "system",
@@ -34098,6 +34231,12 @@ Object.freeze({
34098
34231
  addonId: null,
34099
34232
  access: "create"
34100
34233
  },
34234
+ "streamBroker.forgetDeviceHardware": {
34235
+ capName: "stream-broker",
34236
+ capScope: "system",
34237
+ addonId: null,
34238
+ access: "delete"
34239
+ },
34101
34240
  "streamBroker.getAllRtspEntries": {
34102
34241
  capName: "stream-broker",
34103
34242
  capScope: "system",
@@ -36556,6 +36695,11 @@ Object.freeze({
36556
36695
  form: "single",
36557
36696
  optional: false
36558
36697
  }],
36698
+ "streamBroker.forgetDeviceHardware": [{
36699
+ name: "deviceId",
36700
+ form: "single",
36701
+ optional: false
36702
+ }],
36559
36703
  "streamBroker.getDeviceAudioMute": [{
36560
36704
  name: "deviceId",
36561
36705
  form: "single",
package/dist/index.mjs CHANGED
@@ -10561,6 +10561,89 @@ var LocationStatSchema = object({
10561
10561
  fileCount: number(),
10562
10562
  present: boolean()
10563
10563
  });
10564
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10565
+ var BackupRunStateSchema = _enum([
10566
+ "queued",
10567
+ "running",
10568
+ "succeeded",
10569
+ "failed",
10570
+ "cancelled"
10571
+ ]);
10572
+ /**
10573
+ * Where a running backup currently is. `queued` before it starts,
10574
+ * `building` while the tar.gz is being staged, `uploading` during the
10575
+ * per-destination fan-out, `done` once terminal.
10576
+ */
10577
+ var BackupRunPhaseSchema = _enum([
10578
+ "queued",
10579
+ "building",
10580
+ "uploading",
10581
+ "done"
10582
+ ]);
10583
+ /**
10584
+ * Observable state of one backup run — readable WHILE it runs via
10585
+ * `backup.listRuns`. This is what makes the execution queue and
10586
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10587
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10588
+ * diagnosable with `du` because nothing reported that runs existed or
10589
+ * how large the staged archive had grown.
10590
+ */
10591
+ var BackupRunSchema = object({
10592
+ /** Stable run id — the handle `backup.cancel` takes. */
10593
+ id: string(),
10594
+ state: BackupRunStateSchema,
10595
+ phase: BackupRunPhaseSchema,
10596
+ /**
10597
+ * Resolved destination location ids. Empty while queued (targets are
10598
+ * resolved when the run starts, against the then-current policies).
10599
+ */
10600
+ destinationIds: array(string()).readonly(),
10601
+ label: string().optional(),
10602
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10603
+ requestedAt: number(),
10604
+ /** ms-epoch when the run left the queue and started building. */
10605
+ startedAt: number().optional(),
10606
+ /** ms-epoch when the run reached a terminal state. */
10607
+ finishedAt: number().optional(),
10608
+ /** Compressed bytes of the staging archive written so far. */
10609
+ stagedBytes: number(),
10610
+ /** Final staged archive size, once the build phase completes. */
10611
+ archiveSizeBytes: number().optional(),
10612
+ /** Bytes pushed to the destination currently uploading. */
10613
+ uploadedBytes: number(),
10614
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10615
+ completedDestinationIds: array(string()).readonly(),
10616
+ /** Destinations that failed during the fan-out. */
10617
+ failedDestinationIds: array(string()).readonly(),
10618
+ /** Failure message when `state === 'failed'`. */
10619
+ error: string().optional(),
10620
+ /**
10621
+ * 1-based place in the execution queue — 1 = runs next. Present only
10622
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10623
+ * queue's OWN pending order, never derived from timestamps, so the
10624
+ * UI cannot show an order the executor will not honour.
10625
+ */
10626
+ queuePosition: number().int().min(1).optional()
10627
+ });
10628
+ /**
10629
+ * Result of `backup.trigger`. The call still resolves when the run
10630
+ * terminates (compat with schedule-driven runs and the admin UI), but
10631
+ * it now names the run and says whether it had to WAIT: a trigger that
10632
+ * arrives while another run is in flight is enqueued (or joined onto
10633
+ * an identical already-queued run), never started concurrently.
10634
+ */
10635
+ var BackupTriggerResultSchema = object({
10636
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10637
+ runId: string(),
10638
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10639
+ queued: boolean(),
10640
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10641
+ joined: boolean(),
10642
+ /** True when the run was cancelled before completing every destination. */
10643
+ cancelled: boolean(),
10644
+ /** One entry per destination the archive landed at (partial on cancel). */
10645
+ entries: array(BackupEntrySchema).readonly()
10646
+ });
10564
10647
  /**
10565
10648
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10566
10649
  * SET of destination locations. Supersedes the per-location cron on
@@ -10608,7 +10691,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10608
10691
  * retention (manual runs).
10609
10692
  */
10610
10693
  retentionCount: number().int().min(1).max(1e3).optional()
10611
- }).optional(), array(BackupEntrySchema).readonly(), {
10694
+ }).optional(), BackupTriggerResultSchema, {
10695
+ kind: "mutation",
10696
+ auth: "admin"
10697
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10612
10698
  kind: "mutation",
10613
10699
  auth: "admin"
10614
10700
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11325,6 +11411,14 @@ method(object({
11325
11411
  }), object({ success: literal(true) }), {
11326
11412
  kind: "mutation",
11327
11413
  auth: "admin"
11414
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11415
+ derivedStreamsDeleted: array(string()).readonly(),
11416
+ assignmentsPurged: boolean(),
11417
+ probeSnapshotsDropped: number().int().nonnegative(),
11418
+ rtspTokenRowsDeleted: number().int().nonnegative()
11419
+ }), {
11420
+ kind: "mutation",
11421
+ auth: "admin"
11328
11422
  }), method(object({
11329
11423
  deviceId: number(),
11330
11424
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -18968,7 +19062,20 @@ var RecentTracksQueryInput = object({
18968
19062
  projection: TrackProjectionSchema.optional(),
18969
19063
  /** Include stationary-promoted rows (parked objects). Default false: the
18970
19064
  * feed lists passages; parking records live on the stationary registry. */
18971
- includeStationary: boolean().optional()
19065
+ includeStationary: boolean().optional(),
19066
+ /**
19067
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19068
+ *
19069
+ * The same filter `listTracks` takes, because the timeline's class chips must
19070
+ * mean the same thing whether the scope is one camera or twelve. Until this
19071
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19072
+ * while the single-camera path narrowed the read — one filter, two costs.
19073
+ *
19074
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19075
+ * whose class list is unreadable are kept, and the client's rule stays the
19076
+ * exact one.
19077
+ */
19078
+ classes: array(string()).optional()
18972
19079
  });
18973
19080
  var RecentTracksPageSchema = object({
18974
19081
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23006,8 +23113,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23006
23113
  * threshold.
23007
23114
  */
23008
23115
  var BatteryStatusSchema = object({
23009
- /** 0..100 inclusive. Firmware-reported. */
23010
- percentage: number().min(0).max(100),
23116
+ /**
23117
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23118
+ * provider has registered the capability but no reading has landed.
23119
+ *
23120
+ * It is nullable because it was not, and the only value a provider could
23121
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23122
+ * itself at 0% on every start and corrected itself a moment later, which is
23123
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23124
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23125
+ * reading the difference is an alarm.
23126
+ *
23127
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23128
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23129
+ * declines to band a non-finite reading, which is the correct shape.
23130
+ */
23131
+ percentage: number().min(0).max(100).nullable(),
23011
23132
  /**
23012
23133
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23013
23134
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -29486,6 +29607,12 @@ Object.freeze({
29486
29607
  addonId: null,
29487
29608
  access: "create"
29488
29609
  },
29610
+ "backup.cancel": {
29611
+ capName: "backup",
29612
+ capScope: "system",
29613
+ addonId: null,
29614
+ access: "create"
29615
+ },
29489
29616
  "backup.delete": {
29490
29617
  capName: "backup",
29491
29618
  capScope: "system",
@@ -29528,6 +29655,12 @@ Object.freeze({
29528
29655
  addonId: null,
29529
29656
  access: "view"
29530
29657
  },
29658
+ "backup.listRuns": {
29659
+ capName: "backup",
29660
+ capScope: "system",
29661
+ addonId: null,
29662
+ access: "view"
29663
+ },
29531
29664
  "backup.listSchedules": {
29532
29665
  capName: "backup",
29533
29666
  capScope: "system",
@@ -34094,6 +34227,12 @@ Object.freeze({
34094
34227
  addonId: null,
34095
34228
  access: "create"
34096
34229
  },
34230
+ "streamBroker.forgetDeviceHardware": {
34231
+ capName: "stream-broker",
34232
+ capScope: "system",
34233
+ addonId: null,
34234
+ access: "delete"
34235
+ },
34097
34236
  "streamBroker.getAllRtspEntries": {
34098
34237
  capName: "stream-broker",
34099
34238
  capScope: "system",
@@ -36552,6 +36691,11 @@ Object.freeze({
36552
36691
  form: "single",
36553
36692
  optional: false
36554
36693
  }],
36694
+ "streamBroker.forgetDeviceHardware": [{
36695
+ name: "deviceId",
36696
+ form: "single",
36697
+ optional: false
36698
+ }],
36555
36699
  "streamBroker.getDeviceAudioMute": [{
36556
36700
  name: "deviceId",
36557
36701
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-ffmpeg",
3
- "version": "1.2.57",
3
+ "version": "1.2.59",
4
4
  "description": "Standalone ffmpeg-subprocess decoder fallback addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",