@camstack/addon-cloudflare 1.1.26 → 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-BLJdubxu.js → dist-C9Tfy1_h.js} +192 -4
- package/dist/{dist-CUb5-XFg.mjs → dist-Ck9DoDhU.mjs} +192 -4
- 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",
|
|
@@ -12533,7 +12576,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12533
12576
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12534
12577
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12535
12578
|
*/
|
|
12536
|
-
var ZoneRuleStageEnum = _enum([
|
|
12579
|
+
var ZoneRuleStageEnum = _enum([
|
|
12580
|
+
"motion",
|
|
12581
|
+
"detection",
|
|
12582
|
+
"package"
|
|
12583
|
+
]);
|
|
12537
12584
|
DeviceType.Camera, method(object({
|
|
12538
12585
|
deviceId: number(),
|
|
12539
12586
|
stage: ZoneRuleStageEnum
|
|
@@ -12546,7 +12593,8 @@ DeviceType.Camera, method(object({
|
|
|
12546
12593
|
auth: "admin"
|
|
12547
12594
|
}), object({
|
|
12548
12595
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12549
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12596
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12597
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12550
12598
|
});
|
|
12551
12599
|
var ProviderStatusSchema = object({
|
|
12552
12600
|
connected: boolean(),
|
|
@@ -15767,6 +15815,7 @@ var EventKindIconSchema = _enum([
|
|
|
15767
15815
|
"smoke",
|
|
15768
15816
|
"water",
|
|
15769
15817
|
"button",
|
|
15818
|
+
"package",
|
|
15770
15819
|
"generic"
|
|
15771
15820
|
]);
|
|
15772
15821
|
var EventKindCategorySchema = _enum([
|
|
@@ -15774,7 +15823,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15774
15823
|
"audio",
|
|
15775
15824
|
"detection",
|
|
15776
15825
|
"sensor",
|
|
15777
|
-
"custom"
|
|
15826
|
+
"custom",
|
|
15827
|
+
"package"
|
|
15778
15828
|
]);
|
|
15779
15829
|
var EventKindDescriptorSchema = object({
|
|
15780
15830
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -19443,6 +19493,108 @@ method(object({
|
|
|
19443
19493
|
auth: "admin"
|
|
19444
19494
|
});
|
|
19445
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
|
+
/**
|
|
19446
19598
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
19447
19599
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
19448
19600
|
* `deviceId`.
|
|
@@ -23366,6 +23518,42 @@ Object.freeze({
|
|
|
23366
23518
|
addonId: null,
|
|
23367
23519
|
access: "create"
|
|
23368
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
|
+
},
|
|
23369
23557
|
"sceneMonitor.captureReference": {
|
|
23370
23558
|
capName: "scene-monitor",
|
|
23371
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",
|
|
@@ -12533,7 +12576,11 @@ array(ZoneRuleSchema).readonly();
|
|
|
12533
12576
|
* Extend the enum here when a new gating consumer comes online (audio
|
|
12534
12577
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12535
12578
|
*/
|
|
12536
|
-
var ZoneRuleStageEnum = _enum([
|
|
12579
|
+
var ZoneRuleStageEnum = _enum([
|
|
12580
|
+
"motion",
|
|
12581
|
+
"detection",
|
|
12582
|
+
"package"
|
|
12583
|
+
]);
|
|
12537
12584
|
DeviceType.Camera, method(object({
|
|
12538
12585
|
deviceId: number(),
|
|
12539
12586
|
stage: ZoneRuleStageEnum
|
|
@@ -12546,7 +12593,8 @@ DeviceType.Camera, method(object({
|
|
|
12546
12593
|
auth: "admin"
|
|
12547
12594
|
}), object({
|
|
12548
12595
|
motion: array(ZoneRuleSchema).readonly(),
|
|
12549
|
-
detection: array(ZoneRuleSchema).readonly()
|
|
12596
|
+
detection: array(ZoneRuleSchema).readonly(),
|
|
12597
|
+
package: array(ZoneRuleSchema).readonly()
|
|
12550
12598
|
});
|
|
12551
12599
|
var ProviderStatusSchema = object({
|
|
12552
12600
|
connected: boolean(),
|
|
@@ -15767,6 +15815,7 @@ var EventKindIconSchema = _enum([
|
|
|
15767
15815
|
"smoke",
|
|
15768
15816
|
"water",
|
|
15769
15817
|
"button",
|
|
15818
|
+
"package",
|
|
15770
15819
|
"generic"
|
|
15771
15820
|
]);
|
|
15772
15821
|
var EventKindCategorySchema = _enum([
|
|
@@ -15774,7 +15823,8 @@ var EventKindCategorySchema = _enum([
|
|
|
15774
15823
|
"audio",
|
|
15775
15824
|
"detection",
|
|
15776
15825
|
"sensor",
|
|
15777
|
-
"custom"
|
|
15826
|
+
"custom",
|
|
15827
|
+
"package"
|
|
15778
15828
|
]);
|
|
15779
15829
|
var EventKindDescriptorSchema = object({
|
|
15780
15830
|
/** Stable kind id (e.g. 'motion', 'person', 'contact'). */
|
|
@@ -19443,6 +19493,108 @@ method(object({
|
|
|
19443
19493
|
auth: "admin"
|
|
19444
19494
|
});
|
|
19445
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
|
+
/**
|
|
19446
19598
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
19447
19599
|
* payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
|
|
19448
19600
|
* `deviceId`.
|
|
@@ -23366,6 +23518,42 @@ Object.freeze({
|
|
|
23366
23518
|
addonId: null,
|
|
23367
23519
|
access: "create"
|
|
23368
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
|
+
},
|
|
23369
23557
|
"sceneMonitor.captureReference": {
|
|
23370
23558
|
capName: "scene-monitor",
|
|
23371
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",
|