@camstack/addon-tailscale 1.1.25 → 1.1.27
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-DBIyLTIA.js → dist-DVZX81-I.js} +336 -5
- package/dist/{dist-BIsh2UNX.mjs → dist-FdwqBAVi.mjs} +336 -5
- 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-DVZX81-I.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 { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-FdwqBAVi.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-D4HJq7Mw.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -151,6 +151,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
151
151
|
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
152
152
|
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
153
153
|
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
154
|
+
/** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
|
|
155
|
+
* progress bar the client reconciles via `recordingExport.getExport`. */
|
|
156
|
+
EventCategory["RecordingExportProgress"] = "recording.export.progress";
|
|
157
|
+
EventCategory["RecordingExportCompleted"] = "recording.export.completed";
|
|
158
|
+
EventCategory["RecordingExportFailed"] = "recording.export.failed";
|
|
154
159
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
155
160
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
156
161
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -440,6 +445,25 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
440
445
|
*/
|
|
441
446
|
EventCategory["PipelineAnalyticsStationaryChanged"] = "pipeline-analytics.stationary-changed";
|
|
442
447
|
/**
|
|
448
|
+
* Fired by `addon-post-analysis` when a package-drop is confirmed inside
|
|
449
|
+
* a package zone — a newly-appeared stationary object of a package class
|
|
450
|
+
* that cleared the class / zone / dwell / size gates. Payload:
|
|
451
|
+
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
452
|
+
* entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
|
|
453
|
+
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
454
|
+
* this bus topic drives notifier rules + live UI. See
|
|
455
|
+
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
456
|
+
*/
|
|
457
|
+
EventCategory["PipelineAnalyticsPackageDelivered"] = "pipeline-analytics.package-delivered";
|
|
458
|
+
/**
|
|
459
|
+
* Fired by `addon-post-analysis` when a previously-delivered package
|
|
460
|
+
* leaves its zone (the stationary entry departed — moved or swept).
|
|
461
|
+
* Payload: `PipelineAnalyticsPackagePickedUpPayload` carrying
|
|
462
|
+
* `{ deviceId, entryId, deliveredEventId, className, timestamp }`.
|
|
463
|
+
* Telemetry (D8). See package-zones-design §5.2.
|
|
464
|
+
*/
|
|
465
|
+
EventCategory["PipelineAnalyticsPackagePickedUp"] = "pipeline-analytics.package-picked-up";
|
|
466
|
+
/**
|
|
443
467
|
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
444
468
|
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
445
469
|
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
@@ -5178,6 +5202,25 @@ function _instanceof(cls, params = {}) {
|
|
|
5178
5202
|
};
|
|
5179
5203
|
return inst;
|
|
5180
5204
|
}
|
|
5205
|
+
//#endregion
|
|
5206
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5207
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
5208
|
+
var ZodIssueCode = {
|
|
5209
|
+
invalid_type: "invalid_type",
|
|
5210
|
+
too_big: "too_big",
|
|
5211
|
+
too_small: "too_small",
|
|
5212
|
+
invalid_format: "invalid_format",
|
|
5213
|
+
not_multiple_of: "not_multiple_of",
|
|
5214
|
+
unrecognized_keys: "unrecognized_keys",
|
|
5215
|
+
invalid_union: "invalid_union",
|
|
5216
|
+
invalid_key: "invalid_key",
|
|
5217
|
+
invalid_element: "invalid_element",
|
|
5218
|
+
invalid_value: "invalid_value",
|
|
5219
|
+
custom: "custom"
|
|
5220
|
+
};
|
|
5221
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
5222
|
+
var ZodFirstPartyTypeKind;
|
|
5223
|
+
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5181
5224
|
Object.fromEntries([
|
|
5182
5225
|
{
|
|
5183
5226
|
id: "overview",
|
|
@@ -7284,6 +7327,62 @@ var RecordingConfigSchema = object({
|
|
|
7284
7327
|
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7285
7328
|
});
|
|
7286
7329
|
/**
|
|
7330
|
+
* Ops-log — the durable, append-only operations audit shared by the
|
|
7331
|
+
* recordings and events management surfaces.
|
|
7332
|
+
*
|
|
7333
|
+
* ONE row shape is reused for both domains so a single "Activity" view can
|
|
7334
|
+
* merge the recorder's DurableState ring (recordings ops-log) and the
|
|
7335
|
+
* pipeline-analytics SQLite collection (events ops-log). Each row records a
|
|
7336
|
+
* management operation, WHY it ran (reason), and its measurable effect
|
|
7337
|
+
* (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
|
|
7338
|
+
* never fail the operation it records.
|
|
7339
|
+
*/
|
|
7340
|
+
/** Which management domain the operation belongs to. */
|
|
7341
|
+
var OpsLogDomainSchema = _enum(["recording", "events"]);
|
|
7342
|
+
/** The kind of management operation performed. */
|
|
7343
|
+
var OpsLogOpSchema = _enum([
|
|
7344
|
+
"prune",
|
|
7345
|
+
"manual-delete",
|
|
7346
|
+
"rescan",
|
|
7347
|
+
"retention-run"
|
|
7348
|
+
]);
|
|
7349
|
+
/** Why the operation ran. */
|
|
7350
|
+
var OpsLogReasonSchema = _enum([
|
|
7351
|
+
"retention",
|
|
7352
|
+
"quota",
|
|
7353
|
+
"manual",
|
|
7354
|
+
"operator"
|
|
7355
|
+
]);
|
|
7356
|
+
/** One audit row, shared verbatim by both domains. */
|
|
7357
|
+
var OpsLogEntrySchema = object({
|
|
7358
|
+
/** Unique row id. */
|
|
7359
|
+
id: string(),
|
|
7360
|
+
/** Epoch ms the operation completed. */
|
|
7361
|
+
at: number(),
|
|
7362
|
+
domain: OpsLogDomainSchema,
|
|
7363
|
+
op: OpsLogOpSchema,
|
|
7364
|
+
reason: OpsLogReasonSchema,
|
|
7365
|
+
/** The camera the op targeted; null for a cluster/global op. */
|
|
7366
|
+
deviceId: number().nullable(),
|
|
7367
|
+
/** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
|
|
7368
|
+
nodeId: string(),
|
|
7369
|
+
/** Buckets / rows deleted (op-specific unit). */
|
|
7370
|
+
itemsAffected: number(),
|
|
7371
|
+
/** Bytes reclaimed by the op (0 when not measurable). */
|
|
7372
|
+
bytesReclaimed: number(),
|
|
7373
|
+
/** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
|
|
7374
|
+
detail: string().nullable(),
|
|
7375
|
+
/** Who/what triggered the op. */
|
|
7376
|
+
actor: string()
|
|
7377
|
+
});
|
|
7378
|
+
/** Shared query input for the per-domain `listOpsLog` cap methods. */
|
|
7379
|
+
var OpsLogQueryInputSchema = object({
|
|
7380
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7381
|
+
deviceId: number().optional(),
|
|
7382
|
+
/** Max rows returned, newest-first. */
|
|
7383
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7384
|
+
});
|
|
7385
|
+
/**
|
|
7287
7386
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7288
7387
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7289
7388
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -12533,7 +12632,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12533
12632
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12534
12633
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12535
12634
|
*/
|
|
12536
|
-
var ZoneRuleStageEnum = _enum([
|
|
12635
|
+
var ZoneRuleStageEnum = _enum([
|
|
12636
|
+
"motion",
|
|
12637
|
+
"detection",
|
|
12638
|
+
"package"
|
|
12639
|
+
]);
|
|
12537
12640
|
DeviceType.Camera, method(object({
|
|
12538
12641
|
deviceId: number(),
|
|
12539
12642
|
stage: ZoneRuleStageEnum
|
|
@@ -12546,7 +12649,8 @@ DeviceType.Camera, method(object({
|
|
|
12546
12649
|
auth: "admin"
|
|
12547
12650
|
}), object({
|
|
12548
12651
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12549
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12652
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12653
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12550
12654
|
});
|
|
12551
12655
|
var ProviderStatusSchema = object({
|
|
12552
12656
|
connected: boolean(),
|
|
@@ -15746,6 +15850,7 @@ var EventKindIconSchema = _enum([
|
|
|
15746
15850
|
"smoke",
|
|
15747
15851
|
"water",
|
|
15748
15852
|
"button",
|
|
15853
|
+
"package",
|
|
15749
15854
|
"generic"
|
|
15750
15855
|
]);
|
|
15751
15856
|
var EventKindCategorySchema = _enum([
|
|
@@ -15753,7 +15858,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15753
15858
|
"audio",
|
|
15754
15859
|
"detection",
|
|
15755
15860
|
"sensor",
|
|
15756
|
-
"custom"
|
|
15861
|
+
"custom",
|
|
15862
|
+
"package"
|
|
15757
15863
|
]);
|
|
15758
15864
|
var EventKindDescriptorSchema = object({
|
|
15759
15865
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -16094,6 +16200,26 @@ var TrackCascadeCountsSchema = object({
|
|
|
16094
16200
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16095
16201
|
embeddings: number().int()
|
|
16096
16202
|
});
|
|
16203
|
+
/** Event-store footprint for one camera. */
|
|
16204
|
+
var EventStoreDeviceFootprintSchema = object({
|
|
16205
|
+
deviceId: number(),
|
|
16206
|
+
/** Persisted event rows (motion + object + audio) for the camera. */
|
|
16207
|
+
rows: number().int(),
|
|
16208
|
+
/** Event-owned media bytes on disk for the camera. */
|
|
16209
|
+
bytes: number().int()
|
|
16210
|
+
});
|
|
16211
|
+
/** Aggregate event-store footprint: global totals + per-camera breakdown. */
|
|
16212
|
+
var EventStoreFootprintSchema = object({
|
|
16213
|
+
totalRows: number().int(),
|
|
16214
|
+
totalBytes: number().int(),
|
|
16215
|
+
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
16216
|
+
});
|
|
16217
|
+
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
16218
|
+
var EventPruneCountsSchema = object({
|
|
16219
|
+
motion: number().int(),
|
|
16220
|
+
object: number().int(),
|
|
16221
|
+
audio: number().int()
|
|
16222
|
+
});
|
|
16097
16223
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
16098
16224
|
deviceId: number(),
|
|
16099
16225
|
trackId: string()
|
|
@@ -16157,6 +16283,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16157
16283
|
}), {
|
|
16158
16284
|
kind: "mutation",
|
|
16159
16285
|
auth: "admin"
|
|
16286
|
+
}), method(object({}), EventStoreFootprintSchema, {
|
|
16287
|
+
kind: "query",
|
|
16288
|
+
auth: "admin"
|
|
16289
|
+
}), method(object({
|
|
16290
|
+
olderThanMs: number(),
|
|
16291
|
+
reason: OpsLogReasonSchema.optional()
|
|
16292
|
+
}), EventPruneCountsSchema, {
|
|
16293
|
+
kind: "mutation",
|
|
16294
|
+
auth: "admin"
|
|
16295
|
+
}), method(object({ deviceId: number() }), EventPruneCountsSchema, {
|
|
16296
|
+
kind: "mutation",
|
|
16297
|
+
auth: "admin"
|
|
16298
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
16299
|
+
kind: "query",
|
|
16300
|
+
auth: "admin"
|
|
16160
16301
|
}), method(object({
|
|
16161
16302
|
eventId: string(),
|
|
16162
16303
|
kind: MediaFileKindEnum.optional()
|
|
@@ -19451,13 +19592,131 @@ method(object({
|
|
|
19451
19592
|
}), method(object({ deviceId: number() }), RecordingStatusSchema, {
|
|
19452
19593
|
kind: "mutation",
|
|
19453
19594
|
auth: "admin"
|
|
19454
|
-
}), method(object({
|
|
19595
|
+
}), method(object({
|
|
19596
|
+
deviceId: number(),
|
|
19597
|
+
reason: OpsLogReasonSchema.optional()
|
|
19598
|
+
}), object({
|
|
19455
19599
|
floorMs: number().nullable(),
|
|
19456
19600
|
deletedBuckets: number().int(),
|
|
19457
19601
|
reclaimedBytes: number().int()
|
|
19458
19602
|
}), {
|
|
19459
19603
|
kind: "mutation",
|
|
19460
19604
|
auth: "admin"
|
|
19605
|
+
}), method(object({
|
|
19606
|
+
deviceId: number(),
|
|
19607
|
+
fromMs: number().optional(),
|
|
19608
|
+
toMs: number().optional()
|
|
19609
|
+
}), object({
|
|
19610
|
+
deletedBuckets: number().int(),
|
|
19611
|
+
reclaimedBytes: number().int()
|
|
19612
|
+
}), {
|
|
19613
|
+
kind: "mutation",
|
|
19614
|
+
auth: "admin"
|
|
19615
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19616
|
+
kind: "query",
|
|
19617
|
+
auth: "admin"
|
|
19618
|
+
});
|
|
19619
|
+
/**
|
|
19620
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
19621
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
19622
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
19623
|
+
* delete-after-download.
|
|
19624
|
+
*
|
|
19625
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
19626
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
19627
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
19628
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
19629
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
19630
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
19631
|
+
* SQLite); history rows survive file deletion for audit.
|
|
19632
|
+
*/
|
|
19633
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
19634
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
19635
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
19636
|
+
var ExportTimelapseSchema = object({
|
|
19637
|
+
everyMs: number().int().positive(),
|
|
19638
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
19639
|
+
});
|
|
19640
|
+
/**
|
|
19641
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
19642
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
19643
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
19644
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
19645
|
+
*/
|
|
19646
|
+
var ExportOptionsSchema = object({
|
|
19647
|
+
speed: ExportSpeedSchema.optional(),
|
|
19648
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
19649
|
+
includeAudio: boolean(),
|
|
19650
|
+
maxLifeMs: number().int().positive(),
|
|
19651
|
+
deleteAfterDownload: boolean(),
|
|
19652
|
+
title: string().max(200).optional()
|
|
19653
|
+
}).superRefine((v, ctx) => {
|
|
19654
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
19655
|
+
code: ZodIssueCode.custom,
|
|
19656
|
+
message: "speed and timelapse are mutually exclusive",
|
|
19657
|
+
path: ["timelapse"]
|
|
19658
|
+
});
|
|
19659
|
+
});
|
|
19660
|
+
var ExportStateSchema = _enum([
|
|
19661
|
+
"queued",
|
|
19662
|
+
"rendering",
|
|
19663
|
+
"ready",
|
|
19664
|
+
"failed",
|
|
19665
|
+
"expired",
|
|
19666
|
+
"deleted"
|
|
19667
|
+
]);
|
|
19668
|
+
/** One export job / history row. */
|
|
19669
|
+
var ExportRecordSchema = object({
|
|
19670
|
+
id: string(),
|
|
19671
|
+
deviceId: number(),
|
|
19672
|
+
profile: string(),
|
|
19673
|
+
fromMs: number(),
|
|
19674
|
+
toMs: number(),
|
|
19675
|
+
options: ExportOptionsSchema,
|
|
19676
|
+
state: ExportStateSchema,
|
|
19677
|
+
/** 0–100 while rendering; null otherwise. */
|
|
19678
|
+
progressPct: number().nullable(),
|
|
19679
|
+
/** File size once ready; null before. */
|
|
19680
|
+
fileBytes: number().nullable(),
|
|
19681
|
+
expiresAt: number(),
|
|
19682
|
+
deleteAfterDownload: boolean(),
|
|
19683
|
+
/** Epoch of the first complete download; null until then. */
|
|
19684
|
+
downloadedAt: number().nullable(),
|
|
19685
|
+
createdAt: number(),
|
|
19686
|
+
/** User id/name that requested the export. */
|
|
19687
|
+
createdBy: string(),
|
|
19688
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
19689
|
+
error: string().nullable()
|
|
19690
|
+
});
|
|
19691
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
19692
|
+
var ExportDownloadSchema = object({
|
|
19693
|
+
url: string(),
|
|
19694
|
+
endpoints: array(string())
|
|
19695
|
+
});
|
|
19696
|
+
method(object({
|
|
19697
|
+
deviceId: number(),
|
|
19698
|
+
profile: string(),
|
|
19699
|
+
fromMs: number(),
|
|
19700
|
+
toMs: number(),
|
|
19701
|
+
options: ExportOptionsSchema
|
|
19702
|
+
}), ExportRecordSchema, {
|
|
19703
|
+
kind: "mutation",
|
|
19704
|
+
auth: "protected"
|
|
19705
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
19706
|
+
kind: "query",
|
|
19707
|
+
auth: "protected"
|
|
19708
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19709
|
+
kind: "query",
|
|
19710
|
+
auth: "protected"
|
|
19711
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19712
|
+
kind: "mutation",
|
|
19713
|
+
auth: "protected"
|
|
19714
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19715
|
+
kind: "mutation",
|
|
19716
|
+
auth: "protected"
|
|
19717
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
19718
|
+
kind: "query",
|
|
19719
|
+
auth: "protected"
|
|
19461
19720
|
});
|
|
19462
19721
|
/**
|
|
19463
19722
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -22477,6 +22736,12 @@ Object.freeze({
|
|
|
22477
22736
|
addonId: null,
|
|
22478
22737
|
access: "delete"
|
|
22479
22738
|
},
|
|
22739
|
+
"pipelineAnalytics.deleteDeviceEvents": {
|
|
22740
|
+
capName: "pipeline-analytics",
|
|
22741
|
+
capScope: "device",
|
|
22742
|
+
addonId: null,
|
|
22743
|
+
access: "delete"
|
|
22744
|
+
},
|
|
22480
22745
|
"pipelineAnalytics.deleteTracks": {
|
|
22481
22746
|
capName: "pipeline-analytics",
|
|
22482
22747
|
capScope: "device",
|
|
@@ -22507,6 +22772,12 @@ Object.freeze({
|
|
|
22507
22772
|
addonId: null,
|
|
22508
22773
|
access: "view"
|
|
22509
22774
|
},
|
|
22775
|
+
"pipelineAnalytics.getEventStoreFootprint": {
|
|
22776
|
+
capName: "pipeline-analytics",
|
|
22777
|
+
capScope: "device",
|
|
22778
|
+
addonId: null,
|
|
22779
|
+
access: "view"
|
|
22780
|
+
},
|
|
22510
22781
|
"pipelineAnalytics.getKeyEvents": {
|
|
22511
22782
|
capName: "pipeline-analytics",
|
|
22512
22783
|
capScope: "device",
|
|
@@ -22549,6 +22820,12 @@ Object.freeze({
|
|
|
22549
22820
|
addonId: null,
|
|
22550
22821
|
access: "view"
|
|
22551
22822
|
},
|
|
22823
|
+
"pipelineAnalytics.listOpsLog": {
|
|
22824
|
+
capName: "pipeline-analytics",
|
|
22825
|
+
capScope: "device",
|
|
22826
|
+
addonId: null,
|
|
22827
|
+
access: "view"
|
|
22828
|
+
},
|
|
22552
22829
|
"pipelineAnalytics.listRecentTracks": {
|
|
22553
22830
|
capName: "pipeline-analytics",
|
|
22554
22831
|
capScope: "device",
|
|
@@ -22561,6 +22838,12 @@ Object.freeze({
|
|
|
22561
22838
|
addonId: null,
|
|
22562
22839
|
access: "view"
|
|
22563
22840
|
},
|
|
22841
|
+
"pipelineAnalytics.pruneEvents": {
|
|
22842
|
+
capName: "pipeline-analytics",
|
|
22843
|
+
capScope: "device",
|
|
22844
|
+
addonId: null,
|
|
22845
|
+
access: "create"
|
|
22846
|
+
},
|
|
22564
22847
|
"pipelineAnalytics.pruneEventsBefore": {
|
|
22565
22848
|
capName: "pipeline-analytics",
|
|
22566
22849
|
capScope: "device",
|
|
@@ -23323,6 +23606,12 @@ Object.freeze({
|
|
|
23323
23606
|
addonId: null,
|
|
23324
23607
|
access: "create"
|
|
23325
23608
|
},
|
|
23609
|
+
"recording.deleteFootprint": {
|
|
23610
|
+
capName: "recording",
|
|
23611
|
+
capScope: "system",
|
|
23612
|
+
addonId: null,
|
|
23613
|
+
access: "delete"
|
|
23614
|
+
},
|
|
23326
23615
|
"recording.getAvailability": {
|
|
23327
23616
|
capName: "recording",
|
|
23328
23617
|
capScope: "system",
|
|
@@ -23353,6 +23642,12 @@ Object.freeze({
|
|
|
23353
23642
|
addonId: null,
|
|
23354
23643
|
access: "view"
|
|
23355
23644
|
},
|
|
23645
|
+
"recording.listOpsLog": {
|
|
23646
|
+
capName: "recording",
|
|
23647
|
+
capScope: "system",
|
|
23648
|
+
addonId: null,
|
|
23649
|
+
access: "view"
|
|
23650
|
+
},
|
|
23356
23651
|
"recording.locateSegment": {
|
|
23357
23652
|
capName: "recording",
|
|
23358
23653
|
capScope: "system",
|
|
@@ -23383,6 +23678,42 @@ Object.freeze({
|
|
|
23383
23678
|
addonId: null,
|
|
23384
23679
|
access: "create"
|
|
23385
23680
|
},
|
|
23681
|
+
"recordingExport.cancelExport": {
|
|
23682
|
+
capName: "recordingExport",
|
|
23683
|
+
capScope: "system",
|
|
23684
|
+
addonId: null,
|
|
23685
|
+
access: "create"
|
|
23686
|
+
},
|
|
23687
|
+
"recordingExport.createExport": {
|
|
23688
|
+
capName: "recordingExport",
|
|
23689
|
+
capScope: "system",
|
|
23690
|
+
addonId: null,
|
|
23691
|
+
access: "create"
|
|
23692
|
+
},
|
|
23693
|
+
"recordingExport.deleteExport": {
|
|
23694
|
+
capName: "recordingExport",
|
|
23695
|
+
capScope: "system",
|
|
23696
|
+
addonId: null,
|
|
23697
|
+
access: "delete"
|
|
23698
|
+
},
|
|
23699
|
+
"recordingExport.getDownloadUrl": {
|
|
23700
|
+
capName: "recordingExport",
|
|
23701
|
+
capScope: "system",
|
|
23702
|
+
addonId: null,
|
|
23703
|
+
access: "view"
|
|
23704
|
+
},
|
|
23705
|
+
"recordingExport.getExport": {
|
|
23706
|
+
capName: "recordingExport",
|
|
23707
|
+
capScope: "system",
|
|
23708
|
+
addonId: null,
|
|
23709
|
+
access: "view"
|
|
23710
|
+
},
|
|
23711
|
+
"recordingExport.listExports": {
|
|
23712
|
+
capName: "recordingExport",
|
|
23713
|
+
capScope: "system",
|
|
23714
|
+
addonId: null,
|
|
23715
|
+
access: "view"
|
|
23716
|
+
},
|
|
23386
23717
|
"sceneMonitor.captureReference": {
|
|
23387
23718
|
capName: "scene-monitor",
|
|
23388
23719
|
capScope: "device",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-D4HJq7Mw.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -151,6 +151,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
151
151
|
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
152
152
|
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
153
153
|
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
154
|
+
/** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
|
|
155
|
+
* progress bar the client reconciles via `recordingExport.getExport`. */
|
|
156
|
+
EventCategory["RecordingExportProgress"] = "recording.export.progress";
|
|
157
|
+
EventCategory["RecordingExportCompleted"] = "recording.export.completed";
|
|
158
|
+
EventCategory["RecordingExportFailed"] = "recording.export.failed";
|
|
154
159
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
155
160
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
156
161
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -440,6 +445,25 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
440
445
|
*/
|
|
441
446
|
EventCategory["PipelineAnalyticsStationaryChanged"] = "pipeline-analytics.stationary-changed";
|
|
442
447
|
/**
|
|
448
|
+
* Fired by `addon-post-analysis` when a package-drop is confirmed inside
|
|
449
|
+
* a package zone — a newly-appeared stationary object of a package class
|
|
450
|
+
* that cleared the class / zone / dwell / size gates. Payload:
|
|
451
|
+
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
452
|
+
* entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
|
|
453
|
+
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
454
|
+
* this bus topic drives notifier rules + live UI. See
|
|
455
|
+
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
456
|
+
*/
|
|
457
|
+
EventCategory["PipelineAnalyticsPackageDelivered"] = "pipeline-analytics.package-delivered";
|
|
458
|
+
/**
|
|
459
|
+
* Fired by `addon-post-analysis` when a previously-delivered package
|
|
460
|
+
* leaves its zone (the stationary entry departed — moved or swept).
|
|
461
|
+
* Payload: `PipelineAnalyticsPackagePickedUpPayload` carrying
|
|
462
|
+
* `{ deviceId, entryId, deliveredEventId, className, timestamp }`.
|
|
463
|
+
* Telemetry (D8). See package-zones-design §5.2.
|
|
464
|
+
*/
|
|
465
|
+
EventCategory["PipelineAnalyticsPackagePickedUp"] = "pipeline-analytics.package-picked-up";
|
|
466
|
+
/**
|
|
443
467
|
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
444
468
|
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
445
469
|
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
@@ -5178,6 +5202,25 @@ function _instanceof(cls, params = {}) {
|
|
|
5178
5202
|
};
|
|
5179
5203
|
return inst;
|
|
5180
5204
|
}
|
|
5205
|
+
//#endregion
|
|
5206
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5207
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
5208
|
+
var ZodIssueCode = {
|
|
5209
|
+
invalid_type: "invalid_type",
|
|
5210
|
+
too_big: "too_big",
|
|
5211
|
+
too_small: "too_small",
|
|
5212
|
+
invalid_format: "invalid_format",
|
|
5213
|
+
not_multiple_of: "not_multiple_of",
|
|
5214
|
+
unrecognized_keys: "unrecognized_keys",
|
|
5215
|
+
invalid_union: "invalid_union",
|
|
5216
|
+
invalid_key: "invalid_key",
|
|
5217
|
+
invalid_element: "invalid_element",
|
|
5218
|
+
invalid_value: "invalid_value",
|
|
5219
|
+
custom: "custom"
|
|
5220
|
+
};
|
|
5221
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
5222
|
+
var ZodFirstPartyTypeKind;
|
|
5223
|
+
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5181
5224
|
Object.fromEntries([
|
|
5182
5225
|
{
|
|
5183
5226
|
id: "overview",
|
|
@@ -7284,6 +7327,62 @@ var RecordingConfigSchema = object({
|
|
|
7284
7327
|
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7285
7328
|
});
|
|
7286
7329
|
/**
|
|
7330
|
+
* Ops-log — the durable, append-only operations audit shared by the
|
|
7331
|
+
* recordings and events management surfaces.
|
|
7332
|
+
*
|
|
7333
|
+
* ONE row shape is reused for both domains so a single "Activity" view can
|
|
7334
|
+
* merge the recorder's DurableState ring (recordings ops-log) and the
|
|
7335
|
+
* pipeline-analytics SQLite collection (events ops-log). Each row records a
|
|
7336
|
+
* management operation, WHY it ran (reason), and its measurable effect
|
|
7337
|
+
* (itemsAffected + bytesReclaimed). Writes are best-effort — a failed log must
|
|
7338
|
+
* never fail the operation it records.
|
|
7339
|
+
*/
|
|
7340
|
+
/** Which management domain the operation belongs to. */
|
|
7341
|
+
var OpsLogDomainSchema = _enum(["recording", "events"]);
|
|
7342
|
+
/** The kind of management operation performed. */
|
|
7343
|
+
var OpsLogOpSchema = _enum([
|
|
7344
|
+
"prune",
|
|
7345
|
+
"manual-delete",
|
|
7346
|
+
"rescan",
|
|
7347
|
+
"retention-run"
|
|
7348
|
+
]);
|
|
7349
|
+
/** Why the operation ran. */
|
|
7350
|
+
var OpsLogReasonSchema = _enum([
|
|
7351
|
+
"retention",
|
|
7352
|
+
"quota",
|
|
7353
|
+
"manual",
|
|
7354
|
+
"operator"
|
|
7355
|
+
]);
|
|
7356
|
+
/** One audit row, shared verbatim by both domains. */
|
|
7357
|
+
var OpsLogEntrySchema = object({
|
|
7358
|
+
/** Unique row id. */
|
|
7359
|
+
id: string(),
|
|
7360
|
+
/** Epoch ms the operation completed. */
|
|
7361
|
+
at: number(),
|
|
7362
|
+
domain: OpsLogDomainSchema,
|
|
7363
|
+
op: OpsLogOpSchema,
|
|
7364
|
+
reason: OpsLogReasonSchema,
|
|
7365
|
+
/** The camera the op targeted; null for a cluster/global op. */
|
|
7366
|
+
deviceId: number().nullable(),
|
|
7367
|
+
/** Node that performed the op (the log carries nodeId — no cross-node aggregation). */
|
|
7368
|
+
nodeId: string(),
|
|
7369
|
+
/** Buckets / rows deleted (op-specific unit). */
|
|
7370
|
+
itemsAffected: number(),
|
|
7371
|
+
/** Bytes reclaimed by the op (0 when not measurable). */
|
|
7372
|
+
bytesReclaimed: number(),
|
|
7373
|
+
/** Free-text detail (e.g. "floor moved to <ts>"); null when none. */
|
|
7374
|
+
detail: string().nullable(),
|
|
7375
|
+
/** Who/what triggered the op. */
|
|
7376
|
+
actor: string()
|
|
7377
|
+
});
|
|
7378
|
+
/** Shared query input for the per-domain `listOpsLog` cap methods. */
|
|
7379
|
+
var OpsLogQueryInputSchema = object({
|
|
7380
|
+
/** Restrict to a single camera; omit for every row. */
|
|
7381
|
+
deviceId: number().optional(),
|
|
7382
|
+
/** Max rows returned, newest-first. */
|
|
7383
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
7384
|
+
});
|
|
7385
|
+
/**
|
|
7287
7386
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
7288
7387
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
7289
7388
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -12533,7 +12632,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12533
12632
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12534
12633
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12535
12634
|
*/
|
|
12536
|
-
var ZoneRuleStageEnum = _enum([
|
|
12635
|
+
var ZoneRuleStageEnum = _enum([
|
|
12636
|
+
"motion",
|
|
12637
|
+
"detection",
|
|
12638
|
+
"package"
|
|
12639
|
+
]);
|
|
12537
12640
|
DeviceType.Camera, method(object({
|
|
12538
12641
|
deviceId: number(),
|
|
12539
12642
|
stage: ZoneRuleStageEnum
|
|
@@ -12546,7 +12649,8 @@ DeviceType.Camera, method(object({
|
|
|
12546
12649
|
auth: "admin"
|
|
12547
12650
|
}), object({
|
|
12548
12651
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12549
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12652
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12653
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12550
12654
|
});
|
|
12551
12655
|
var ProviderStatusSchema = object({
|
|
12552
12656
|
connected: boolean(),
|
|
@@ -15746,6 +15850,7 @@ var EventKindIconSchema = _enum([
|
|
|
15746
15850
|
"smoke",
|
|
15747
15851
|
"water",
|
|
15748
15852
|
"button",
|
|
15853
|
+
"package",
|
|
15749
15854
|
"generic"
|
|
15750
15855
|
]);
|
|
15751
15856
|
var EventKindCategorySchema = _enum([
|
|
@@ -15753,7 +15858,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15753
15858
|
"audio",
|
|
15754
15859
|
"detection",
|
|
15755
15860
|
"sensor",
|
|
15756
|
-
"custom"
|
|
15861
|
+
"custom",
|
|
15862
|
+
"package"
|
|
15757
15863
|
]);
|
|
15758
15864
|
var EventKindDescriptorSchema = object({
|
|
15759
15865
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -16094,6 +16200,26 @@ var TrackCascadeCountsSchema = object({
|
|
|
16094
16200
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16095
16201
|
embeddings: number().int()
|
|
16096
16202
|
});
|
|
16203
|
+
/** Event-store footprint for one camera. */
|
|
16204
|
+
var EventStoreDeviceFootprintSchema = object({
|
|
16205
|
+
deviceId: number(),
|
|
16206
|
+
/** Persisted event rows (motion + object + audio) for the camera. */
|
|
16207
|
+
rows: number().int(),
|
|
16208
|
+
/** Event-owned media bytes on disk for the camera. */
|
|
16209
|
+
bytes: number().int()
|
|
16210
|
+
});
|
|
16211
|
+
/** Aggregate event-store footprint: global totals + per-camera breakdown. */
|
|
16212
|
+
var EventStoreFootprintSchema = object({
|
|
16213
|
+
totalRows: number().int(),
|
|
16214
|
+
totalBytes: number().int(),
|
|
16215
|
+
devices: array(EventStoreDeviceFootprintSchema).readonly()
|
|
16216
|
+
});
|
|
16217
|
+
/** Per-kind counts returned by the event-prune / device-delete mutations. */
|
|
16218
|
+
var EventPruneCountsSchema = object({
|
|
16219
|
+
motion: number().int(),
|
|
16220
|
+
object: number().int(),
|
|
16221
|
+
audio: number().int()
|
|
16222
|
+
});
|
|
16097
16223
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
16098
16224
|
deviceId: number(),
|
|
16099
16225
|
trackId: string()
|
|
@@ -16157,6 +16283,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16157
16283
|
}), {
|
|
16158
16284
|
kind: "mutation",
|
|
16159
16285
|
auth: "admin"
|
|
16286
|
+
}), method(object({}), EventStoreFootprintSchema, {
|
|
16287
|
+
kind: "query",
|
|
16288
|
+
auth: "admin"
|
|
16289
|
+
}), method(object({
|
|
16290
|
+
olderThanMs: number(),
|
|
16291
|
+
reason: OpsLogReasonSchema.optional()
|
|
16292
|
+
}), EventPruneCountsSchema, {
|
|
16293
|
+
kind: "mutation",
|
|
16294
|
+
auth: "admin"
|
|
16295
|
+
}), method(object({ deviceId: number() }), EventPruneCountsSchema, {
|
|
16296
|
+
kind: "mutation",
|
|
16297
|
+
auth: "admin"
|
|
16298
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
16299
|
+
kind: "query",
|
|
16300
|
+
auth: "admin"
|
|
16160
16301
|
}), method(object({
|
|
16161
16302
|
eventId: string(),
|
|
16162
16303
|
kind: MediaFileKindEnum.optional()
|
|
@@ -19451,13 +19592,131 @@ method(object({
|
|
|
19451
19592
|
}), method(object({ deviceId: number() }), RecordingStatusSchema, {
|
|
19452
19593
|
kind: "mutation",
|
|
19453
19594
|
auth: "admin"
|
|
19454
|
-
}), method(object({
|
|
19595
|
+
}), method(object({
|
|
19596
|
+
deviceId: number(),
|
|
19597
|
+
reason: OpsLogReasonSchema.optional()
|
|
19598
|
+
}), object({
|
|
19455
19599
|
floorMs: number().nullable(),
|
|
19456
19600
|
deletedBuckets: number().int(),
|
|
19457
19601
|
reclaimedBytes: number().int()
|
|
19458
19602
|
}), {
|
|
19459
19603
|
kind: "mutation",
|
|
19460
19604
|
auth: "admin"
|
|
19605
|
+
}), method(object({
|
|
19606
|
+
deviceId: number(),
|
|
19607
|
+
fromMs: number().optional(),
|
|
19608
|
+
toMs: number().optional()
|
|
19609
|
+
}), object({
|
|
19610
|
+
deletedBuckets: number().int(),
|
|
19611
|
+
reclaimedBytes: number().int()
|
|
19612
|
+
}), {
|
|
19613
|
+
kind: "mutation",
|
|
19614
|
+
auth: "admin"
|
|
19615
|
+
}), method(OpsLogQueryInputSchema, array(OpsLogEntrySchema).readonly(), {
|
|
19616
|
+
kind: "query",
|
|
19617
|
+
auth: "admin"
|
|
19618
|
+
});
|
|
19619
|
+
/**
|
|
19620
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
19621
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
19622
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
19623
|
+
* delete-after-download.
|
|
19624
|
+
*
|
|
19625
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
19626
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
19627
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
19628
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
19629
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
19630
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
19631
|
+
* SQLite); history rows survive file deletion for audit.
|
|
19632
|
+
*/
|
|
19633
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
19634
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
19635
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
19636
|
+
var ExportTimelapseSchema = object({
|
|
19637
|
+
everyMs: number().int().positive(),
|
|
19638
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
19639
|
+
});
|
|
19640
|
+
/**
|
|
19641
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
19642
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
19643
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
19644
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
19645
|
+
*/
|
|
19646
|
+
var ExportOptionsSchema = object({
|
|
19647
|
+
speed: ExportSpeedSchema.optional(),
|
|
19648
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
19649
|
+
includeAudio: boolean(),
|
|
19650
|
+
maxLifeMs: number().int().positive(),
|
|
19651
|
+
deleteAfterDownload: boolean(),
|
|
19652
|
+
title: string().max(200).optional()
|
|
19653
|
+
}).superRefine((v, ctx) => {
|
|
19654
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
19655
|
+
code: ZodIssueCode.custom,
|
|
19656
|
+
message: "speed and timelapse are mutually exclusive",
|
|
19657
|
+
path: ["timelapse"]
|
|
19658
|
+
});
|
|
19659
|
+
});
|
|
19660
|
+
var ExportStateSchema = _enum([
|
|
19661
|
+
"queued",
|
|
19662
|
+
"rendering",
|
|
19663
|
+
"ready",
|
|
19664
|
+
"failed",
|
|
19665
|
+
"expired",
|
|
19666
|
+
"deleted"
|
|
19667
|
+
]);
|
|
19668
|
+
/** One export job / history row. */
|
|
19669
|
+
var ExportRecordSchema = object({
|
|
19670
|
+
id: string(),
|
|
19671
|
+
deviceId: number(),
|
|
19672
|
+
profile: string(),
|
|
19673
|
+
fromMs: number(),
|
|
19674
|
+
toMs: number(),
|
|
19675
|
+
options: ExportOptionsSchema,
|
|
19676
|
+
state: ExportStateSchema,
|
|
19677
|
+
/** 0–100 while rendering; null otherwise. */
|
|
19678
|
+
progressPct: number().nullable(),
|
|
19679
|
+
/** File size once ready; null before. */
|
|
19680
|
+
fileBytes: number().nullable(),
|
|
19681
|
+
expiresAt: number(),
|
|
19682
|
+
deleteAfterDownload: boolean(),
|
|
19683
|
+
/** Epoch of the first complete download; null until then. */
|
|
19684
|
+
downloadedAt: number().nullable(),
|
|
19685
|
+
createdAt: number(),
|
|
19686
|
+
/** User id/name that requested the export. */
|
|
19687
|
+
createdBy: string(),
|
|
19688
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
19689
|
+
error: string().nullable()
|
|
19690
|
+
});
|
|
19691
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
19692
|
+
var ExportDownloadSchema = object({
|
|
19693
|
+
url: string(),
|
|
19694
|
+
endpoints: array(string())
|
|
19695
|
+
});
|
|
19696
|
+
method(object({
|
|
19697
|
+
deviceId: number(),
|
|
19698
|
+
profile: string(),
|
|
19699
|
+
fromMs: number(),
|
|
19700
|
+
toMs: number(),
|
|
19701
|
+
options: ExportOptionsSchema
|
|
19702
|
+
}), ExportRecordSchema, {
|
|
19703
|
+
kind: "mutation",
|
|
19704
|
+
auth: "protected"
|
|
19705
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
19706
|
+
kind: "query",
|
|
19707
|
+
auth: "protected"
|
|
19708
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19709
|
+
kind: "query",
|
|
19710
|
+
auth: "protected"
|
|
19711
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19712
|
+
kind: "mutation",
|
|
19713
|
+
auth: "protected"
|
|
19714
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19715
|
+
kind: "mutation",
|
|
19716
|
+
auth: "protected"
|
|
19717
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
19718
|
+
kind: "query",
|
|
19719
|
+
auth: "protected"
|
|
19461
19720
|
});
|
|
19462
19721
|
/**
|
|
19463
19722
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -22477,6 +22736,12 @@ Object.freeze({
|
|
|
22477
22736
|
addonId: null,
|
|
22478
22737
|
access: "delete"
|
|
22479
22738
|
},
|
|
22739
|
+
"pipelineAnalytics.deleteDeviceEvents": {
|
|
22740
|
+
capName: "pipeline-analytics",
|
|
22741
|
+
capScope: "device",
|
|
22742
|
+
addonId: null,
|
|
22743
|
+
access: "delete"
|
|
22744
|
+
},
|
|
22480
22745
|
"pipelineAnalytics.deleteTracks": {
|
|
22481
22746
|
capName: "pipeline-analytics",
|
|
22482
22747
|
capScope: "device",
|
|
@@ -22507,6 +22772,12 @@ Object.freeze({
|
|
|
22507
22772
|
addonId: null,
|
|
22508
22773
|
access: "view"
|
|
22509
22774
|
},
|
|
22775
|
+
"pipelineAnalytics.getEventStoreFootprint": {
|
|
22776
|
+
capName: "pipeline-analytics",
|
|
22777
|
+
capScope: "device",
|
|
22778
|
+
addonId: null,
|
|
22779
|
+
access: "view"
|
|
22780
|
+
},
|
|
22510
22781
|
"pipelineAnalytics.getKeyEvents": {
|
|
22511
22782
|
capName: "pipeline-analytics",
|
|
22512
22783
|
capScope: "device",
|
|
@@ -22549,6 +22820,12 @@ Object.freeze({
|
|
|
22549
22820
|
addonId: null,
|
|
22550
22821
|
access: "view"
|
|
22551
22822
|
},
|
|
22823
|
+
"pipelineAnalytics.listOpsLog": {
|
|
22824
|
+
capName: "pipeline-analytics",
|
|
22825
|
+
capScope: "device",
|
|
22826
|
+
addonId: null,
|
|
22827
|
+
access: "view"
|
|
22828
|
+
},
|
|
22552
22829
|
"pipelineAnalytics.listRecentTracks": {
|
|
22553
22830
|
capName: "pipeline-analytics",
|
|
22554
22831
|
capScope: "device",
|
|
@@ -22561,6 +22838,12 @@ Object.freeze({
|
|
|
22561
22838
|
addonId: null,
|
|
22562
22839
|
access: "view"
|
|
22563
22840
|
},
|
|
22841
|
+
"pipelineAnalytics.pruneEvents": {
|
|
22842
|
+
capName: "pipeline-analytics",
|
|
22843
|
+
capScope: "device",
|
|
22844
|
+
addonId: null,
|
|
22845
|
+
access: "create"
|
|
22846
|
+
},
|
|
22564
22847
|
"pipelineAnalytics.pruneEventsBefore": {
|
|
22565
22848
|
capName: "pipeline-analytics",
|
|
22566
22849
|
capScope: "device",
|
|
@@ -23323,6 +23606,12 @@ Object.freeze({
|
|
|
23323
23606
|
addonId: null,
|
|
23324
23607
|
access: "create"
|
|
23325
23608
|
},
|
|
23609
|
+
"recording.deleteFootprint": {
|
|
23610
|
+
capName: "recording",
|
|
23611
|
+
capScope: "system",
|
|
23612
|
+
addonId: null,
|
|
23613
|
+
access: "delete"
|
|
23614
|
+
},
|
|
23326
23615
|
"recording.getAvailability": {
|
|
23327
23616
|
capName: "recording",
|
|
23328
23617
|
capScope: "system",
|
|
@@ -23353,6 +23642,12 @@ Object.freeze({
|
|
|
23353
23642
|
addonId: null,
|
|
23354
23643
|
access: "view"
|
|
23355
23644
|
},
|
|
23645
|
+
"recording.listOpsLog": {
|
|
23646
|
+
capName: "recording",
|
|
23647
|
+
capScope: "system",
|
|
23648
|
+
addonId: null,
|
|
23649
|
+
access: "view"
|
|
23650
|
+
},
|
|
23356
23651
|
"recording.locateSegment": {
|
|
23357
23652
|
capName: "recording",
|
|
23358
23653
|
capScope: "system",
|
|
@@ -23383,6 +23678,42 @@ Object.freeze({
|
|
|
23383
23678
|
addonId: null,
|
|
23384
23679
|
access: "create"
|
|
23385
23680
|
},
|
|
23681
|
+
"recordingExport.cancelExport": {
|
|
23682
|
+
capName: "recordingExport",
|
|
23683
|
+
capScope: "system",
|
|
23684
|
+
addonId: null,
|
|
23685
|
+
access: "create"
|
|
23686
|
+
},
|
|
23687
|
+
"recordingExport.createExport": {
|
|
23688
|
+
capName: "recordingExport",
|
|
23689
|
+
capScope: "system",
|
|
23690
|
+
addonId: null,
|
|
23691
|
+
access: "create"
|
|
23692
|
+
},
|
|
23693
|
+
"recordingExport.deleteExport": {
|
|
23694
|
+
capName: "recordingExport",
|
|
23695
|
+
capScope: "system",
|
|
23696
|
+
addonId: null,
|
|
23697
|
+
access: "delete"
|
|
23698
|
+
},
|
|
23699
|
+
"recordingExport.getDownloadUrl": {
|
|
23700
|
+
capName: "recordingExport",
|
|
23701
|
+
capScope: "system",
|
|
23702
|
+
addonId: null,
|
|
23703
|
+
access: "view"
|
|
23704
|
+
},
|
|
23705
|
+
"recordingExport.getExport": {
|
|
23706
|
+
capName: "recordingExport",
|
|
23707
|
+
capScope: "system",
|
|
23708
|
+
addonId: null,
|
|
23709
|
+
access: "view"
|
|
23710
|
+
},
|
|
23711
|
+
"recordingExport.listExports": {
|
|
23712
|
+
capName: "recordingExport",
|
|
23713
|
+
capScope: "system",
|
|
23714
|
+
addonId: null,
|
|
23715
|
+
access: "view"
|
|
23716
|
+
},
|
|
23386
23717
|
"sceneMonitor.captureReference": {
|
|
23387
23718
|
capName: "scene-monitor",
|
|
23388
23719
|
capScope: "device",
|
|
@@ -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-DVZX81-I.js");
|
|
6
6
|
let node_child_process = require("node:child_process");
|
|
7
7
|
let node_util = require("node:util");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-
|
|
1
|
+
import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-FdwqBAVi.mjs";
|
|
2
2
|
import { execFile } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
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",
|