@camstack/addon-import-alexa 0.2.99 → 0.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
|
@@ -5385,7 +5385,7 @@ var ZodIssueCode = {
|
|
|
5385
5385
|
var ZodFirstPartyTypeKind;
|
|
5386
5386
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5387
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5388
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5389
5389
|
/**
|
|
5390
5390
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5391
|
* window to float samples (D455).
|
|
@@ -7531,7 +7531,23 @@ var EncodeProfileSchema = object({
|
|
|
7531
7531
|
"zerolatency",
|
|
7532
7532
|
"film",
|
|
7533
7533
|
"animation"
|
|
7534
|
-
]).optional()
|
|
7534
|
+
]).optional(),
|
|
7535
|
+
/**
|
|
7536
|
+
* ONE slice per access unit.
|
|
7537
|
+
*
|
|
7538
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7539
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7540
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7541
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7542
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7543
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7544
|
+
*
|
|
7545
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7546
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7547
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7548
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7549
|
+
*/
|
|
7550
|
+
singleSlicePerFrame: boolean().optional()
|
|
7535
7551
|
}),
|
|
7536
7552
|
audio: union([literal("passthrough"), object({
|
|
7537
7553
|
codec: _enum([
|
|
@@ -7581,7 +7597,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7581
7597
|
audio: "passthrough"
|
|
7582
7598
|
};
|
|
7583
7599
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7584
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7600
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7585
7601
|
/**
|
|
7586
7602
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7587
7603
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -20371,13 +20387,109 @@ var SummariesQueryInput = object({
|
|
|
20371
20387
|
deviceIds: array(number()).min(1),
|
|
20372
20388
|
since: number().optional(),
|
|
20373
20389
|
until: number().optional(),
|
|
20374
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20390
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20391
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20392
|
+
* meaning of "dog" on every summary surface. */
|
|
20393
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20375
20394
|
});
|
|
20376
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20377
20395
|
var SummaryDetailSchema = object({
|
|
20378
20396
|
summary: SummarySchema,
|
|
20379
|
-
/**
|
|
20380
|
-
|
|
20397
|
+
/** Members in absorption order, oldest join first. */
|
|
20398
|
+
members: array(object({
|
|
20399
|
+
trackId: string(),
|
|
20400
|
+
/**
|
|
20401
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20402
|
+
* and the track no longer exists to fill it.
|
|
20403
|
+
*
|
|
20404
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20405
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20406
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20407
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20408
|
+
* drift from the members it claims to describe.
|
|
20409
|
+
*/
|
|
20410
|
+
className: string().nullable(),
|
|
20411
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20412
|
+
role: _enum([
|
|
20413
|
+
"primary",
|
|
20414
|
+
"sibling",
|
|
20415
|
+
"child"
|
|
20416
|
+
]).nullable(),
|
|
20417
|
+
joinedAt: number(),
|
|
20418
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20419
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20420
|
+
label: string().optional(),
|
|
20421
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20422
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20423
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20424
|
+
subLabel: string().optional()
|
|
20425
|
+
})).readonly()
|
|
20426
|
+
});
|
|
20427
|
+
/**
|
|
20428
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20429
|
+
*
|
|
20430
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20431
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20432
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20433
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20434
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20435
|
+
* draw two hundred badges.
|
|
20436
|
+
*/
|
|
20437
|
+
var SummaryListItemSchema = object({
|
|
20438
|
+
summary: SummarySchema,
|
|
20439
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20440
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20441
|
+
classes: array(object({
|
|
20442
|
+
className: string().nullable(),
|
|
20443
|
+
count: number().int().positive()
|
|
20444
|
+
})).readonly()
|
|
20445
|
+
});
|
|
20446
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20447
|
+
/**
|
|
20448
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20449
|
+
*
|
|
20450
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20451
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20452
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20453
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20454
|
+
* "newest" means, on one screen.
|
|
20455
|
+
*/
|
|
20456
|
+
var RecentSummariesQueryInput = object({
|
|
20457
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20458
|
+
deviceIds: array(number()),
|
|
20459
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20460
|
+
since: number().optional(),
|
|
20461
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20462
|
+
until: number().optional(),
|
|
20463
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20464
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20465
|
+
cursor: string().optional(),
|
|
20466
|
+
/**
|
|
20467
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20468
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20469
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20470
|
+
* make the operator's one filter component produce two shapes.
|
|
20471
|
+
*
|
|
20472
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20473
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20474
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20475
|
+
* about its primary.
|
|
20476
|
+
*
|
|
20477
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20478
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20479
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20480
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20481
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20482
|
+
*
|
|
20483
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20484
|
+
*/
|
|
20485
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20486
|
+
});
|
|
20487
|
+
var RecentSummariesPageSchema = object({
|
|
20488
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20489
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20490
|
+
* whichever feed drew it. */
|
|
20491
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20492
|
+
nextCursor: string().nullable()
|
|
20381
20493
|
});
|
|
20382
20494
|
var RecentTracksPageSchema = object({
|
|
20383
20495
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20791,7 +20903,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20791
20903
|
classes: array(string()).optional(),
|
|
20792
20904
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20793
20905
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20794
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20906
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20795
20907
|
kind: "mutation",
|
|
20796
20908
|
auth: "admin"
|
|
20797
20909
|
}), 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({
|
|
@@ -32561,7 +32673,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32561
32673
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32562
32674
|
* the Diagnostics page fight over the same value.
|
|
32563
32675
|
*/
|
|
32564
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32676
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32677
|
+
/**
|
|
32678
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32679
|
+
* retention actually deleted.
|
|
32680
|
+
*
|
|
32681
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32682
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32683
|
+
* this system is configured through this one document, and a retention audit
|
|
32684
|
+
* configured somewhere else is a second place to look when the question is
|
|
32685
|
+
* "what happened to my data".
|
|
32686
|
+
*
|
|
32687
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32688
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32689
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32690
|
+
*
|
|
32691
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32692
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32693
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32694
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32695
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32696
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32697
|
+
*/
|
|
32698
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32565
32699
|
});
|
|
32566
32700
|
/**
|
|
32567
32701
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32634,6 +32768,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32634
32768
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32635
32769
|
/** The channels ARMED right now, each with its deadline. */
|
|
32636
32770
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32771
|
+
/**
|
|
32772
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32773
|
+
*
|
|
32774
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32775
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32776
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32777
|
+
*/
|
|
32778
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32637
32779
|
persisted: boolean()
|
|
32638
32780
|
});
|
|
32639
32781
|
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(), {
|
|
@@ -38634,6 +38776,12 @@ Object.freeze({
|
|
|
38634
38776
|
addonId: null,
|
|
38635
38777
|
access: "view"
|
|
38636
38778
|
},
|
|
38779
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38780
|
+
capName: "pipeline-analytics",
|
|
38781
|
+
capScope: "device",
|
|
38782
|
+
addonId: null,
|
|
38783
|
+
access: "view"
|
|
38784
|
+
},
|
|
38637
38785
|
"pipelineAnalytics.listRecentTracks": {
|
|
38638
38786
|
capName: "pipeline-analytics",
|
|
38639
38787
|
capScope: "device",
|
|
@@ -42461,6 +42609,11 @@ Object.freeze({
|
|
|
42461
42609
|
form: "single",
|
|
42462
42610
|
optional: true
|
|
42463
42611
|
}],
|
|
42612
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42613
|
+
name: "deviceIds",
|
|
42614
|
+
form: "array",
|
|
42615
|
+
optional: false
|
|
42616
|
+
}],
|
|
42464
42617
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42465
42618
|
name: "deviceIds",
|
|
42466
42619
|
form: "array",
|
package/dist/addon.mjs
CHANGED
|
@@ -5385,7 +5385,7 @@ var ZodIssueCode = {
|
|
|
5385
5385
|
var ZodFirstPartyTypeKind;
|
|
5386
5386
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5387
5387
|
//#endregion
|
|
5388
|
-
//#region ../types/dist/sleep-
|
|
5388
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5389
5389
|
/**
|
|
5390
5390
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5391
5391
|
* window to float samples (D455).
|
|
@@ -7531,7 +7531,23 @@ var EncodeProfileSchema = object({
|
|
|
7531
7531
|
"zerolatency",
|
|
7532
7532
|
"film",
|
|
7533
7533
|
"animation"
|
|
7534
|
-
]).optional()
|
|
7534
|
+
]).optional(),
|
|
7535
|
+
/**
|
|
7536
|
+
* ONE slice per access unit.
|
|
7537
|
+
*
|
|
7538
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7539
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7540
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7541
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7542
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7543
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7544
|
+
*
|
|
7545
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7546
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7547
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7548
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7549
|
+
*/
|
|
7550
|
+
singleSlicePerFrame: boolean().optional()
|
|
7535
7551
|
}),
|
|
7536
7552
|
audio: union([literal("passthrough"), object({
|
|
7537
7553
|
codec: _enum([
|
|
@@ -7581,7 +7597,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7581
7597
|
audio: "passthrough"
|
|
7582
7598
|
};
|
|
7583
7599
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7584
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7600
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7585
7601
|
/**
|
|
7586
7602
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7587
7603
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -20371,13 +20387,109 @@ var SummariesQueryInput = object({
|
|
|
20371
20387
|
deviceIds: array(number()).min(1),
|
|
20372
20388
|
since: number().optional(),
|
|
20373
20389
|
until: number().optional(),
|
|
20374
|
-
limit: number().int().min(1).max(200).default(50)
|
|
20390
|
+
limit: number().int().min(1).max(200).default(50),
|
|
20391
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
20392
|
+
* meaning of "dog" on every summary surface. */
|
|
20393
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20375
20394
|
});
|
|
20376
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
20377
20395
|
var SummaryDetailSchema = object({
|
|
20378
20396
|
summary: SummarySchema,
|
|
20379
|
-
/**
|
|
20380
|
-
|
|
20397
|
+
/** Members in absorption order, oldest join first. */
|
|
20398
|
+
members: array(object({
|
|
20399
|
+
trackId: string(),
|
|
20400
|
+
/**
|
|
20401
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
20402
|
+
* and the track no longer exists to fill it.
|
|
20403
|
+
*
|
|
20404
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
20405
|
+
* class afterwards, and a group's composition is the history of who came
|
|
20406
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
20407
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
20408
|
+
* drift from the members it claims to describe.
|
|
20409
|
+
*/
|
|
20410
|
+
className: string().nullable(),
|
|
20411
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
20412
|
+
role: _enum([
|
|
20413
|
+
"primary",
|
|
20414
|
+
"sibling",
|
|
20415
|
+
"child"
|
|
20416
|
+
]).nullable(),
|
|
20417
|
+
joinedAt: number(),
|
|
20418
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
20419
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
20420
|
+
label: string().optional(),
|
|
20421
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
20422
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
20423
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
20424
|
+
subLabel: string().optional()
|
|
20425
|
+
})).readonly()
|
|
20426
|
+
});
|
|
20427
|
+
/**
|
|
20428
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
20429
|
+
*
|
|
20430
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
20431
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
20432
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
20433
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
20434
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
20435
|
+
* draw two hundred badges.
|
|
20436
|
+
*/
|
|
20437
|
+
var SummaryListItemSchema = object({
|
|
20438
|
+
summary: SummarySchema,
|
|
20439
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
20440
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
20441
|
+
classes: array(object({
|
|
20442
|
+
className: string().nullable(),
|
|
20443
|
+
count: number().int().positive()
|
|
20444
|
+
})).readonly()
|
|
20445
|
+
});
|
|
20446
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
20447
|
+
/**
|
|
20448
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
20449
|
+
*
|
|
20450
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
20451
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
20452
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
20453
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
20454
|
+
* "newest" means, on one screen.
|
|
20455
|
+
*/
|
|
20456
|
+
var RecentSummariesQueryInput = object({
|
|
20457
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
20458
|
+
deviceIds: array(number()),
|
|
20459
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
20460
|
+
since: number().optional(),
|
|
20461
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
20462
|
+
until: number().optional(),
|
|
20463
|
+
limit: number().int().min(1).max(500).default(100),
|
|
20464
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
20465
|
+
cursor: string().optional(),
|
|
20466
|
+
/**
|
|
20467
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
20468
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
20469
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
20470
|
+
* make the operator's one filter component produce two shapes.
|
|
20471
|
+
*
|
|
20472
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
20473
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
20474
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
20475
|
+
* about its primary.
|
|
20476
|
+
*
|
|
20477
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
20478
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
20479
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
20480
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
20481
|
+
* that read only the class would answer "animal" and never "dog".
|
|
20482
|
+
*
|
|
20483
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
20484
|
+
*/
|
|
20485
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
20486
|
+
});
|
|
20487
|
+
var RecentSummariesPageSchema = object({
|
|
20488
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
20489
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
20490
|
+
* whichever feed drew it. */
|
|
20491
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
20492
|
+
nextCursor: string().nullable()
|
|
20381
20493
|
});
|
|
20382
20494
|
var RecentTracksPageSchema = object({
|
|
20383
20495
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20791,7 +20903,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20791
20903
|
classes: array(string()).optional(),
|
|
20792
20904
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20793
20905
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20794
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20906
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20795
20907
|
kind: "mutation",
|
|
20796
20908
|
auth: "admin"
|
|
20797
20909
|
}), 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({
|
|
@@ -32561,7 +32673,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
32561
32673
|
* disarmed the channels it did not mention would make the Levels page and
|
|
32562
32674
|
* the Diagnostics page fight over the same value.
|
|
32563
32675
|
*/
|
|
32564
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
32676
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
32677
|
+
/**
|
|
32678
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
32679
|
+
* retention actually deleted.
|
|
32680
|
+
*
|
|
32681
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
32682
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
32683
|
+
* this system is configured through this one document, and a retention audit
|
|
32684
|
+
* configured somewhere else is a second place to look when the question is
|
|
32685
|
+
* "what happened to my data".
|
|
32686
|
+
*
|
|
32687
|
+
* That placement has a cost worth stating: this document ships in the
|
|
32688
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
32689
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
32690
|
+
*
|
|
32691
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
32692
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
32693
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
32694
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
32695
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
32696
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
32697
|
+
*/
|
|
32698
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
32565
32699
|
});
|
|
32566
32700
|
/**
|
|
32567
32701
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -32634,6 +32768,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
32634
32768
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
32635
32769
|
/** The channels ARMED right now, each with its deadline. */
|
|
32636
32770
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
32771
|
+
/**
|
|
32772
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
32773
|
+
*
|
|
32774
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
32775
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
32776
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
32777
|
+
*/
|
|
32778
|
+
opsLogRetentionDays: number().int().min(0),
|
|
32637
32779
|
persisted: boolean()
|
|
32638
32780
|
});
|
|
32639
32781
|
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(), {
|
|
@@ -38634,6 +38776,12 @@ Object.freeze({
|
|
|
38634
38776
|
addonId: null,
|
|
38635
38777
|
access: "view"
|
|
38636
38778
|
},
|
|
38779
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
38780
|
+
capName: "pipeline-analytics",
|
|
38781
|
+
capScope: "device",
|
|
38782
|
+
addonId: null,
|
|
38783
|
+
access: "view"
|
|
38784
|
+
},
|
|
38637
38785
|
"pipelineAnalytics.listRecentTracks": {
|
|
38638
38786
|
capName: "pipeline-analytics",
|
|
38639
38787
|
capScope: "device",
|
|
@@ -42461,6 +42609,11 @@ Object.freeze({
|
|
|
42461
42609
|
form: "single",
|
|
42462
42610
|
optional: true
|
|
42463
42611
|
}],
|
|
42612
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
42613
|
+
name: "deviceIds",
|
|
42614
|
+
form: "array",
|
|
42615
|
+
optional: false
|
|
42616
|
+
}],
|
|
42464
42617
|
"pipelineAnalytics.listRecentTracks": [{
|
|
42465
42618
|
name: "deviceIds",
|
|
42466
42619
|
form: "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.100",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|