@camstack/addon-agent-ui 1.2.61 → 1.2.62
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/addon.js +119 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -10530,6 +10530,89 @@ var LocationStatSchema = object({
|
|
|
10530
10530
|
fileCount: number(),
|
|
10531
10531
|
present: boolean()
|
|
10532
10532
|
});
|
|
10533
|
+
/** Lifecycle of a backup run. Terminal states: succeeded / failed / cancelled. */
|
|
10534
|
+
var BackupRunStateSchema = _enum([
|
|
10535
|
+
"queued",
|
|
10536
|
+
"running",
|
|
10537
|
+
"succeeded",
|
|
10538
|
+
"failed",
|
|
10539
|
+
"cancelled"
|
|
10540
|
+
]);
|
|
10541
|
+
/**
|
|
10542
|
+
* Where a running backup currently is. `queued` before it starts,
|
|
10543
|
+
* `building` while the tar.gz is being staged, `uploading` during the
|
|
10544
|
+
* per-destination fan-out, `done` once terminal.
|
|
10545
|
+
*/
|
|
10546
|
+
var BackupRunPhaseSchema = _enum([
|
|
10547
|
+
"queued",
|
|
10548
|
+
"building",
|
|
10549
|
+
"uploading",
|
|
10550
|
+
"done"
|
|
10551
|
+
]);
|
|
10552
|
+
/**
|
|
10553
|
+
* Observable state of one backup run — readable WHILE it runs via
|
|
10554
|
+
* `backup.listRuns`. This is what makes the execution queue and
|
|
10555
|
+
* `backup.cancel` usable: the 2026-09-04 incident (two concurrent
|
|
10556
|
+
* multi-GB builds, staging 5.1 GB → 18 GB, load 62) was only
|
|
10557
|
+
* diagnosable with `du` because nothing reported that runs existed or
|
|
10558
|
+
* how large the staged archive had grown.
|
|
10559
|
+
*/
|
|
10560
|
+
var BackupRunSchema = object({
|
|
10561
|
+
/** Stable run id — the handle `backup.cancel` takes. */
|
|
10562
|
+
id: string(),
|
|
10563
|
+
state: BackupRunStateSchema,
|
|
10564
|
+
phase: BackupRunPhaseSchema,
|
|
10565
|
+
/**
|
|
10566
|
+
* Resolved destination location ids. Empty while queued (targets are
|
|
10567
|
+
* resolved when the run starts, against the then-current policies).
|
|
10568
|
+
*/
|
|
10569
|
+
destinationIds: array(string()).readonly(),
|
|
10570
|
+
label: string().optional(),
|
|
10571
|
+
/** ms-epoch when the run was submitted (trigger call / schedule fire). */
|
|
10572
|
+
requestedAt: number(),
|
|
10573
|
+
/** ms-epoch when the run left the queue and started building. */
|
|
10574
|
+
startedAt: number().optional(),
|
|
10575
|
+
/** ms-epoch when the run reached a terminal state. */
|
|
10576
|
+
finishedAt: number().optional(),
|
|
10577
|
+
/** Compressed bytes of the staging archive written so far. */
|
|
10578
|
+
stagedBytes: number(),
|
|
10579
|
+
/** Final staged archive size, once the build phase completes. */
|
|
10580
|
+
archiveSizeBytes: number().optional(),
|
|
10581
|
+
/** Bytes pushed to the destination currently uploading. */
|
|
10582
|
+
uploadedBytes: number(),
|
|
10583
|
+
/** Destinations where the archive fully landed (uploaded + indexed). */
|
|
10584
|
+
completedDestinationIds: array(string()).readonly(),
|
|
10585
|
+
/** Destinations that failed during the fan-out. */
|
|
10586
|
+
failedDestinationIds: array(string()).readonly(),
|
|
10587
|
+
/** Failure message when `state === 'failed'`. */
|
|
10588
|
+
error: string().optional(),
|
|
10589
|
+
/**
|
|
10590
|
+
* 1-based place in the execution queue — 1 = runs next. Present only
|
|
10591
|
+
* while `state === 'queued'`. Stamped by the orchestrator from the
|
|
10592
|
+
* queue's OWN pending order, never derived from timestamps, so the
|
|
10593
|
+
* UI cannot show an order the executor will not honour.
|
|
10594
|
+
*/
|
|
10595
|
+
queuePosition: number().int().min(1).optional()
|
|
10596
|
+
});
|
|
10597
|
+
/**
|
|
10598
|
+
* Result of `backup.trigger`. The call still resolves when the run
|
|
10599
|
+
* terminates (compat with schedule-driven runs and the admin UI), but
|
|
10600
|
+
* it now names the run and says whether it had to WAIT: a trigger that
|
|
10601
|
+
* arrives while another run is in flight is enqueued (or joined onto
|
|
10602
|
+
* an identical already-queued run), never started concurrently.
|
|
10603
|
+
*/
|
|
10604
|
+
var BackupTriggerResultSchema = object({
|
|
10605
|
+
/** The run this trigger mapped to — poll it via `listRuns`, stop it via `cancel`. */
|
|
10606
|
+
runId: string(),
|
|
10607
|
+
/** True when the run waited behind an in-flight run instead of starting immediately. */
|
|
10608
|
+
queued: boolean(),
|
|
10609
|
+
/** True when this trigger was coalesced onto an identical already-queued run. */
|
|
10610
|
+
joined: boolean(),
|
|
10611
|
+
/** True when the run was cancelled before completing every destination. */
|
|
10612
|
+
cancelled: boolean(),
|
|
10613
|
+
/** One entry per destination the archive landed at (partial on cancel). */
|
|
10614
|
+
entries: array(BackupEntrySchema).readonly()
|
|
10615
|
+
});
|
|
10533
10616
|
/**
|
|
10534
10617
|
* A backup schedule — the N:M "entry" that binds one cron cadence to a
|
|
10535
10618
|
* SET of destination locations. Supersedes the per-location cron on
|
|
@@ -10577,7 +10660,10 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
10577
10660
|
* retention (manual runs).
|
|
10578
10661
|
*/
|
|
10579
10662
|
retentionCount: number().int().min(1).max(1e3).optional()
|
|
10580
|
-
}).optional(),
|
|
10663
|
+
}).optional(), BackupTriggerResultSchema, {
|
|
10664
|
+
kind: "mutation",
|
|
10665
|
+
auth: "admin"
|
|
10666
|
+
}), method(_void(), array(BackupRunSchema).readonly(), { auth: "admin" }), method(object({ runId: string() }), object({ cancelled: boolean() }), {
|
|
10581
10667
|
kind: "mutation",
|
|
10582
10668
|
auth: "admin"
|
|
10583
10669
|
}), method(_void(), array(BackupEntrySchema).readonly(), { auth: "admin" }), method(_void(), array(LocationStatSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -11294,6 +11380,14 @@ method(object({
|
|
|
11294
11380
|
}), object({ success: literal(true) }), {
|
|
11295
11381
|
kind: "mutation",
|
|
11296
11382
|
auth: "admin"
|
|
11383
|
+
}), method(object({ deviceId: number().int().nonnegative() }), object({
|
|
11384
|
+
derivedStreamsDeleted: array(string()).readonly(),
|
|
11385
|
+
assignmentsPurged: boolean(),
|
|
11386
|
+
probeSnapshotsDropped: number().int().nonnegative(),
|
|
11387
|
+
rtspTokenRowsDeleted: number().int().nonnegative()
|
|
11388
|
+
}), {
|
|
11389
|
+
kind: "mutation",
|
|
11390
|
+
auth: "admin"
|
|
11297
11391
|
}), method(object({
|
|
11298
11392
|
deviceId: number(),
|
|
11299
11393
|
/** Absent = the LOWEST assigned profile — a notification attachment is
|
|
@@ -29389,6 +29483,12 @@ Object.freeze({
|
|
|
29389
29483
|
addonId: null,
|
|
29390
29484
|
access: "create"
|
|
29391
29485
|
},
|
|
29486
|
+
"backup.cancel": {
|
|
29487
|
+
capName: "backup",
|
|
29488
|
+
capScope: "system",
|
|
29489
|
+
addonId: null,
|
|
29490
|
+
access: "create"
|
|
29491
|
+
},
|
|
29392
29492
|
"backup.delete": {
|
|
29393
29493
|
capName: "backup",
|
|
29394
29494
|
capScope: "system",
|
|
@@ -29431,6 +29531,12 @@ Object.freeze({
|
|
|
29431
29531
|
addonId: null,
|
|
29432
29532
|
access: "view"
|
|
29433
29533
|
},
|
|
29534
|
+
"backup.listRuns": {
|
|
29535
|
+
capName: "backup",
|
|
29536
|
+
capScope: "system",
|
|
29537
|
+
addonId: null,
|
|
29538
|
+
access: "view"
|
|
29539
|
+
},
|
|
29434
29540
|
"backup.listSchedules": {
|
|
29435
29541
|
capName: "backup",
|
|
29436
29542
|
capScope: "system",
|
|
@@ -33997,6 +34103,12 @@ Object.freeze({
|
|
|
33997
34103
|
addonId: null,
|
|
33998
34104
|
access: "create"
|
|
33999
34105
|
},
|
|
34106
|
+
"streamBroker.forgetDeviceHardware": {
|
|
34107
|
+
capName: "stream-broker",
|
|
34108
|
+
capScope: "system",
|
|
34109
|
+
addonId: null,
|
|
34110
|
+
access: "delete"
|
|
34111
|
+
},
|
|
34000
34112
|
"streamBroker.getAllRtspEntries": {
|
|
34001
34113
|
capName: "stream-broker",
|
|
34002
34114
|
capScope: "system",
|
|
@@ -36455,6 +36567,11 @@ Object.freeze({
|
|
|
36455
36567
|
form: "single",
|
|
36456
36568
|
optional: false
|
|
36457
36569
|
}],
|
|
36570
|
+
"streamBroker.forgetDeviceHardware": [{
|
|
36571
|
+
name: "deviceId",
|
|
36572
|
+
form: "single",
|
|
36573
|
+
optional: false
|
|
36574
|
+
}],
|
|
36458
36575
|
"streamBroker.getDeviceAudioMute": [{
|
|
36459
36576
|
name: "deviceId",
|
|
36460
36577
|
form: "single",
|
|
@@ -37213,7 +37330,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
37213
37330
|
capability: adminUiCapability,
|
|
37214
37331
|
provider: {
|
|
37215
37332
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
37216
|
-
getVersion: async () => ({ version: "1.2.
|
|
37333
|
+
getVersion: async () => ({ version: "1.2.62" })
|
|
37217
37334
|
}
|
|
37218
37335
|
}];
|
|
37219
37336
|
}
|