@camstack/addon-import-alexa 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +228 -8
- package/dist/addon.mjs +228 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -38,7 +38,7 @@ let node_crypto = require("node:crypto");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-D4HJq7Mw.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -191,6 +191,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
191
191
|
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
192
192
|
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
193
193
|
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
194
|
+
/** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
|
|
195
|
+
* progress bar the client reconciles via `recordingExport.getExport`. */
|
|
196
|
+
EventCategory["RecordingExportProgress"] = "recording.export.progress";
|
|
197
|
+
EventCategory["RecordingExportCompleted"] = "recording.export.completed";
|
|
198
|
+
EventCategory["RecordingExportFailed"] = "recording.export.failed";
|
|
194
199
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
195
200
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
196
201
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -480,6 +485,25 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
480
485
|
*/
|
|
481
486
|
EventCategory["PipelineAnalyticsStationaryChanged"] = "pipeline-analytics.stationary-changed";
|
|
482
487
|
/**
|
|
488
|
+
* Fired by `addon-post-analysis` when a package-drop is confirmed inside
|
|
489
|
+
* a package zone — a newly-appeared stationary object of a package class
|
|
490
|
+
* that cleared the class / zone / dwell / size gates. Payload:
|
|
491
|
+
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
492
|
+
* entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
|
|
493
|
+
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
494
|
+
* this bus topic drives notifier rules + live UI. See
|
|
495
|
+
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
496
|
+
*/
|
|
497
|
+
EventCategory["PipelineAnalyticsPackageDelivered"] = "pipeline-analytics.package-delivered";
|
|
498
|
+
/**
|
|
499
|
+
* Fired by `addon-post-analysis` when a previously-delivered package
|
|
500
|
+
* leaves its zone (the stationary entry departed — moved or swept).
|
|
501
|
+
* Payload: `PipelineAnalyticsPackagePickedUpPayload` carrying
|
|
502
|
+
* `{ deviceId, entryId, deliveredEventId, className, timestamp }`.
|
|
503
|
+
* Telemetry (D8). See package-zones-design §5.2.
|
|
504
|
+
*/
|
|
505
|
+
EventCategory["PipelineAnalyticsPackagePickedUp"] = "pipeline-analytics.package-picked-up";
|
|
506
|
+
/**
|
|
483
507
|
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
484
508
|
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
485
509
|
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
@@ -5232,6 +5256,25 @@ function preprocess(fn, schema) {
|
|
|
5232
5256
|
out: schema
|
|
5233
5257
|
});
|
|
5234
5258
|
}
|
|
5259
|
+
//#endregion
|
|
5260
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5261
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
5262
|
+
var ZodIssueCode = {
|
|
5263
|
+
invalid_type: "invalid_type",
|
|
5264
|
+
too_big: "too_big",
|
|
5265
|
+
too_small: "too_small",
|
|
5266
|
+
invalid_format: "invalid_format",
|
|
5267
|
+
not_multiple_of: "not_multiple_of",
|
|
5268
|
+
unrecognized_keys: "unrecognized_keys",
|
|
5269
|
+
invalid_union: "invalid_union",
|
|
5270
|
+
invalid_key: "invalid_key",
|
|
5271
|
+
invalid_element: "invalid_element",
|
|
5272
|
+
invalid_value: "invalid_value",
|
|
5273
|
+
custom: "custom"
|
|
5274
|
+
};
|
|
5275
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
5276
|
+
var ZodFirstPartyTypeKind;
|
|
5277
|
+
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5235
5278
|
Object.fromEntries([
|
|
5236
5279
|
{
|
|
5237
5280
|
id: "overview",
|
|
@@ -7407,6 +7450,24 @@ var RecordingRetentionSchema = object({
|
|
|
7407
7450
|
maxSizeGb: number().min(0).optional()
|
|
7408
7451
|
});
|
|
7409
7452
|
/**
|
|
7453
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7454
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7455
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7456
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7457
|
+
*
|
|
7458
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7459
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7460
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7461
|
+
* written with.
|
|
7462
|
+
*/
|
|
7463
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7464
|
+
"minimal",
|
|
7465
|
+
"low",
|
|
7466
|
+
"standard",
|
|
7467
|
+
"high",
|
|
7468
|
+
"max"
|
|
7469
|
+
]);
|
|
7470
|
+
/**
|
|
7410
7471
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7411
7472
|
*
|
|
7412
7473
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7443,7 +7504,14 @@ var RecordingConfigSchema = object({
|
|
|
7443
7504
|
* derived into bands once via `migrateConfigToBands`.
|
|
7444
7505
|
*/
|
|
7445
7506
|
bands: array(RecordingBandSchema).optional(),
|
|
7446
|
-
retention: RecordingRetentionSchema.optional()
|
|
7507
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7508
|
+
/**
|
|
7509
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7510
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7511
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7512
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7513
|
+
*/
|
|
7514
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7447
7515
|
});
|
|
7448
7516
|
/**
|
|
7449
7517
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -14801,7 +14869,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
14801
14869
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
14802
14870
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
14803
14871
|
*/
|
|
14804
|
-
var ZoneRuleStageEnum = _enum([
|
|
14872
|
+
var ZoneRuleStageEnum = _enum([
|
|
14873
|
+
"motion",
|
|
14874
|
+
"detection",
|
|
14875
|
+
"package"
|
|
14876
|
+
]);
|
|
14805
14877
|
/**
|
|
14806
14878
|
* Runtime registry: cap-property-name → cap definition. `BaseDevice`'s
|
|
14807
14879
|
* `state` getter looks up the cap definition here to construct a
|
|
@@ -14895,16 +14967,24 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
14895
14967
|
})
|
|
14896
14968
|
},
|
|
14897
14969
|
/**
|
|
14898
|
-
* Runtime-state slice —
|
|
14970
|
+
* Runtime-state slice — every stage mirrored together so consumers
|
|
14899
14971
|
* see one reactive handle (`device.state.zoneRules.value`) instead
|
|
14900
|
-
* of
|
|
14901
|
-
* `{motion, detection}` shape, so subscribers always get the
|
|
14972
|
+
* of one per stage. Bulk-replace mutations on any stage write the full
|
|
14973
|
+
* `{motion, detection, package}` shape, so subscribers always get the
|
|
14902
14974
|
* complete current set. Consumers that only care about one stage
|
|
14903
14975
|
* just read the matching property.
|
|
14976
|
+
*
|
|
14977
|
+
* `package` backs the package-drop detector — a package zone is a
|
|
14978
|
+
* `ZoneRule` on the `'package'` stage referencing drawn polygons
|
|
14979
|
+
* (see docs/superpowers/specs/2026-07-17-package-zones-design.md §3.1).
|
|
14980
|
+
* The orchestrator provider that writes this stage lands in a later
|
|
14981
|
+
* slice; until then the mirror carries only `{motion, detection}` and
|
|
14982
|
+
* consumers read `package` as absent (treat as `[]`).
|
|
14904
14983
|
*/
|
|
14905
14984
|
runtimeState: object({
|
|
14906
14985
|
motion: array(ZoneRuleSchema).readonly(),
|
|
14907
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
14986
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
14987
|
+
package: array(ZoneRuleSchema).readonly()
|
|
14908
14988
|
})
|
|
14909
14989
|
},
|
|
14910
14990
|
zones: zonesCapability
|
|
@@ -18951,6 +19031,7 @@ var EventKindIconSchema = _enum([
|
|
|
18951
19031
|
"smoke",
|
|
18952
19032
|
"water",
|
|
18953
19033
|
"button",
|
|
19034
|
+
"package",
|
|
18954
19035
|
"generic"
|
|
18955
19036
|
]);
|
|
18956
19037
|
var EventKindCategorySchema = _enum([
|
|
@@ -18958,7 +19039,8 @@ var EventKindCategorySchema = _enum([
|
|
|
18958
19039
|
"audio",
|
|
18959
19040
|
"detection",
|
|
18960
19041
|
"sensor",
|
|
18961
|
-
"custom"
|
|
19042
|
+
"custom",
|
|
19043
|
+
"package"
|
|
18962
19044
|
]);
|
|
18963
19045
|
var EventKindDescriptorSchema = object({
|
|
18964
19046
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -22621,6 +22703,108 @@ method(object({
|
|
|
22621
22703
|
auth: "admin"
|
|
22622
22704
|
});
|
|
22623
22705
|
/**
|
|
22706
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
22707
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
22708
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
22709
|
+
* delete-after-download.
|
|
22710
|
+
*
|
|
22711
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
22712
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
22713
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
22714
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
22715
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
22716
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
22717
|
+
* SQLite); history rows survive file deletion for audit.
|
|
22718
|
+
*/
|
|
22719
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
22720
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
22721
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
22722
|
+
var ExportTimelapseSchema = object({
|
|
22723
|
+
everyMs: number().int().positive(),
|
|
22724
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
22725
|
+
});
|
|
22726
|
+
/**
|
|
22727
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
22728
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
22729
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
22730
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
22731
|
+
*/
|
|
22732
|
+
var ExportOptionsSchema = object({
|
|
22733
|
+
speed: ExportSpeedSchema.optional(),
|
|
22734
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
22735
|
+
includeAudio: boolean(),
|
|
22736
|
+
maxLifeMs: number().int().positive(),
|
|
22737
|
+
deleteAfterDownload: boolean(),
|
|
22738
|
+
title: string().max(200).optional()
|
|
22739
|
+
}).superRefine((v, ctx) => {
|
|
22740
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
22741
|
+
code: ZodIssueCode.custom,
|
|
22742
|
+
message: "speed and timelapse are mutually exclusive",
|
|
22743
|
+
path: ["timelapse"]
|
|
22744
|
+
});
|
|
22745
|
+
});
|
|
22746
|
+
var ExportStateSchema = _enum([
|
|
22747
|
+
"queued",
|
|
22748
|
+
"rendering",
|
|
22749
|
+
"ready",
|
|
22750
|
+
"failed",
|
|
22751
|
+
"expired",
|
|
22752
|
+
"deleted"
|
|
22753
|
+
]);
|
|
22754
|
+
/** One export job / history row. */
|
|
22755
|
+
var ExportRecordSchema = object({
|
|
22756
|
+
id: string(),
|
|
22757
|
+
deviceId: number(),
|
|
22758
|
+
profile: string(),
|
|
22759
|
+
fromMs: number(),
|
|
22760
|
+
toMs: number(),
|
|
22761
|
+
options: ExportOptionsSchema,
|
|
22762
|
+
state: ExportStateSchema,
|
|
22763
|
+
/** 0–100 while rendering; null otherwise. */
|
|
22764
|
+
progressPct: number().nullable(),
|
|
22765
|
+
/** File size once ready; null before. */
|
|
22766
|
+
fileBytes: number().nullable(),
|
|
22767
|
+
expiresAt: number(),
|
|
22768
|
+
deleteAfterDownload: boolean(),
|
|
22769
|
+
/** Epoch of the first complete download; null until then. */
|
|
22770
|
+
downloadedAt: number().nullable(),
|
|
22771
|
+
createdAt: number(),
|
|
22772
|
+
/** User id/name that requested the export. */
|
|
22773
|
+
createdBy: string(),
|
|
22774
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
22775
|
+
error: string().nullable()
|
|
22776
|
+
});
|
|
22777
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
22778
|
+
var ExportDownloadSchema = object({
|
|
22779
|
+
url: string(),
|
|
22780
|
+
endpoints: array(string())
|
|
22781
|
+
});
|
|
22782
|
+
method(object({
|
|
22783
|
+
deviceId: number(),
|
|
22784
|
+
profile: string(),
|
|
22785
|
+
fromMs: number(),
|
|
22786
|
+
toMs: number(),
|
|
22787
|
+
options: ExportOptionsSchema
|
|
22788
|
+
}), ExportRecordSchema, {
|
|
22789
|
+
kind: "mutation",
|
|
22790
|
+
auth: "protected"
|
|
22791
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
22792
|
+
kind: "query",
|
|
22793
|
+
auth: "protected"
|
|
22794
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22795
|
+
kind: "query",
|
|
22796
|
+
auth: "protected"
|
|
22797
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22798
|
+
kind: "mutation",
|
|
22799
|
+
auth: "protected"
|
|
22800
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22801
|
+
kind: "mutation",
|
|
22802
|
+
auth: "protected"
|
|
22803
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
22804
|
+
kind: "query",
|
|
22805
|
+
auth: "protected"
|
|
22806
|
+
});
|
|
22807
|
+
/**
|
|
22624
22808
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
22625
22809
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
22626
22810
|
* `deviceId`.
|
|
@@ -26544,6 +26728,42 @@ Object.freeze({
|
|
|
26544
26728
|
addonId: null,
|
|
26545
26729
|
access: "create"
|
|
26546
26730
|
},
|
|
26731
|
+
"recordingExport.cancelExport": {
|
|
26732
|
+
capName: "recordingExport",
|
|
26733
|
+
capScope: "system",
|
|
26734
|
+
addonId: null,
|
|
26735
|
+
access: "create"
|
|
26736
|
+
},
|
|
26737
|
+
"recordingExport.createExport": {
|
|
26738
|
+
capName: "recordingExport",
|
|
26739
|
+
capScope: "system",
|
|
26740
|
+
addonId: null,
|
|
26741
|
+
access: "create"
|
|
26742
|
+
},
|
|
26743
|
+
"recordingExport.deleteExport": {
|
|
26744
|
+
capName: "recordingExport",
|
|
26745
|
+
capScope: "system",
|
|
26746
|
+
addonId: null,
|
|
26747
|
+
access: "delete"
|
|
26748
|
+
},
|
|
26749
|
+
"recordingExport.getDownloadUrl": {
|
|
26750
|
+
capName: "recordingExport",
|
|
26751
|
+
capScope: "system",
|
|
26752
|
+
addonId: null,
|
|
26753
|
+
access: "view"
|
|
26754
|
+
},
|
|
26755
|
+
"recordingExport.getExport": {
|
|
26756
|
+
capName: "recordingExport",
|
|
26757
|
+
capScope: "system",
|
|
26758
|
+
addonId: null,
|
|
26759
|
+
access: "view"
|
|
26760
|
+
},
|
|
26761
|
+
"recordingExport.listExports": {
|
|
26762
|
+
capName: "recordingExport",
|
|
26763
|
+
capScope: "system",
|
|
26764
|
+
addonId: null,
|
|
26765
|
+
access: "view"
|
|
26766
|
+
},
|
|
26547
26767
|
"sceneMonitor.captureReference": {
|
|
26548
26768
|
capName: "scene-monitor",
|
|
26549
26769
|
capScope: "device",
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-D4HJq7Mw.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -191,6 +191,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
191
191
|
/** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
|
|
192
192
|
* thumb is a scrub gap the recorder's keyframe backfill covers. */
|
|
193
193
|
EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
|
|
194
|
+
/** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
|
|
195
|
+
* progress bar the client reconciles via `recordingExport.getExport`. */
|
|
196
|
+
EventCategory["RecordingExportProgress"] = "recording.export.progress";
|
|
197
|
+
EventCategory["RecordingExportCompleted"] = "recording.export.completed";
|
|
198
|
+
EventCategory["RecordingExportFailed"] = "recording.export.failed";
|
|
194
199
|
EventCategory["DetectionEvent"] = "detection.event";
|
|
195
200
|
EventCategory["SessionTrackNew"] = "session.track.new";
|
|
196
201
|
EventCategory["SessionTrackExpired"] = "session.track.expired";
|
|
@@ -480,6 +485,25 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
480
485
|
*/
|
|
481
486
|
EventCategory["PipelineAnalyticsStationaryChanged"] = "pipeline-analytics.stationary-changed";
|
|
482
487
|
/**
|
|
488
|
+
* Fired by `addon-post-analysis` when a package-drop is confirmed inside
|
|
489
|
+
* a package zone — a newly-appeared stationary object of a package class
|
|
490
|
+
* that cleared the class / zone / dwell / size gates. Payload:
|
|
491
|
+
* `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
|
|
492
|
+
* entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
|
|
493
|
+
* Telemetry (D8): the durable record is the `package-events` store row;
|
|
494
|
+
* this bus topic drives notifier rules + live UI. See
|
|
495
|
+
* docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
|
|
496
|
+
*/
|
|
497
|
+
EventCategory["PipelineAnalyticsPackageDelivered"] = "pipeline-analytics.package-delivered";
|
|
498
|
+
/**
|
|
499
|
+
* Fired by `addon-post-analysis` when a previously-delivered package
|
|
500
|
+
* leaves its zone (the stationary entry departed — moved or swept).
|
|
501
|
+
* Payload: `PipelineAnalyticsPackagePickedUpPayload` carrying
|
|
502
|
+
* `{ deviceId, entryId, deliveredEventId, className, timestamp }`.
|
|
503
|
+
* Telemetry (D8). See package-zones-design §5.2.
|
|
504
|
+
*/
|
|
505
|
+
EventCategory["PipelineAnalyticsPackagePickedUp"] = "pipeline-analytics.package-picked-up";
|
|
506
|
+
/**
|
|
483
507
|
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
484
508
|
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
485
509
|
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
@@ -5232,6 +5256,25 @@ function preprocess(fn, schema) {
|
|
|
5232
5256
|
out: schema
|
|
5233
5257
|
});
|
|
5234
5258
|
}
|
|
5259
|
+
//#endregion
|
|
5260
|
+
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
5261
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
5262
|
+
var ZodIssueCode = {
|
|
5263
|
+
invalid_type: "invalid_type",
|
|
5264
|
+
too_big: "too_big",
|
|
5265
|
+
too_small: "too_small",
|
|
5266
|
+
invalid_format: "invalid_format",
|
|
5267
|
+
not_multiple_of: "not_multiple_of",
|
|
5268
|
+
unrecognized_keys: "unrecognized_keys",
|
|
5269
|
+
invalid_union: "invalid_union",
|
|
5270
|
+
invalid_key: "invalid_key",
|
|
5271
|
+
invalid_element: "invalid_element",
|
|
5272
|
+
invalid_value: "invalid_value",
|
|
5273
|
+
custom: "custom"
|
|
5274
|
+
};
|
|
5275
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
5276
|
+
var ZodFirstPartyTypeKind;
|
|
5277
|
+
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5235
5278
|
Object.fromEntries([
|
|
5236
5279
|
{
|
|
5237
5280
|
id: "overview",
|
|
@@ -7407,6 +7450,24 @@ var RecordingRetentionSchema = object({
|
|
|
7407
7450
|
maxSizeGb: number().min(0).optional()
|
|
7408
7451
|
});
|
|
7409
7452
|
/**
|
|
7453
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7454
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7455
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7456
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7457
|
+
*
|
|
7458
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7459
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7460
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7461
|
+
* written with.
|
|
7462
|
+
*/
|
|
7463
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7464
|
+
"minimal",
|
|
7465
|
+
"low",
|
|
7466
|
+
"standard",
|
|
7467
|
+
"high",
|
|
7468
|
+
"max"
|
|
7469
|
+
]);
|
|
7470
|
+
/**
|
|
7410
7471
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7411
7472
|
*
|
|
7412
7473
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7443,7 +7504,14 @@ var RecordingConfigSchema = object({
|
|
|
7443
7504
|
* derived into bands once via `migrateConfigToBands`.
|
|
7444
7505
|
*/
|
|
7445
7506
|
bands: array(RecordingBandSchema).optional(),
|
|
7446
|
-
retention: RecordingRetentionSchema.optional()
|
|
7507
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7508
|
+
/**
|
|
7509
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7510
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7511
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7512
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7513
|
+
*/
|
|
7514
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7447
7515
|
});
|
|
7448
7516
|
/**
|
|
7449
7517
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -14801,7 +14869,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
14801
14869
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
14802
14870
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
14803
14871
|
*/
|
|
14804
|
-
var ZoneRuleStageEnum = _enum([
|
|
14872
|
+
var ZoneRuleStageEnum = _enum([
|
|
14873
|
+
"motion",
|
|
14874
|
+
"detection",
|
|
14875
|
+
"package"
|
|
14876
|
+
]);
|
|
14805
14877
|
/**
|
|
14806
14878
|
* Runtime registry: cap-property-name → cap definition. `BaseDevice`'s
|
|
14807
14879
|
* `state` getter looks up the cap definition here to construct a
|
|
@@ -14895,16 +14967,24 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
14895
14967
|
})
|
|
14896
14968
|
},
|
|
14897
14969
|
/**
|
|
14898
|
-
* Runtime-state slice —
|
|
14970
|
+
* Runtime-state slice — every stage mirrored together so consumers
|
|
14899
14971
|
* see one reactive handle (`device.state.zoneRules.value`) instead
|
|
14900
|
-
* of
|
|
14901
|
-
* `{motion, detection}` shape, so subscribers always get the
|
|
14972
|
+
* of one per stage. Bulk-replace mutations on any stage write the full
|
|
14973
|
+
* `{motion, detection, package}` shape, so subscribers always get the
|
|
14902
14974
|
* complete current set. Consumers that only care about one stage
|
|
14903
14975
|
* just read the matching property.
|
|
14976
|
+
*
|
|
14977
|
+
* `package` backs the package-drop detector — a package zone is a
|
|
14978
|
+
* `ZoneRule` on the `'package'` stage referencing drawn polygons
|
|
14979
|
+
* (see docs/superpowers/specs/2026-07-17-package-zones-design.md §3.1).
|
|
14980
|
+
* The orchestrator provider that writes this stage lands in a later
|
|
14981
|
+
* slice; until then the mirror carries only `{motion, detection}` and
|
|
14982
|
+
* consumers read `package` as absent (treat as `[]`).
|
|
14904
14983
|
*/
|
|
14905
14984
|
runtimeState: object({
|
|
14906
14985
|
motion: array(ZoneRuleSchema).readonly(),
|
|
14907
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
14986
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
14987
|
+
package: array(ZoneRuleSchema).readonly()
|
|
14908
14988
|
})
|
|
14909
14989
|
},
|
|
14910
14990
|
zones: zonesCapability
|
|
@@ -18951,6 +19031,7 @@ var EventKindIconSchema = _enum([
|
|
|
18951
19031
|
"smoke",
|
|
18952
19032
|
"water",
|
|
18953
19033
|
"button",
|
|
19034
|
+
"package",
|
|
18954
19035
|
"generic"
|
|
18955
19036
|
]);
|
|
18956
19037
|
var EventKindCategorySchema = _enum([
|
|
@@ -18958,7 +19039,8 @@ var EventKindCategorySchema = _enum([
|
|
|
18958
19039
|
"audio",
|
|
18959
19040
|
"detection",
|
|
18960
19041
|
"sensor",
|
|
18961
|
-
"custom"
|
|
19042
|
+
"custom",
|
|
19043
|
+
"package"
|
|
18962
19044
|
]);
|
|
18963
19045
|
var EventKindDescriptorSchema = object({
|
|
18964
19046
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -22621,6 +22703,108 @@ method(object({
|
|
|
22621
22703
|
auth: "admin"
|
|
22622
22704
|
});
|
|
22623
22705
|
/**
|
|
22706
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
22707
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
22708
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
22709
|
+
* delete-after-download.
|
|
22710
|
+
*
|
|
22711
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
22712
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
22713
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
22714
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
22715
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
22716
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
22717
|
+
* SQLite); history rows survive file deletion for audit.
|
|
22718
|
+
*/
|
|
22719
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
22720
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
22721
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
22722
|
+
var ExportTimelapseSchema = object({
|
|
22723
|
+
everyMs: number().int().positive(),
|
|
22724
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
22725
|
+
});
|
|
22726
|
+
/**
|
|
22727
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
22728
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
22729
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
22730
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
22731
|
+
*/
|
|
22732
|
+
var ExportOptionsSchema = object({
|
|
22733
|
+
speed: ExportSpeedSchema.optional(),
|
|
22734
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
22735
|
+
includeAudio: boolean(),
|
|
22736
|
+
maxLifeMs: number().int().positive(),
|
|
22737
|
+
deleteAfterDownload: boolean(),
|
|
22738
|
+
title: string().max(200).optional()
|
|
22739
|
+
}).superRefine((v, ctx) => {
|
|
22740
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
22741
|
+
code: ZodIssueCode.custom,
|
|
22742
|
+
message: "speed and timelapse are mutually exclusive",
|
|
22743
|
+
path: ["timelapse"]
|
|
22744
|
+
});
|
|
22745
|
+
});
|
|
22746
|
+
var ExportStateSchema = _enum([
|
|
22747
|
+
"queued",
|
|
22748
|
+
"rendering",
|
|
22749
|
+
"ready",
|
|
22750
|
+
"failed",
|
|
22751
|
+
"expired",
|
|
22752
|
+
"deleted"
|
|
22753
|
+
]);
|
|
22754
|
+
/** One export job / history row. */
|
|
22755
|
+
var ExportRecordSchema = object({
|
|
22756
|
+
id: string(),
|
|
22757
|
+
deviceId: number(),
|
|
22758
|
+
profile: string(),
|
|
22759
|
+
fromMs: number(),
|
|
22760
|
+
toMs: number(),
|
|
22761
|
+
options: ExportOptionsSchema,
|
|
22762
|
+
state: ExportStateSchema,
|
|
22763
|
+
/** 0–100 while rendering; null otherwise. */
|
|
22764
|
+
progressPct: number().nullable(),
|
|
22765
|
+
/** File size once ready; null before. */
|
|
22766
|
+
fileBytes: number().nullable(),
|
|
22767
|
+
expiresAt: number(),
|
|
22768
|
+
deleteAfterDownload: boolean(),
|
|
22769
|
+
/** Epoch of the first complete download; null until then. */
|
|
22770
|
+
downloadedAt: number().nullable(),
|
|
22771
|
+
createdAt: number(),
|
|
22772
|
+
/** User id/name that requested the export. */
|
|
22773
|
+
createdBy: string(),
|
|
22774
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
22775
|
+
error: string().nullable()
|
|
22776
|
+
});
|
|
22777
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
22778
|
+
var ExportDownloadSchema = object({
|
|
22779
|
+
url: string(),
|
|
22780
|
+
endpoints: array(string())
|
|
22781
|
+
});
|
|
22782
|
+
method(object({
|
|
22783
|
+
deviceId: number(),
|
|
22784
|
+
profile: string(),
|
|
22785
|
+
fromMs: number(),
|
|
22786
|
+
toMs: number(),
|
|
22787
|
+
options: ExportOptionsSchema
|
|
22788
|
+
}), ExportRecordSchema, {
|
|
22789
|
+
kind: "mutation",
|
|
22790
|
+
auth: "protected"
|
|
22791
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
22792
|
+
kind: "query",
|
|
22793
|
+
auth: "protected"
|
|
22794
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22795
|
+
kind: "query",
|
|
22796
|
+
auth: "protected"
|
|
22797
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22798
|
+
kind: "mutation",
|
|
22799
|
+
auth: "protected"
|
|
22800
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
22801
|
+
kind: "mutation",
|
|
22802
|
+
auth: "protected"
|
|
22803
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
22804
|
+
kind: "query",
|
|
22805
|
+
auth: "protected"
|
|
22806
|
+
});
|
|
22807
|
+
/**
|
|
22624
22808
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
22625
22809
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
22626
22810
|
* `deviceId`.
|
|
@@ -26544,6 +26728,42 @@ Object.freeze({
|
|
|
26544
26728
|
addonId: null,
|
|
26545
26729
|
access: "create"
|
|
26546
26730
|
},
|
|
26731
|
+
"recordingExport.cancelExport": {
|
|
26732
|
+
capName: "recordingExport",
|
|
26733
|
+
capScope: "system",
|
|
26734
|
+
addonId: null,
|
|
26735
|
+
access: "create"
|
|
26736
|
+
},
|
|
26737
|
+
"recordingExport.createExport": {
|
|
26738
|
+
capName: "recordingExport",
|
|
26739
|
+
capScope: "system",
|
|
26740
|
+
addonId: null,
|
|
26741
|
+
access: "create"
|
|
26742
|
+
},
|
|
26743
|
+
"recordingExport.deleteExport": {
|
|
26744
|
+
capName: "recordingExport",
|
|
26745
|
+
capScope: "system",
|
|
26746
|
+
addonId: null,
|
|
26747
|
+
access: "delete"
|
|
26748
|
+
},
|
|
26749
|
+
"recordingExport.getDownloadUrl": {
|
|
26750
|
+
capName: "recordingExport",
|
|
26751
|
+
capScope: "system",
|
|
26752
|
+
addonId: null,
|
|
26753
|
+
access: "view"
|
|
26754
|
+
},
|
|
26755
|
+
"recordingExport.getExport": {
|
|
26756
|
+
capName: "recordingExport",
|
|
26757
|
+
capScope: "system",
|
|
26758
|
+
addonId: null,
|
|
26759
|
+
access: "view"
|
|
26760
|
+
},
|
|
26761
|
+
"recordingExport.listExports": {
|
|
26762
|
+
capName: "recordingExport",
|
|
26763
|
+
capScope: "system",
|
|
26764
|
+
addonId: null,
|
|
26765
|
+
access: "view"
|
|
26766
|
+
},
|
|
26547
26767
|
"sceneMonitor.captureReference": {
|
|
26548
26768
|
capName: "scene-monitor",
|
|
26549
26769
|
capScope: "device",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|