@camstack/addon-provider-rademacher 0.2.91 → 0.2.93
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
|
@@ -17455,6 +17455,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17455
17455
|
"addon-crash-loop",
|
|
17456
17456
|
"addon-update-available",
|
|
17457
17457
|
"server-update-available",
|
|
17458
|
+
"wrapper-update-available",
|
|
17458
17459
|
"alarm-triggered",
|
|
17459
17460
|
"alarm-armed",
|
|
17460
17461
|
"alarm-disarmed",
|
|
@@ -20900,7 +20901,17 @@ var EventDensityBucketSchema = object({
|
|
|
20900
20901
|
bucketStart: number(),
|
|
20901
20902
|
motion: number().int(),
|
|
20902
20903
|
object: number().int(),
|
|
20903
|
-
audio: number().int()
|
|
20904
|
+
audio: number().int(),
|
|
20905
|
+
/**
|
|
20906
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20907
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20908
|
+
*
|
|
20909
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20910
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20911
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20912
|
+
* the count-on-a-level-meter did.
|
|
20913
|
+
*/
|
|
20914
|
+
audioDbfs: number().optional()
|
|
20904
20915
|
});
|
|
20905
20916
|
/**
|
|
20906
20917
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -23001,6 +23012,53 @@ var ImageContractSchema = object({
|
|
|
23001
23012
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
23002
23013
|
message: string()
|
|
23003
23014
|
});
|
|
23015
|
+
/**
|
|
23016
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
23017
|
+
* produced it.
|
|
23018
|
+
*
|
|
23019
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
23020
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
23021
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
23022
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
23023
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
23024
|
+
*/
|
|
23025
|
+
var WrapperIdentitySchema = object({
|
|
23026
|
+
kind: _enum([
|
|
23027
|
+
"docker",
|
|
23028
|
+
"electron",
|
|
23029
|
+
"native",
|
|
23030
|
+
"contradictory",
|
|
23031
|
+
"unknown"
|
|
23032
|
+
]),
|
|
23033
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
23034
|
+
evidence: array(object({
|
|
23035
|
+
/** Which probe this row reports. */
|
|
23036
|
+
fact: _enum([
|
|
23037
|
+
"dockerenv-file",
|
|
23038
|
+
"proc-1-cgroup",
|
|
23039
|
+
"platform",
|
|
23040
|
+
"electron-app-version-env"
|
|
23041
|
+
]),
|
|
23042
|
+
/**
|
|
23043
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
23044
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
23045
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
23046
|
+
*/
|
|
23047
|
+
mode: _enum(["observed", "declared"]),
|
|
23048
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
23049
|
+
holds: boolean(),
|
|
23050
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
23051
|
+
detail: string()
|
|
23052
|
+
})),
|
|
23053
|
+
/**
|
|
23054
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
23055
|
+
* Electron app version it declared, or the baked seed closure that
|
|
23056
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
23057
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
23058
|
+
* known there.
|
|
23059
|
+
*/
|
|
23060
|
+
currentVersion: string().nullable()
|
|
23061
|
+
});
|
|
23004
23062
|
var ServerRollbackInfoSchema = object({
|
|
23005
23063
|
/** The version that failed (or was manually rolled back). */
|
|
23006
23064
|
fromVersion: string(),
|
|
@@ -23042,7 +23100,13 @@ var ServerPackageStatusSchema = object({
|
|
|
23042
23100
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
23043
23101
|
* version skew: an older provider's payload simply omits it.
|
|
23044
23102
|
*/
|
|
23045
|
-
imageContract: ImageContractSchema.optional()
|
|
23103
|
+
imageContract: ImageContractSchema.optional(),
|
|
23104
|
+
/**
|
|
23105
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
23106
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
23107
|
+
* absent wrapper is unknown — never `native`.
|
|
23108
|
+
*/
|
|
23109
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
23046
23110
|
});
|
|
23047
23111
|
var ServerUpdateCheckResultSchema = object({
|
|
23048
23112
|
packageName: string(),
|
|
@@ -30915,7 +30979,23 @@ var RecordingRangeSchema = object({
|
|
|
30915
30979
|
});
|
|
30916
30980
|
var RecordingAvailabilitySchema = object({
|
|
30917
30981
|
deviceId: number(),
|
|
30918
|
-
ranges: array(RecordingRangeSchema)
|
|
30982
|
+
ranges: array(RecordingRangeSchema),
|
|
30983
|
+
/**
|
|
30984
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30985
|
+
* describes (D433).
|
|
30986
|
+
*
|
|
30987
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30988
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30989
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30990
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30991
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30992
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30993
|
+
* UI could not see it.
|
|
30994
|
+
*
|
|
30995
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30996
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30997
|
+
*/
|
|
30998
|
+
profilesWithFootage: array(string())
|
|
30919
30999
|
});
|
|
30920
31000
|
var RecordingDaysSchema = object({
|
|
30921
31001
|
deviceId: number(),
|
|
@@ -30941,7 +31021,11 @@ var RecordingDaysSchema = object({
|
|
|
30941
31021
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30942
31022
|
deviceId: number(),
|
|
30943
31023
|
read: _enum(["read", "unreadable"]),
|
|
30944
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
31024
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
31025
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
31026
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
31027
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
31028
|
+
profilesWithFootage: array(string()).readonly()
|
|
30945
31029
|
});
|
|
30946
31030
|
/**
|
|
30947
31031
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -31231,7 +31315,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31231
31315
|
method(object({
|
|
31232
31316
|
deviceId: number(),
|
|
31233
31317
|
fromMs: number(),
|
|
31234
|
-
toMs: number()
|
|
31318
|
+
toMs: number(),
|
|
31319
|
+
/**
|
|
31320
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31321
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31322
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31323
|
+
* for.
|
|
31324
|
+
*/
|
|
31325
|
+
profile: string().optional()
|
|
31235
31326
|
}), RecordingAvailabilitySchema, {
|
|
31236
31327
|
kind: "query",
|
|
31237
31328
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -17454,6 +17454,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
17454
17454
|
"addon-crash-loop",
|
|
17455
17455
|
"addon-update-available",
|
|
17456
17456
|
"server-update-available",
|
|
17457
|
+
"wrapper-update-available",
|
|
17457
17458
|
"alarm-triggered",
|
|
17458
17459
|
"alarm-armed",
|
|
17459
17460
|
"alarm-disarmed",
|
|
@@ -20899,7 +20900,17 @@ var EventDensityBucketSchema = object({
|
|
|
20899
20900
|
bucketStart: number(),
|
|
20900
20901
|
motion: number().int(),
|
|
20901
20902
|
object: number().int(),
|
|
20902
|
-
audio: number().int()
|
|
20903
|
+
audio: number().int(),
|
|
20904
|
+
/**
|
|
20905
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20906
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20907
|
+
*
|
|
20908
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20909
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20910
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20911
|
+
* the count-on-a-level-meter did.
|
|
20912
|
+
*/
|
|
20913
|
+
audioDbfs: number().optional()
|
|
20903
20914
|
});
|
|
20904
20915
|
/**
|
|
20905
20916
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -23000,6 +23011,53 @@ var ImageContractSchema = object({
|
|
|
23000
23011
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
23001
23012
|
message: string()
|
|
23002
23013
|
});
|
|
23014
|
+
/**
|
|
23015
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
23016
|
+
* produced it.
|
|
23017
|
+
*
|
|
23018
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
23019
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
23020
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
23021
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
23022
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
23023
|
+
*/
|
|
23024
|
+
var WrapperIdentitySchema = object({
|
|
23025
|
+
kind: _enum([
|
|
23026
|
+
"docker",
|
|
23027
|
+
"electron",
|
|
23028
|
+
"native",
|
|
23029
|
+
"contradictory",
|
|
23030
|
+
"unknown"
|
|
23031
|
+
]),
|
|
23032
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
23033
|
+
evidence: array(object({
|
|
23034
|
+
/** Which probe this row reports. */
|
|
23035
|
+
fact: _enum([
|
|
23036
|
+
"dockerenv-file",
|
|
23037
|
+
"proc-1-cgroup",
|
|
23038
|
+
"platform",
|
|
23039
|
+
"electron-app-version-env"
|
|
23040
|
+
]),
|
|
23041
|
+
/**
|
|
23042
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
23043
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
23044
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
23045
|
+
*/
|
|
23046
|
+
mode: _enum(["observed", "declared"]),
|
|
23047
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
23048
|
+
holds: boolean(),
|
|
23049
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
23050
|
+
detail: string()
|
|
23051
|
+
})),
|
|
23052
|
+
/**
|
|
23053
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
23054
|
+
* Electron app version it declared, or the baked seed closure that
|
|
23055
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
23056
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
23057
|
+
* known there.
|
|
23058
|
+
*/
|
|
23059
|
+
currentVersion: string().nullable()
|
|
23060
|
+
});
|
|
23003
23061
|
var ServerRollbackInfoSchema = object({
|
|
23004
23062
|
/** The version that failed (or was manually rolled back). */
|
|
23005
23063
|
fromVersion: string(),
|
|
@@ -23041,7 +23099,13 @@ var ServerPackageStatusSchema = object({
|
|
|
23041
23099
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
23042
23100
|
* version skew: an older provider's payload simply omits it.
|
|
23043
23101
|
*/
|
|
23044
|
-
imageContract: ImageContractSchema.optional()
|
|
23102
|
+
imageContract: ImageContractSchema.optional(),
|
|
23103
|
+
/**
|
|
23104
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
23105
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
23106
|
+
* absent wrapper is unknown — never `native`.
|
|
23107
|
+
*/
|
|
23108
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
23045
23109
|
});
|
|
23046
23110
|
var ServerUpdateCheckResultSchema = object({
|
|
23047
23111
|
packageName: string(),
|
|
@@ -30914,7 +30978,23 @@ var RecordingRangeSchema = object({
|
|
|
30914
30978
|
});
|
|
30915
30979
|
var RecordingAvailabilitySchema = object({
|
|
30916
30980
|
deviceId: number(),
|
|
30917
|
-
ranges: array(RecordingRangeSchema)
|
|
30981
|
+
ranges: array(RecordingRangeSchema),
|
|
30982
|
+
/**
|
|
30983
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30984
|
+
* describes (D433).
|
|
30985
|
+
*
|
|
30986
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30987
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30988
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30989
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30990
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30991
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30992
|
+
* UI could not see it.
|
|
30993
|
+
*
|
|
30994
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30995
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30996
|
+
*/
|
|
30997
|
+
profilesWithFootage: array(string())
|
|
30918
30998
|
});
|
|
30919
30999
|
var RecordingDaysSchema = object({
|
|
30920
31000
|
deviceId: number(),
|
|
@@ -30940,7 +31020,11 @@ var RecordingDaysSchema = object({
|
|
|
30940
31020
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30941
31021
|
deviceId: number(),
|
|
30942
31022
|
read: _enum(["read", "unreadable"]),
|
|
30943
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
31023
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
31024
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
31025
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
31026
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
31027
|
+
profilesWithFootage: array(string()).readonly()
|
|
30944
31028
|
});
|
|
30945
31029
|
/**
|
|
30946
31030
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -31230,7 +31314,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31230
31314
|
method(object({
|
|
31231
31315
|
deviceId: number(),
|
|
31232
31316
|
fromMs: number(),
|
|
31233
|
-
toMs: number()
|
|
31317
|
+
toMs: number(),
|
|
31318
|
+
/**
|
|
31319
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31320
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31321
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31322
|
+
* for.
|
|
31323
|
+
*/
|
|
31324
|
+
profile: string().optional()
|
|
31234
31325
|
}), RecordingAvailabilitySchema, {
|
|
31235
31326
|
kind: "query",
|
|
31236
31327
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.93",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|