@camstack/addon-provider-gree 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
|
@@ -16473,6 +16473,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16473
16473
|
"addon-crash-loop",
|
|
16474
16474
|
"addon-update-available",
|
|
16475
16475
|
"server-update-available",
|
|
16476
|
+
"wrapper-update-available",
|
|
16476
16477
|
"alarm-triggered",
|
|
16477
16478
|
"alarm-armed",
|
|
16478
16479
|
"alarm-disarmed",
|
|
@@ -19918,7 +19919,17 @@ var EventDensityBucketSchema = object({
|
|
|
19918
19919
|
bucketStart: number(),
|
|
19919
19920
|
motion: number().int(),
|
|
19920
19921
|
object: number().int(),
|
|
19921
|
-
audio: number().int()
|
|
19922
|
+
audio: number().int(),
|
|
19923
|
+
/**
|
|
19924
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19925
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19926
|
+
*
|
|
19927
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19928
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19929
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19930
|
+
* the count-on-a-level-meter did.
|
|
19931
|
+
*/
|
|
19932
|
+
audioDbfs: number().optional()
|
|
19922
19933
|
});
|
|
19923
19934
|
/**
|
|
19924
19935
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22019,6 +22030,53 @@ var ImageContractSchema = object({
|
|
|
22019
22030
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22020
22031
|
message: string()
|
|
22021
22032
|
});
|
|
22033
|
+
/**
|
|
22034
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22035
|
+
* produced it.
|
|
22036
|
+
*
|
|
22037
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22038
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22039
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22040
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22041
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22042
|
+
*/
|
|
22043
|
+
var WrapperIdentitySchema = object({
|
|
22044
|
+
kind: _enum([
|
|
22045
|
+
"docker",
|
|
22046
|
+
"electron",
|
|
22047
|
+
"native",
|
|
22048
|
+
"contradictory",
|
|
22049
|
+
"unknown"
|
|
22050
|
+
]),
|
|
22051
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22052
|
+
evidence: array(object({
|
|
22053
|
+
/** Which probe this row reports. */
|
|
22054
|
+
fact: _enum([
|
|
22055
|
+
"dockerenv-file",
|
|
22056
|
+
"proc-1-cgroup",
|
|
22057
|
+
"platform",
|
|
22058
|
+
"electron-app-version-env"
|
|
22059
|
+
]),
|
|
22060
|
+
/**
|
|
22061
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22062
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22063
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22064
|
+
*/
|
|
22065
|
+
mode: _enum(["observed", "declared"]),
|
|
22066
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22067
|
+
holds: boolean(),
|
|
22068
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22069
|
+
detail: string()
|
|
22070
|
+
})),
|
|
22071
|
+
/**
|
|
22072
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22073
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22074
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22075
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22076
|
+
* known there.
|
|
22077
|
+
*/
|
|
22078
|
+
currentVersion: string().nullable()
|
|
22079
|
+
});
|
|
22022
22080
|
var ServerRollbackInfoSchema = object({
|
|
22023
22081
|
/** The version that failed (or was manually rolled back). */
|
|
22024
22082
|
fromVersion: string(),
|
|
@@ -22060,7 +22118,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22060
22118
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22061
22119
|
* version skew: an older provider's payload simply omits it.
|
|
22062
22120
|
*/
|
|
22063
|
-
imageContract: ImageContractSchema.optional()
|
|
22121
|
+
imageContract: ImageContractSchema.optional(),
|
|
22122
|
+
/**
|
|
22123
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22124
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22125
|
+
* absent wrapper is unknown — never `native`.
|
|
22126
|
+
*/
|
|
22127
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22064
22128
|
});
|
|
22065
22129
|
var ServerUpdateCheckResultSchema = object({
|
|
22066
22130
|
packageName: string(),
|
|
@@ -29933,7 +29997,23 @@ var RecordingRangeSchema = object({
|
|
|
29933
29997
|
});
|
|
29934
29998
|
var RecordingAvailabilitySchema = object({
|
|
29935
29999
|
deviceId: number(),
|
|
29936
|
-
ranges: array(RecordingRangeSchema)
|
|
30000
|
+
ranges: array(RecordingRangeSchema),
|
|
30001
|
+
/**
|
|
30002
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30003
|
+
* describes (D433).
|
|
30004
|
+
*
|
|
30005
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30006
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30007
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30008
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30009
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30010
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30011
|
+
* UI could not see it.
|
|
30012
|
+
*
|
|
30013
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30014
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30015
|
+
*/
|
|
30016
|
+
profilesWithFootage: array(string())
|
|
29937
30017
|
});
|
|
29938
30018
|
var RecordingDaysSchema = object({
|
|
29939
30019
|
deviceId: number(),
|
|
@@ -29959,7 +30039,11 @@ var RecordingDaysSchema = object({
|
|
|
29959
30039
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29960
30040
|
deviceId: number(),
|
|
29961
30041
|
read: _enum(["read", "unreadable"]),
|
|
29962
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30042
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30043
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30044
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30045
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30046
|
+
profilesWithFootage: array(string()).readonly()
|
|
29963
30047
|
});
|
|
29964
30048
|
/**
|
|
29965
30049
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30249,7 +30333,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30249
30333
|
method(object({
|
|
30250
30334
|
deviceId: number(),
|
|
30251
30335
|
fromMs: number(),
|
|
30252
|
-
toMs: number()
|
|
30336
|
+
toMs: number(),
|
|
30337
|
+
/**
|
|
30338
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30339
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30340
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30341
|
+
* for.
|
|
30342
|
+
*/
|
|
30343
|
+
profile: string().optional()
|
|
30253
30344
|
}), RecordingAvailabilitySchema, {
|
|
30254
30345
|
kind: "query",
|
|
30255
30346
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -16472,6 +16472,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16472
16472
|
"addon-crash-loop",
|
|
16473
16473
|
"addon-update-available",
|
|
16474
16474
|
"server-update-available",
|
|
16475
|
+
"wrapper-update-available",
|
|
16475
16476
|
"alarm-triggered",
|
|
16476
16477
|
"alarm-armed",
|
|
16477
16478
|
"alarm-disarmed",
|
|
@@ -19917,7 +19918,17 @@ var EventDensityBucketSchema = object({
|
|
|
19917
19918
|
bucketStart: number(),
|
|
19918
19919
|
motion: number().int(),
|
|
19919
19920
|
object: number().int(),
|
|
19920
|
-
audio: number().int()
|
|
19921
|
+
audio: number().int(),
|
|
19922
|
+
/**
|
|
19923
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19924
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19925
|
+
*
|
|
19926
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19927
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19928
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19929
|
+
* the count-on-a-level-meter did.
|
|
19930
|
+
*/
|
|
19931
|
+
audioDbfs: number().optional()
|
|
19921
19932
|
});
|
|
19922
19933
|
/**
|
|
19923
19934
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22018,6 +22029,53 @@ var ImageContractSchema = object({
|
|
|
22018
22029
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22019
22030
|
message: string()
|
|
22020
22031
|
});
|
|
22032
|
+
/**
|
|
22033
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22034
|
+
* produced it.
|
|
22035
|
+
*
|
|
22036
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22037
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22038
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22039
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22040
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22041
|
+
*/
|
|
22042
|
+
var WrapperIdentitySchema = object({
|
|
22043
|
+
kind: _enum([
|
|
22044
|
+
"docker",
|
|
22045
|
+
"electron",
|
|
22046
|
+
"native",
|
|
22047
|
+
"contradictory",
|
|
22048
|
+
"unknown"
|
|
22049
|
+
]),
|
|
22050
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22051
|
+
evidence: array(object({
|
|
22052
|
+
/** Which probe this row reports. */
|
|
22053
|
+
fact: _enum([
|
|
22054
|
+
"dockerenv-file",
|
|
22055
|
+
"proc-1-cgroup",
|
|
22056
|
+
"platform",
|
|
22057
|
+
"electron-app-version-env"
|
|
22058
|
+
]),
|
|
22059
|
+
/**
|
|
22060
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22061
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22062
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22063
|
+
*/
|
|
22064
|
+
mode: _enum(["observed", "declared"]),
|
|
22065
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22066
|
+
holds: boolean(),
|
|
22067
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22068
|
+
detail: string()
|
|
22069
|
+
})),
|
|
22070
|
+
/**
|
|
22071
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22072
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22073
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22074
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22075
|
+
* known there.
|
|
22076
|
+
*/
|
|
22077
|
+
currentVersion: string().nullable()
|
|
22078
|
+
});
|
|
22021
22079
|
var ServerRollbackInfoSchema = object({
|
|
22022
22080
|
/** The version that failed (or was manually rolled back). */
|
|
22023
22081
|
fromVersion: string(),
|
|
@@ -22059,7 +22117,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22059
22117
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22060
22118
|
* version skew: an older provider's payload simply omits it.
|
|
22061
22119
|
*/
|
|
22062
|
-
imageContract: ImageContractSchema.optional()
|
|
22120
|
+
imageContract: ImageContractSchema.optional(),
|
|
22121
|
+
/**
|
|
22122
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22123
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22124
|
+
* absent wrapper is unknown — never `native`.
|
|
22125
|
+
*/
|
|
22126
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22063
22127
|
});
|
|
22064
22128
|
var ServerUpdateCheckResultSchema = object({
|
|
22065
22129
|
packageName: string(),
|
|
@@ -29932,7 +29996,23 @@ var RecordingRangeSchema = object({
|
|
|
29932
29996
|
});
|
|
29933
29997
|
var RecordingAvailabilitySchema = object({
|
|
29934
29998
|
deviceId: number(),
|
|
29935
|
-
ranges: array(RecordingRangeSchema)
|
|
29999
|
+
ranges: array(RecordingRangeSchema),
|
|
30000
|
+
/**
|
|
30001
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30002
|
+
* describes (D433).
|
|
30003
|
+
*
|
|
30004
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30005
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30006
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30007
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30008
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30009
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30010
|
+
* UI could not see it.
|
|
30011
|
+
*
|
|
30012
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30013
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30014
|
+
*/
|
|
30015
|
+
profilesWithFootage: array(string())
|
|
29936
30016
|
});
|
|
29937
30017
|
var RecordingDaysSchema = object({
|
|
29938
30018
|
deviceId: number(),
|
|
@@ -29958,7 +30038,11 @@ var RecordingDaysSchema = object({
|
|
|
29958
30038
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
29959
30039
|
deviceId: number(),
|
|
29960
30040
|
read: _enum(["read", "unreadable"]),
|
|
29961
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30041
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30042
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30043
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30044
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30045
|
+
profilesWithFootage: array(string()).readonly()
|
|
29962
30046
|
});
|
|
29963
30047
|
/**
|
|
29964
30048
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30248,7 +30332,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30248
30332
|
method(object({
|
|
30249
30333
|
deviceId: number(),
|
|
30250
30334
|
fromMs: number(),
|
|
30251
|
-
toMs: number()
|
|
30335
|
+
toMs: number(),
|
|
30336
|
+
/**
|
|
30337
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30338
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30339
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30340
|
+
* for.
|
|
30341
|
+
*/
|
|
30342
|
+
profile: string().optional()
|
|
30252
30343
|
}), RecordingAvailabilitySchema, {
|
|
30253
30344
|
kind: "query",
|
|
30254
30345
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-gree",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.93",
|
|
4
4
|
"description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|