@camstack/addon-provider-dreo 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
|
@@ -16523,6 +16523,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16523
16523
|
"addon-crash-loop",
|
|
16524
16524
|
"addon-update-available",
|
|
16525
16525
|
"server-update-available",
|
|
16526
|
+
"wrapper-update-available",
|
|
16526
16527
|
"alarm-triggered",
|
|
16527
16528
|
"alarm-armed",
|
|
16528
16529
|
"alarm-disarmed",
|
|
@@ -19968,7 +19969,17 @@ var EventDensityBucketSchema = object({
|
|
|
19968
19969
|
bucketStart: number(),
|
|
19969
19970
|
motion: number().int(),
|
|
19970
19971
|
object: number().int(),
|
|
19971
|
-
audio: number().int()
|
|
19972
|
+
audio: number().int(),
|
|
19973
|
+
/**
|
|
19974
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19975
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19976
|
+
*
|
|
19977
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19978
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19979
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19980
|
+
* the count-on-a-level-meter did.
|
|
19981
|
+
*/
|
|
19982
|
+
audioDbfs: number().optional()
|
|
19972
19983
|
});
|
|
19973
19984
|
/**
|
|
19974
19985
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22069,6 +22080,53 @@ var ImageContractSchema = object({
|
|
|
22069
22080
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22070
22081
|
message: string()
|
|
22071
22082
|
});
|
|
22083
|
+
/**
|
|
22084
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22085
|
+
* produced it.
|
|
22086
|
+
*
|
|
22087
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22088
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22089
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22090
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22091
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22092
|
+
*/
|
|
22093
|
+
var WrapperIdentitySchema = object({
|
|
22094
|
+
kind: _enum([
|
|
22095
|
+
"docker",
|
|
22096
|
+
"electron",
|
|
22097
|
+
"native",
|
|
22098
|
+
"contradictory",
|
|
22099
|
+
"unknown"
|
|
22100
|
+
]),
|
|
22101
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22102
|
+
evidence: array(object({
|
|
22103
|
+
/** Which probe this row reports. */
|
|
22104
|
+
fact: _enum([
|
|
22105
|
+
"dockerenv-file",
|
|
22106
|
+
"proc-1-cgroup",
|
|
22107
|
+
"platform",
|
|
22108
|
+
"electron-app-version-env"
|
|
22109
|
+
]),
|
|
22110
|
+
/**
|
|
22111
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22112
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22113
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22114
|
+
*/
|
|
22115
|
+
mode: _enum(["observed", "declared"]),
|
|
22116
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22117
|
+
holds: boolean(),
|
|
22118
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22119
|
+
detail: string()
|
|
22120
|
+
})),
|
|
22121
|
+
/**
|
|
22122
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22123
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22124
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22125
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22126
|
+
* known there.
|
|
22127
|
+
*/
|
|
22128
|
+
currentVersion: string().nullable()
|
|
22129
|
+
});
|
|
22072
22130
|
var ServerRollbackInfoSchema = object({
|
|
22073
22131
|
/** The version that failed (or was manually rolled back). */
|
|
22074
22132
|
fromVersion: string(),
|
|
@@ -22110,7 +22168,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22110
22168
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22111
22169
|
* version skew: an older provider's payload simply omits it.
|
|
22112
22170
|
*/
|
|
22113
|
-
imageContract: ImageContractSchema.optional()
|
|
22171
|
+
imageContract: ImageContractSchema.optional(),
|
|
22172
|
+
/**
|
|
22173
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22174
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22175
|
+
* absent wrapper is unknown — never `native`.
|
|
22176
|
+
*/
|
|
22177
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22114
22178
|
});
|
|
22115
22179
|
var ServerUpdateCheckResultSchema = object({
|
|
22116
22180
|
packageName: string(),
|
|
@@ -29991,7 +30055,23 @@ var RecordingRangeSchema = object({
|
|
|
29991
30055
|
});
|
|
29992
30056
|
var RecordingAvailabilitySchema = object({
|
|
29993
30057
|
deviceId: number(),
|
|
29994
|
-
ranges: array(RecordingRangeSchema)
|
|
30058
|
+
ranges: array(RecordingRangeSchema),
|
|
30059
|
+
/**
|
|
30060
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30061
|
+
* describes (D433).
|
|
30062
|
+
*
|
|
30063
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30064
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30065
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30066
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30067
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30068
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30069
|
+
* UI could not see it.
|
|
30070
|
+
*
|
|
30071
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30072
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30073
|
+
*/
|
|
30074
|
+
profilesWithFootage: array(string())
|
|
29995
30075
|
});
|
|
29996
30076
|
var RecordingDaysSchema = object({
|
|
29997
30077
|
deviceId: number(),
|
|
@@ -30017,7 +30097,11 @@ var RecordingDaysSchema = object({
|
|
|
30017
30097
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30018
30098
|
deviceId: number(),
|
|
30019
30099
|
read: _enum(["read", "unreadable"]),
|
|
30020
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30100
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30101
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30102
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30103
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30104
|
+
profilesWithFootage: array(string()).readonly()
|
|
30021
30105
|
});
|
|
30022
30106
|
/**
|
|
30023
30107
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30307,7 +30391,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30307
30391
|
method(object({
|
|
30308
30392
|
deviceId: number(),
|
|
30309
30393
|
fromMs: number(),
|
|
30310
|
-
toMs: number()
|
|
30394
|
+
toMs: number(),
|
|
30395
|
+
/**
|
|
30396
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30397
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30398
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30399
|
+
* for.
|
|
30400
|
+
*/
|
|
30401
|
+
profile: string().optional()
|
|
30311
30402
|
}), RecordingAvailabilitySchema, {
|
|
30312
30403
|
kind: "query",
|
|
30313
30404
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -16524,6 +16524,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16524
16524
|
"addon-crash-loop",
|
|
16525
16525
|
"addon-update-available",
|
|
16526
16526
|
"server-update-available",
|
|
16527
|
+
"wrapper-update-available",
|
|
16527
16528
|
"alarm-triggered",
|
|
16528
16529
|
"alarm-armed",
|
|
16529
16530
|
"alarm-disarmed",
|
|
@@ -19969,7 +19970,17 @@ var EventDensityBucketSchema = object({
|
|
|
19969
19970
|
bucketStart: number(),
|
|
19970
19971
|
motion: number().int(),
|
|
19971
19972
|
object: number().int(),
|
|
19972
|
-
audio: number().int()
|
|
19973
|
+
audio: number().int(),
|
|
19974
|
+
/**
|
|
19975
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19976
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19977
|
+
*
|
|
19978
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19979
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19980
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19981
|
+
* the count-on-a-level-meter did.
|
|
19982
|
+
*/
|
|
19983
|
+
audioDbfs: number().optional()
|
|
19973
19984
|
});
|
|
19974
19985
|
/**
|
|
19975
19986
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22070,6 +22081,53 @@ var ImageContractSchema = object({
|
|
|
22070
22081
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22071
22082
|
message: string()
|
|
22072
22083
|
});
|
|
22084
|
+
/**
|
|
22085
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22086
|
+
* produced it.
|
|
22087
|
+
*
|
|
22088
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22089
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22090
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22091
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22092
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22093
|
+
*/
|
|
22094
|
+
var WrapperIdentitySchema = object({
|
|
22095
|
+
kind: _enum([
|
|
22096
|
+
"docker",
|
|
22097
|
+
"electron",
|
|
22098
|
+
"native",
|
|
22099
|
+
"contradictory",
|
|
22100
|
+
"unknown"
|
|
22101
|
+
]),
|
|
22102
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22103
|
+
evidence: array(object({
|
|
22104
|
+
/** Which probe this row reports. */
|
|
22105
|
+
fact: _enum([
|
|
22106
|
+
"dockerenv-file",
|
|
22107
|
+
"proc-1-cgroup",
|
|
22108
|
+
"platform",
|
|
22109
|
+
"electron-app-version-env"
|
|
22110
|
+
]),
|
|
22111
|
+
/**
|
|
22112
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22113
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22114
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22115
|
+
*/
|
|
22116
|
+
mode: _enum(["observed", "declared"]),
|
|
22117
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22118
|
+
holds: boolean(),
|
|
22119
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22120
|
+
detail: string()
|
|
22121
|
+
})),
|
|
22122
|
+
/**
|
|
22123
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22124
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22125
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22126
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22127
|
+
* known there.
|
|
22128
|
+
*/
|
|
22129
|
+
currentVersion: string().nullable()
|
|
22130
|
+
});
|
|
22073
22131
|
var ServerRollbackInfoSchema = object({
|
|
22074
22132
|
/** The version that failed (or was manually rolled back). */
|
|
22075
22133
|
fromVersion: string(),
|
|
@@ -22111,7 +22169,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22111
22169
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22112
22170
|
* version skew: an older provider's payload simply omits it.
|
|
22113
22171
|
*/
|
|
22114
|
-
imageContract: ImageContractSchema.optional()
|
|
22172
|
+
imageContract: ImageContractSchema.optional(),
|
|
22173
|
+
/**
|
|
22174
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22175
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22176
|
+
* absent wrapper is unknown — never `native`.
|
|
22177
|
+
*/
|
|
22178
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22115
22179
|
});
|
|
22116
22180
|
var ServerUpdateCheckResultSchema = object({
|
|
22117
22181
|
packageName: string(),
|
|
@@ -29992,7 +30056,23 @@ var RecordingRangeSchema = object({
|
|
|
29992
30056
|
});
|
|
29993
30057
|
var RecordingAvailabilitySchema = object({
|
|
29994
30058
|
deviceId: number(),
|
|
29995
|
-
ranges: array(RecordingRangeSchema)
|
|
30059
|
+
ranges: array(RecordingRangeSchema),
|
|
30060
|
+
/**
|
|
30061
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30062
|
+
* describes (D433).
|
|
30063
|
+
*
|
|
30064
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30065
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30066
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30067
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30068
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30069
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30070
|
+
* UI could not see it.
|
|
30071
|
+
*
|
|
30072
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30073
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30074
|
+
*/
|
|
30075
|
+
profilesWithFootage: array(string())
|
|
29996
30076
|
});
|
|
29997
30077
|
var RecordingDaysSchema = object({
|
|
29998
30078
|
deviceId: number(),
|
|
@@ -30018,7 +30098,11 @@ var RecordingDaysSchema = object({
|
|
|
30018
30098
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30019
30099
|
deviceId: number(),
|
|
30020
30100
|
read: _enum(["read", "unreadable"]),
|
|
30021
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30101
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30102
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30103
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30104
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30105
|
+
profilesWithFootage: array(string()).readonly()
|
|
30022
30106
|
});
|
|
30023
30107
|
/**
|
|
30024
30108
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30308,7 +30392,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30308
30392
|
method(object({
|
|
30309
30393
|
deviceId: number(),
|
|
30310
30394
|
fromMs: number(),
|
|
30311
|
-
toMs: number()
|
|
30395
|
+
toMs: number(),
|
|
30396
|
+
/**
|
|
30397
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30398
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30399
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30400
|
+
* for.
|
|
30401
|
+
*/
|
|
30402
|
+
profile: string().optional()
|
|
30312
30403
|
}), RecordingAvailabilitySchema, {
|
|
30313
30404
|
kind: "query",
|
|
30314
30405
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.94",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|