@camstack/addon-agent-ui 1.2.97 → 1.2.99
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 +97 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -16145,6 +16145,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16145
16145
|
"addon-crash-loop",
|
|
16146
16146
|
"addon-update-available",
|
|
16147
16147
|
"server-update-available",
|
|
16148
|
+
"wrapper-update-available",
|
|
16148
16149
|
"alarm-triggered",
|
|
16149
16150
|
"alarm-armed",
|
|
16150
16151
|
"alarm-disarmed",
|
|
@@ -19550,7 +19551,17 @@ var EventDensityBucketSchema = object({
|
|
|
19550
19551
|
bucketStart: number(),
|
|
19551
19552
|
motion: number().int(),
|
|
19552
19553
|
object: number().int(),
|
|
19553
|
-
audio: number().int()
|
|
19554
|
+
audio: number().int(),
|
|
19555
|
+
/**
|
|
19556
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19557
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19558
|
+
*
|
|
19559
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19560
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19561
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19562
|
+
* the count-on-a-level-meter did.
|
|
19563
|
+
*/
|
|
19564
|
+
audioDbfs: number().optional()
|
|
19554
19565
|
});
|
|
19555
19566
|
/**
|
|
19556
19567
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21651,6 +21662,53 @@ var ImageContractSchema = object({
|
|
|
21651
21662
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21652
21663
|
message: string()
|
|
21653
21664
|
});
|
|
21665
|
+
/**
|
|
21666
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21667
|
+
* produced it.
|
|
21668
|
+
*
|
|
21669
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21670
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21671
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21672
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21673
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21674
|
+
*/
|
|
21675
|
+
var WrapperIdentitySchema = object({
|
|
21676
|
+
kind: _enum([
|
|
21677
|
+
"docker",
|
|
21678
|
+
"electron",
|
|
21679
|
+
"native",
|
|
21680
|
+
"contradictory",
|
|
21681
|
+
"unknown"
|
|
21682
|
+
]),
|
|
21683
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21684
|
+
evidence: array(object({
|
|
21685
|
+
/** Which probe this row reports. */
|
|
21686
|
+
fact: _enum([
|
|
21687
|
+
"dockerenv-file",
|
|
21688
|
+
"proc-1-cgroup",
|
|
21689
|
+
"platform",
|
|
21690
|
+
"electron-app-version-env"
|
|
21691
|
+
]),
|
|
21692
|
+
/**
|
|
21693
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21694
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21695
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21696
|
+
*/
|
|
21697
|
+
mode: _enum(["observed", "declared"]),
|
|
21698
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21699
|
+
holds: boolean(),
|
|
21700
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21701
|
+
detail: string()
|
|
21702
|
+
})),
|
|
21703
|
+
/**
|
|
21704
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21705
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21706
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21707
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21708
|
+
* known there.
|
|
21709
|
+
*/
|
|
21710
|
+
currentVersion: string().nullable()
|
|
21711
|
+
});
|
|
21654
21712
|
var ServerRollbackInfoSchema = object({
|
|
21655
21713
|
/** The version that failed (or was manually rolled back). */
|
|
21656
21714
|
fromVersion: string(),
|
|
@@ -21692,7 +21750,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21692
21750
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21693
21751
|
* version skew: an older provider's payload simply omits it.
|
|
21694
21752
|
*/
|
|
21695
|
-
imageContract: ImageContractSchema.optional()
|
|
21753
|
+
imageContract: ImageContractSchema.optional(),
|
|
21754
|
+
/**
|
|
21755
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
21756
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
21757
|
+
* absent wrapper is unknown — never `native`.
|
|
21758
|
+
*/
|
|
21759
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21696
21760
|
});
|
|
21697
21761
|
var ServerUpdateCheckResultSchema = object({
|
|
21698
21762
|
packageName: string(),
|
|
@@ -27717,7 +27781,23 @@ var RecordingRangeSchema = object({
|
|
|
27717
27781
|
});
|
|
27718
27782
|
var RecordingAvailabilitySchema = object({
|
|
27719
27783
|
deviceId: number(),
|
|
27720
|
-
ranges: array(RecordingRangeSchema)
|
|
27784
|
+
ranges: array(RecordingRangeSchema),
|
|
27785
|
+
/**
|
|
27786
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
27787
|
+
* describes (D433).
|
|
27788
|
+
*
|
|
27789
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
27790
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
27791
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
27792
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
27793
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
27794
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
27795
|
+
* UI could not see it.
|
|
27796
|
+
*
|
|
27797
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
27798
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
27799
|
+
*/
|
|
27800
|
+
profilesWithFootage: array(string())
|
|
27721
27801
|
});
|
|
27722
27802
|
var RecordingDaysSchema = object({
|
|
27723
27803
|
deviceId: number(),
|
|
@@ -27743,7 +27823,11 @@ var RecordingDaysSchema = object({
|
|
|
27743
27823
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
27744
27824
|
deviceId: number(),
|
|
27745
27825
|
read: _enum(["read", "unreadable"]),
|
|
27746
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
27826
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
27827
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
27828
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
27829
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
27830
|
+
profilesWithFootage: array(string()).readonly()
|
|
27747
27831
|
});
|
|
27748
27832
|
/**
|
|
27749
27833
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28033,7 +28117,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28033
28117
|
method(object({
|
|
28034
28118
|
deviceId: number(),
|
|
28035
28119
|
fromMs: number(),
|
|
28036
|
-
toMs: number()
|
|
28120
|
+
toMs: number(),
|
|
28121
|
+
/**
|
|
28122
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28123
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28124
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28125
|
+
* for.
|
|
28126
|
+
*/
|
|
28127
|
+
profile: string().optional()
|
|
28037
28128
|
}), RecordingAvailabilitySchema, {
|
|
28038
28129
|
kind: "query",
|
|
28039
28130
|
auth: "protected"
|
|
@@ -38664,7 +38755,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
38664
38755
|
capability: adminUiCapability,
|
|
38665
38756
|
provider: {
|
|
38666
38757
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
38667
|
-
getVersion: async () => ({ version: "1.2.
|
|
38758
|
+
getVersion: async () => ({ version: "1.2.99" })
|
|
38668
38759
|
}
|
|
38669
38760
|
}];
|
|
38670
38761
|
}
|