@camstack/addon-cloudflare 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/{dist-OCLe9Pt1.js → dist-C9Tfy1_h.js} +218 -5
- package/dist/{dist-B40bIXcQ.mjs → dist-Ck9DoDhU.mjs} +218 -5
- package/dist/tunnel/cloudflare-tunnel.addon.js +1 -1
- package/dist/tunnel/cloudflare-tunnel.addon.mjs +1 -1
- package/dist/turn/cloudflare-turn.addon.js +1 -1
- package/dist/turn/cloudflare-turn.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -7220,6 +7263,24 @@ var RecordingRetentionSchema = object({
|
|
|
7220
7263
|
maxSizeGb: number().min(0).optional()
|
|
7221
7264
|
});
|
|
7222
7265
|
/**
|
|
7266
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7267
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7268
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7269
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7270
|
+
*
|
|
7271
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7272
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7273
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7274
|
+
* written with.
|
|
7275
|
+
*/
|
|
7276
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7277
|
+
"minimal",
|
|
7278
|
+
"low",
|
|
7279
|
+
"standard",
|
|
7280
|
+
"high",
|
|
7281
|
+
"max"
|
|
7282
|
+
]);
|
|
7283
|
+
/**
|
|
7223
7284
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7224
7285
|
*
|
|
7225
7286
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7256,7 +7317,14 @@ var RecordingConfigSchema = object({
|
|
|
7256
7317
|
* derived into bands once via `migrateConfigToBands`.
|
|
7257
7318
|
*/
|
|
7258
7319
|
bands: array(RecordingBandSchema).optional(),
|
|
7259
|
-
retention: RecordingRetentionSchema.optional()
|
|
7320
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7321
|
+
/**
|
|
7322
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7323
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7324
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7325
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7326
|
+
*/
|
|
7327
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7260
7328
|
});
|
|
7261
7329
|
/**
|
|
7262
7330
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -12508,7 +12576,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12508
12576
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12509
12577
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12510
12578
|
*/
|
|
12511
|
-
var ZoneRuleStageEnum = _enum([
|
|
12579
|
+
var ZoneRuleStageEnum = _enum([
|
|
12580
|
+
"motion",
|
|
12581
|
+
"detection",
|
|
12582
|
+
"package"
|
|
12583
|
+
]);
|
|
12512
12584
|
DeviceType.Camera, method(object({
|
|
12513
12585
|
deviceId: number(),
|
|
12514
12586
|
stage: ZoneRuleStageEnum
|
|
@@ -12521,7 +12593,8 @@ DeviceType.Camera, method(object({
|
|
|
12521
12593
|
auth: "admin"
|
|
12522
12594
|
}), object({
|
|
12523
12595
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12524
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12596
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12597
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12525
12598
|
});
|
|
12526
12599
|
var ProviderStatusSchema = object({
|
|
12527
12600
|
connected: boolean(),
|
|
@@ -15742,6 +15815,7 @@ var EventKindIconSchema = _enum([
|
|
|
15742
15815
|
"smoke",
|
|
15743
15816
|
"water",
|
|
15744
15817
|
"button",
|
|
15818
|
+
"package",
|
|
15745
15819
|
"generic"
|
|
15746
15820
|
]);
|
|
15747
15821
|
var EventKindCategorySchema = _enum([
|
|
@@ -15749,7 +15823,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15749
15823
|
"audio",
|
|
15750
15824
|
"detection",
|
|
15751
15825
|
"sensor",
|
|
15752
|
-
"custom"
|
|
15826
|
+
"custom",
|
|
15827
|
+
"package"
|
|
15753
15828
|
]);
|
|
15754
15829
|
var EventKindDescriptorSchema = object({
|
|
15755
15830
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -19418,6 +19493,108 @@ method(object({
|
|
|
19418
19493
|
auth: "admin"
|
|
19419
19494
|
});
|
|
19420
19495
|
/**
|
|
19496
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
19497
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
19498
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
19499
|
+
* delete-after-download.
|
|
19500
|
+
*
|
|
19501
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
19502
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
19503
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
19504
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
19505
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
19506
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
19507
|
+
* SQLite); history rows survive file deletion for audit.
|
|
19508
|
+
*/
|
|
19509
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
19510
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
19511
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
19512
|
+
var ExportTimelapseSchema = object({
|
|
19513
|
+
everyMs: number().int().positive(),
|
|
19514
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
19515
|
+
});
|
|
19516
|
+
/**
|
|
19517
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
19518
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
19519
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
19520
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
19521
|
+
*/
|
|
19522
|
+
var ExportOptionsSchema = object({
|
|
19523
|
+
speed: ExportSpeedSchema.optional(),
|
|
19524
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
19525
|
+
includeAudio: boolean(),
|
|
19526
|
+
maxLifeMs: number().int().positive(),
|
|
19527
|
+
deleteAfterDownload: boolean(),
|
|
19528
|
+
title: string().max(200).optional()
|
|
19529
|
+
}).superRefine((v, ctx) => {
|
|
19530
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
19531
|
+
code: ZodIssueCode.custom,
|
|
19532
|
+
message: "speed and timelapse are mutually exclusive",
|
|
19533
|
+
path: ["timelapse"]
|
|
19534
|
+
});
|
|
19535
|
+
});
|
|
19536
|
+
var ExportStateSchema = _enum([
|
|
19537
|
+
"queued",
|
|
19538
|
+
"rendering",
|
|
19539
|
+
"ready",
|
|
19540
|
+
"failed",
|
|
19541
|
+
"expired",
|
|
19542
|
+
"deleted"
|
|
19543
|
+
]);
|
|
19544
|
+
/** One export job / history row. */
|
|
19545
|
+
var ExportRecordSchema = object({
|
|
19546
|
+
id: string(),
|
|
19547
|
+
deviceId: number(),
|
|
19548
|
+
profile: string(),
|
|
19549
|
+
fromMs: number(),
|
|
19550
|
+
toMs: number(),
|
|
19551
|
+
options: ExportOptionsSchema,
|
|
19552
|
+
state: ExportStateSchema,
|
|
19553
|
+
/** 0–100 while rendering; null otherwise. */
|
|
19554
|
+
progressPct: number().nullable(),
|
|
19555
|
+
/** File size once ready; null before. */
|
|
19556
|
+
fileBytes: number().nullable(),
|
|
19557
|
+
expiresAt: number(),
|
|
19558
|
+
deleteAfterDownload: boolean(),
|
|
19559
|
+
/** Epoch of the first complete download; null until then. */
|
|
19560
|
+
downloadedAt: number().nullable(),
|
|
19561
|
+
createdAt: number(),
|
|
19562
|
+
/** User id/name that requested the export. */
|
|
19563
|
+
createdBy: string(),
|
|
19564
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
19565
|
+
error: string().nullable()
|
|
19566
|
+
});
|
|
19567
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
19568
|
+
var ExportDownloadSchema = object({
|
|
19569
|
+
url: string(),
|
|
19570
|
+
endpoints: array(string())
|
|
19571
|
+
});
|
|
19572
|
+
method(object({
|
|
19573
|
+
deviceId: number(),
|
|
19574
|
+
profile: string(),
|
|
19575
|
+
fromMs: number(),
|
|
19576
|
+
toMs: number(),
|
|
19577
|
+
options: ExportOptionsSchema
|
|
19578
|
+
}), ExportRecordSchema, {
|
|
19579
|
+
kind: "mutation",
|
|
19580
|
+
auth: "protected"
|
|
19581
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
19582
|
+
kind: "query",
|
|
19583
|
+
auth: "protected"
|
|
19584
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19585
|
+
kind: "query",
|
|
19586
|
+
auth: "protected"
|
|
19587
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19588
|
+
kind: "mutation",
|
|
19589
|
+
auth: "protected"
|
|
19590
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19591
|
+
kind: "mutation",
|
|
19592
|
+
auth: "protected"
|
|
19593
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
19594
|
+
kind: "query",
|
|
19595
|
+
auth: "protected"
|
|
19596
|
+
});
|
|
19597
|
+
/**
|
|
19421
19598
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
19422
19599
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
19423
19600
|
* `deviceId`.
|
|
@@ -23341,6 +23518,42 @@ Object.freeze({
|
|
|
23341
23518
|
addonId: null,
|
|
23342
23519
|
access: "create"
|
|
23343
23520
|
},
|
|
23521
|
+
"recordingExport.cancelExport": {
|
|
23522
|
+
capName: "recordingExport",
|
|
23523
|
+
capScope: "system",
|
|
23524
|
+
addonId: null,
|
|
23525
|
+
access: "create"
|
|
23526
|
+
},
|
|
23527
|
+
"recordingExport.createExport": {
|
|
23528
|
+
capName: "recordingExport",
|
|
23529
|
+
capScope: "system",
|
|
23530
|
+
addonId: null,
|
|
23531
|
+
access: "create"
|
|
23532
|
+
},
|
|
23533
|
+
"recordingExport.deleteExport": {
|
|
23534
|
+
capName: "recordingExport",
|
|
23535
|
+
capScope: "system",
|
|
23536
|
+
addonId: null,
|
|
23537
|
+
access: "delete"
|
|
23538
|
+
},
|
|
23539
|
+
"recordingExport.getDownloadUrl": {
|
|
23540
|
+
capName: "recordingExport",
|
|
23541
|
+
capScope: "system",
|
|
23542
|
+
addonId: null,
|
|
23543
|
+
access: "view"
|
|
23544
|
+
},
|
|
23545
|
+
"recordingExport.getExport": {
|
|
23546
|
+
capName: "recordingExport",
|
|
23547
|
+
capScope: "system",
|
|
23548
|
+
addonId: null,
|
|
23549
|
+
access: "view"
|
|
23550
|
+
},
|
|
23551
|
+
"recordingExport.listExports": {
|
|
23552
|
+
capName: "recordingExport",
|
|
23553
|
+
capScope: "system",
|
|
23554
|
+
addonId: null,
|
|
23555
|
+
access: "view"
|
|
23556
|
+
},
|
|
23344
23557
|
"sceneMonitor.captureReference": {
|
|
23345
23558
|
capName: "scene-monitor",
|
|
23346
23559
|
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",
|
|
@@ -7220,6 +7263,24 @@ var RecordingRetentionSchema = object({
|
|
|
7220
7263
|
maxSizeGb: number().min(0).optional()
|
|
7221
7264
|
});
|
|
7222
7265
|
/**
|
|
7266
|
+
* Scrub-thumbnail fidelity preset — the single per-camera selector bundling the
|
|
7267
|
+
* sprite tile RESOLUTION + JPEG QUALITY the recorder packs timeline-scrub
|
|
7268
|
+
* previews at. Five graduated steps; absent on a config = `standard` (the
|
|
7269
|
+
* shipped default, matching `sheet-geometry`/`sheet-composer`).
|
|
7270
|
+
*
|
|
7271
|
+
* Existing sheets are IMMUTABLE — a changed preset applies to NEW windows only.
|
|
7272
|
+
* Each window's index sidecar carries its own tile dims, so a camera whose
|
|
7273
|
+
* preset changed over time renders every historical window at the dims it was
|
|
7274
|
+
* written with.
|
|
7275
|
+
*/
|
|
7276
|
+
var ScrubThumbnailPresetSchema = _enum([
|
|
7277
|
+
"minimal",
|
|
7278
|
+
"low",
|
|
7279
|
+
"standard",
|
|
7280
|
+
"high",
|
|
7281
|
+
"max"
|
|
7282
|
+
]);
|
|
7283
|
+
/**
|
|
7223
7284
|
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
7224
7285
|
*
|
|
7225
7286
|
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
@@ -7256,7 +7317,14 @@ var RecordingConfigSchema = object({
|
|
|
7256
7317
|
* derived into bands once via `migrateConfigToBands`.
|
|
7257
7318
|
*/
|
|
7258
7319
|
bands: array(RecordingBandSchema).optional(),
|
|
7259
|
-
retention: RecordingRetentionSchema.optional()
|
|
7320
|
+
retention: RecordingRetentionSchema.optional(),
|
|
7321
|
+
/**
|
|
7322
|
+
* Per-camera scrub-thumbnail fidelity preset (resolution + JPEG quality for
|
|
7323
|
+
* timeline-scrub sprite previews). Absent = `standard`. Applies to NEW
|
|
7324
|
+
* windows only — existing sheets are immutable, and each window's index
|
|
7325
|
+
* carries its own tile dims so mixed-preset history renders correctly.
|
|
7326
|
+
*/
|
|
7327
|
+
scrubThumbnails: ScrubThumbnailPresetSchema.optional()
|
|
7260
7328
|
});
|
|
7261
7329
|
/**
|
|
7262
7330
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
@@ -12508,7 +12576,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12508
12576
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12509
12577
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12510
12578
|
*/
|
|
12511
|
-
var ZoneRuleStageEnum = _enum([
|
|
12579
|
+
var ZoneRuleStageEnum = _enum([
|
|
12580
|
+
"motion",
|
|
12581
|
+
"detection",
|
|
12582
|
+
"package"
|
|
12583
|
+
]);
|
|
12512
12584
|
DeviceType.Camera, method(object({
|
|
12513
12585
|
deviceId: number(),
|
|
12514
12586
|
stage: ZoneRuleStageEnum
|
|
@@ -12521,7 +12593,8 @@ DeviceType.Camera, method(object({
|
|
|
12521
12593
|
auth: "admin"
|
|
12522
12594
|
}), object({
|
|
12523
12595
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12524
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12596
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12597
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12525
12598
|
});
|
|
12526
12599
|
var ProviderStatusSchema = object({
|
|
12527
12600
|
connected: boolean(),
|
|
@@ -15742,6 +15815,7 @@ var EventKindIconSchema = _enum([
|
|
|
15742
15815
|
"smoke",
|
|
15743
15816
|
"water",
|
|
15744
15817
|
"button",
|
|
15818
|
+
"package",
|
|
15745
15819
|
"generic"
|
|
15746
15820
|
]);
|
|
15747
15821
|
var EventKindCategorySchema = _enum([
|
|
@@ -15749,7 +15823,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15749
15823
|
"audio",
|
|
15750
15824
|
"detection",
|
|
15751
15825
|
"sensor",
|
|
15752
|
-
"custom"
|
|
15826
|
+
"custom",
|
|
15827
|
+
"package"
|
|
15753
15828
|
]);
|
|
15754
15829
|
var EventKindDescriptorSchema = object({
|
|
15755
15830
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -19418,6 +19493,108 @@ method(object({
|
|
|
19418
19493
|
auth: "admin"
|
|
19419
19494
|
});
|
|
19420
19495
|
/**
|
|
19496
|
+
* `recordingExport` cap — render a footage time range into a single downloadable
|
|
19497
|
+
* MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
|
|
19498
|
+
* bounded lifetime with a durable history, auto-expiry, and optional
|
|
19499
|
+
* delete-after-download.
|
|
19500
|
+
*
|
|
19501
|
+
* Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
|
|
19502
|
+
* recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
|
|
19503
|
+
* default `hub`) registers it. Device-scoped methods carry `deviceId` in their
|
|
19504
|
+
* input and dispatch to that single provider; the render runs on the node that
|
|
19505
|
+
* owns the footage (no cross-node segment transfer). Download rides the
|
|
19506
|
+
* framework addon data-plane. State persists in a DurableState blob (NOT
|
|
19507
|
+
* SQLite); history rows survive file deletion for audit.
|
|
19508
|
+
*/
|
|
19509
|
+
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
19510
|
+
var ExportSpeedSchema = number().min(.25).max(32);
|
|
19511
|
+
/** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
|
|
19512
|
+
var ExportTimelapseSchema = object({
|
|
19513
|
+
everyMs: number().int().positive(),
|
|
19514
|
+
outputFps: number().int().min(1).max(60).optional()
|
|
19515
|
+
});
|
|
19516
|
+
/**
|
|
19517
|
+
* Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
|
|
19518
|
+
* is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
|
|
19519
|
+
* silent. `maxLifeMs` bounds how long the finished file is kept;
|
|
19520
|
+
* `deleteAfterDownload` removes it shortly after the first complete download.
|
|
19521
|
+
*/
|
|
19522
|
+
var ExportOptionsSchema = object({
|
|
19523
|
+
speed: ExportSpeedSchema.optional(),
|
|
19524
|
+
timelapse: ExportTimelapseSchema.optional(),
|
|
19525
|
+
includeAudio: boolean(),
|
|
19526
|
+
maxLifeMs: number().int().positive(),
|
|
19527
|
+
deleteAfterDownload: boolean(),
|
|
19528
|
+
title: string().max(200).optional()
|
|
19529
|
+
}).superRefine((v, ctx) => {
|
|
19530
|
+
if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
|
|
19531
|
+
code: ZodIssueCode.custom,
|
|
19532
|
+
message: "speed and timelapse are mutually exclusive",
|
|
19533
|
+
path: ["timelapse"]
|
|
19534
|
+
});
|
|
19535
|
+
});
|
|
19536
|
+
var ExportStateSchema = _enum([
|
|
19537
|
+
"queued",
|
|
19538
|
+
"rendering",
|
|
19539
|
+
"ready",
|
|
19540
|
+
"failed",
|
|
19541
|
+
"expired",
|
|
19542
|
+
"deleted"
|
|
19543
|
+
]);
|
|
19544
|
+
/** One export job / history row. */
|
|
19545
|
+
var ExportRecordSchema = object({
|
|
19546
|
+
id: string(),
|
|
19547
|
+
deviceId: number(),
|
|
19548
|
+
profile: string(),
|
|
19549
|
+
fromMs: number(),
|
|
19550
|
+
toMs: number(),
|
|
19551
|
+
options: ExportOptionsSchema,
|
|
19552
|
+
state: ExportStateSchema,
|
|
19553
|
+
/** 0–100 while rendering; null otherwise. */
|
|
19554
|
+
progressPct: number().nullable(),
|
|
19555
|
+
/** File size once ready; null before. */
|
|
19556
|
+
fileBytes: number().nullable(),
|
|
19557
|
+
expiresAt: number(),
|
|
19558
|
+
deleteAfterDownload: boolean(),
|
|
19559
|
+
/** Epoch of the first complete download; null until then. */
|
|
19560
|
+
downloadedAt: number().nullable(),
|
|
19561
|
+
createdAt: number(),
|
|
19562
|
+
/** User id/name that requested the export. */
|
|
19563
|
+
createdBy: string(),
|
|
19564
|
+
/** Failure reason when state is 'failed'; null otherwise. */
|
|
19565
|
+
error: string().nullable()
|
|
19566
|
+
});
|
|
19567
|
+
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
19568
|
+
var ExportDownloadSchema = object({
|
|
19569
|
+
url: string(),
|
|
19570
|
+
endpoints: array(string())
|
|
19571
|
+
});
|
|
19572
|
+
method(object({
|
|
19573
|
+
deviceId: number(),
|
|
19574
|
+
profile: string(),
|
|
19575
|
+
fromMs: number(),
|
|
19576
|
+
toMs: number(),
|
|
19577
|
+
options: ExportOptionsSchema
|
|
19578
|
+
}), ExportRecordSchema, {
|
|
19579
|
+
kind: "mutation",
|
|
19580
|
+
auth: "protected"
|
|
19581
|
+
}), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
|
|
19582
|
+
kind: "query",
|
|
19583
|
+
auth: "protected"
|
|
19584
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19585
|
+
kind: "query",
|
|
19586
|
+
auth: "protected"
|
|
19587
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19588
|
+
kind: "mutation",
|
|
19589
|
+
auth: "protected"
|
|
19590
|
+
}), method(object({ exportId: string() }), ExportRecordSchema, {
|
|
19591
|
+
kind: "mutation",
|
|
19592
|
+
auth: "protected"
|
|
19593
|
+
}), method(object({ exportId: string() }), ExportDownloadSchema, {
|
|
19594
|
+
kind: "query",
|
|
19595
|
+
auth: "protected"
|
|
19596
|
+
});
|
|
19597
|
+
/**
|
|
19421
19598
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
19422
19599
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
19423
19600
|
* `deviceId`.
|
|
@@ -23341,6 +23518,42 @@ Object.freeze({
|
|
|
23341
23518
|
addonId: null,
|
|
23342
23519
|
access: "create"
|
|
23343
23520
|
},
|
|
23521
|
+
"recordingExport.cancelExport": {
|
|
23522
|
+
capName: "recordingExport",
|
|
23523
|
+
capScope: "system",
|
|
23524
|
+
addonId: null,
|
|
23525
|
+
access: "create"
|
|
23526
|
+
},
|
|
23527
|
+
"recordingExport.createExport": {
|
|
23528
|
+
capName: "recordingExport",
|
|
23529
|
+
capScope: "system",
|
|
23530
|
+
addonId: null,
|
|
23531
|
+
access: "create"
|
|
23532
|
+
},
|
|
23533
|
+
"recordingExport.deleteExport": {
|
|
23534
|
+
capName: "recordingExport",
|
|
23535
|
+
capScope: "system",
|
|
23536
|
+
addonId: null,
|
|
23537
|
+
access: "delete"
|
|
23538
|
+
},
|
|
23539
|
+
"recordingExport.getDownloadUrl": {
|
|
23540
|
+
capName: "recordingExport",
|
|
23541
|
+
capScope: "system",
|
|
23542
|
+
addonId: null,
|
|
23543
|
+
access: "view"
|
|
23544
|
+
},
|
|
23545
|
+
"recordingExport.getExport": {
|
|
23546
|
+
capName: "recordingExport",
|
|
23547
|
+
capScope: "system",
|
|
23548
|
+
addonId: null,
|
|
23549
|
+
access: "view"
|
|
23550
|
+
},
|
|
23551
|
+
"recordingExport.listExports": {
|
|
23552
|
+
capName: "recordingExport",
|
|
23553
|
+
capScope: "system",
|
|
23554
|
+
addonId: null,
|
|
23555
|
+
access: "view"
|
|
23556
|
+
},
|
|
23344
23557
|
"sceneMonitor.captureReference": {
|
|
23345
23558
|
capName: "scene-monitor",
|
|
23346
23559
|
capScope: "device",
|
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_dist = require("../dist-
|
|
24
|
+
const require_dist = require("../dist-C9Tfy1_h.js");
|
|
25
25
|
let node_path = require("node:path");
|
|
26
26
|
node_path = __toESM(node_path);
|
|
27
27
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseAddon, c as boolean, d as number, f as object, m as EventCategory, n as defineCustomActions, o as _enum, p as string, r as networkAccessCapability, s as array, t as customAction, u as literal } from "../dist-
|
|
1
|
+
import { a as BaseAddon, c as boolean, d as number, f as object, m as EventCategory, n as defineCustomActions, o as _enum, p as string, r as networkAccessCapability, s as array, t as customAction, u as literal } from "../dist-Ck9DoDhU.mjs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
2
|
+
const require_dist = require("../dist-C9Tfy1_h.js");
|
|
3
3
|
//#region src/turn/cloudflare-turn.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cloudflare returns ICE servers in several flavours depending on which
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BaseAddon, c as boolean, d as number, f as object, i as turnProviderCapability, l as discriminatedUnion, n as defineCustomActions, p as string, t as customAction, u as literal } from "../dist-
|
|
1
|
+
import { a as BaseAddon, c as boolean, d as number, f as object, i as turnProviderCapability, l as discriminatedUnion, n as defineCustomActions, p as string, t as customAction, u as literal } from "../dist-Ck9DoDhU.mjs";
|
|
2
2
|
//#region src/turn/cloudflare-turn.ts
|
|
3
3
|
/**
|
|
4
4
|
* Cloudflare returns ICE servers in several flavours depending on which
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-cloudflare",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
4
4
|
"description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|