@camstack/addon-export-hap 1.2.111 → 1.2.112
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/hap-export.addon.js +144 -7
- package/dist/hap-export.addon.mjs +144 -7
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -5431,7 +5431,7 @@ var ZodIssueCode = {
|
|
|
5431
5431
|
var ZodFirstPartyTypeKind;
|
|
5432
5432
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5433
5433
|
//#endregion
|
|
5434
|
-
//#region ../types/dist/sleep-
|
|
5434
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5435
5435
|
/**
|
|
5436
5436
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5437
5437
|
* window to float samples (D455).
|
|
@@ -20563,13 +20563,109 @@ var SummariesQueryInput = object({
|
|
|
20563
20563
|
deviceIds: array(number()).min(1),
|
|
20564
20564
|
since: number().optional(),
|
|
20565
20565
|
until: number().optional(),
|
|
20566
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20566
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20567
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20568
|
+
* meaning of "dog" on every summary surface. */
|
|
20569
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20567
20570
|
});
|
|
20568
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20569
20571
|
var SummaryDetailSchema = object({
|
|
20570
20572
|
summary: SummarySchema,
|
|
20571
|
-
/**
|
|
20572
|
-
|
|
20573
|
+
/** Members in absorption order, oldest join first. */
|
|
20574
|
+
members: array(object({
|
|
20575
|
+
trackId: string(),
|
|
20576
|
+
/**
|
|
20577
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20578
|
+
* and the track no longer exists to fill it.
|
|
20579
|
+
*
|
|
20580
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20581
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20582
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20583
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20584
|
+
* drift from the members it claims to describe.
|
|
20585
|
+
*/
|
|
20586
|
+
className: string().nullable(),
|
|
20587
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20588
|
+
role: _enum([
|
|
20589
|
+
"primary",
|
|
20590
|
+
"sibling",
|
|
20591
|
+
"child"
|
|
20592
|
+
]).nullable(),
|
|
20593
|
+
joinedAt: number(),
|
|
20594
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20595
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20596
|
+
label: string().optional(),
|
|
20597
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20598
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20599
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20600
|
+
subLabel: string().optional()
|
|
20601
|
+
})).readonly()
|
|
20602
|
+
});
|
|
20603
|
+
/**
|
|
20604
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20605
|
+
*
|
|
20606
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20607
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20608
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20609
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20610
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20611
|
+
* draw two hundred badges.
|
|
20612
|
+
*/
|
|
20613
|
+
var SummaryListItemSchema = object({
|
|
20614
|
+
summary: SummarySchema,
|
|
20615
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20616
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20617
|
+
classes: array(object({
|
|
20618
|
+
className: string().nullable(),
|
|
20619
|
+
count: number().int().positive()
|
|
20620
|
+
})).readonly()
|
|
20621
|
+
});
|
|
20622
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20623
|
+
/**
|
|
20624
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20625
|
+
*
|
|
20626
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20627
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20628
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20629
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20630
|
+
* "newest" means, on one screen.
|
|
20631
|
+
*/
|
|
20632
|
+
var RecentSummariesQueryInput = object({
|
|
20633
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20634
|
+
deviceIds: array(number()),
|
|
20635
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20636
|
+
since: number().optional(),
|
|
20637
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20638
|
+
until: number().optional(),
|
|
20639
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20640
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20641
|
+
cursor: string().optional(),
|
|
20642
|
+
/**
|
|
20643
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20644
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20645
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20646
|
+
* make the operator's one filter component produce two shapes.
|
|
20647
|
+
*
|
|
20648
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20649
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20650
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20651
|
+
* about its primary.
|
|
20652
|
+
*
|
|
20653
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20654
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20655
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20656
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20657
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20658
|
+
*
|
|
20659
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20660
|
+
*/
|
|
20661
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20662
|
+
});
|
|
20663
|
+
var RecentSummariesPageSchema = object({
|
|
20664
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20665
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20666
|
+
* whichever feed drew it. */
|
|
20667
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20668
|
+
nextCursor: string().nullable()
|
|
20573
20669
|
});
|
|
20574
20670
|
var RecentTracksPageSchema = object({
|
|
20575
20671
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20983,7 +21079,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20983
21079
|
classes: array(string()).optional(),
|
|
20984
21080
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20985
21081
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20986
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21082
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20987
21083
|
kind: "mutation",
|
|
20988
21084
|
auth: "admin"
|
|
20989
21085
|
}), 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({
|
|
@@ -30634,7 +30730,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30634
30730
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30635
30731
|
* the Diagnostics page fight over the same value.
|
|
30636
30732
|
*/
|
|
30637
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30733
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30734
|
+
/**
|
|
30735
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30736
|
+
* retention actually deleted.
|
|
30737
|
+
*
|
|
30738
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30739
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30740
|
+
* this system is configured through this one document, and a retention audit
|
|
30741
|
+
* configured somewhere else is a second place to look when the question is
|
|
30742
|
+
* "what happened to my data".
|
|
30743
|
+
*
|
|
30744
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30745
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30746
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30747
|
+
*
|
|
30748
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30749
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30750
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30751
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30752
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30753
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30754
|
+
*/
|
|
30755
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30638
30756
|
});
|
|
30639
30757
|
/**
|
|
30640
30758
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30707,6 +30825,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30707
30825
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30708
30826
|
/** The channels ARMED right now, each with its deadline. */
|
|
30709
30827
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30828
|
+
/**
|
|
30829
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30830
|
+
*
|
|
30831
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30832
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30833
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30834
|
+
*/
|
|
30835
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30710
30836
|
persisted: boolean()
|
|
30711
30837
|
});
|
|
30712
30838
|
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(), {
|
|
@@ -34882,6 +35008,12 @@ Object.freeze({
|
|
|
34882
35008
|
addonId: null,
|
|
34883
35009
|
access: "view"
|
|
34884
35010
|
},
|
|
35011
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
35012
|
+
capName: "pipeline-analytics",
|
|
35013
|
+
capScope: "device",
|
|
35014
|
+
addonId: null,
|
|
35015
|
+
access: "view"
|
|
35016
|
+
},
|
|
34885
35017
|
"pipelineAnalytics.listRecentTracks": {
|
|
34886
35018
|
capName: "pipeline-analytics",
|
|
34887
35019
|
capScope: "device",
|
|
@@ -38709,6 +38841,11 @@ Object.freeze({
|
|
|
38709
38841
|
form: "single",
|
|
38710
38842
|
optional: true
|
|
38711
38843
|
}],
|
|
38844
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38845
|
+
name: "deviceIds",
|
|
38846
|
+
form: "array",
|
|
38847
|
+
optional: false
|
|
38848
|
+
}],
|
|
38712
38849
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38713
38850
|
name: "deviceIds",
|
|
38714
38851
|
form: "array",
|
|
@@ -5419,7 +5419,7 @@ var ZodIssueCode = {
|
|
|
5419
5419
|
var ZodFirstPartyTypeKind;
|
|
5420
5420
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5421
5421
|
//#endregion
|
|
5422
|
-
//#region ../types/dist/sleep-
|
|
5422
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5423
5423
|
/**
|
|
5424
5424
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5425
5425
|
* window to float samples (D455).
|
|
@@ -20551,13 +20551,109 @@ var SummariesQueryInput = object({
|
|
|
20551
20551
|
deviceIds: array(number()).min(1),
|
|
20552
20552
|
since: number().optional(),
|
|
20553
20553
|
until: number().optional(),
|
|
20554
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20554
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20555
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20556
|
+
* meaning of "dog" on every summary surface. */
|
|
20557
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20555
20558
|
});
|
|
20556
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20557
20559
|
var SummaryDetailSchema = object({
|
|
20558
20560
|
summary: SummarySchema,
|
|
20559
|
-
/**
|
|
20560
|
-
|
|
20561
|
+
/** Members in absorption order, oldest join first. */
|
|
20562
|
+
members: array(object({
|
|
20563
|
+
trackId: string(),
|
|
20564
|
+
/**
|
|
20565
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20566
|
+
* and the track no longer exists to fill it.
|
|
20567
|
+
*
|
|
20568
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20569
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20570
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20571
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20572
|
+
* drift from the members it claims to describe.
|
|
20573
|
+
*/
|
|
20574
|
+
className: string().nullable(),
|
|
20575
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20576
|
+
role: _enum([
|
|
20577
|
+
"primary",
|
|
20578
|
+
"sibling",
|
|
20579
|
+
"child"
|
|
20580
|
+
]).nullable(),
|
|
20581
|
+
joinedAt: number(),
|
|
20582
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20583
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20584
|
+
label: string().optional(),
|
|
20585
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20586
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20587
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20588
|
+
subLabel: string().optional()
|
|
20589
|
+
})).readonly()
|
|
20590
|
+
});
|
|
20591
|
+
/**
|
|
20592
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20593
|
+
*
|
|
20594
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20595
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20596
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20597
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20598
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20599
|
+
* draw two hundred badges.
|
|
20600
|
+
*/
|
|
20601
|
+
var SummaryListItemSchema = object({
|
|
20602
|
+
summary: SummarySchema,
|
|
20603
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20604
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20605
|
+
classes: array(object({
|
|
20606
|
+
className: string().nullable(),
|
|
20607
|
+
count: number().int().positive()
|
|
20608
|
+
})).readonly()
|
|
20609
|
+
});
|
|
20610
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20611
|
+
/**
|
|
20612
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20613
|
+
*
|
|
20614
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20615
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20616
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20617
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20618
|
+
* "newest" means, on one screen.
|
|
20619
|
+
*/
|
|
20620
|
+
var RecentSummariesQueryInput = object({
|
|
20621
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20622
|
+
deviceIds: array(number()),
|
|
20623
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20624
|
+
since: number().optional(),
|
|
20625
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20626
|
+
until: number().optional(),
|
|
20627
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20628
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20629
|
+
cursor: string().optional(),
|
|
20630
|
+
/**
|
|
20631
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20632
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20633
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20634
|
+
* make the operator's one filter component produce two shapes.
|
|
20635
|
+
*
|
|
20636
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20637
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20638
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20639
|
+
* about its primary.
|
|
20640
|
+
*
|
|
20641
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20642
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20643
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20644
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20645
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20646
|
+
*
|
|
20647
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20648
|
+
*/
|
|
20649
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20650
|
+
});
|
|
20651
|
+
var RecentSummariesPageSchema = object({
|
|
20652
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20653
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20654
|
+
* whichever feed drew it. */
|
|
20655
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20656
|
+
nextCursor: string().nullable()
|
|
20561
20657
|
});
|
|
20562
20658
|
var RecentTracksPageSchema = object({
|
|
20563
20659
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20971,7 +21067,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20971
21067
|
classes: array(string()).optional(),
|
|
20972
21068
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20973
21069
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20974
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
21070
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20975
21071
|
kind: "mutation",
|
|
20976
21072
|
auth: "admin"
|
|
20977
21073
|
}), 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({
|
|
@@ -30622,7 +30718,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30622
30718
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30623
30719
|
* the Diagnostics page fight over the same value.
|
|
30624
30720
|
*/
|
|
30625
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30721
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30722
|
+
/**
|
|
30723
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30724
|
+
* retention actually deleted.
|
|
30725
|
+
*
|
|
30726
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30727
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30728
|
+
* this system is configured through this one document, and a retention audit
|
|
30729
|
+
* configured somewhere else is a second place to look when the question is
|
|
30730
|
+
* "what happened to my data".
|
|
30731
|
+
*
|
|
30732
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30733
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30734
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30735
|
+
*
|
|
30736
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30737
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30738
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30739
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30740
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30741
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30742
|
+
*/
|
|
30743
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30626
30744
|
});
|
|
30627
30745
|
/**
|
|
30628
30746
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30695,6 +30813,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30695
30813
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30696
30814
|
/** The channels ARMED right now, each with its deadline. */
|
|
30697
30815
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30816
|
+
/**
|
|
30817
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30818
|
+
*
|
|
30819
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30820
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30821
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30822
|
+
*/
|
|
30823
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30698
30824
|
persisted: boolean()
|
|
30699
30825
|
});
|
|
30700
30826
|
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(), {
|
|
@@ -34870,6 +34996,12 @@ Object.freeze({
|
|
|
34870
34996
|
addonId: null,
|
|
34871
34997
|
access: "view"
|
|
34872
34998
|
},
|
|
34999
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
35000
|
+
capName: "pipeline-analytics",
|
|
35001
|
+
capScope: "device",
|
|
35002
|
+
addonId: null,
|
|
35003
|
+
access: "view"
|
|
35004
|
+
},
|
|
34873
35005
|
"pipelineAnalytics.listRecentTracks": {
|
|
34874
35006
|
capName: "pipeline-analytics",
|
|
34875
35007
|
capScope: "device",
|
|
@@ -38697,6 +38829,11 @@ Object.freeze({
|
|
|
38697
38829
|
form: "single",
|
|
38698
38830
|
optional: true
|
|
38699
38831
|
}],
|
|
38832
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38833
|
+
name: "deviceIds",
|
|
38834
|
+
form: "array",
|
|
38835
|
+
optional: false
|
|
38836
|
+
}],
|
|
38700
38837
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38701
38838
|
name: "deviceIds",
|
|
38702
38839
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.112",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|