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