@camstack/addon-provider-onvif 1.2.99 → 1.2.100
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
|
@@ -5349,7 +5349,7 @@ var ZodIssueCode = {
|
|
|
5349
5349
|
var ZodFirstPartyTypeKind;
|
|
5350
5350
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5351
5351
|
//#endregion
|
|
5352
|
-
//#region ../types/dist/sleep-
|
|
5352
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5353
5353
|
/**
|
|
5354
5354
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5355
5355
|
* window to float samples (D455).
|
|
@@ -7374,7 +7374,23 @@ var EncodeProfileSchema = object({
|
|
|
7374
7374
|
"zerolatency",
|
|
7375
7375
|
"film",
|
|
7376
7376
|
"animation"
|
|
7377
|
-
]).optional()
|
|
7377
|
+
]).optional(),
|
|
7378
|
+
/**
|
|
7379
|
+
* ONE slice per access unit.
|
|
7380
|
+
*
|
|
7381
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7382
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7383
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7384
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7385
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7386
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7387
|
+
*
|
|
7388
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7389
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7390
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7391
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7392
|
+
*/
|
|
7393
|
+
singleSlicePerFrame: boolean().optional()
|
|
7378
7394
|
}),
|
|
7379
7395
|
audio: union([literal("passthrough"), object({
|
|
7380
7396
|
codec: _enum([
|
|
@@ -7424,7 +7440,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7424
7440
|
audio: "passthrough"
|
|
7425
7441
|
};
|
|
7426
7442
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7427
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7443
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7428
7444
|
/**
|
|
7429
7445
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7430
7446
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19842,13 +19858,109 @@ var SummariesQueryInput = object({
|
|
|
19842
19858
|
deviceIds: array(number()).min(1),
|
|
19843
19859
|
since: number().optional(),
|
|
19844
19860
|
until: number().optional(),
|
|
19845
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19861
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19862
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19863
|
+
* meaning of "dog" on every summary surface. */
|
|
19864
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19846
19865
|
});
|
|
19847
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19848
19866
|
var SummaryDetailSchema = object({
|
|
19849
19867
|
summary: SummarySchema,
|
|
19850
|
-
/**
|
|
19851
|
-
|
|
19868
|
+
/** Members in absorption order, oldest join first. */
|
|
19869
|
+
members: array(object({
|
|
19870
|
+
trackId: string(),
|
|
19871
|
+
/**
|
|
19872
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19873
|
+
* and the track no longer exists to fill it.
|
|
19874
|
+
*
|
|
19875
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19876
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19877
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19878
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19879
|
+
* drift from the members it claims to describe.
|
|
19880
|
+
*/
|
|
19881
|
+
className: string().nullable(),
|
|
19882
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19883
|
+
role: _enum([
|
|
19884
|
+
"primary",
|
|
19885
|
+
"sibling",
|
|
19886
|
+
"child"
|
|
19887
|
+
]).nullable(),
|
|
19888
|
+
joinedAt: number(),
|
|
19889
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19890
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19891
|
+
label: string().optional(),
|
|
19892
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19893
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19894
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19895
|
+
subLabel: string().optional()
|
|
19896
|
+
})).readonly()
|
|
19897
|
+
});
|
|
19898
|
+
/**
|
|
19899
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19900
|
+
*
|
|
19901
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19902
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19903
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19904
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19905
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19906
|
+
* draw two hundred badges.
|
|
19907
|
+
*/
|
|
19908
|
+
var SummaryListItemSchema = object({
|
|
19909
|
+
summary: SummarySchema,
|
|
19910
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19911
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19912
|
+
classes: array(object({
|
|
19913
|
+
className: string().nullable(),
|
|
19914
|
+
count: number().int().positive()
|
|
19915
|
+
})).readonly()
|
|
19916
|
+
});
|
|
19917
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19918
|
+
/**
|
|
19919
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19920
|
+
*
|
|
19921
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19922
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19923
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19924
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19925
|
+
* "newest" means, on one screen.
|
|
19926
|
+
*/
|
|
19927
|
+
var RecentSummariesQueryInput = object({
|
|
19928
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19929
|
+
deviceIds: array(number()),
|
|
19930
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19931
|
+
since: number().optional(),
|
|
19932
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19933
|
+
until: number().optional(),
|
|
19934
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19935
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19936
|
+
cursor: string().optional(),
|
|
19937
|
+
/**
|
|
19938
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19939
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19940
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19941
|
+
* make the operator's one filter component produce two shapes.
|
|
19942
|
+
*
|
|
19943
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19944
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19945
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19946
|
+
* about its primary.
|
|
19947
|
+
*
|
|
19948
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19949
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19950
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19951
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19952
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19953
|
+
*
|
|
19954
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19955
|
+
*/
|
|
19956
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19957
|
+
});
|
|
19958
|
+
var RecentSummariesPageSchema = object({
|
|
19959
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19960
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19961
|
+
* whichever feed drew it. */
|
|
19962
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19963
|
+
nextCursor: string().nullable()
|
|
19852
19964
|
});
|
|
19853
19965
|
var RecentTracksPageSchema = object({
|
|
19854
19966
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20262,7 +20374,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20262
20374
|
classes: array(string()).optional(),
|
|
20263
20375
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20264
20376
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20265
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20377
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20266
20378
|
kind: "mutation",
|
|
20267
20379
|
auth: "admin"
|
|
20268
20380
|
}), 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({
|
|
@@ -30014,7 +30126,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30014
30126
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30015
30127
|
* the Diagnostics page fight over the same value.
|
|
30016
30128
|
*/
|
|
30017
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30129
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30130
|
+
/**
|
|
30131
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30132
|
+
* retention actually deleted.
|
|
30133
|
+
*
|
|
30134
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30135
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30136
|
+
* this system is configured through this one document, and a retention audit
|
|
30137
|
+
* configured somewhere else is a second place to look when the question is
|
|
30138
|
+
* "what happened to my data".
|
|
30139
|
+
*
|
|
30140
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30141
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30142
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30143
|
+
*
|
|
30144
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30145
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30146
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30147
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30148
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30149
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30150
|
+
*/
|
|
30151
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30018
30152
|
});
|
|
30019
30153
|
/**
|
|
30020
30154
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30087,6 +30221,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30087
30221
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30088
30222
|
/** The channels ARMED right now, each with its deadline. */
|
|
30089
30223
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30224
|
+
/**
|
|
30225
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30226
|
+
*
|
|
30227
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30228
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30229
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30230
|
+
*/
|
|
30231
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30090
30232
|
persisted: boolean()
|
|
30091
30233
|
});
|
|
30092
30234
|
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(), {
|
|
@@ -35072,6 +35214,12 @@ Object.freeze({
|
|
|
35072
35214
|
addonId: null,
|
|
35073
35215
|
access: "view"
|
|
35074
35216
|
},
|
|
35217
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
35218
|
+
capName: "pipeline-analytics",
|
|
35219
|
+
capScope: "device",
|
|
35220
|
+
addonId: null,
|
|
35221
|
+
access: "view"
|
|
35222
|
+
},
|
|
35075
35223
|
"pipelineAnalytics.listRecentTracks": {
|
|
35076
35224
|
capName: "pipeline-analytics",
|
|
35077
35225
|
capScope: "device",
|
|
@@ -38899,6 +39047,11 @@ Object.freeze({
|
|
|
38899
39047
|
form: "single",
|
|
38900
39048
|
optional: true
|
|
38901
39049
|
}],
|
|
39050
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
39051
|
+
name: "deviceIds",
|
|
39052
|
+
form: "array",
|
|
39053
|
+
optional: false
|
|
39054
|
+
}],
|
|
38902
39055
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38903
39056
|
name: "deviceIds",
|
|
38904
39057
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -5350,7 +5350,7 @@ var ZodIssueCode = {
|
|
|
5350
5350
|
var ZodFirstPartyTypeKind;
|
|
5351
5351
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5352
5352
|
//#endregion
|
|
5353
|
-
//#region ../types/dist/sleep-
|
|
5353
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5354
5354
|
/**
|
|
5355
5355
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5356
5356
|
* window to float samples (D455).
|
|
@@ -7375,7 +7375,23 @@ var EncodeProfileSchema = object({
|
|
|
7375
7375
|
"zerolatency",
|
|
7376
7376
|
"film",
|
|
7377
7377
|
"animation"
|
|
7378
|
-
]).optional()
|
|
7378
|
+
]).optional(),
|
|
7379
|
+
/**
|
|
7380
|
+
* ONE slice per access unit.
|
|
7381
|
+
*
|
|
7382
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7383
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7384
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7385
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7386
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7387
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7388
|
+
*
|
|
7389
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7390
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7391
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7392
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7393
|
+
*/
|
|
7394
|
+
singleSlicePerFrame: boolean().optional()
|
|
7379
7395
|
}),
|
|
7380
7396
|
audio: union([literal("passthrough"), object({
|
|
7381
7397
|
codec: _enum([
|
|
@@ -7425,7 +7441,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7425
7441
|
audio: "passthrough"
|
|
7426
7442
|
};
|
|
7427
7443
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7428
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7444
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7429
7445
|
/**
|
|
7430
7446
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7431
7447
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19843,13 +19859,109 @@ var SummariesQueryInput = object({
|
|
|
19843
19859
|
deviceIds: array(number()).min(1),
|
|
19844
19860
|
since: number().optional(),
|
|
19845
19861
|
until: number().optional(),
|
|
19846
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19862
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19863
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19864
|
+
* meaning of "dog" on every summary surface. */
|
|
19865
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19847
19866
|
});
|
|
19848
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19849
19867
|
var SummaryDetailSchema = object({
|
|
19850
19868
|
summary: SummarySchema,
|
|
19851
|
-
/**
|
|
19852
|
-
|
|
19869
|
+
/** Members in absorption order, oldest join first. */
|
|
19870
|
+
members: array(object({
|
|
19871
|
+
trackId: string(),
|
|
19872
|
+
/**
|
|
19873
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19874
|
+
* and the track no longer exists to fill it.
|
|
19875
|
+
*
|
|
19876
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19877
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19878
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19879
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19880
|
+
* drift from the members it claims to describe.
|
|
19881
|
+
*/
|
|
19882
|
+
className: string().nullable(),
|
|
19883
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19884
|
+
role: _enum([
|
|
19885
|
+
"primary",
|
|
19886
|
+
"sibling",
|
|
19887
|
+
"child"
|
|
19888
|
+
]).nullable(),
|
|
19889
|
+
joinedAt: number(),
|
|
19890
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19891
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19892
|
+
label: string().optional(),
|
|
19893
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19894
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19895
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19896
|
+
subLabel: string().optional()
|
|
19897
|
+
})).readonly()
|
|
19898
|
+
});
|
|
19899
|
+
/**
|
|
19900
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19901
|
+
*
|
|
19902
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19903
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19904
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19905
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19906
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19907
|
+
* draw two hundred badges.
|
|
19908
|
+
*/
|
|
19909
|
+
var SummaryListItemSchema = object({
|
|
19910
|
+
summary: SummarySchema,
|
|
19911
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19912
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19913
|
+
classes: array(object({
|
|
19914
|
+
className: string().nullable(),
|
|
19915
|
+
count: number().int().positive()
|
|
19916
|
+
})).readonly()
|
|
19917
|
+
});
|
|
19918
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19919
|
+
/**
|
|
19920
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19921
|
+
*
|
|
19922
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19923
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19924
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19925
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19926
|
+
* "newest" means, on one screen.
|
|
19927
|
+
*/
|
|
19928
|
+
var RecentSummariesQueryInput = object({
|
|
19929
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19930
|
+
deviceIds: array(number()),
|
|
19931
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19932
|
+
since: number().optional(),
|
|
19933
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19934
|
+
until: number().optional(),
|
|
19935
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19936
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19937
|
+
cursor: string().optional(),
|
|
19938
|
+
/**
|
|
19939
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19940
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19941
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19942
|
+
* make the operator's one filter component produce two shapes.
|
|
19943
|
+
*
|
|
19944
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19945
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19946
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19947
|
+
* about its primary.
|
|
19948
|
+
*
|
|
19949
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19950
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19951
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19952
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19953
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19954
|
+
*
|
|
19955
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19956
|
+
*/
|
|
19957
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19958
|
+
});
|
|
19959
|
+
var RecentSummariesPageSchema = object({
|
|
19960
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19961
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19962
|
+
* whichever feed drew it. */
|
|
19963
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19964
|
+
nextCursor: string().nullable()
|
|
19853
19965
|
});
|
|
19854
19966
|
var RecentTracksPageSchema = object({
|
|
19855
19967
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20263,7 +20375,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20263
20375
|
classes: array(string()).optional(),
|
|
20264
20376
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20265
20377
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20266
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20378
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20267
20379
|
kind: "mutation",
|
|
20268
20380
|
auth: "admin"
|
|
20269
20381
|
}), 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({
|
|
@@ -30015,7 +30127,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30015
30127
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30016
30128
|
* the Diagnostics page fight over the same value.
|
|
30017
30129
|
*/
|
|
30018
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30130
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30131
|
+
/**
|
|
30132
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30133
|
+
* retention actually deleted.
|
|
30134
|
+
*
|
|
30135
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30136
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30137
|
+
* this system is configured through this one document, and a retention audit
|
|
30138
|
+
* configured somewhere else is a second place to look when the question is
|
|
30139
|
+
* "what happened to my data".
|
|
30140
|
+
*
|
|
30141
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30142
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30143
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30144
|
+
*
|
|
30145
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30146
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30147
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30148
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30149
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30150
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30151
|
+
*/
|
|
30152
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30019
30153
|
});
|
|
30020
30154
|
/**
|
|
30021
30155
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30088,6 +30222,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30088
30222
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30089
30223
|
/** The channels ARMED right now, each with its deadline. */
|
|
30090
30224
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30225
|
+
/**
|
|
30226
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30227
|
+
*
|
|
30228
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30229
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30230
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30231
|
+
*/
|
|
30232
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30091
30233
|
persisted: boolean()
|
|
30092
30234
|
});
|
|
30093
30235
|
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(), {
|
|
@@ -35073,6 +35215,12 @@ Object.freeze({
|
|
|
35073
35215
|
addonId: null,
|
|
35074
35216
|
access: "view"
|
|
35075
35217
|
},
|
|
35218
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
35219
|
+
capName: "pipeline-analytics",
|
|
35220
|
+
capScope: "device",
|
|
35221
|
+
addonId: null,
|
|
35222
|
+
access: "view"
|
|
35223
|
+
},
|
|
35076
35224
|
"pipelineAnalytics.listRecentTracks": {
|
|
35077
35225
|
capName: "pipeline-analytics",
|
|
35078
35226
|
capScope: "device",
|
|
@@ -38900,6 +39048,11 @@ Object.freeze({
|
|
|
38900
39048
|
form: "single",
|
|
38901
39049
|
optional: true
|
|
38902
39050
|
}],
|
|
39051
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
39052
|
+
name: "deviceIds",
|
|
39053
|
+
form: "array",
|
|
39054
|
+
optional: false
|
|
39055
|
+
}],
|
|
38903
39056
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38904
39057
|
name: "deviceIds",
|
|
38905
39058
|
form: "array",
|