@camstack/addon-provider-unifi 0.2.92 → 0.2.94
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 +96 -5
- package/dist/addon.mjs +96 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -16470,6 +16470,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16470
16470
|
"addon-crash-loop",
|
|
16471
16471
|
"addon-update-available",
|
|
16472
16472
|
"server-update-available",
|
|
16473
|
+
"wrapper-update-available",
|
|
16473
16474
|
"alarm-triggered",
|
|
16474
16475
|
"alarm-armed",
|
|
16475
16476
|
"alarm-disarmed",
|
|
@@ -19915,7 +19916,17 @@ var EventDensityBucketSchema = object({
|
|
|
19915
19916
|
bucketStart: number(),
|
|
19916
19917
|
motion: number().int(),
|
|
19917
19918
|
object: number().int(),
|
|
19918
|
-
audio: number().int()
|
|
19919
|
+
audio: number().int(),
|
|
19920
|
+
/**
|
|
19921
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19922
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19923
|
+
*
|
|
19924
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19925
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19926
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19927
|
+
* the count-on-a-level-meter did.
|
|
19928
|
+
*/
|
|
19929
|
+
audioDbfs: number().optional()
|
|
19919
19930
|
});
|
|
19920
19931
|
/**
|
|
19921
19932
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22016,6 +22027,53 @@ var ImageContractSchema = object({
|
|
|
22016
22027
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22017
22028
|
message: string()
|
|
22018
22029
|
});
|
|
22030
|
+
/**
|
|
22031
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22032
|
+
* produced it.
|
|
22033
|
+
*
|
|
22034
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22035
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22036
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22037
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22038
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22039
|
+
*/
|
|
22040
|
+
var WrapperIdentitySchema = object({
|
|
22041
|
+
kind: _enum([
|
|
22042
|
+
"docker",
|
|
22043
|
+
"electron",
|
|
22044
|
+
"native",
|
|
22045
|
+
"contradictory",
|
|
22046
|
+
"unknown"
|
|
22047
|
+
]),
|
|
22048
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22049
|
+
evidence: array(object({
|
|
22050
|
+
/** Which probe this row reports. */
|
|
22051
|
+
fact: _enum([
|
|
22052
|
+
"dockerenv-file",
|
|
22053
|
+
"proc-1-cgroup",
|
|
22054
|
+
"platform",
|
|
22055
|
+
"electron-app-version-env"
|
|
22056
|
+
]),
|
|
22057
|
+
/**
|
|
22058
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22059
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22060
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22061
|
+
*/
|
|
22062
|
+
mode: _enum(["observed", "declared"]),
|
|
22063
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22064
|
+
holds: boolean(),
|
|
22065
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22066
|
+
detail: string()
|
|
22067
|
+
})),
|
|
22068
|
+
/**
|
|
22069
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22070
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22071
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22072
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22073
|
+
* known there.
|
|
22074
|
+
*/
|
|
22075
|
+
currentVersion: string().nullable()
|
|
22076
|
+
});
|
|
22019
22077
|
var ServerRollbackInfoSchema = object({
|
|
22020
22078
|
/** The version that failed (or was manually rolled back). */
|
|
22021
22079
|
fromVersion: string(),
|
|
@@ -22057,7 +22115,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22057
22115
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22058
22116
|
* version skew: an older provider's payload simply omits it.
|
|
22059
22117
|
*/
|
|
22060
|
-
imageContract: ImageContractSchema.optional()
|
|
22118
|
+
imageContract: ImageContractSchema.optional(),
|
|
22119
|
+
/**
|
|
22120
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22121
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22122
|
+
* absent wrapper is unknown — never `native`.
|
|
22123
|
+
*/
|
|
22124
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22061
22125
|
});
|
|
22062
22126
|
var ServerUpdateCheckResultSchema = object({
|
|
22063
22127
|
packageName: string(),
|
|
@@ -29947,7 +30011,23 @@ var RecordingRangeSchema = object({
|
|
|
29947
30011
|
});
|
|
29948
30012
|
var RecordingAvailabilitySchema = object({
|
|
29949
30013
|
deviceId: number(),
|
|
29950
|
-
ranges: array(RecordingRangeSchema)
|
|
30014
|
+
ranges: array(RecordingRangeSchema),
|
|
30015
|
+
/**
|
|
30016
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30017
|
+
* describes (D433).
|
|
30018
|
+
*
|
|
30019
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30020
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30021
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30022
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30023
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30024
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30025
|
+
* UI could not see it.
|
|
30026
|
+
*
|
|
30027
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30028
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30029
|
+
*/
|
|
30030
|
+
profilesWithFootage: array(string())
|
|
29951
30031
|
});
|
|
29952
30032
|
var RecordingDaysSchema = object({
|
|
29953
30033
|
deviceId: number(),
|
|
@@ -29973,7 +30053,11 @@ var RecordingDaysSchema = object({
|
|
|
29973
30053
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29974
30054
|
deviceId: number(),
|
|
29975
30055
|
read: _enum(["read", "unreadable"]),
|
|
29976
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30056
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30057
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30058
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30059
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30060
|
+
profilesWithFootage: array(string()).readonly()
|
|
29977
30061
|
});
|
|
29978
30062
|
/**
|
|
29979
30063
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30263,7 +30347,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30263
30347
|
method(object({
|
|
30264
30348
|
deviceId: number(),
|
|
30265
30349
|
fromMs: number(),
|
|
30266
|
-
toMs: number()
|
|
30350
|
+
toMs: number(),
|
|
30351
|
+
/**
|
|
30352
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30353
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30354
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30355
|
+
* for.
|
|
30356
|
+
*/
|
|
30357
|
+
profile: string().optional()
|
|
30267
30358
|
}), RecordingAvailabilitySchema, {
|
|
30268
30359
|
kind: "query",
|
|
30269
30360
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -16469,6 +16469,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16469
16469
|
"addon-crash-loop",
|
|
16470
16470
|
"addon-update-available",
|
|
16471
16471
|
"server-update-available",
|
|
16472
|
+
"wrapper-update-available",
|
|
16472
16473
|
"alarm-triggered",
|
|
16473
16474
|
"alarm-armed",
|
|
16474
16475
|
"alarm-disarmed",
|
|
@@ -19914,7 +19915,17 @@ var EventDensityBucketSchema = object({
|
|
|
19914
19915
|
bucketStart: number(),
|
|
19915
19916
|
motion: number().int(),
|
|
19916
19917
|
object: number().int(),
|
|
19917
|
-
audio: number().int()
|
|
19918
|
+
audio: number().int(),
|
|
19919
|
+
/**
|
|
19920
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19921
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19922
|
+
*
|
|
19923
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19924
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19925
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19926
|
+
* the count-on-a-level-meter did.
|
|
19927
|
+
*/
|
|
19928
|
+
audioDbfs: number().optional()
|
|
19918
19929
|
});
|
|
19919
19930
|
/**
|
|
19920
19931
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22015,6 +22026,53 @@ var ImageContractSchema = object({
|
|
|
22015
22026
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22016
22027
|
message: string()
|
|
22017
22028
|
});
|
|
22029
|
+
/**
|
|
22030
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22031
|
+
* produced it.
|
|
22032
|
+
*
|
|
22033
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22034
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22035
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22036
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22037
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22038
|
+
*/
|
|
22039
|
+
var WrapperIdentitySchema = object({
|
|
22040
|
+
kind: _enum([
|
|
22041
|
+
"docker",
|
|
22042
|
+
"electron",
|
|
22043
|
+
"native",
|
|
22044
|
+
"contradictory",
|
|
22045
|
+
"unknown"
|
|
22046
|
+
]),
|
|
22047
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22048
|
+
evidence: array(object({
|
|
22049
|
+
/** Which probe this row reports. */
|
|
22050
|
+
fact: _enum([
|
|
22051
|
+
"dockerenv-file",
|
|
22052
|
+
"proc-1-cgroup",
|
|
22053
|
+
"platform",
|
|
22054
|
+
"electron-app-version-env"
|
|
22055
|
+
]),
|
|
22056
|
+
/**
|
|
22057
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22058
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22059
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22060
|
+
*/
|
|
22061
|
+
mode: _enum(["observed", "declared"]),
|
|
22062
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22063
|
+
holds: boolean(),
|
|
22064
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22065
|
+
detail: string()
|
|
22066
|
+
})),
|
|
22067
|
+
/**
|
|
22068
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22069
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22070
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22071
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22072
|
+
* known there.
|
|
22073
|
+
*/
|
|
22074
|
+
currentVersion: string().nullable()
|
|
22075
|
+
});
|
|
22018
22076
|
var ServerRollbackInfoSchema = object({
|
|
22019
22077
|
/** The version that failed (or was manually rolled back). */
|
|
22020
22078
|
fromVersion: string(),
|
|
@@ -22056,7 +22114,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22056
22114
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22057
22115
|
* version skew: an older provider's payload simply omits it.
|
|
22058
22116
|
*/
|
|
22059
|
-
imageContract: ImageContractSchema.optional()
|
|
22117
|
+
imageContract: ImageContractSchema.optional(),
|
|
22118
|
+
/**
|
|
22119
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22120
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22121
|
+
* absent wrapper is unknown — never `native`.
|
|
22122
|
+
*/
|
|
22123
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22060
22124
|
});
|
|
22061
22125
|
var ServerUpdateCheckResultSchema = object({
|
|
22062
22126
|
packageName: string(),
|
|
@@ -29946,7 +30010,23 @@ var RecordingRangeSchema = object({
|
|
|
29946
30010
|
});
|
|
29947
30011
|
var RecordingAvailabilitySchema = object({
|
|
29948
30012
|
deviceId: number(),
|
|
29949
|
-
ranges: array(RecordingRangeSchema)
|
|
30013
|
+
ranges: array(RecordingRangeSchema),
|
|
30014
|
+
/**
|
|
30015
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30016
|
+
* describes (D433).
|
|
30017
|
+
*
|
|
30018
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30019
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30020
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30021
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30022
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30023
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30024
|
+
* UI could not see it.
|
|
30025
|
+
*
|
|
30026
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30027
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30028
|
+
*/
|
|
30029
|
+
profilesWithFootage: array(string())
|
|
29950
30030
|
});
|
|
29951
30031
|
var RecordingDaysSchema = object({
|
|
29952
30032
|
deviceId: number(),
|
|
@@ -29972,7 +30052,11 @@ var RecordingDaysSchema = object({
|
|
|
29972
30052
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29973
30053
|
deviceId: number(),
|
|
29974
30054
|
read: _enum(["read", "unreadable"]),
|
|
29975
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30055
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30056
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30057
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30058
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30059
|
+
profilesWithFootage: array(string()).readonly()
|
|
29976
30060
|
});
|
|
29977
30061
|
/**
|
|
29978
30062
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30262,7 +30346,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30262
30346
|
method(object({
|
|
30263
30347
|
deviceId: number(),
|
|
30264
30348
|
fromMs: number(),
|
|
30265
|
-
toMs: number()
|
|
30349
|
+
toMs: number(),
|
|
30350
|
+
/**
|
|
30351
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30352
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30353
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30354
|
+
* for.
|
|
30355
|
+
*/
|
|
30356
|
+
profile: string().optional()
|
|
30266
30357
|
}), RecordingAvailabilitySchema, {
|
|
30267
30358
|
kind: "query",
|
|
30268
30359
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.94",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|