@camstack/addon-provider-hikvision 1.2.108 → 1.2.109
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 +162 -9
- package/dist/addon.mjs +162 -9
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5353,7 +5353,7 @@ var ZodIssueCode = {
|
|
|
5353
5353
|
var ZodFirstPartyTypeKind;
|
|
5354
5354
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5355
5355
|
//#endregion
|
|
5356
|
-
//#region ../types/dist/sleep-
|
|
5356
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5357
5357
|
/**
|
|
5358
5358
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5359
5359
|
* window to float samples (D455).
|
|
@@ -7370,7 +7370,23 @@ var EncodeProfileSchema = object({
|
|
|
7370
7370
|
"zerolatency",
|
|
7371
7371
|
"film",
|
|
7372
7372
|
"animation"
|
|
7373
|
-
]).optional()
|
|
7373
|
+
]).optional(),
|
|
7374
|
+
/**
|
|
7375
|
+
* ONE slice per access unit.
|
|
7376
|
+
*
|
|
7377
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7378
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7379
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7380
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7381
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7382
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7383
|
+
*
|
|
7384
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7385
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7386
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7387
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7388
|
+
*/
|
|
7389
|
+
singleSlicePerFrame: boolean().optional()
|
|
7374
7390
|
}),
|
|
7375
7391
|
audio: union([literal("passthrough"), object({
|
|
7376
7392
|
codec: _enum([
|
|
@@ -7420,7 +7436,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7420
7436
|
audio: "passthrough"
|
|
7421
7437
|
};
|
|
7422
7438
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7423
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7439
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7424
7440
|
/**
|
|
7425
7441
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7426
7442
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -20437,13 +20453,109 @@ var SummariesQueryInput = object({
|
|
|
20437
20453
|
deviceIds: array(number()).min(1),
|
|
20438
20454
|
since: number().optional(),
|
|
20439
20455
|
until: number().optional(),
|
|
20440
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20456
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20457
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20458
|
+
* meaning of "dog" on every summary surface. */
|
|
20459
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20441
20460
|
});
|
|
20442
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20443
20461
|
var SummaryDetailSchema = object({
|
|
20444
20462
|
summary: SummarySchema,
|
|
20445
|
-
/**
|
|
20446
|
-
|
|
20463
|
+
/** Members in absorption order, oldest join first. */
|
|
20464
|
+
members: array(object({
|
|
20465
|
+
trackId: string(),
|
|
20466
|
+
/**
|
|
20467
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20468
|
+
* and the track no longer exists to fill it.
|
|
20469
|
+
*
|
|
20470
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20471
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20472
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20473
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20474
|
+
* drift from the members it claims to describe.
|
|
20475
|
+
*/
|
|
20476
|
+
className: string().nullable(),
|
|
20477
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20478
|
+
role: _enum([
|
|
20479
|
+
"primary",
|
|
20480
|
+
"sibling",
|
|
20481
|
+
"child"
|
|
20482
|
+
]).nullable(),
|
|
20483
|
+
joinedAt: number(),
|
|
20484
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20485
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20486
|
+
label: string().optional(),
|
|
20487
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20488
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20489
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20490
|
+
subLabel: string().optional()
|
|
20491
|
+
})).readonly()
|
|
20492
|
+
});
|
|
20493
|
+
/**
|
|
20494
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20495
|
+
*
|
|
20496
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20497
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20498
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20499
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20500
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20501
|
+
* draw two hundred badges.
|
|
20502
|
+
*/
|
|
20503
|
+
var SummaryListItemSchema = object({
|
|
20504
|
+
summary: SummarySchema,
|
|
20505
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20506
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20507
|
+
classes: array(object({
|
|
20508
|
+
className: string().nullable(),
|
|
20509
|
+
count: number().int().positive()
|
|
20510
|
+
})).readonly()
|
|
20511
|
+
});
|
|
20512
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20513
|
+
/**
|
|
20514
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20515
|
+
*
|
|
20516
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20517
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20518
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20519
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20520
|
+
* "newest" means, on one screen.
|
|
20521
|
+
*/
|
|
20522
|
+
var RecentSummariesQueryInput = object({
|
|
20523
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20524
|
+
deviceIds: array(number()),
|
|
20525
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20526
|
+
since: number().optional(),
|
|
20527
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20528
|
+
until: number().optional(),
|
|
20529
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20530
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20531
|
+
cursor: string().optional(),
|
|
20532
|
+
/**
|
|
20533
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20534
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20535
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20536
|
+
* make the operator's one filter component produce two shapes.
|
|
20537
|
+
*
|
|
20538
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20539
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20540
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20541
|
+
* about its primary.
|
|
20542
|
+
*
|
|
20543
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20544
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20545
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20546
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20547
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20548
|
+
*
|
|
20549
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20550
|
+
*/
|
|
20551
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20552
|
+
});
|
|
20553
|
+
var RecentSummariesPageSchema = object({
|
|
20554
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20555
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20556
|
+
* whichever feed drew it. */
|
|
20557
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20558
|
+
nextCursor: string().nullable()
|
|
20447
20559
|
});
|
|
20448
20560
|
var RecentTracksPageSchema = object({
|
|
20449
20561
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20857,7 +20969,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20857
20969
|
classes: array(string()).optional(),
|
|
20858
20970
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20859
20971
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20860
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20972
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20861
20973
|
kind: "mutation",
|
|
20862
20974
|
auth: "admin"
|
|
20863
20975
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -33070,7 +33182,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33070
33182
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33071
33183
|
* the Diagnostics page fight over the same value.
|
|
33072
33184
|
*/
|
|
33073
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33185
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33186
|
+
/**
|
|
33187
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33188
|
+
* retention actually deleted.
|
|
33189
|
+
*
|
|
33190
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33191
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33192
|
+
* this system is configured through this one document, and a retention audit
|
|
33193
|
+
* configured somewhere else is a second place to look when the question is
|
|
33194
|
+
* "what happened to my data".
|
|
33195
|
+
*
|
|
33196
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33197
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33198
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33199
|
+
*
|
|
33200
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33201
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33202
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33203
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33204
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33205
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33206
|
+
*/
|
|
33207
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33074
33208
|
});
|
|
33075
33209
|
/**
|
|
33076
33210
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33143,6 +33277,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33143
33277
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33144
33278
|
/** The channels ARMED right now, each with its deadline. */
|
|
33145
33279
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33280
|
+
/**
|
|
33281
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33282
|
+
*
|
|
33283
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33284
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33285
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33286
|
+
*/
|
|
33287
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33146
33288
|
persisted: boolean()
|
|
33147
33289
|
});
|
|
33148
33290
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
@@ -39376,6 +39518,12 @@ Object.freeze({
|
|
|
39376
39518
|
addonId: null,
|
|
39377
39519
|
access: "view"
|
|
39378
39520
|
},
|
|
39521
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39522
|
+
capName: "pipeline-analytics",
|
|
39523
|
+
capScope: "device",
|
|
39524
|
+
addonId: null,
|
|
39525
|
+
access: "view"
|
|
39526
|
+
},
|
|
39379
39527
|
"pipelineAnalytics.listRecentTracks": {
|
|
39380
39528
|
capName: "pipeline-analytics",
|
|
39381
39529
|
capScope: "device",
|
|
@@ -43203,6 +43351,11 @@ Object.freeze({
|
|
|
43203
43351
|
form: "single",
|
|
43204
43352
|
optional: true
|
|
43205
43353
|
}],
|
|
43354
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43355
|
+
name: "deviceIds",
|
|
43356
|
+
form: "array",
|
|
43357
|
+
optional: false
|
|
43358
|
+
}],
|
|
43206
43359
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43207
43360
|
name: "deviceIds",
|
|
43208
43361
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -5354,7 +5354,7 @@ var ZodIssueCode = {
|
|
|
5354
5354
|
var ZodFirstPartyTypeKind;
|
|
5355
5355
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5356
5356
|
//#endregion
|
|
5357
|
-
//#region ../types/dist/sleep-
|
|
5357
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5358
5358
|
/**
|
|
5359
5359
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5360
5360
|
* window to float samples (D455).
|
|
@@ -7371,7 +7371,23 @@ var EncodeProfileSchema = object({
|
|
|
7371
7371
|
"zerolatency",
|
|
7372
7372
|
"film",
|
|
7373
7373
|
"animation"
|
|
7374
|
-
]).optional()
|
|
7374
|
+
]).optional(),
|
|
7375
|
+
/**
|
|
7376
|
+
* ONE slice per access unit.
|
|
7377
|
+
*
|
|
7378
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7379
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7380
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7381
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7382
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7383
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7384
|
+
*
|
|
7385
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7386
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7387
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7388
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7389
|
+
*/
|
|
7390
|
+
singleSlicePerFrame: boolean().optional()
|
|
7375
7391
|
}),
|
|
7376
7392
|
audio: union([literal("passthrough"), object({
|
|
7377
7393
|
codec: _enum([
|
|
@@ -7421,7 +7437,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7421
7437
|
audio: "passthrough"
|
|
7422
7438
|
};
|
|
7423
7439
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7424
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7440
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7425
7441
|
/**
|
|
7426
7442
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7427
7443
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -20438,13 +20454,109 @@ var SummariesQueryInput = object({
|
|
|
20438
20454
|
deviceIds: array(number()).min(1),
|
|
20439
20455
|
since: number().optional(),
|
|
20440
20456
|
until: number().optional(),
|
|
20441
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20457
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20458
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20459
|
+
* meaning of "dog" on every summary surface. */
|
|
20460
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20442
20461
|
});
|
|
20443
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20444
20462
|
var SummaryDetailSchema = object({
|
|
20445
20463
|
summary: SummarySchema,
|
|
20446
|
-
/**
|
|
20447
|
-
|
|
20464
|
+
/** Members in absorption order, oldest join first. */
|
|
20465
|
+
members: array(object({
|
|
20466
|
+
trackId: string(),
|
|
20467
|
+
/**
|
|
20468
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20469
|
+
* and the track no longer exists to fill it.
|
|
20470
|
+
*
|
|
20471
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20472
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20473
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20474
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20475
|
+
* drift from the members it claims to describe.
|
|
20476
|
+
*/
|
|
20477
|
+
className: string().nullable(),
|
|
20478
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20479
|
+
role: _enum([
|
|
20480
|
+
"primary",
|
|
20481
|
+
"sibling",
|
|
20482
|
+
"child"
|
|
20483
|
+
]).nullable(),
|
|
20484
|
+
joinedAt: number(),
|
|
20485
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20486
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20487
|
+
label: string().optional(),
|
|
20488
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20489
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20490
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20491
|
+
subLabel: string().optional()
|
|
20492
|
+
})).readonly()
|
|
20493
|
+
});
|
|
20494
|
+
/**
|
|
20495
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20496
|
+
*
|
|
20497
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20498
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20499
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20500
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20501
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20502
|
+
* draw two hundred badges.
|
|
20503
|
+
*/
|
|
20504
|
+
var SummaryListItemSchema = object({
|
|
20505
|
+
summary: SummarySchema,
|
|
20506
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20507
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20508
|
+
classes: array(object({
|
|
20509
|
+
className: string().nullable(),
|
|
20510
|
+
count: number().int().positive()
|
|
20511
|
+
})).readonly()
|
|
20512
|
+
});
|
|
20513
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20514
|
+
/**
|
|
20515
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20516
|
+
*
|
|
20517
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20518
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20519
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20520
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20521
|
+
* "newest" means, on one screen.
|
|
20522
|
+
*/
|
|
20523
|
+
var RecentSummariesQueryInput = object({
|
|
20524
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20525
|
+
deviceIds: array(number()),
|
|
20526
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20527
|
+
since: number().optional(),
|
|
20528
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20529
|
+
until: number().optional(),
|
|
20530
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20531
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20532
|
+
cursor: string().optional(),
|
|
20533
|
+
/**
|
|
20534
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20535
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20536
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20537
|
+
* make the operator's one filter component produce two shapes.
|
|
20538
|
+
*
|
|
20539
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20540
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20541
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20542
|
+
* about its primary.
|
|
20543
|
+
*
|
|
20544
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20545
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20546
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20547
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20548
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20549
|
+
*
|
|
20550
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20551
|
+
*/
|
|
20552
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20553
|
+
});
|
|
20554
|
+
var RecentSummariesPageSchema = object({
|
|
20555
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20556
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20557
|
+
* whichever feed drew it. */
|
|
20558
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20559
|
+
nextCursor: string().nullable()
|
|
20448
20560
|
});
|
|
20449
20561
|
var RecentTracksPageSchema = object({
|
|
20450
20562
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20858,7 +20970,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20858
20970
|
classes: array(string()).optional(),
|
|
20859
20971
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20860
20972
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20861
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20973
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20862
20974
|
kind: "mutation",
|
|
20863
20975
|
auth: "admin"
|
|
20864
20976
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -33071,7 +33183,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33071
33183
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33072
33184
|
* the Diagnostics page fight over the same value.
|
|
33073
33185
|
*/
|
|
33074
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33186
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33187
|
+
/**
|
|
33188
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33189
|
+
* retention actually deleted.
|
|
33190
|
+
*
|
|
33191
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33192
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33193
|
+
* this system is configured through this one document, and a retention audit
|
|
33194
|
+
* configured somewhere else is a second place to look when the question is
|
|
33195
|
+
* "what happened to my data".
|
|
33196
|
+
*
|
|
33197
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33198
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33199
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33200
|
+
*
|
|
33201
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33202
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33203
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33204
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33205
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33206
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33207
|
+
*/
|
|
33208
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33075
33209
|
});
|
|
33076
33210
|
/**
|
|
33077
33211
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33144,6 +33278,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33144
33278
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33145
33279
|
/** The channels ARMED right now, each with its deadline. */
|
|
33146
33280
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33281
|
+
/**
|
|
33282
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33283
|
+
*
|
|
33284
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33285
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33286
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33287
|
+
*/
|
|
33288
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33147
33289
|
persisted: boolean()
|
|
33148
33290
|
});
|
|
33149
33291
|
method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
@@ -39377,6 +39519,12 @@ Object.freeze({
|
|
|
39377
39519
|
addonId: null,
|
|
39378
39520
|
access: "view"
|
|
39379
39521
|
},
|
|
39522
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39523
|
+
capName: "pipeline-analytics",
|
|
39524
|
+
capScope: "device",
|
|
39525
|
+
addonId: null,
|
|
39526
|
+
access: "view"
|
|
39527
|
+
},
|
|
39380
39528
|
"pipelineAnalytics.listRecentTracks": {
|
|
39381
39529
|
capName: "pipeline-analytics",
|
|
39382
39530
|
capScope: "device",
|
|
@@ -43204,6 +43352,11 @@ Object.freeze({
|
|
|
43204
43352
|
form: "single",
|
|
43205
43353
|
optional: true
|
|
43206
43354
|
}],
|
|
43355
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43356
|
+
name: "deviceIds",
|
|
43357
|
+
form: "array",
|
|
43358
|
+
optional: false
|
|
43359
|
+
}],
|
|
43207
43360
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43208
43361
|
name: "deviceIds",
|
|
43209
43362
|
form: "array",
|
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.109",
|
|
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",
|