@camstack/addon-export-alexa 1.2.106 → 1.2.107
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/export-alexa.addon.js +170 -8
- package/dist/export-alexa.addon.mjs +170 -8
- package/package.json +1 -1
|
@@ -5373,7 +5373,7 @@ var ZodIssueCode = {
|
|
|
5373
5373
|
var ZodFirstPartyTypeKind;
|
|
5374
5374
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5375
5375
|
//#endregion
|
|
5376
|
-
//#region ../types/dist/sleep-
|
|
5376
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5377
5377
|
/**
|
|
5378
5378
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5379
5379
|
* window to float samples (D455).
|
|
@@ -7590,7 +7590,32 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7590
7590
|
*/
|
|
7591
7591
|
var ALEXA_EGRESS_PROFILE = {
|
|
7592
7592
|
...BASE_LIVE_EGRESS_PROFILE,
|
|
7593
|
-
audio: { codec: "opus" }
|
|
7593
|
+
audio: { codec: "opus" },
|
|
7594
|
+
/**
|
|
7595
|
+
* ONE slice per access unit.
|
|
7596
|
+
*
|
|
7597
|
+
* `-tune zerolatency` turns on x264's sliced threads, and every access unit
|
|
7598
|
+
* came out of this encode as FIVE slices — measured on the hub 2026-09-13 on
|
|
7599
|
+
* the exact argv this path spawns, and reduced to one by this single flag.
|
|
7600
|
+
*
|
|
7601
|
+
* Five slices share one RTP timestamp and carry one marker bit, so a
|
|
7602
|
+
* libwebrtc depacketiser sees five frame-starts and one frame-end per frame.
|
|
7603
|
+
* The Echo renders the first pictures and then freezes for good, while the
|
|
7604
|
+
* audio — a separate plane — plays on. It is the only structural property
|
|
7605
|
+
* that survived the elimination: the same freeze reproduced at 2304×1296
|
|
7606
|
+
* HEVC with 217 KB keyframes AND at 640×360 H.264 with 67 KB keyframes and a
|
|
7607
|
+
* fifth of the bitrate, so source, resolution, bitrate, keyframe burst,
|
|
7608
|
+
* hardware decode, parameter sets, drift and bitstream conformance are all
|
|
7609
|
+
* out — each ruled out by a measurement, not by elimination.
|
|
7610
|
+
*
|
|
7611
|
+
* The tune STAYS: it also drops the lookahead and the B-frames, which a live
|
|
7612
|
+
* path wants. Only the slicing is unwanted, and this is the flag that says so.
|
|
7613
|
+
*
|
|
7614
|
+
* Scoped to Alexa deliberately. HomeKit and the browser transcode inherit
|
|
7615
|
+
* {@link BASE_LIVE_EGRESS_PROFILE}; whether they want the same shape is a
|
|
7616
|
+
* question for their own evidence, and the browser has not been measured.
|
|
7617
|
+
*/
|
|
7618
|
+
outputArgs: ["-x264-params", "sliced-threads=0"]
|
|
7594
7619
|
};
|
|
7595
7620
|
/**
|
|
7596
7621
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
@@ -20071,13 +20096,109 @@ var SummariesQueryInput = object({
|
|
|
20071
20096
|
deviceIds: array(number()).min(1),
|
|
20072
20097
|
since: number().optional(),
|
|
20073
20098
|
until: number().optional(),
|
|
20074
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20099
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20100
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20101
|
+
* meaning of "dog" on every summary surface. */
|
|
20102
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20075
20103
|
});
|
|
20076
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20077
20104
|
var SummaryDetailSchema = object({
|
|
20078
20105
|
summary: SummarySchema,
|
|
20079
|
-
/**
|
|
20080
|
-
|
|
20106
|
+
/** Members in absorption order, oldest join first. */
|
|
20107
|
+
members: array(object({
|
|
20108
|
+
trackId: string(),
|
|
20109
|
+
/**
|
|
20110
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20111
|
+
* and the track no longer exists to fill it.
|
|
20112
|
+
*
|
|
20113
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20114
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20115
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20116
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20117
|
+
* drift from the members it claims to describe.
|
|
20118
|
+
*/
|
|
20119
|
+
className: string().nullable(),
|
|
20120
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20121
|
+
role: _enum([
|
|
20122
|
+
"primary",
|
|
20123
|
+
"sibling",
|
|
20124
|
+
"child"
|
|
20125
|
+
]).nullable(),
|
|
20126
|
+
joinedAt: number(),
|
|
20127
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20128
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20129
|
+
label: string().optional(),
|
|
20130
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20131
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20132
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20133
|
+
subLabel: string().optional()
|
|
20134
|
+
})).readonly()
|
|
20135
|
+
});
|
|
20136
|
+
/**
|
|
20137
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20138
|
+
*
|
|
20139
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20140
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20141
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20142
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20143
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20144
|
+
* draw two hundred badges.
|
|
20145
|
+
*/
|
|
20146
|
+
var SummaryListItemSchema = object({
|
|
20147
|
+
summary: SummarySchema,
|
|
20148
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20149
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20150
|
+
classes: array(object({
|
|
20151
|
+
className: string().nullable(),
|
|
20152
|
+
count: number().int().positive()
|
|
20153
|
+
})).readonly()
|
|
20154
|
+
});
|
|
20155
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20156
|
+
/**
|
|
20157
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20158
|
+
*
|
|
20159
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20160
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20161
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20162
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20163
|
+
* "newest" means, on one screen.
|
|
20164
|
+
*/
|
|
20165
|
+
var RecentSummariesQueryInput = object({
|
|
20166
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20167
|
+
deviceIds: array(number()),
|
|
20168
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20169
|
+
since: number().optional(),
|
|
20170
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20171
|
+
until: number().optional(),
|
|
20172
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20173
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20174
|
+
cursor: string().optional(),
|
|
20175
|
+
/**
|
|
20176
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20177
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20178
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20179
|
+
* make the operator's one filter component produce two shapes.
|
|
20180
|
+
*
|
|
20181
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20182
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20183
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20184
|
+
* about its primary.
|
|
20185
|
+
*
|
|
20186
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20187
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20188
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20189
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20190
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20191
|
+
*
|
|
20192
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20193
|
+
*/
|
|
20194
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20195
|
+
});
|
|
20196
|
+
var RecentSummariesPageSchema = object({
|
|
20197
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20198
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20199
|
+
* whichever feed drew it. */
|
|
20200
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20201
|
+
nextCursor: string().nullable()
|
|
20081
20202
|
});
|
|
20082
20203
|
var RecentTracksPageSchema = object({
|
|
20083
20204
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20491,7 +20612,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20491
20612
|
classes: array(string()).optional(),
|
|
20492
20613
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20493
20614
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20494
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20615
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20495
20616
|
kind: "mutation",
|
|
20496
20617
|
auth: "admin"
|
|
20497
20618
|
}), 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({
|
|
@@ -30097,7 +30218,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30097
30218
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30098
30219
|
* the Diagnostics page fight over the same value.
|
|
30099
30220
|
*/
|
|
30100
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30221
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30222
|
+
/**
|
|
30223
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30224
|
+
* retention actually deleted.
|
|
30225
|
+
*
|
|
30226
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30227
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30228
|
+
* this system is configured through this one document, and a retention audit
|
|
30229
|
+
* configured somewhere else is a second place to look when the question is
|
|
30230
|
+
* "what happened to my data".
|
|
30231
|
+
*
|
|
30232
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30233
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30234
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30235
|
+
*
|
|
30236
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30237
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30238
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30239
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30240
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30241
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30242
|
+
*/
|
|
30243
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30101
30244
|
});
|
|
30102
30245
|
/**
|
|
30103
30246
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30170,6 +30313,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30170
30313
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30171
30314
|
/** The channels ARMED right now, each with its deadline. */
|
|
30172
30315
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30316
|
+
/**
|
|
30317
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30318
|
+
*
|
|
30319
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30320
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30321
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30322
|
+
*/
|
|
30323
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30173
30324
|
persisted: boolean()
|
|
30174
30325
|
});
|
|
30175
30326
|
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(), {
|
|
@@ -34329,6 +34480,12 @@ Object.freeze({
|
|
|
34329
34480
|
addonId: null,
|
|
34330
34481
|
access: "view"
|
|
34331
34482
|
},
|
|
34483
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34484
|
+
capName: "pipeline-analytics",
|
|
34485
|
+
capScope: "device",
|
|
34486
|
+
addonId: null,
|
|
34487
|
+
access: "view"
|
|
34488
|
+
},
|
|
34332
34489
|
"pipelineAnalytics.listRecentTracks": {
|
|
34333
34490
|
capName: "pipeline-analytics",
|
|
34334
34491
|
capScope: "device",
|
|
@@ -38156,6 +38313,11 @@ Object.freeze({
|
|
|
38156
38313
|
form: "single",
|
|
38157
38314
|
optional: true
|
|
38158
38315
|
}],
|
|
38316
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38317
|
+
name: "deviceIds",
|
|
38318
|
+
form: "array",
|
|
38319
|
+
optional: false
|
|
38320
|
+
}],
|
|
38159
38321
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38160
38322
|
name: "deviceIds",
|
|
38161
38323
|
form: "array",
|
|
@@ -5346,7 +5346,7 @@ var ZodIssueCode = {
|
|
|
5346
5346
|
var ZodFirstPartyTypeKind;
|
|
5347
5347
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5348
5348
|
//#endregion
|
|
5349
|
-
//#region ../types/dist/sleep-
|
|
5349
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5350
5350
|
/**
|
|
5351
5351
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5352
5352
|
* window to float samples (D455).
|
|
@@ -7563,7 +7563,32 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7563
7563
|
*/
|
|
7564
7564
|
var ALEXA_EGRESS_PROFILE = {
|
|
7565
7565
|
...BASE_LIVE_EGRESS_PROFILE,
|
|
7566
|
-
audio: { codec: "opus" }
|
|
7566
|
+
audio: { codec: "opus" },
|
|
7567
|
+
/**
|
|
7568
|
+
* ONE slice per access unit.
|
|
7569
|
+
*
|
|
7570
|
+
* `-tune zerolatency` turns on x264's sliced threads, and every access unit
|
|
7571
|
+
* came out of this encode as FIVE slices — measured on the hub 2026-09-13 on
|
|
7572
|
+
* the exact argv this path spawns, and reduced to one by this single flag.
|
|
7573
|
+
*
|
|
7574
|
+
* Five slices share one RTP timestamp and carry one marker bit, so a
|
|
7575
|
+
* libwebrtc depacketiser sees five frame-starts and one frame-end per frame.
|
|
7576
|
+
* The Echo renders the first pictures and then freezes for good, while the
|
|
7577
|
+
* audio — a separate plane — plays on. It is the only structural property
|
|
7578
|
+
* that survived the elimination: the same freeze reproduced at 2304×1296
|
|
7579
|
+
* HEVC with 217 KB keyframes AND at 640×360 H.264 with 67 KB keyframes and a
|
|
7580
|
+
* fifth of the bitrate, so source, resolution, bitrate, keyframe burst,
|
|
7581
|
+
* hardware decode, parameter sets, drift and bitstream conformance are all
|
|
7582
|
+
* out — each ruled out by a measurement, not by elimination.
|
|
7583
|
+
*
|
|
7584
|
+
* The tune STAYS: it also drops the lookahead and the B-frames, which a live
|
|
7585
|
+
* path wants. Only the slicing is unwanted, and this is the flag that says so.
|
|
7586
|
+
*
|
|
7587
|
+
* Scoped to Alexa deliberately. HomeKit and the browser transcode inherit
|
|
7588
|
+
* {@link BASE_LIVE_EGRESS_PROFILE}; whether they want the same shape is a
|
|
7589
|
+
* question for their own evidence, and the browser has not been measured.
|
|
7590
|
+
*/
|
|
7591
|
+
outputArgs: ["-x264-params", "sliced-threads=0"]
|
|
7567
7592
|
};
|
|
7568
7593
|
/**
|
|
7569
7594
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
@@ -20044,13 +20069,109 @@ var SummariesQueryInput = object({
|
|
|
20044
20069
|
deviceIds: array(number()).min(1),
|
|
20045
20070
|
since: number().optional(),
|
|
20046
20071
|
until: number().optional(),
|
|
20047
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20072
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20073
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20074
|
+
* meaning of "dog" on every summary surface. */
|
|
20075
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20048
20076
|
});
|
|
20049
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20050
20077
|
var SummaryDetailSchema = object({
|
|
20051
20078
|
summary: SummarySchema,
|
|
20052
|
-
/**
|
|
20053
|
-
|
|
20079
|
+
/** Members in absorption order, oldest join first. */
|
|
20080
|
+
members: array(object({
|
|
20081
|
+
trackId: string(),
|
|
20082
|
+
/**
|
|
20083
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20084
|
+
* and the track no longer exists to fill it.
|
|
20085
|
+
*
|
|
20086
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20087
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20088
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20089
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20090
|
+
* drift from the members it claims to describe.
|
|
20091
|
+
*/
|
|
20092
|
+
className: string().nullable(),
|
|
20093
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20094
|
+
role: _enum([
|
|
20095
|
+
"primary",
|
|
20096
|
+
"sibling",
|
|
20097
|
+
"child"
|
|
20098
|
+
]).nullable(),
|
|
20099
|
+
joinedAt: number(),
|
|
20100
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20101
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20102
|
+
label: string().optional(),
|
|
20103
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20104
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20105
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20106
|
+
subLabel: string().optional()
|
|
20107
|
+
})).readonly()
|
|
20108
|
+
});
|
|
20109
|
+
/**
|
|
20110
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20111
|
+
*
|
|
20112
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20113
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20114
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20115
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20116
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20117
|
+
* draw two hundred badges.
|
|
20118
|
+
*/
|
|
20119
|
+
var SummaryListItemSchema = object({
|
|
20120
|
+
summary: SummarySchema,
|
|
20121
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20122
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20123
|
+
classes: array(object({
|
|
20124
|
+
className: string().nullable(),
|
|
20125
|
+
count: number().int().positive()
|
|
20126
|
+
})).readonly()
|
|
20127
|
+
});
|
|
20128
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20129
|
+
/**
|
|
20130
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20131
|
+
*
|
|
20132
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20133
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20134
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20135
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20136
|
+
* "newest" means, on one screen.
|
|
20137
|
+
*/
|
|
20138
|
+
var RecentSummariesQueryInput = object({
|
|
20139
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20140
|
+
deviceIds: array(number()),
|
|
20141
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20142
|
+
since: number().optional(),
|
|
20143
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20144
|
+
until: number().optional(),
|
|
20145
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20146
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20147
|
+
cursor: string().optional(),
|
|
20148
|
+
/**
|
|
20149
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20150
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20151
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20152
|
+
* make the operator's one filter component produce two shapes.
|
|
20153
|
+
*
|
|
20154
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20155
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20156
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20157
|
+
* about its primary.
|
|
20158
|
+
*
|
|
20159
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20160
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20161
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20162
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20163
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20164
|
+
*
|
|
20165
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20166
|
+
*/
|
|
20167
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20168
|
+
});
|
|
20169
|
+
var RecentSummariesPageSchema = object({
|
|
20170
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20171
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20172
|
+
* whichever feed drew it. */
|
|
20173
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20174
|
+
nextCursor: string().nullable()
|
|
20054
20175
|
});
|
|
20055
20176
|
var RecentTracksPageSchema = object({
|
|
20056
20177
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20464,7 +20585,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20464
20585
|
classes: array(string()).optional(),
|
|
20465
20586
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20466
20587
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20467
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20588
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20468
20589
|
kind: "mutation",
|
|
20469
20590
|
auth: "admin"
|
|
20470
20591
|
}), 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({
|
|
@@ -30070,7 +30191,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
30070
30191
|
* disarmed the channels it did not mention would make the Levels page and
|
|
30071
30192
|
* the Diagnostics page fight over the same value.
|
|
30072
30193
|
*/
|
|
30073
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
30194
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
30195
|
+
/**
|
|
30196
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30197
|
+
* retention actually deleted.
|
|
30198
|
+
*
|
|
30199
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30200
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30201
|
+
* this system is configured through this one document, and a retention audit
|
|
30202
|
+
* configured somewhere else is a second place to look when the question is
|
|
30203
|
+
* "what happened to my data".
|
|
30204
|
+
*
|
|
30205
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30206
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30207
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30208
|
+
*
|
|
30209
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30210
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30211
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30212
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30213
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30214
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30215
|
+
*/
|
|
30216
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
30074
30217
|
});
|
|
30075
30218
|
/**
|
|
30076
30219
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -30143,6 +30286,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
30143
30286
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
30144
30287
|
/** The channels ARMED right now, each with its deadline. */
|
|
30145
30288
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30289
|
+
/**
|
|
30290
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30291
|
+
*
|
|
30292
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30293
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30294
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30295
|
+
*/
|
|
30296
|
+
opsLogRetentionDays: number().int().min(0),
|
|
30146
30297
|
persisted: boolean()
|
|
30147
30298
|
});
|
|
30148
30299
|
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(), {
|
|
@@ -34302,6 +34453,12 @@ Object.freeze({
|
|
|
34302
34453
|
addonId: null,
|
|
34303
34454
|
access: "view"
|
|
34304
34455
|
},
|
|
34456
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34457
|
+
capName: "pipeline-analytics",
|
|
34458
|
+
capScope: "device",
|
|
34459
|
+
addonId: null,
|
|
34460
|
+
access: "view"
|
|
34461
|
+
},
|
|
34305
34462
|
"pipelineAnalytics.listRecentTracks": {
|
|
34306
34463
|
capName: "pipeline-analytics",
|
|
34307
34464
|
capScope: "device",
|
|
@@ -38129,6 +38286,11 @@ Object.freeze({
|
|
|
38129
38286
|
form: "single",
|
|
38130
38287
|
optional: true
|
|
38131
38288
|
}],
|
|
38289
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38290
|
+
name: "deviceIds",
|
|
38291
|
+
form: "array",
|
|
38292
|
+
optional: false
|
|
38293
|
+
}],
|
|
38132
38294
|
"pipelineAnalytics.listRecentTracks": [{
|
|
38133
38295
|
name: "deviceIds",
|
|
38134
38296
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.107",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|