@camstack/addon-remote-storage 1.2.99 → 1.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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-C99NWjGN.js → shared-CFfHkuDQ.js} +162 -9
- package/dist/{shared-wpNbUebc.mjs → shared-mQ768xoI.mjs} +162 -9
- package/dist/smb.addon.js +1 -1
- package/dist/smb.addon.mjs +1 -1
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CFfHkuDQ.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-mQ768xoI.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CFfHkuDQ.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-mQ768xoI.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -5370,7 +5370,7 @@ var ZodIssueCode = {
|
|
|
5370
5370
|
var ZodFirstPartyTypeKind;
|
|
5371
5371
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5372
5372
|
//#endregion
|
|
5373
|
-
//#region ../types/dist/sleep-
|
|
5373
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5374
5374
|
/**
|
|
5375
5375
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5376
5376
|
* window to float samples (D455).
|
|
@@ -7383,7 +7383,23 @@ var EncodeProfileSchema = object({
|
|
|
7383
7383
|
"zerolatency",
|
|
7384
7384
|
"film",
|
|
7385
7385
|
"animation"
|
|
7386
|
-
]).optional()
|
|
7386
|
+
]).optional(),
|
|
7387
|
+
/**
|
|
7388
|
+
* ONE slice per access unit.
|
|
7389
|
+
*
|
|
7390
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7391
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7392
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7393
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7394
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7395
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7396
|
+
*
|
|
7397
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7398
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7399
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7400
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7401
|
+
*/
|
|
7402
|
+
singleSlicePerFrame: boolean().optional()
|
|
7387
7403
|
}),
|
|
7388
7404
|
audio: union([literal("passthrough"), object({
|
|
7389
7405
|
codec: _enum([
|
|
@@ -7433,7 +7449,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7433
7449
|
audio: "passthrough"
|
|
7434
7450
|
};
|
|
7435
7451
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7436
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7452
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7437
7453
|
/**
|
|
7438
7454
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7439
7455
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19770,13 +19786,109 @@ var SummariesQueryInput = object({
|
|
|
19770
19786
|
deviceIds: array(number()).min(1),
|
|
19771
19787
|
since: number().optional(),
|
|
19772
19788
|
until: number().optional(),
|
|
19773
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19789
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19790
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19791
|
+
* meaning of "dog" on every summary surface. */
|
|
19792
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19774
19793
|
});
|
|
19775
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19776
19794
|
var SummaryDetailSchema = object({
|
|
19777
19795
|
summary: SummarySchema,
|
|
19778
|
-
/**
|
|
19779
|
-
|
|
19796
|
+
/** Members in absorption order, oldest join first. */
|
|
19797
|
+
members: array(object({
|
|
19798
|
+
trackId: string(),
|
|
19799
|
+
/**
|
|
19800
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19801
|
+
* and the track no longer exists to fill it.
|
|
19802
|
+
*
|
|
19803
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19804
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19805
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19806
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19807
|
+
* drift from the members it claims to describe.
|
|
19808
|
+
*/
|
|
19809
|
+
className: string().nullable(),
|
|
19810
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19811
|
+
role: _enum([
|
|
19812
|
+
"primary",
|
|
19813
|
+
"sibling",
|
|
19814
|
+
"child"
|
|
19815
|
+
]).nullable(),
|
|
19816
|
+
joinedAt: number(),
|
|
19817
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19818
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19819
|
+
label: string().optional(),
|
|
19820
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19821
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19822
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19823
|
+
subLabel: string().optional()
|
|
19824
|
+
})).readonly()
|
|
19825
|
+
});
|
|
19826
|
+
/**
|
|
19827
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19828
|
+
*
|
|
19829
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19830
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19831
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19832
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19833
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19834
|
+
* draw two hundred badges.
|
|
19835
|
+
*/
|
|
19836
|
+
var SummaryListItemSchema = object({
|
|
19837
|
+
summary: SummarySchema,
|
|
19838
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19839
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19840
|
+
classes: array(object({
|
|
19841
|
+
className: string().nullable(),
|
|
19842
|
+
count: number().int().positive()
|
|
19843
|
+
})).readonly()
|
|
19844
|
+
});
|
|
19845
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19846
|
+
/**
|
|
19847
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19848
|
+
*
|
|
19849
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19850
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19851
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19852
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19853
|
+
* "newest" means, on one screen.
|
|
19854
|
+
*/
|
|
19855
|
+
var RecentSummariesQueryInput = object({
|
|
19856
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19857
|
+
deviceIds: array(number()),
|
|
19858
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19859
|
+
since: number().optional(),
|
|
19860
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19861
|
+
until: number().optional(),
|
|
19862
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19863
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19864
|
+
cursor: string().optional(),
|
|
19865
|
+
/**
|
|
19866
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19867
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19868
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19869
|
+
* make the operator's one filter component produce two shapes.
|
|
19870
|
+
*
|
|
19871
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19872
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19873
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19874
|
+
* about its primary.
|
|
19875
|
+
*
|
|
19876
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19877
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19878
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19879
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19880
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19881
|
+
*
|
|
19882
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19883
|
+
*/
|
|
19884
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19885
|
+
});
|
|
19886
|
+
var RecentSummariesPageSchema = object({
|
|
19887
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19888
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19889
|
+
* whichever feed drew it. */
|
|
19890
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19891
|
+
nextCursor: string().nullable()
|
|
19780
19892
|
});
|
|
19781
19893
|
var RecentTracksPageSchema = object({
|
|
19782
19894
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20190,7 +20302,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20190
20302
|
classes: array(string()).optional(),
|
|
20191
20303
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20192
20304
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20193
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20305
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20194
20306
|
kind: "mutation",
|
|
20195
20307
|
auth: "admin"
|
|
20196
20308
|
}), 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({
|
|
@@ -29856,7 +29968,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29856
29968
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29857
29969
|
* the Diagnostics page fight over the same value.
|
|
29858
29970
|
*/
|
|
29859
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29971
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29972
|
+
/**
|
|
29973
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
29974
|
+
* retention actually deleted.
|
|
29975
|
+
*
|
|
29976
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
29977
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
29978
|
+
* this system is configured through this one document, and a retention audit
|
|
29979
|
+
* configured somewhere else is a second place to look when the question is
|
|
29980
|
+
* "what happened to my data".
|
|
29981
|
+
*
|
|
29982
|
+
* That placement has a cost worth stating: this document ships in the
|
|
29983
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
29984
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
29985
|
+
*
|
|
29986
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
29987
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
29988
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
29989
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
29990
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
29991
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
29992
|
+
*/
|
|
29993
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29860
29994
|
});
|
|
29861
29995
|
/**
|
|
29862
29996
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29929,6 +30063,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29929
30063
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29930
30064
|
/** The channels ARMED right now, each with its deadline. */
|
|
29931
30065
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30066
|
+
/**
|
|
30067
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30068
|
+
*
|
|
30069
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30070
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30071
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30072
|
+
*/
|
|
30073
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29932
30074
|
persisted: boolean()
|
|
29933
30075
|
});
|
|
29934
30076
|
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(), {
|
|
@@ -34088,6 +34230,12 @@ Object.freeze({
|
|
|
34088
34230
|
addonId: null,
|
|
34089
34231
|
access: "view"
|
|
34090
34232
|
},
|
|
34233
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34234
|
+
capName: "pipeline-analytics",
|
|
34235
|
+
capScope: "device",
|
|
34236
|
+
addonId: null,
|
|
34237
|
+
access: "view"
|
|
34238
|
+
},
|
|
34091
34239
|
"pipelineAnalytics.listRecentTracks": {
|
|
34092
34240
|
capName: "pipeline-analytics",
|
|
34093
34241
|
capScope: "device",
|
|
@@ -37915,6 +38063,11 @@ Object.freeze({
|
|
|
37915
38063
|
form: "single",
|
|
37916
38064
|
optional: true
|
|
37917
38065
|
}],
|
|
38066
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38067
|
+
name: "deviceIds",
|
|
38068
|
+
form: "array",
|
|
38069
|
+
optional: false
|
|
38070
|
+
}],
|
|
37918
38071
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37919
38072
|
name: "deviceIds",
|
|
37920
38073
|
form: "array",
|
|
@@ -5347,7 +5347,7 @@ var ZodIssueCode = {
|
|
|
5347
5347
|
var ZodFirstPartyTypeKind;
|
|
5348
5348
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5349
5349
|
//#endregion
|
|
5350
|
-
//#region ../types/dist/sleep-
|
|
5350
|
+
//#region ../types/dist/sleep-DBKu2-U5.mjs
|
|
5351
5351
|
/**
|
|
5352
5352
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5353
5353
|
* window to float samples (D455).
|
|
@@ -7360,7 +7360,23 @@ var EncodeProfileSchema = object({
|
|
|
7360
7360
|
"zerolatency",
|
|
7361
7361
|
"film",
|
|
7362
7362
|
"animation"
|
|
7363
|
-
]).optional()
|
|
7363
|
+
]).optional(),
|
|
7364
|
+
/**
|
|
7365
|
+
* ONE slice per access unit.
|
|
7366
|
+
*
|
|
7367
|
+
* `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
|
|
7368
|
+
* the encoder as five NAL slices that share one RTP timestamp and carry one
|
|
7369
|
+
* marker bit. A libwebrtc depacketiser sees five frame-starts and one
|
|
7370
|
+
* frame-end per frame: the first pictures render and the video then freezes
|
|
7371
|
+
* for good while the audio, on its own plane, plays on. Measured on this hub
|
|
7372
|
+
* 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
|
|
7373
|
+
*
|
|
7374
|
+
* A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
|
|
7375
|
+
* `outputArgs` on purpose: an opaque array is part of the sharing key, so two
|
|
7376
|
+
* consumers meaning the same thing spelled differently would stop sharing one
|
|
7377
|
+
* child. Absent means "whatever the encoder does" — today's behaviour.
|
|
7378
|
+
*/
|
|
7379
|
+
singleSlicePerFrame: boolean().optional()
|
|
7364
7380
|
}),
|
|
7365
7381
|
audio: union([literal("passthrough"), object({
|
|
7366
7382
|
codec: _enum([
|
|
@@ -7410,7 +7426,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
|
|
|
7410
7426
|
audio: "passthrough"
|
|
7411
7427
|
};
|
|
7412
7428
|
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7413
|
-
({ ...BASE_LIVE_EGRESS_PROFILE });
|
|
7429
|
+
({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
|
|
7414
7430
|
/**
|
|
7415
7431
|
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
7416
7432
|
* every declared capability + widget of every installed plugin, on every
|
|
@@ -19747,13 +19763,109 @@ var SummariesQueryInput = object({
|
|
|
19747
19763
|
deviceIds: array(number()).min(1),
|
|
19748
19764
|
since: number().optional(),
|
|
19749
19765
|
until: number().optional(),
|
|
19750
|
-
limit: number().int().min(1).max(200).default(50)
|
|
19766
|
+
limit: number().int().min(1).max(200).default(50),
|
|
19767
|
+
/** The same member-wise filter {@link listRecentSummaries} takes — one
|
|
19768
|
+
* meaning of "dog" on every summary surface. */
|
|
19769
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19751
19770
|
});
|
|
19752
|
-
var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
|
|
19753
19771
|
var SummaryDetailSchema = object({
|
|
19754
19772
|
summary: SummarySchema,
|
|
19755
|
-
/**
|
|
19756
|
-
|
|
19773
|
+
/** Members in absorption order, oldest join first. */
|
|
19774
|
+
members: array(object({
|
|
19775
|
+
trackId: string(),
|
|
19776
|
+
/**
|
|
19777
|
+
* The track's class at the time it JOINED, or `null` when it was unresolved
|
|
19778
|
+
* and the track no longer exists to fill it.
|
|
19779
|
+
*
|
|
19780
|
+
* The join, not the latest opinion: class voting can re-decide a track's
|
|
19781
|
+
* class afterwards, and a group's composition is the history of who came
|
|
19782
|
+
* together. A consumer counts these to badge a thumbnail — "two people and a
|
|
19783
|
+
* dog" — rather than being handed a second, denormalised tally that would
|
|
19784
|
+
* drift from the members it claims to describe.
|
|
19785
|
+
*/
|
|
19786
|
+
className: string().nullable(),
|
|
19787
|
+
/** `primary` is the one member that carries the group's identity. */
|
|
19788
|
+
role: _enum([
|
|
19789
|
+
"primary",
|
|
19790
|
+
"sibling",
|
|
19791
|
+
"child"
|
|
19792
|
+
]).nullable(),
|
|
19793
|
+
joinedAt: number(),
|
|
19794
|
+
/** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
|
|
19795
|
+
* at read time. Absent when nothing resolved, never an empty string. */
|
|
19796
|
+
label: string().optional(),
|
|
19797
|
+
/** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
|
|
19798
|
+
* recognised nobody, and absent for a member whose track has been pruned —
|
|
19799
|
+
* a thumbnail that names the wrong person is worse than one naming nobody. */
|
|
19800
|
+
subLabel: string().optional()
|
|
19801
|
+
})).readonly()
|
|
19802
|
+
});
|
|
19803
|
+
/**
|
|
19804
|
+
* What a LIST of groups carries: the envelope plus what it is MADE OF.
|
|
19805
|
+
*
|
|
19806
|
+
* Coarse on purpose — the operator's rule is "only the rough data on the list,
|
|
19807
|
+
* we extend when we notice we need more". Enough to draw the card ("two people
|
|
19808
|
+
* and a dog") and no more. The MEMBERS, their names and the per-member links
|
|
19809
|
+
* are on {@link getSummary}: shipping every member of every group so a client
|
|
19810
|
+
* can count them turns a page of two hundred groups into a thousand records to
|
|
19811
|
+
* draw two hundred badges.
|
|
19812
|
+
*/
|
|
19813
|
+
var SummaryListItemSchema = object({
|
|
19814
|
+
summary: SummarySchema,
|
|
19815
|
+
/** Class counts, most numerous first; `className: null` is a member whose
|
|
19816
|
+
* class never resolved, counted so the counts add up to `memberCount`. */
|
|
19817
|
+
classes: array(object({
|
|
19818
|
+
className: string().nullable(),
|
|
19819
|
+
count: number().int().positive()
|
|
19820
|
+
})).readonly()
|
|
19821
|
+
});
|
|
19822
|
+
var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
|
|
19823
|
+
/**
|
|
19824
|
+
* The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
|
|
19825
|
+
*
|
|
19826
|
+
* The reel on the cameras page and the Events gallery both ride a cursor, so a
|
|
19827
|
+
* summaries feed that could only answer "the last N for these cameras"
|
|
19828
|
+
* (`listSummaries`) would make groups available in the timeline and nowhere
|
|
19829
|
+
* else. Two feeds with different ordering contracts would be two ideas of what
|
|
19830
|
+
* "newest" means, on one screen.
|
|
19831
|
+
*/
|
|
19832
|
+
var RecentSummariesQueryInput = object({
|
|
19833
|
+
/** Devices to merge. An empty array yields an empty page. */
|
|
19834
|
+
deviceIds: array(number()),
|
|
19835
|
+
/** Window lower bound on `lastActiveAt` (inclusive). */
|
|
19836
|
+
since: number().optional(),
|
|
19837
|
+
/** Window upper bound on `lastActiveAt` (inclusive). */
|
|
19838
|
+
until: number().optional(),
|
|
19839
|
+
limit: number().int().min(1).max(500).default(100),
|
|
19840
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
19841
|
+
cursor: string().optional(),
|
|
19842
|
+
/**
|
|
19843
|
+
* Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
|
|
19844
|
+
* deliberately the same name: the events filter tree emits one list of ticked
|
|
19845
|
+
* taxonomy nodes, and a summaries feed that called it something else would
|
|
19846
|
+
* make the operator's one filter component produce two shapes.
|
|
19847
|
+
*
|
|
19848
|
+
* A question about the MEMBERS: a group matches when ANY of them does. "Show
|
|
19849
|
+
* me the arrivals with a dog" has to return the group of four people who had
|
|
19850
|
+
* one with them; a filter on the group's own fields could only ever answer
|
|
19851
|
+
* about its primary.
|
|
19852
|
+
*
|
|
19853
|
+
* Matched against all THREE tiers of a member — the class (`animal`), the
|
|
19854
|
+
* sub-class (`dog`) and the instance (a name, a plate) — because which tier a
|
|
19855
|
+
* ticked node lives on is the taxonomy's business, not the caller's. `dog` is
|
|
19856
|
+
* an event kind in the tree and a tier-1 label on an `animal` track; a filter
|
|
19857
|
+
* that read only the class would answer "animal" and never "dog".
|
|
19858
|
+
*
|
|
19859
|
+
* ABSENT or EMPTY means no filter — absent is not a selection of none.
|
|
19860
|
+
*/
|
|
19861
|
+
classes: array(string().min(1).max(60)).max(40).optional()
|
|
19862
|
+
});
|
|
19863
|
+
var RecentSummariesPageSchema = object({
|
|
19864
|
+
/** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
|
|
19865
|
+
* {@link listSummaries} — one list shape, so a card renders the same
|
|
19866
|
+
* whichever feed drew it. */
|
|
19867
|
+
summaries: array(SummaryListItemSchema).readonly(),
|
|
19868
|
+
nextCursor: string().nullable()
|
|
19757
19869
|
});
|
|
19758
19870
|
var RecentTracksPageSchema = object({
|
|
19759
19871
|
/** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
|
|
@@ -20167,7 +20279,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20167
20279
|
classes: array(string()).optional(),
|
|
20168
20280
|
/** See {@link ExcludeSourcesDoc}. */
|
|
20169
20281
|
excludeSources: array(TrackSourceSchema).optional()
|
|
20170
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20282
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
20171
20283
|
kind: "mutation",
|
|
20172
20284
|
auth: "admin"
|
|
20173
20285
|
}), 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({
|
|
@@ -29833,7 +29945,29 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29833
29945
|
* disarmed the channels it did not mention would make the Levels page and
|
|
29834
29946
|
* the Diagnostics page fight over the same value.
|
|
29835
29947
|
*/
|
|
29836
|
-
channels: array(LogChannelWindowPatchSchema).readonly().optional()
|
|
29948
|
+
channels: array(LogChannelWindowPatchSchema).readonly().optional(),
|
|
29949
|
+
/**
|
|
29950
|
+
* How many days the analytics OPS LOG is kept — the audit trail of what
|
|
29951
|
+
* retention actually deleted.
|
|
29952
|
+
*
|
|
29953
|
+
* It lives HERE, on the logging document, and not on the analytics addon's
|
|
29954
|
+
* settings form, on the operator's instruction: every other log-ish window in
|
|
29955
|
+
* this system is configured through this one document, and a retention audit
|
|
29956
|
+
* configured somewhere else is a second place to look when the question is
|
|
29957
|
+
* "what happened to my data".
|
|
29958
|
+
*
|
|
29959
|
+
* That placement has a cost worth stating: this document ships in the
|
|
29960
|
+
* framework closure, so this knob needs a published `@camstack/server` while
|
|
29961
|
+
* the four windows beside it (D485) reach a node on `camstack deploy`.
|
|
29962
|
+
*
|
|
29963
|
+
* `retention-model.ts` argued this one must NOT follow a device window,
|
|
29964
|
+
* because the audit trail is the history of the SWEEP and not of the camera.
|
|
29965
|
+
* That argument stands and is untouched — what changes is that 30 days stops
|
|
29966
|
+
* being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
|
|
29967
|
+
* rather than 0-as-delete: an audit log truncated to nothing is precisely the
|
|
29968
|
+
* state in which the next 9.5 GiB leak cannot be explained.
|
|
29969
|
+
*/
|
|
29970
|
+
opsLogRetentionDays: number().int().min(0).max(3650).optional()
|
|
29837
29971
|
});
|
|
29838
29972
|
/**
|
|
29839
29973
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -29906,6 +30040,14 @@ var LoggingSettingsStateSchema = object({
|
|
|
29906
30040
|
channels: array(LogChannelDescriptorSchema).readonly(),
|
|
29907
30041
|
/** The channels ARMED right now, each with its deadline. */
|
|
29908
30042
|
activeChannels: array(LogChannelWindowStateSchema).readonly(),
|
|
30043
|
+
/**
|
|
30044
|
+
* The ops-log window in days, as it is in force. `0` = kept forever.
|
|
30045
|
+
*
|
|
30046
|
+
* Reported rather than left to the caller's memory of what it wrote: this is
|
|
30047
|
+
* the value the analytics sweep will actually use, and an operator asking how
|
|
30048
|
+
* long their audit trail lives should not have to infer it from a default.
|
|
30049
|
+
*/
|
|
30050
|
+
opsLogRetentionDays: number().int().min(0),
|
|
29909
30051
|
persisted: boolean()
|
|
29910
30052
|
});
|
|
29911
30053
|
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(), {
|
|
@@ -34065,6 +34207,12 @@ Object.freeze({
|
|
|
34065
34207
|
addonId: null,
|
|
34066
34208
|
access: "view"
|
|
34067
34209
|
},
|
|
34210
|
+
"pipelineAnalytics.listRecentSummaries": {
|
|
34211
|
+
capName: "pipeline-analytics",
|
|
34212
|
+
capScope: "device",
|
|
34213
|
+
addonId: null,
|
|
34214
|
+
access: "view"
|
|
34215
|
+
},
|
|
34068
34216
|
"pipelineAnalytics.listRecentTracks": {
|
|
34069
34217
|
capName: "pipeline-analytics",
|
|
34070
34218
|
capScope: "device",
|
|
@@ -37892,6 +38040,11 @@ Object.freeze({
|
|
|
37892
38040
|
form: "single",
|
|
37893
38041
|
optional: true
|
|
37894
38042
|
}],
|
|
38043
|
+
"pipelineAnalytics.listRecentSummaries": [{
|
|
38044
|
+
name: "deviceIds",
|
|
38045
|
+
form: "array",
|
|
38046
|
+
optional: false
|
|
38047
|
+
}],
|
|
37895
38048
|
"pipelineAnalytics.listRecentTracks": [{
|
|
37896
38049
|
name: "deviceIds",
|
|
37897
38050
|
form: "array",
|
package/dist/smb.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CFfHkuDQ.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/smb.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-mQ768xoI.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
package/dist/webdav.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CFfHkuDQ.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let webdav = require("webdav");
|
|
8
8
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-mQ768xoI.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { AuthType, createClient } from "webdav";
|
|
4
4
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/package.json
CHANGED