@camstack/addon-decoder-nodeav 1.2.58 → 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 +118 -1
- package/dist/index.mjs +118 -1
- package/package.json +1 -1
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(),
|
|
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
|
|
@@ -29516,6 +29610,12 @@ Object.freeze({
|
|
|
29516
29610
|
addonId: null,
|
|
29517
29611
|
access: "create"
|
|
29518
29612
|
},
|
|
29613
|
+
"backup.cancel": {
|
|
29614
|
+
capName: "backup",
|
|
29615
|
+
capScope: "system",
|
|
29616
|
+
addonId: null,
|
|
29617
|
+
access: "create"
|
|
29618
|
+
},
|
|
29519
29619
|
"backup.delete": {
|
|
29520
29620
|
capName: "backup",
|
|
29521
29621
|
capScope: "system",
|
|
@@ -29558,6 +29658,12 @@ Object.freeze({
|
|
|
29558
29658
|
addonId: null,
|
|
29559
29659
|
access: "view"
|
|
29560
29660
|
},
|
|
29661
|
+
"backup.listRuns": {
|
|
29662
|
+
capName: "backup",
|
|
29663
|
+
capScope: "system",
|
|
29664
|
+
addonId: null,
|
|
29665
|
+
access: "view"
|
|
29666
|
+
},
|
|
29561
29667
|
"backup.listSchedules": {
|
|
29562
29668
|
capName: "backup",
|
|
29563
29669
|
capScope: "system",
|
|
@@ -34124,6 +34230,12 @@ Object.freeze({
|
|
|
34124
34230
|
addonId: null,
|
|
34125
34231
|
access: "create"
|
|
34126
34232
|
},
|
|
34233
|
+
"streamBroker.forgetDeviceHardware": {
|
|
34234
|
+
capName: "stream-broker",
|
|
34235
|
+
capScope: "system",
|
|
34236
|
+
addonId: null,
|
|
34237
|
+
access: "delete"
|
|
34238
|
+
},
|
|
34127
34239
|
"streamBroker.getAllRtspEntries": {
|
|
34128
34240
|
capName: "stream-broker",
|
|
34129
34241
|
capScope: "system",
|
|
@@ -36582,6 +36694,11 @@ Object.freeze({
|
|
|
36582
36694
|
form: "single",
|
|
36583
36695
|
optional: false
|
|
36584
36696
|
}],
|
|
36697
|
+
"streamBroker.forgetDeviceHardware": [{
|
|
36698
|
+
name: "deviceId",
|
|
36699
|
+
form: "single",
|
|
36700
|
+
optional: false
|
|
36701
|
+
}],
|
|
36585
36702
|
"streamBroker.getDeviceAudioMute": [{
|
|
36586
36703
|
name: "deviceId",
|
|
36587
36704
|
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(),
|
|
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
|
|
@@ -29512,6 +29606,12 @@ Object.freeze({
|
|
|
29512
29606
|
addonId: null,
|
|
29513
29607
|
access: "create"
|
|
29514
29608
|
},
|
|
29609
|
+
"backup.cancel": {
|
|
29610
|
+
capName: "backup",
|
|
29611
|
+
capScope: "system",
|
|
29612
|
+
addonId: null,
|
|
29613
|
+
access: "create"
|
|
29614
|
+
},
|
|
29515
29615
|
"backup.delete": {
|
|
29516
29616
|
capName: "backup",
|
|
29517
29617
|
capScope: "system",
|
|
@@ -29554,6 +29654,12 @@ Object.freeze({
|
|
|
29554
29654
|
addonId: null,
|
|
29555
29655
|
access: "view"
|
|
29556
29656
|
},
|
|
29657
|
+
"backup.listRuns": {
|
|
29658
|
+
capName: "backup",
|
|
29659
|
+
capScope: "system",
|
|
29660
|
+
addonId: null,
|
|
29661
|
+
access: "view"
|
|
29662
|
+
},
|
|
29557
29663
|
"backup.listSchedules": {
|
|
29558
29664
|
capName: "backup",
|
|
29559
29665
|
capScope: "system",
|
|
@@ -34120,6 +34226,12 @@ Object.freeze({
|
|
|
34120
34226
|
addonId: null,
|
|
34121
34227
|
access: "create"
|
|
34122
34228
|
},
|
|
34229
|
+
"streamBroker.forgetDeviceHardware": {
|
|
34230
|
+
capName: "stream-broker",
|
|
34231
|
+
capScope: "system",
|
|
34232
|
+
addonId: null,
|
|
34233
|
+
access: "delete"
|
|
34234
|
+
},
|
|
34123
34235
|
"streamBroker.getAllRtspEntries": {
|
|
34124
34236
|
capName: "stream-broker",
|
|
34125
34237
|
capScope: "system",
|
|
@@ -36578,6 +36690,11 @@ Object.freeze({
|
|
|
36578
36690
|
form: "single",
|
|
36579
36691
|
optional: false
|
|
36580
36692
|
}],
|
|
36693
|
+
"streamBroker.forgetDeviceHardware": [{
|
|
36694
|
+
name: "deviceId",
|
|
36695
|
+
form: "single",
|
|
36696
|
+
optional: false
|
|
36697
|
+
}],
|
|
36581
36698
|
"streamBroker.getDeviceAudioMute": [{
|
|
36582
36699
|
name: "deviceId",
|
|
36583
36700
|
form: "single",
|