@camstack/addon-decoder-nodeav 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
@@ -10564,6 +10564,89 @@ var LocationStatSchema = object({
10564
10564
  fileCount: number(),
10565
10565
  present: boolean()
10566
10566
  });
10567
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10568
+ var BackupRunStateSchema = _enum([
10569
+ "queued",
10570
+ "running",
10571
+ "succeeded",
10572
+ "failed",
10573
+ "cancelled"
10574
+ ]);
10575
+ /**
10576
+ * Where a running backup currently is. `queued` before it starts,
10577
+ * `building` while the tar.gz is being staged, `uploading` during the
10578
+ * per-destination fan-out, `done` once terminal.
10579
+ */
10580
+ var BackupRunPhaseSchema = _enum([
10581
+ "queued",
10582
+ "building",
10583
+ "uploading",
10584
+ "done"
10585
+ ]);
10586
+ /**
10587
+ * Observable state of one backup run — readable WHILE it runs via
10588
+ * `backup.listRuns`. This is what makes the execution queue and
10589
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10590
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10591
+ * diagnosable with `du` because nothing reported that runs existed or
10592
+ * how large the staged archive had grown.
10593
+ */
10594
+ var BackupRunSchema = object({
10595
+ /** Stable run id — the handle `backup.cancel` takes. */
10596
+ id: string(),
10597
+ state: BackupRunStateSchema,
10598
+ phase: BackupRunPhaseSchema,
10599
+ /**
10600
+ * Resolved destination location ids. Empty while queued (targets are
10601
+ * resolved when the run starts, against the then-current policies).
10602
+ */
10603
+ destinationIds: array(string()).readonly(),
10604
+ label: string().optional(),
10605
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10606
+ requestedAt: number(),
10607
+ /** ms-epoch when the run left the queue and started building. */
10608
+ startedAt: number().optional(),
10609
+ /** ms-epoch when the run reached a terminal state. */
10610
+ finishedAt: number().optional(),
10611
+ /** Compressed bytes of the staging archive written so far. */
10612
+ stagedBytes: number(),
10613
+ /** Final staged archive size, once the build phase completes. */
10614
+ archiveSizeBytes: number().optional(),
10615
+ /** Bytes pushed to the destination currently uploading. */
10616
+ uploadedBytes: number(),
10617
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10618
+ completedDestinationIds: array(string()).readonly(),
10619
+ /** Destinations that failed during the fan-out. */
10620
+ failedDestinationIds: array(string()).readonly(),
10621
+ /** Failure message when `state === 'failed'`. */
10622
+ error: string().optional(),
10623
+ /**
10624
+ * 1-based place in the execution queue — 1 = runs next. Present only
10625
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10626
+ * queue's OWN pending order, never derived from timestamps, so the
10627
+ * UI cannot show an order the executor will not honour.
10628
+ */
10629
+ queuePosition: number().int().min(1).optional()
10630
+ });
10631
+ /**
10632
+ * Result of `backup.trigger`. The call still resolves when the run
10633
+ * terminates (compat with schedule-driven runs and the admin UI), but
10634
+ * it now names the run and says whether it had to WAIT: a trigger that
10635
+ * arrives while another run is in flight is enqueued (or joined onto
10636
+ * an identical already-queued run), never started concurrently.
10637
+ */
10638
+ var BackupTriggerResultSchema = object({
10639
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10640
+ runId: string(),
10641
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10642
+ queued: boolean(),
10643
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10644
+ joined: boolean(),
10645
+ /** True when the run was cancelled before completing every destination. */
10646
+ cancelled: boolean(),
10647
+ /** One entry per destination the archive landed at (partial on cancel). */
10648
+ entries: array(BackupEntrySchema).readonly()
10649
+ });
10567
10650
  /**
10568
10651
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10569
10652
  * SET of destination locations. Supersedes the per-location cron on
@@ -10611,7 +10694,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10611
10694
  * retention (manual runs).
10612
10695
  */
10613
10696
  retentionCount: number().int().min(1).max(1e3).optional()
10614
- }).optional(), array(BackupEntrySchema).readonly(), {
10697
+ }).optional(), BackupTriggerResultSchema, {
10698
+ kind: "mutation",
10699
+ auth: "admin"
10700
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10615
10701
  kind: "mutation",
10616
10702
  auth: "admin"
10617
10703
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11328,6 +11414,14 @@ method(object({
11328
11414
  }), object({ success: literal(true) }), {
11329
11415
  kind: "mutation",
11330
11416
  auth: "admin"
11417
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11418
+ derivedStreamsDeleted: array(string()).readonly(),
11419
+ assignmentsPurged: boolean(),
11420
+ probeSnapshotsDropped: number().int().nonnegative(),
11421
+ rtspTokenRowsDeleted: number().int().nonnegative()
11422
+ }), {
11423
+ kind: "mutation",
11424
+ auth: "admin"
11331
11425
  }), method(object({
11332
11426
  deviceId: number(),
11333
11427
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -12630,7 +12724,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12630
12724
  id: string(),
12631
12725
  name: string(),
12632
12726
  type: string()
12633
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12727
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12728
+ kind: "mutation",
12729
+ timeoutMs: 3 * 6e4
12730
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12634
12731
  kind: "mutation",
12635
12732
  auth: "admin"
12636
12733
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12911,7 +13008,8 @@ method(object({
12911
13008
  targetId: number()
12912
13009
  }), MigrateDeviceResultSchema, {
12913
13010
  kind: "mutation",
12914
- auth: "admin"
13011
+ auth: "admin",
13012
+ timeoutMs: 12 * 6e4
12915
13013
  }), 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({
12916
13014
  deviceId: number(),
12917
13015
  name: string()
@@ -29516,6 +29614,12 @@ Object.freeze({
29516
29614
  addonId: null,
29517
29615
  access: "create"
29518
29616
  },
29617
+ "backup.cancel": {
29618
+ capName: "backup",
29619
+ capScope: "system",
29620
+ addonId: null,
29621
+ access: "create"
29622
+ },
29519
29623
  "backup.delete": {
29520
29624
  capName: "backup",
29521
29625
  capScope: "system",
@@ -29558,6 +29662,12 @@ Object.freeze({
29558
29662
  addonId: null,
29559
29663
  access: "view"
29560
29664
  },
29665
+ "backup.listRuns": {
29666
+ capName: "backup",
29667
+ capScope: "system",
29668
+ addonId: null,
29669
+ access: "view"
29670
+ },
29561
29671
  "backup.listSchedules": {
29562
29672
  capName: "backup",
29563
29673
  capScope: "system",
@@ -30758,6 +30868,12 @@ Object.freeze({
30758
30868
  addonId: null,
30759
30869
  access: "view"
30760
30870
  },
30871
+ "deviceProvider.reloadDevice": {
30872
+ capName: "device-provider",
30873
+ capScope: "system",
30874
+ addonId: null,
30875
+ access: "create"
30876
+ },
30761
30877
  "deviceProvider.start": {
30762
30878
  capName: "device-provider",
30763
30879
  capScope: "system",
@@ -34124,6 +34240,12 @@ Object.freeze({
34124
34240
  addonId: null,
34125
34241
  access: "create"
34126
34242
  },
34243
+ "streamBroker.forgetDeviceHardware": {
34244
+ capName: "stream-broker",
34245
+ capScope: "system",
34246
+ addonId: null,
34247
+ access: "delete"
34248
+ },
34127
34249
  "streamBroker.getAllRtspEntries": {
34128
34250
  capName: "stream-broker",
34129
34251
  capScope: "system",
@@ -36582,6 +36704,11 @@ Object.freeze({
36582
36704
  form: "single",
36583
36705
  optional: false
36584
36706
  }],
36707
+ "streamBroker.forgetDeviceHardware": [{
36708
+ name: "deviceId",
36709
+ form: "single",
36710
+ optional: false
36711
+ }],
36585
36712
  "streamBroker.getDeviceAudioMute": [{
36586
36713
  name: "deviceId",
36587
36714
  form: "single",
package/dist/index.mjs CHANGED
@@ -10560,6 +10560,89 @@ var LocationStatSchema = object({
10560
10560
  fileCount: number(),
10561
10561
  present: boolean()
10562
10562
  });
10563
+ /** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
10564
+ var BackupRunStateSchema = _enum([
10565
+ "queued",
10566
+ "running",
10567
+ "succeeded",
10568
+ "failed",
10569
+ "cancelled"
10570
+ ]);
10571
+ /**
10572
+ * Where a running backup currently is. `queued` before it starts,
10573
+ * `building` while the tar.gz is being staged, `uploading` during the
10574
+ * per-destination fan-out, `done` once terminal.
10575
+ */
10576
+ var BackupRunPhaseSchema = _enum([
10577
+ "queued",
10578
+ "building",
10579
+ "uploading",
10580
+ "done"
10581
+ ]);
10582
+ /**
10583
+ * Observable state of one backup run — readable WHILE it runs via
10584
+ * `backup.listRuns`. This is what makes the execution queue and
10585
+ * `backup.cancel` usable: the 2026-09-04 incident (two concurrent
10586
+ * multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
10587
+ * diagnosable with `du` because nothing reported that runs existed or
10588
+ * how large the staged archive had grown.
10589
+ */
10590
+ var BackupRunSchema = object({
10591
+ /** Stable run id — the handle `backup.cancel` takes. */
10592
+ id: string(),
10593
+ state: BackupRunStateSchema,
10594
+ phase: BackupRunPhaseSchema,
10595
+ /**
10596
+ * Resolved destination location ids. Empty while queued (targets are
10597
+ * resolved when the run starts, against the then-current policies).
10598
+ */
10599
+ destinationIds: array(string()).readonly(),
10600
+ label: string().optional(),
10601
+ /** ms-epoch when the run was submitted (trigger call / schedule fire). */
10602
+ requestedAt: number(),
10603
+ /** ms-epoch when the run left the queue and started building. */
10604
+ startedAt: number().optional(),
10605
+ /** ms-epoch when the run reached a terminal state. */
10606
+ finishedAt: number().optional(),
10607
+ /** Compressed bytes of the staging archive written so far. */
10608
+ stagedBytes: number(),
10609
+ /** Final staged archive size, once the build phase completes. */
10610
+ archiveSizeBytes: number().optional(),
10611
+ /** Bytes pushed to the destination currently uploading. */
10612
+ uploadedBytes: number(),
10613
+ /** Destinations where the archive fully landed (uploaded + indexed). */
10614
+ completedDestinationIds: array(string()).readonly(),
10615
+ /** Destinations that failed during the fan-out. */
10616
+ failedDestinationIds: array(string()).readonly(),
10617
+ /** Failure message when `state === 'failed'`. */
10618
+ error: string().optional(),
10619
+ /**
10620
+ * 1-based place in the execution queue — 1 = runs next. Present only
10621
+ * while `state === 'queued'`. Stamped by the orchestrator from the
10622
+ * queue's OWN pending order, never derived from timestamps, so the
10623
+ * UI cannot show an order the executor will not honour.
10624
+ */
10625
+ queuePosition: number().int().min(1).optional()
10626
+ });
10627
+ /**
10628
+ * Result of `backup.trigger`. The call still resolves when the run
10629
+ * terminates (compat with schedule-driven runs and the admin UI), but
10630
+ * it now names the run and says whether it had to WAIT: a trigger that
10631
+ * arrives while another run is in flight is enqueued (or joined onto
10632
+ * an identical already-queued run), never started concurrently.
10633
+ */
10634
+ var BackupTriggerResultSchema = object({
10635
+ /** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
10636
+ runId: string(),
10637
+ /** True when the run waited behind an in-flight run instead of starting immediately. */
10638
+ queued: boolean(),
10639
+ /** True when this trigger was coalesced onto an identical already-queued run. */
10640
+ joined: boolean(),
10641
+ /** True when the run was cancelled before completing every destination. */
10642
+ cancelled: boolean(),
10643
+ /** One entry per destination the archive landed at (partial on cancel). */
10644
+ entries: array(BackupEntrySchema).readonly()
10645
+ });
10563
10646
  /**
10564
10647
  * A backup schedule — the N:M "entry" that binds one cron cadence to a
10565
10648
  * SET of destination locations. Supersedes the per-location cron on
@@ -10607,7 +10690,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
10607
10690
  * retention (manual runs).
10608
10691
  */
10609
10692
  retentionCount: number().int().min(1).max(1e3).optional()
10610
- }).optional(), array(BackupEntrySchema).readonly(), {
10693
+ }).optional(), BackupTriggerResultSchema, {
10694
+ kind: "mutation",
10695
+ auth: "admin"
10696
+ }), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
10611
10697
  kind: "mutation",
10612
10698
  auth: "admin"
10613
10699
  }), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
@@ -11324,6 +11410,14 @@ method(object({
11324
11410
  }), object({ success: literal(true) }), {
11325
11411
  kind: "mutation",
11326
11412
  auth: "admin"
11413
+ }), method(object({ deviceId: number().int().nonnegative() }), object({
11414
+ derivedStreamsDeleted: array(string()).readonly(),
11415
+ assignmentsPurged: boolean(),
11416
+ probeSnapshotsDropped: number().int().nonnegative(),
11417
+ rtspTokenRowsDeleted: number().int().nonnegative()
11418
+ }), {
11419
+ kind: "mutation",
11420
+ auth: "admin"
11327
11421
  }), method(object({
11328
11422
  deviceId: number(),
11329
11423
  /** Absent = the LOWEST assigned profile — a notification attachment is
@@ -12626,7 +12720,10 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12626
12720
  id: string(),
12627
12721
  name: string(),
12628
12722
  type: string()
12629
- }))), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12723
+ }))), method(object({ stableId: string() }), object({ deviceId: number() }), {
12724
+ kind: "mutation",
12725
+ timeoutMs: 3 * 6e4
12726
+ }), method(object({}), boolean()), method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
12630
12727
  kind: "mutation",
12631
12728
  auth: "admin"
12632
12729
  }), method(object({}), CreationSchemaOutputSchema), method(object({}), object({ deviceType: _enum(DeviceType).nullable() })), method(object({ candidate: DiscoveryCandidateSchema }), DeviceSummarySchema, {
@@ -12907,7 +13004,8 @@ method(object({
12907
13004
  targetId: number()
12908
13005
  }), MigrateDeviceResultSchema, {
12909
13006
  kind: "mutation",
12910
- auth: "admin"
13007
+ auth: "admin",
13008
+ timeoutMs: 12 * 6e4
12911
13009
  }), 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({
12912
13010
  deviceId: number(),
12913
13011
  name: string()
@@ -29512,6 +29610,12 @@ Object.freeze({
29512
29610
  addonId: null,
29513
29611
  access: "create"
29514
29612
  },
29613
+ "backup.cancel": {
29614
+ capName: "backup",
29615
+ capScope: "system",
29616
+ addonId: null,
29617
+ access: "create"
29618
+ },
29515
29619
  "backup.delete": {
29516
29620
  capName: "backup",
29517
29621
  capScope: "system",
@@ -29554,6 +29658,12 @@ Object.freeze({
29554
29658
  addonId: null,
29555
29659
  access: "view"
29556
29660
  },
29661
+ "backup.listRuns": {
29662
+ capName: "backup",
29663
+ capScope: "system",
29664
+ addonId: null,
29665
+ access: "view"
29666
+ },
29557
29667
  "backup.listSchedules": {
29558
29668
  capName: "backup",
29559
29669
  capScope: "system",
@@ -30754,6 +30864,12 @@ Object.freeze({
30754
30864
  addonId: null,
30755
30865
  access: "view"
30756
30866
  },
30867
+ "deviceProvider.reloadDevice": {
30868
+ capName: "device-provider",
30869
+ capScope: "system",
30870
+ addonId: null,
30871
+ access: "create"
30872
+ },
30757
30873
  "deviceProvider.start": {
30758
30874
  capName: "device-provider",
30759
30875
  capScope: "system",
@@ -34120,6 +34236,12 @@ Object.freeze({
34120
34236
  addonId: null,
34121
34237
  access: "create"
34122
34238
  },
34239
+ "streamBroker.forgetDeviceHardware": {
34240
+ capName: "stream-broker",
34241
+ capScope: "system",
34242
+ addonId: null,
34243
+ access: "delete"
34244
+ },
34123
34245
  "streamBroker.getAllRtspEntries": {
34124
34246
  capName: "stream-broker",
34125
34247
  capScope: "system",
@@ -36578,6 +36700,11 @@ Object.freeze({
36578
36700
  form: "single",
36579
36701
  optional: false
36580
36702
  }],
36703
+ "streamBroker.forgetDeviceHardware": [{
36704
+ name: "deviceId",
36705
+ form: "single",
36706
+ optional: false
36707
+ }],
36581
36708
  "streamBroker.getDeviceAudioMute": [{
36582
36709
  name: "deviceId",
36583
36710
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.58",
3
+ "version": "1.2.60",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",