@camstack/addon-tailscale 1.2.100 → 1.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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-DJhzrxHQ.js → dist-BfWsQb9o.js} +162 -9
- package/dist/{dist-cjpimBLk.mjs → dist-Gl7DmccH.mjs} +162 -9
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-BfWsQb9o.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-Gl7DmccH.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
|
|
|
5345
5345
|
var ZodFirstPartyTypeKind;
|
|
5346
5346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5347
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5348
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5349
5349
|
/**
|
|
5350
5350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5351
|
* window to float samples (D455).
|
|
@@ -7392,7 +7392,23 @@ var EncodeProfileSchema = object({
|
|
|
7392
7392
|
"zerolatency",
|
|
7393
7393
|
"film",
|
|
7394
7394
|
"animation"
|
|
7395
|
-
]).optional()
|
|
7395
|
+
]).optional(),
|
|
7396
|
+
/**
|
|
7397
|
+
* ONE slice per access unit.
|
|
7398
|
+
*
|
|
7399
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7400
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7401
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7402
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7403
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7404
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7405
|
+
*
|
|
7406
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7407
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7408
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7409
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7410
|
+
*/
|
|
7411
|
+
singleSlicePerFrame: boolean().optional()
|
|
7396
7412
|
}),
|
|
7397
7413
|
audio: union([literal("passthrough"), object({
|
|
7398
7414
|
codec: _enum([
|
|
@@ -7442,7 +7458,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7442
7458
|
audio: "passthrough"
|
|
7443
7459
|
};
|
|
7444
7460
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7445
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7461
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7446
7462
|
/**
|
|
7447
7463
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7448
7464
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19796,13 +19812,109 @@ var SummariesQueryInput = object({
|
|
|
19796
19812
|
deviceIds: array(number()).min(1),
|
|
19797
19813
|
since: number().optional(),
|
|
19798
19814
|
until: number().optional(),
|
|
19799
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19815
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19816
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19817
|
+
* meaning of "dog" on every summary surface. */
|
|
19818
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19800
19819
|
});
|
|
19801
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19802
19820
|
var SummaryDetailSchema = object({
|
|
19803
19821
|
summary: SummarySchema,
|
|
19804
|
-
/**
|
|
19805
|
-
|
|
19822
|
+
/** Members in absorption order, oldest join first. */
|
|
19823
|
+
members: array(object({
|
|
19824
|
+
trackId: string(),
|
|
19825
|
+
/**
|
|
19826
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19827
|
+
* and the track no longer exists to fill it.
|
|
19828
|
+
*
|
|
19829
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19830
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19831
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19832
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19833
|
+
* drift from the members it claims to describe.
|
|
19834
|
+
*/
|
|
19835
|
+
className: string().nullable(),
|
|
19836
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19837
|
+
role: _enum([
|
|
19838
|
+
"primary",
|
|
19839
|
+
"sibling",
|
|
19840
|
+
"child"
|
|
19841
|
+
]).nullable(),
|
|
19842
|
+
joinedAt: number(),
|
|
19843
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19844
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19845
|
+
label: string().optional(),
|
|
19846
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19847
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19848
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19849
|
+
subLabel: string().optional()
|
|
19850
|
+
})).readonly()
|
|
19851
|
+
});
|
|
19852
|
+
/**
|
|
19853
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19854
|
+
*
|
|
19855
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19856
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19857
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19858
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19859
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19860
|
+
* draw two hundred badges.
|
|
19861
|
+
*/
|
|
19862
|
+
var SummaryListItemSchema = object({
|
|
19863
|
+
summary: SummarySchema,
|
|
19864
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19865
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19866
|
+
classes: array(object({
|
|
19867
|
+
className: string().nullable(),
|
|
19868
|
+
count: number().int().positive()
|
|
19869
|
+
})).readonly()
|
|
19870
|
+
});
|
|
19871
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19872
|
+
/**
|
|
19873
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19874
|
+
*
|
|
19875
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19876
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19877
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19878
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19879
|
+
* "newest" means, on one screen.
|
|
19880
|
+
*/
|
|
19881
|
+
var RecentSummariesQueryInput = object({
|
|
19882
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19883
|
+
deviceIds: array(number()),
|
|
19884
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19885
|
+
since: number().optional(),
|
|
19886
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19887
|
+
until: number().optional(),
|
|
19888
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19889
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19890
|
+
cursor: string().optional(),
|
|
19891
|
+
/**
|
|
19892
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19893
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19894
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19895
|
+
* make the operator's one filter component produce two shapes.
|
|
19896
|
+
*
|
|
19897
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19898
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19899
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19900
|
+
* about its primary.
|
|
19901
|
+
*
|
|
19902
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19903
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19904
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19905
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19906
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19907
|
+
*
|
|
19908
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19909
|
+
*/
|
|
19910
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19911
|
+
});
|
|
19912
|
+
var RecentSummariesPageSchema = object({
|
|
19913
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19914
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19915
|
+
* whichever feed drew it. */
|
|
19916
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19917
|
+
nextCursor: string().nullable()
|
|
19806
19918
|
});
|
|
19807
19919
|
var RecentTracksPageSchema = object({
|
|
19808
19920
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20216,7 +20328,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20216
20328
|
classes: array(string()).optional(),
|
|
20217
20329
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20218
20330
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20219
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20331
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20220
20332
|
kind: "mutation",
|
|
20221
20333
|
auth: "admin"
|
|
20222
20334
|
}), 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({
|
|
@@ -29883,7 +29995,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29883
29995
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29884
29996
|
* the Diagnostics page fight over the same value.
|
|
29885
29997
|
*/
|
|
29886
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29998
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29999
|
+
/**
|
|
30000
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30001
|
+
* retention actually deleted.
|
|
30002
|
+
*
|
|
30003
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30004
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30005
|
+
* this system is configured through this one document, and a retention audit
|
|
30006
|
+
* configured somewhere else is a second place to look when the question is
|
|
30007
|
+
* "what happened to my data".
|
|
30008
|
+
*
|
|
30009
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30010
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30011
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30012
|
+
*
|
|
30013
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30014
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30015
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30016
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30017
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30018
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30019
|
+
*/
|
|
30020
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29887
30021
|
});
|
|
29888
30022
|
/**
|
|
29889
30023
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29956,6 +30090,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29956
30090
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29957
30091
|
/** The channels ARMED right now, each with its deadline. */
|
|
29958
30092
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30093
|
+
/**
|
|
30094
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30095
|
+
*
|
|
30096
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30097
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30098
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30099
|
+
*/
|
|
30100
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29959
30101
|
persisted: boolean()
|
|
29960
30102
|
});
|
|
29961
30103
|
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(), {
|
|
@@ -34115,6 +34257,12 @@ Object.freeze({
|
|
|
34115
34257
|
addonId: null,
|
|
34116
34258
|
access: "view"
|
|
34117
34259
|
},
|
|
34260
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34261
|
+
capName: "pipeline-analytics",
|
|
34262
|
+
capScope: "device",
|
|
34263
|
+
addonId: null,
|
|
34264
|
+
access: "view"
|
|
34265
|
+
},
|
|
34118
34266
|
"pipelineAnalytics.listRecentTracks": {
|
|
34119
34267
|
capName: "pipeline-analytics",
|
|
34120
34268
|
capScope: "device",
|
|
@@ -37942,6 +38090,11 @@ Object.freeze({
|
|
|
37942
38090
|
form: "single",
|
|
37943
38091
|
optional: true
|
|
37944
38092
|
}],
|
|
38093
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38094
|
+
name: "deviceIds",
|
|
38095
|
+
form: "array",
|
|
38096
|
+
optional: false
|
|
38097
|
+
}],
|
|
37945
38098
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37946
38099
|
name: "deviceIds",
|
|
37947
38100
|
form: "array",
|
|
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
|
|
|
5345
5345
|
var ZodFirstPartyTypeKind;
|
|
5346
5346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5347
5347
|
//#endregion
|
|
5348
|
-
//#region ../types/dist/sleep-
|
|
5348
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5349
5349
|
/**
|
|
5350
5350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5351
5351
|
* window to float samples (D455).
|
|
@@ -7392,7 +7392,23 @@ var EncodeProfileSchema = object({
|
|
|
7392
7392
|
"zerolatency",
|
|
7393
7393
|
"film",
|
|
7394
7394
|
"animation"
|
|
7395
|
-
]).optional()
|
|
7395
|
+
]).optional(),
|
|
7396
|
+
/**
|
|
7397
|
+
* ONE slice per access unit.
|
|
7398
|
+
*
|
|
7399
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7400
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7401
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7402
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7403
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7404
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7405
|
+
*
|
|
7406
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7407
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7408
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7409
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7410
|
+
*/
|
|
7411
|
+
singleSlicePerFrame: boolean().optional()
|
|
7396
7412
|
}),
|
|
7397
7413
|
audio: union([literal("passthrough"), object({
|
|
7398
7414
|
codec: _enum([
|
|
@@ -7442,7 +7458,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7442
7458
|
audio: "passthrough"
|
|
7443
7459
|
};
|
|
7444
7460
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7445
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7461
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7446
7462
|
/**
|
|
7447
7463
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7448
7464
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19796,13 +19812,109 @@ var SummariesQueryInput = object({
|
|
|
19796
19812
|
deviceIds: array(number()).min(1),
|
|
19797
19813
|
since: number().optional(),
|
|
19798
19814
|
until: number().optional(),
|
|
19799
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19815
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19816
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19817
|
+
* meaning of "dog" on every summary surface. */
|
|
19818
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19800
19819
|
});
|
|
19801
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19802
19820
|
var SummaryDetailSchema = object({
|
|
19803
19821
|
summary: SummarySchema,
|
|
19804
|
-
/**
|
|
19805
|
-
|
|
19822
|
+
/** Members in absorption order, oldest join first. */
|
|
19823
|
+
members: array(object({
|
|
19824
|
+
trackId: string(),
|
|
19825
|
+
/**
|
|
19826
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19827
|
+
* and the track no longer exists to fill it.
|
|
19828
|
+
*
|
|
19829
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19830
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19831
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19832
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19833
|
+
* drift from the members it claims to describe.
|
|
19834
|
+
*/
|
|
19835
|
+
className: string().nullable(),
|
|
19836
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19837
|
+
role: _enum([
|
|
19838
|
+
"primary",
|
|
19839
|
+
"sibling",
|
|
19840
|
+
"child"
|
|
19841
|
+
]).nullable(),
|
|
19842
|
+
joinedAt: number(),
|
|
19843
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19844
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19845
|
+
label: string().optional(),
|
|
19846
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19847
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19848
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19849
|
+
subLabel: string().optional()
|
|
19850
|
+
})).readonly()
|
|
19851
|
+
});
|
|
19852
|
+
/**
|
|
19853
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19854
|
+
*
|
|
19855
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19856
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19857
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19858
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19859
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19860
|
+
* draw two hundred badges.
|
|
19861
|
+
*/
|
|
19862
|
+
var SummaryListItemSchema = object({
|
|
19863
|
+
summary: SummarySchema,
|
|
19864
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19865
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19866
|
+
classes: array(object({
|
|
19867
|
+
className: string().nullable(),
|
|
19868
|
+
count: number().int().positive()
|
|
19869
|
+
})).readonly()
|
|
19870
|
+
});
|
|
19871
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19872
|
+
/**
|
|
19873
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19874
|
+
*
|
|
19875
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19876
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19877
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19878
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19879
|
+
* "newest" means, on one screen.
|
|
19880
|
+
*/
|
|
19881
|
+
var RecentSummariesQueryInput = object({
|
|
19882
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19883
|
+
deviceIds: array(number()),
|
|
19884
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19885
|
+
since: number().optional(),
|
|
19886
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19887
|
+
until: number().optional(),
|
|
19888
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19889
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19890
|
+
cursor: string().optional(),
|
|
19891
|
+
/**
|
|
19892
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19893
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19894
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19895
|
+
* make the operator's one filter component produce two shapes.
|
|
19896
|
+
*
|
|
19897
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19898
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19899
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19900
|
+
* about its primary.
|
|
19901
|
+
*
|
|
19902
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19903
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19904
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19905
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19906
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19907
|
+
*
|
|
19908
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19909
|
+
*/
|
|
19910
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19911
|
+
});
|
|
19912
|
+
var RecentSummariesPageSchema = object({
|
|
19913
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19914
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19915
|
+
* whichever feed drew it. */
|
|
19916
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19917
|
+
nextCursor: string().nullable()
|
|
19806
19918
|
});
|
|
19807
19919
|
var RecentTracksPageSchema = object({
|
|
19808
19920
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20216,7 +20328,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20216
20328
|
classes: array(string()).optional(),
|
|
20217
20329
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20218
20330
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20219
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20331
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20220
20332
|
kind: "mutation",
|
|
20221
20333
|
auth: "admin"
|
|
20222
20334
|
}), 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({
|
|
@@ -29883,7 +29995,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29883
29995
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29884
29996
|
* the Diagnostics page fight over the same value.
|
|
29885
29997
|
*/
|
|
29886
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29998
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29999
|
+
/**
|
|
30000
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
30001
|
+
* retention actually deleted.
|
|
30002
|
+
*
|
|
30003
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
30004
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
30005
|
+
* this system is configured through this one document, and a retention audit
|
|
30006
|
+
* configured somewhere else is a second place to look when the question is
|
|
30007
|
+
* "what happened to my data".
|
|
30008
|
+
*
|
|
30009
|
+
* That placement has a cost worth stating: this document ships in the
|
|
30010
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
30011
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
30012
|
+
*
|
|
30013
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
30014
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
30015
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
30016
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
30017
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
30018
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
30019
|
+
*/
|
|
30020
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29887
30021
|
});
|
|
29888
30022
|
/**
|
|
29889
30023
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29956,6 +30090,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29956
30090
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29957
30091
|
/** The channels ARMED right now, each with its deadline. */
|
|
29958
30092
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30093
|
+
/**
|
|
30094
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30095
|
+
*
|
|
30096
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30097
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30098
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30099
|
+
*/
|
|
30100
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29959
30101
|
persisted: boolean()
|
|
29960
30102
|
});
|
|
29961
30103
|
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(), {
|
|
@@ -34115,6 +34257,12 @@ Object.freeze({
|
|
|
34115
34257
|
addonId: null,
|
|
34116
34258
|
access: "view"
|
|
34117
34259
|
},
|
|
34260
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34261
|
+
capName: "pipeline-analytics",
|
|
34262
|
+
capScope: "device",
|
|
34263
|
+
addonId: null,
|
|
34264
|
+
access: "view"
|
|
34265
|
+
},
|
|
34118
34266
|
"pipelineAnalytics.listRecentTracks": {
|
|
34119
34267
|
capName: "pipeline-analytics",
|
|
34120
34268
|
capScope: "device",
|
|
@@ -37942,6 +38090,11 @@ Object.freeze({
|
|
|
37942
38090
|
form: "single",
|
|
37943
38091
|
optional: true
|
|
37944
38092
|
}],
|
|
38093
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38094
|
+
name: "deviceIds",
|
|
38095
|
+
form: "array",
|
|
38096
|
+
optional: false
|
|
38097
|
+
}],
|
|
37945
38098
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37946
38099
|
name: "deviceIds",
|
|
37947
38100
|
form: "array",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BfWsQb9o.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-Gl7DmccH.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.101",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|