@camstack/addon-provider-petkit 0.2.100 → 0.2.101
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
|
@@ -6448,7 +6448,7 @@ var ZodIssueCode = {
|
|
|
6448
6448
|
var ZodFirstPartyTypeKind;
|
|
6449
6449
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6450
6450
|
//#endregion
|
|
6451
|
-
//#region ../types/dist/sleep-
|
|
6451
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
6452
6452
|
/**
|
|
6453
6453
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6454
6454
|
* window to float samples (D455).
|
|
@@ -8477,7 +8477,23 @@ var EncodeProfileSchema = object({
|
|
|
8477
8477
|
"zerolatency",
|
|
8478
8478
|
"film",
|
|
8479
8479
|
"animation"
|
|
8480
|
-
]).optional()
|
|
8480
|
+
]).optional(),
|
|
8481
|
+
/**
|
|
8482
|
+
* ONE slice per access unit.
|
|
8483
|
+
*
|
|
8484
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
8485
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
8486
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
8487
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
8488
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
8489
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
8490
|
+
*
|
|
8491
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
8492
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
8493
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
8494
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
8495
|
+
*/
|
|
8496
|
+
singleSlicePerFrame: boolean().optional()
|
|
8481
8497
|
}),
|
|
8482
8498
|
audio: union([literal("passthrough"), object({
|
|
8483
8499
|
codec: _enum([
|
|
@@ -8527,7 +8543,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
8527
8543
|
audio: "passthrough"
|
|
8528
8544
|
};
|
|
8529
8545
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8530
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
8546
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8531
8547
|
/**
|
|
8532
8548
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
8533
8549
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -21249,13 +21265,109 @@ var SummariesQueryInput = object({
|
|
|
21249
21265
|
deviceIds: array(number()).min(1),
|
|
21250
21266
|
since: number().optional(),
|
|
21251
21267
|
until: number().optional(),
|
|
21252
|
-
limit: number().int().min(1).max(200).default(50)
|
|
21268
|
+
limit: number().int().min(1).max(200).default(50),
|
|
21269
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
21270
|
+
* meaning of "dog" on every summary surface. */
|
|
21271
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21253
21272
|
});
|
|
21254
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
21255
21273
|
var SummaryDetailSchema = object({
|
|
21256
21274
|
summary: SummarySchema,
|
|
21257
|
-
/**
|
|
21258
|
-
|
|
21275
|
+
/** Members in absorption order, oldest join first. */
|
|
21276
|
+
members: array(object({
|
|
21277
|
+
trackId: string(),
|
|
21278
|
+
/**
|
|
21279
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
21280
|
+
* and the track no longer exists to fill it.
|
|
21281
|
+
*
|
|
21282
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
21283
|
+
* class afterwards, and a group's composition is the history of who came
|
|
21284
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
21285
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
21286
|
+
* drift from the members it claims to describe.
|
|
21287
|
+
*/
|
|
21288
|
+
className: string().nullable(),
|
|
21289
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
21290
|
+
role: _enum([
|
|
21291
|
+
"primary",
|
|
21292
|
+
"sibling",
|
|
21293
|
+
"child"
|
|
21294
|
+
]).nullable(),
|
|
21295
|
+
joinedAt: number(),
|
|
21296
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
21297
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
21298
|
+
label: string().optional(),
|
|
21299
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
21300
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
21301
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
21302
|
+
subLabel: string().optional()
|
|
21303
|
+
})).readonly()
|
|
21304
|
+
});
|
|
21305
|
+
/**
|
|
21306
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
21307
|
+
*
|
|
21308
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
21309
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
21310
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
21311
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
21312
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
21313
|
+
* draw two hundred badges.
|
|
21314
|
+
*/
|
|
21315
|
+
var SummaryListItemSchema = object({
|
|
21316
|
+
summary: SummarySchema,
|
|
21317
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
21318
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
21319
|
+
classes: array(object({
|
|
21320
|
+
className: string().nullable(),
|
|
21321
|
+
count: number().int().positive()
|
|
21322
|
+
})).readonly()
|
|
21323
|
+
});
|
|
21324
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
21325
|
+
/**
|
|
21326
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
21327
|
+
*
|
|
21328
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
21329
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
21330
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
21331
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
21332
|
+
* "newest" means, on one screen.
|
|
21333
|
+
*/
|
|
21334
|
+
var RecentSummariesQueryInput = object({
|
|
21335
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
21336
|
+
deviceIds: array(number()),
|
|
21337
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
21338
|
+
since: number().optional(),
|
|
21339
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
21340
|
+
until: number().optional(),
|
|
21341
|
+
limit: number().int().min(1).max(500).default(100),
|
|
21342
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
21343
|
+
cursor: string().optional(),
|
|
21344
|
+
/**
|
|
21345
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
21346
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
21347
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
21348
|
+
* make the operator's one filter component produce two shapes.
|
|
21349
|
+
*
|
|
21350
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
21351
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
21352
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
21353
|
+
* about its primary.
|
|
21354
|
+
*
|
|
21355
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
21356
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
21357
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
21358
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
21359
|
+
* that read only the class would answer "animal" and never "dog".
|
|
21360
|
+
*
|
|
21361
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
21362
|
+
*/
|
|
21363
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21364
|
+
});
|
|
21365
|
+
var RecentSummariesPageSchema = object({
|
|
21366
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
21367
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
21368
|
+
* whichever feed drew it. */
|
|
21369
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
21370
|
+
nextCursor: string().nullable()
|
|
21259
21371
|
});
|
|
21260
21372
|
var RecentTracksPageSchema = object({
|
|
21261
21373
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -21669,7 +21781,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21669
21781
|
classes: array(string()).optional(),
|
|
21670
21782
|
/** See {@link ExcludeSourcesDoc}. */
|
|
21671
21783
|
excludeSources: array(TrackSourceSchema).optional()
|
|
21672
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21784
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21673
21785
|
kind: "mutation",
|
|
21674
21786
|
auth: "admin"
|
|
21675
21787
|
}), 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({
|
|
@@ -33430,7 +33542,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33430
33542
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33431
33543
|
* the Diagnostics page fight over the same value.
|
|
33432
33544
|
*/
|
|
33433
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33545
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33546
|
+
/**
|
|
33547
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33548
|
+
* retention actually deleted.
|
|
33549
|
+
*
|
|
33550
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33551
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33552
|
+
* this system is configured through this one document, and a retention audit
|
|
33553
|
+
* configured somewhere else is a second place to look when the question is
|
|
33554
|
+
* "what happened to my data".
|
|
33555
|
+
*
|
|
33556
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33557
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33558
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33559
|
+
*
|
|
33560
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33561
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33562
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33563
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33564
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33565
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33566
|
+
*/
|
|
33567
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33434
33568
|
});
|
|
33435
33569
|
/**
|
|
33436
33570
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33503,6 +33637,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33503
33637
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33504
33638
|
/** The channels ARMED right now, each with its deadline. */
|
|
33505
33639
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33640
|
+
/**
|
|
33641
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33642
|
+
*
|
|
33643
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33644
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33645
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33646
|
+
*/
|
|
33647
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33506
33648
|
persisted: boolean()
|
|
33507
33649
|
});
|
|
33508
33650
|
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(), {
|
|
@@ -39503,6 +39645,12 @@ Object.freeze({
|
|
|
39503
39645
|
addonId: null,
|
|
39504
39646
|
access: "view"
|
|
39505
39647
|
},
|
|
39648
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39649
|
+
capName: "pipeline-analytics",
|
|
39650
|
+
capScope: "device",
|
|
39651
|
+
addonId: null,
|
|
39652
|
+
access: "view"
|
|
39653
|
+
},
|
|
39506
39654
|
"pipelineAnalytics.listRecentTracks": {
|
|
39507
39655
|
capName: "pipeline-analytics",
|
|
39508
39656
|
capScope: "device",
|
|
@@ -43330,6 +43478,11 @@ Object.freeze({
|
|
|
43330
43478
|
form: "single",
|
|
43331
43479
|
optional: true
|
|
43332
43480
|
}],
|
|
43481
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43482
|
+
name: "deviceIds",
|
|
43483
|
+
form: "array",
|
|
43484
|
+
optional: false
|
|
43485
|
+
}],
|
|
43333
43486
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43334
43487
|
name: "deviceIds",
|
|
43335
43488
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -6447,7 +6447,7 @@ var ZodIssueCode = {
|
|
|
6447
6447
|
var ZodFirstPartyTypeKind;
|
|
6448
6448
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6449
6449
|
//#endregion
|
|
6450
|
-
//#region ../types/dist/sleep-
|
|
6450
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
6451
6451
|
/**
|
|
6452
6452
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6453
6453
|
* window to float samples (D455).
|
|
@@ -8476,7 +8476,23 @@ var EncodeProfileSchema = object({
|
|
|
8476
8476
|
"zerolatency",
|
|
8477
8477
|
"film",
|
|
8478
8478
|
"animation"
|
|
8479
|
-
]).optional()
|
|
8479
|
+
]).optional(),
|
|
8480
|
+
/**
|
|
8481
|
+
* ONE slice per access unit.
|
|
8482
|
+
*
|
|
8483
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
8484
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
8485
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
8486
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
8487
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
8488
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
8489
|
+
*
|
|
8490
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
8491
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
8492
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
8493
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
8494
|
+
*/
|
|
8495
|
+
singleSlicePerFrame: boolean().optional()
|
|
8480
8496
|
}),
|
|
8481
8497
|
audio: union([literal("passthrough"), object({
|
|
8482
8498
|
codec: _enum([
|
|
@@ -8526,7 +8542,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
8526
8542
|
audio: "passthrough"
|
|
8527
8543
|
};
|
|
8528
8544
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8529
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
8545
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
8530
8546
|
/**
|
|
8531
8547
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
8532
8548
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -21248,13 +21264,109 @@ var SummariesQueryInput = object({
|
|
|
21248
21264
|
deviceIds: array(number()).min(1),
|
|
21249
21265
|
since: number().optional(),
|
|
21250
21266
|
until: number().optional(),
|
|
21251
|
-
limit: number().int().min(1).max(200).default(50)
|
|
21267
|
+
limit: number().int().min(1).max(200).default(50),
|
|
21268
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
21269
|
+
* meaning of "dog" on every summary surface. */
|
|
21270
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21252
21271
|
});
|
|
21253
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
21254
21272
|
var SummaryDetailSchema = object({
|
|
21255
21273
|
summary: SummarySchema,
|
|
21256
|
-
/**
|
|
21257
|
-
|
|
21274
|
+
/** Members in absorption order, oldest join first. */
|
|
21275
|
+
members: array(object({
|
|
21276
|
+
trackId: string(),
|
|
21277
|
+
/**
|
|
21278
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
21279
|
+
* and the track no longer exists to fill it.
|
|
21280
|
+
*
|
|
21281
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
21282
|
+
* class afterwards, and a group's composition is the history of who came
|
|
21283
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
21284
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
21285
|
+
* drift from the members it claims to describe.
|
|
21286
|
+
*/
|
|
21287
|
+
className: string().nullable(),
|
|
21288
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
21289
|
+
role: _enum([
|
|
21290
|
+
"primary",
|
|
21291
|
+
"sibling",
|
|
21292
|
+
"child"
|
|
21293
|
+
]).nullable(),
|
|
21294
|
+
joinedAt: number(),
|
|
21295
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
21296
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
21297
|
+
label: string().optional(),
|
|
21298
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
21299
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
21300
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
21301
|
+
subLabel: string().optional()
|
|
21302
|
+
})).readonly()
|
|
21303
|
+
});
|
|
21304
|
+
/**
|
|
21305
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
21306
|
+
*
|
|
21307
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
21308
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
21309
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
21310
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
21311
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
21312
|
+
* draw two hundred badges.
|
|
21313
|
+
*/
|
|
21314
|
+
var SummaryListItemSchema = object({
|
|
21315
|
+
summary: SummarySchema,
|
|
21316
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
21317
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
21318
|
+
classes: array(object({
|
|
21319
|
+
className: string().nullable(),
|
|
21320
|
+
count: number().int().positive()
|
|
21321
|
+
})).readonly()
|
|
21322
|
+
});
|
|
21323
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
21324
|
+
/**
|
|
21325
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
21326
|
+
*
|
|
21327
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
21328
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
21329
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
21330
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
21331
|
+
* "newest" means, on one screen.
|
|
21332
|
+
*/
|
|
21333
|
+
var RecentSummariesQueryInput = object({
|
|
21334
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
21335
|
+
deviceIds: array(number()),
|
|
21336
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
21337
|
+
since: number().optional(),
|
|
21338
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
21339
|
+
until: number().optional(),
|
|
21340
|
+
limit: number().int().min(1).max(500).default(100),
|
|
21341
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
21342
|
+
cursor: string().optional(),
|
|
21343
|
+
/**
|
|
21344
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
21345
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
21346
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
21347
|
+
* make the operator's one filter component produce two shapes.
|
|
21348
|
+
*
|
|
21349
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
21350
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
21351
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
21352
|
+
* about its primary.
|
|
21353
|
+
*
|
|
21354
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
21355
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
21356
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
21357
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
21358
|
+
* that read only the class would answer "animal" and never "dog".
|
|
21359
|
+
*
|
|
21360
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
21361
|
+
*/
|
|
21362
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
21363
|
+
});
|
|
21364
|
+
var RecentSummariesPageSchema = object({
|
|
21365
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
21366
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
21367
|
+
* whichever feed drew it. */
|
|
21368
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
21369
|
+
nextCursor: string().nullable()
|
|
21258
21370
|
});
|
|
21259
21371
|
var RecentTracksPageSchema = object({
|
|
21260
21372
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -21668,7 +21780,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21668
21780
|
classes: array(string()).optional(),
|
|
21669
21781
|
/** See {@link ExcludeSourcesDoc}. */
|
|
21670
21782
|
excludeSources: array(TrackSourceSchema).optional()
|
|
21671
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21783
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21672
21784
|
kind: "mutation",
|
|
21673
21785
|
auth: "admin"
|
|
21674
21786
|
}), 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({
|
|
@@ -33429,7 +33541,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33429
33541
|
* disarmed the channels it did not mention would make the Levels page and
|
|
33430
33542
|
* the Diagnostics page fight over the same value.
|
|
33431
33543
|
*/
|
|
33432
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
33544
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
33545
|
+
/**
|
|
33546
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
33547
|
+
* retention actually deleted.
|
|
33548
|
+
*
|
|
33549
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
33550
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
33551
|
+
* this system is configured through this one document, and a retention audit
|
|
33552
|
+
* configured somewhere else is a second place to look when the question is
|
|
33553
|
+
* "what happened to my data".
|
|
33554
|
+
*
|
|
33555
|
+
* That placement has a cost worth stating: this document ships in the
|
|
33556
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
33557
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
33558
|
+
*
|
|
33559
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
33560
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
33561
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
33562
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
33563
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
33564
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
33565
|
+
*/
|
|
33566
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
33433
33567
|
});
|
|
33434
33568
|
/**
|
|
33435
33569
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33502,6 +33636,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
33502
33636
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
33503
33637
|
/** The channels ARMED right now, each with its deadline. */
|
|
33504
33638
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
33639
|
+
/**
|
|
33640
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
33641
|
+
*
|
|
33642
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
33643
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
33644
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
33645
|
+
*/
|
|
33646
|
+
opsLogRetentionDays: number().int().min(0),
|
|
33505
33647
|
persisted: boolean()
|
|
33506
33648
|
});
|
|
33507
33649
|
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(), {
|
|
@@ -39502,6 +39644,12 @@ Object.freeze({
|
|
|
39502
39644
|
addonId: null,
|
|
39503
39645
|
access: "view"
|
|
39504
39646
|
},
|
|
39647
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
39648
|
+
capName: "pipeline-analytics",
|
|
39649
|
+
capScope: "device",
|
|
39650
|
+
addonId: null,
|
|
39651
|
+
access: "view"
|
|
39652
|
+
},
|
|
39505
39653
|
"pipelineAnalytics.listRecentTracks": {
|
|
39506
39654
|
capName: "pipeline-analytics",
|
|
39507
39655
|
capScope: "device",
|
|
@@ -43329,6 +43477,11 @@ Object.freeze({
|
|
|
43329
43477
|
form: "single",
|
|
43330
43478
|
optional: true
|
|
43331
43479
|
}],
|
|
43480
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
43481
|
+
name: "deviceIds",
|
|
43482
|
+
form: "array",
|
|
43483
|
+
optional: false
|
|
43484
|
+
}],
|
|
43332
43485
|
"pipelineAnalytics.listRecentTracks": [{
|
|
43333
43486
|
name: "deviceIds",
|
|
43334
43487
|
form: "array",
|
package/package.json
CHANGED