@camstack/addon-provider-hikvision 1.2.100 → 1.2.102
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
|
@@ -16777,6 +16777,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16777
16777
|
"addon-crash-loop",
|
|
16778
16778
|
"addon-update-available",
|
|
16779
16779
|
"server-update-available",
|
|
16780
|
+
"wrapper-update-available",
|
|
16780
16781
|
"alarm-triggered",
|
|
16781
16782
|
"alarm-armed",
|
|
16782
16783
|
"alarm-disarmed",
|
|
@@ -20222,7 +20223,17 @@ var EventDensityBucketSchema = object({
|
|
|
20222
20223
|
bucketStart: number(),
|
|
20223
20224
|
motion: number().int(),
|
|
20224
20225
|
object: number().int(),
|
|
20225
|
-
audio: number().int()
|
|
20226
|
+
audio: number().int(),
|
|
20227
|
+
/**
|
|
20228
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20229
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20230
|
+
*
|
|
20231
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20232
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20233
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20234
|
+
* the count-on-a-level-meter did.
|
|
20235
|
+
*/
|
|
20236
|
+
audioDbfs: number().optional()
|
|
20226
20237
|
});
|
|
20227
20238
|
/**
|
|
20228
20239
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22323,6 +22334,53 @@ var ImageContractSchema = object({
|
|
|
22323
22334
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22324
22335
|
message: string()
|
|
22325
22336
|
});
|
|
22337
|
+
/**
|
|
22338
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22339
|
+
* produced it.
|
|
22340
|
+
*
|
|
22341
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22342
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22343
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22344
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22345
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22346
|
+
*/
|
|
22347
|
+
var WrapperIdentitySchema = object({
|
|
22348
|
+
kind: _enum([
|
|
22349
|
+
"docker",
|
|
22350
|
+
"electron",
|
|
22351
|
+
"native",
|
|
22352
|
+
"contradictory",
|
|
22353
|
+
"unknown"
|
|
22354
|
+
]),
|
|
22355
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22356
|
+
evidence: array(object({
|
|
22357
|
+
/** Which probe this row reports. */
|
|
22358
|
+
fact: _enum([
|
|
22359
|
+
"dockerenv-file",
|
|
22360
|
+
"proc-1-cgroup",
|
|
22361
|
+
"platform",
|
|
22362
|
+
"electron-app-version-env"
|
|
22363
|
+
]),
|
|
22364
|
+
/**
|
|
22365
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22366
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22367
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22368
|
+
*/
|
|
22369
|
+
mode: _enum(["observed", "declared"]),
|
|
22370
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22371
|
+
holds: boolean(),
|
|
22372
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22373
|
+
detail: string()
|
|
22374
|
+
})),
|
|
22375
|
+
/**
|
|
22376
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22377
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22378
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22379
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22380
|
+
* known there.
|
|
22381
|
+
*/
|
|
22382
|
+
currentVersion: string().nullable()
|
|
22383
|
+
});
|
|
22326
22384
|
var ServerRollbackInfoSchema = object({
|
|
22327
22385
|
/** The version that failed (or was manually rolled back). */
|
|
22328
22386
|
fromVersion: string(),
|
|
@@ -22364,7 +22422,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22364
22422
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22365
22423
|
* version skew: an older provider's payload simply omits it.
|
|
22366
22424
|
*/
|
|
22367
|
-
imageContract: ImageContractSchema.optional()
|
|
22425
|
+
imageContract: ImageContractSchema.optional(),
|
|
22426
|
+
/**
|
|
22427
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22428
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22429
|
+
* absent wrapper is unknown — never `native`.
|
|
22430
|
+
*/
|
|
22431
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22368
22432
|
});
|
|
22369
22433
|
var ServerUpdateCheckResultSchema = object({
|
|
22370
22434
|
packageName: string(),
|
|
@@ -30474,7 +30538,23 @@ var RecordingRangeSchema = object({
|
|
|
30474
30538
|
});
|
|
30475
30539
|
var RecordingAvailabilitySchema = object({
|
|
30476
30540
|
deviceId: number(),
|
|
30477
|
-
ranges: array(RecordingRangeSchema)
|
|
30541
|
+
ranges: array(RecordingRangeSchema),
|
|
30542
|
+
/**
|
|
30543
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30544
|
+
* describes (D433).
|
|
30545
|
+
*
|
|
30546
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30547
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30548
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30549
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30550
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30551
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30552
|
+
* UI could not see it.
|
|
30553
|
+
*
|
|
30554
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30555
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30556
|
+
*/
|
|
30557
|
+
profilesWithFootage: array(string())
|
|
30478
30558
|
});
|
|
30479
30559
|
var RecordingDaysSchema = object({
|
|
30480
30560
|
deviceId: number(),
|
|
@@ -30500,7 +30580,11 @@ var RecordingDaysSchema = object({
|
|
|
30500
30580
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30501
30581
|
deviceId: number(),
|
|
30502
30582
|
read: _enum(["read", "unreadable"]),
|
|
30503
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30583
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30584
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30585
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30586
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30587
|
+
profilesWithFootage: array(string()).readonly()
|
|
30504
30588
|
});
|
|
30505
30589
|
/**
|
|
30506
30590
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30790,7 +30874,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30790
30874
|
method(object({
|
|
30791
30875
|
deviceId: number(),
|
|
30792
30876
|
fromMs: number(),
|
|
30793
|
-
toMs: number()
|
|
30877
|
+
toMs: number(),
|
|
30878
|
+
/**
|
|
30879
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30880
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30881
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30882
|
+
* for.
|
|
30883
|
+
*/
|
|
30884
|
+
profile: string().optional()
|
|
30794
30885
|
}), RecordingAvailabilitySchema, {
|
|
30795
30886
|
kind: "query",
|
|
30796
30887
|
auth: "protected"
|
package/dist/addon.mjs
CHANGED
|
@@ -16778,6 +16778,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16778
16778
|
"addon-crash-loop",
|
|
16779
16779
|
"addon-update-available",
|
|
16780
16780
|
"server-update-available",
|
|
16781
|
+
"wrapper-update-available",
|
|
16781
16782
|
"alarm-triggered",
|
|
16782
16783
|
"alarm-armed",
|
|
16783
16784
|
"alarm-disarmed",
|
|
@@ -20223,7 +20224,17 @@ var EventDensityBucketSchema = object({
|
|
|
20223
20224
|
bucketStart: number(),
|
|
20224
20225
|
motion: number().int(),
|
|
20225
20226
|
object: number().int(),
|
|
20226
|
-
audio: number().int()
|
|
20227
|
+
audio: number().int(),
|
|
20228
|
+
/**
|
|
20229
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
20230
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
20231
|
+
*
|
|
20232
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
20233
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
20234
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
20235
|
+
* the count-on-a-level-meter did.
|
|
20236
|
+
*/
|
|
20237
|
+
audioDbfs: number().optional()
|
|
20227
20238
|
});
|
|
20228
20239
|
/**
|
|
20229
20240
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -22324,6 +22335,53 @@ var ImageContractSchema = object({
|
|
|
22324
22335
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
22325
22336
|
message: string()
|
|
22326
22337
|
});
|
|
22338
|
+
/**
|
|
22339
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
22340
|
+
* produced it.
|
|
22341
|
+
*
|
|
22342
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
22343
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
22344
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
22345
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
22346
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
22347
|
+
*/
|
|
22348
|
+
var WrapperIdentitySchema = object({
|
|
22349
|
+
kind: _enum([
|
|
22350
|
+
"docker",
|
|
22351
|
+
"electron",
|
|
22352
|
+
"native",
|
|
22353
|
+
"contradictory",
|
|
22354
|
+
"unknown"
|
|
22355
|
+
]),
|
|
22356
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
22357
|
+
evidence: array(object({
|
|
22358
|
+
/** Which probe this row reports. */
|
|
22359
|
+
fact: _enum([
|
|
22360
|
+
"dockerenv-file",
|
|
22361
|
+
"proc-1-cgroup",
|
|
22362
|
+
"platform",
|
|
22363
|
+
"electron-app-version-env"
|
|
22364
|
+
]),
|
|
22365
|
+
/**
|
|
22366
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22367
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22368
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22369
|
+
*/
|
|
22370
|
+
mode: _enum(["observed", "declared"]),
|
|
22371
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22372
|
+
holds: boolean(),
|
|
22373
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22374
|
+
detail: string()
|
|
22375
|
+
})),
|
|
22376
|
+
/**
|
|
22377
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22378
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22379
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22380
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22381
|
+
* known there.
|
|
22382
|
+
*/
|
|
22383
|
+
currentVersion: string().nullable()
|
|
22384
|
+
});
|
|
22327
22385
|
var ServerRollbackInfoSchema = object({
|
|
22328
22386
|
/** The version that failed (or was manually rolled back). */
|
|
22329
22387
|
fromVersion: string(),
|
|
@@ -22365,7 +22423,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22365
22423
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22366
22424
|
* version skew: an older provider's payload simply omits it.
|
|
22367
22425
|
*/
|
|
22368
|
-
imageContract: ImageContractSchema.optional()
|
|
22426
|
+
imageContract: ImageContractSchema.optional(),
|
|
22427
|
+
/**
|
|
22428
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22429
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22430
|
+
* absent wrapper is unknown — never `native`.
|
|
22431
|
+
*/
|
|
22432
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22369
22433
|
});
|
|
22370
22434
|
var ServerUpdateCheckResultSchema = object({
|
|
22371
22435
|
packageName: string(),
|
|
@@ -30475,7 +30539,23 @@ var RecordingRangeSchema = object({
|
|
|
30475
30539
|
});
|
|
30476
30540
|
var RecordingAvailabilitySchema = object({
|
|
30477
30541
|
deviceId: number(),
|
|
30478
|
-
ranges: array(RecordingRangeSchema)
|
|
30542
|
+
ranges: array(RecordingRangeSchema),
|
|
30543
|
+
/**
|
|
30544
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
30545
|
+
* describes (D433).
|
|
30546
|
+
*
|
|
30547
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30548
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
30549
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
30550
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
30551
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
30552
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
30553
|
+
* UI could not see it.
|
|
30554
|
+
*
|
|
30555
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
30556
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
30557
|
+
*/
|
|
30558
|
+
profilesWithFootage: array(string())
|
|
30479
30559
|
});
|
|
30480
30560
|
var RecordingDaysSchema = object({
|
|
30481
30561
|
deviceId: number(),
|
|
@@ -30501,7 +30581,11 @@ var RecordingDaysSchema = object({
|
|
|
30501
30581
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
30502
30582
|
deviceId: number(),
|
|
30503
30583
|
read: _enum(["read", "unreadable"]),
|
|
30504
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
30584
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
30585
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
30586
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
30587
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
30588
|
+
profilesWithFootage: array(string()).readonly()
|
|
30505
30589
|
});
|
|
30506
30590
|
/**
|
|
30507
30591
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -30791,7 +30875,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30791
30875
|
method(object({
|
|
30792
30876
|
deviceId: number(),
|
|
30793
30877
|
fromMs: number(),
|
|
30794
|
-
toMs: number()
|
|
30878
|
+
toMs: number(),
|
|
30879
|
+
/**
|
|
30880
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30881
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30882
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30883
|
+
* for.
|
|
30884
|
+
*/
|
|
30885
|
+
profile: string().optional()
|
|
30795
30886
|
}), RecordingAvailabilitySchema, {
|
|
30796
30887
|
kind: "query",
|
|
30797
30888
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.102",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|