@camstack/addon-decoder-ffmpeg 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/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
@@ -12631,7 +12725,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12631
12725
  id: string(),
12632
12726
  name: string(),
12633
12727
  type: string()
12634
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12728
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12729
+ kind: "mutation",
12730
+ timeoutMs: 3 * 6e4
12731
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12635
12732
  kind: "mutation",
12636
12733
  auth: "admin"
12637
12734
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12912,7 +13009,8 @@ method(object({
12912
13009
  targetId: number()
12913
13010
  }), MigrateDeviceResultSchema, {
12914
13011
  kind: "mutation",
12915
- auth: "admin"
13012
+ auth: "admin",
13013
+ timeoutMs: 12 * 6e4
12916
13014
  }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
12917
13015
  deviceId: number(),
12918
13016
  name: string()
@@ -29517,6 +29615,12 @@ Object.freeze({
29517
29615
  addonId: null,
29518
29616
  access: "create"
29519
29617
  },
29618
+ "backup.cancel": {
29619
+ capName: "backup",
29620
+ capScope: "system",
29621
+ addonId: null,
29622
+ access: "create"
29623
+ },
29520
29624
  "backup.delete": {
29521
29625
  capName: "backup",
29522
29626
  capScope: "system",
@@ -29559,6 +29663,12 @@ Object.freeze({
29559
29663
  addonId: null,
29560
29664
  access: "view"
29561
29665
  },
29666
+ "backup.listRuns": {
29667
+ capName: "backup",
29668
+ capScope: "system",
29669
+ addonId: null,
29670
+ access: "view"
29671
+ },
29562
29672
  "backup.listSchedules": {
29563
29673
  capName: "backup",
29564
29674
  capScope: "system",
@@ -30759,6 +30869,12 @@ Object.freeze({
30759
30869
  addonId: null,
30760
30870
  access: "view"
30761
30871
  },
30872
+ "deviceProvider.reloadDevice": {
30873
+ capName: "device-provider",
30874
+ capScope: "system",
30875
+ addonId: null,
30876
+ access: "create"
30877
+ },
30762
30878
  "deviceProvider.start": {
30763
30879
  capName: "device-provider",
30764
30880
  capScope: "system",
@@ -34125,6 +34241,12 @@ Object.freeze({
34125
34241
  addonId: null,
34126
34242
  access: "create"
34127
34243
  },
34244
+ "streamBroker.forgetDeviceHardware": {
34245
+ capName: "stream-broker",
34246
+ capScope: "system",
34247
+ addonId: null,
34248
+ access: "delete"
34249
+ },
34128
34250
  "streamBroker.getAllRtspEntries": {
34129
34251
  capName: "stream-broker",
34130
34252
  capScope: "system",
@@ -36583,6 +36705,11 @@ Object.freeze({
36583
36705
  form: "single",
36584
36706
  optional: false
36585
36707
  }],
36708
+ "streamBroker.forgetDeviceHardware": [{
36709
+ name: "deviceId",
36710
+ form: "single",
36711
+ optional: false
36712
+ }],
36586
36713
  "streamBroker.getDeviceAudioMute": [{
36587
36714
  name: "deviceId",
36588
36715
  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
@@ -12627,7 +12721,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12627
12721
  id: string(),
12628
12722
  name: string(),
12629
12723
  type: string()
12630
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12724
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12725
+ kind: "mutation",
12726
+ timeoutMs: 3 * 6e4
12727
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12631
12728
  kind: "mutation",
12632
12729
  auth: "admin"
12633
12730
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12908,7 +13005,8 @@ method(object({
12908
13005
  targetId: number()
12909
13006
  }), MigrateDeviceResultSchema, {
12910
13007
  kind: "mutation",
12911
- auth: "admin"
13008
+ auth: "admin",
13009
+ timeoutMs: 12 * 6e4
12912
13010
  }), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
12913
13011
  deviceId: number(),
12914
13012
  name: string()
@@ -29513,6 +29611,12 @@ Object.freeze({
29513
29611
  addonId: null,
29514
29612
  access: "create"
29515
29613
  },
29614
+ "backup.cancel": {
29615
+ capName: "backup",
29616
+ capScope: "system",
29617
+ addonId: null,
29618
+ access: "create"
29619
+ },
29516
29620
  "backup.delete": {
29517
29621
  capName: "backup",
29518
29622
  capScope: "system",
@@ -29555,6 +29659,12 @@ Object.freeze({
29555
29659
  addonId: null,
29556
29660
  access: "view"
29557
29661
  },
29662
+ "backup.listRuns": {
29663
+ capName: "backup",
29664
+ capScope: "system",
29665
+ addonId: null,
29666
+ access: "view"
29667
+ },
29558
29668
  "backup.listSchedules": {
29559
29669
  capName: "backup",
29560
29670
  capScope: "system",
@@ -30755,6 +30865,12 @@ Object.freeze({
30755
30865
  addonId: null,
30756
30866
  access: "view"
30757
30867
  },
30868
+ "deviceProvider.reloadDevice": {
30869
+ capName: "device-provider",
30870
+ capScope: "system",
30871
+ addonId: null,
30872
+ access: "create"
30873
+ },
30758
30874
  "deviceProvider.start": {
30759
30875
  capName: "device-provider",
30760
30876
  capScope: "system",
@@ -34121,6 +34237,12 @@ Object.freeze({
34121
34237
  addonId: null,
34122
34238
  access: "create"
34123
34239
  },
34240
+ "streamBroker.forgetDeviceHardware": {
34241
+ capName: "stream-broker",
34242
+ capScope: "system",
34243
+ addonId: null,
34244
+ access: "delete"
34245
+ },
34124
34246
  "streamBroker.getAllRtspEntries": {
34125
34247
  capName: "stream-broker",
34126
34248
  capScope: "system",
@@ -36579,6 +36701,11 @@ Object.freeze({
36579
36701
  form: "single",
36580
36702
  optional: false
36581
36703
  }],
36704
+ "streamBroker.forgetDeviceHardware": [{
36705
+ name: "deviceId",
36706
+ form: "single",
36707
+ optional: false
36708
+ }],
36582
36709
  "streamBroker.getDeviceAudioMute": [{
36583
36710
  name: "deviceId",
36584
36711
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-ffmpeg",
3
- "version": "1.2.58",
3
+ "version": "1.2.60",
4
4
  "description": "Standalone ffmpeg-subprocess decoder fallback addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",