@camstack/addon-provider-velux 0.1.11 → 0.1.12

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../types/dist/event-category-H4AVePnn.mjs
2
+ //#region ../types/dist/event-category-D4HJq7Mw.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -152,6 +152,11 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
152
152
  /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
153
153
  * thumb is a scrub gap the recorder's keyframe backfill covers. */
154
154
  EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
155
+ /** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
156
+ * progress bar the client reconciles via `recordingExport.getExport`. */
157
+ EventCategory["RecordingExportProgress"] = "recording.export.progress";
158
+ EventCategory["RecordingExportCompleted"] = "recording.export.completed";
159
+ EventCategory["RecordingExportFailed"] = "recording.export.failed";
155
160
  EventCategory["DetectionEvent"] = "detection.event";
156
161
  EventCategory["SessionTrackNew"] = "session.track.new";
157
162
  EventCategory["SessionTrackExpired"] = "session.track.expired";
@@ -441,6 +446,25 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
441
446
  */
442
447
  EventCategory["PipelineAnalyticsStationaryChanged"] = "pipeline-analytics.stationary-changed";
443
448
  /**
449
+ * Fired by `addon-post-analysis` when a package-drop is confirmed inside
450
+ * a package zone — a newly-appeared stationary object of a package class
451
+ * that cleared the class / zone / dwell / size gates. Payload:
452
+ * `PipelineAnalyticsPackageDeliveredPayload` carrying `{ deviceId,
453
+ * entryId, className, zoneIds, keyFrameMediaKey?, bbox, timestamp }`.
454
+ * Telemetry (D8): the durable record is the `package-events` store row;
455
+ * this bus topic drives notifier rules + live UI. See
456
+ * docs/superpowers/specs/2026-07-17-package-zones-design.md §5.1.
457
+ */
458
+ EventCategory["PipelineAnalyticsPackageDelivered"] = "pipeline-analytics.package-delivered";
459
+ /**
460
+ * Fired by `addon-post-analysis` when a previously-delivered package
461
+ * leaves its zone (the stationary entry departed — moved or swept).
462
+ * Payload: `PipelineAnalyticsPackagePickedUpPayload` carrying
463
+ * `{ deviceId, entryId, deliveredEventId, className, timestamp }`.
464
+ * Telemetry (D8). See package-zones-design §5.2.
465
+ */
466
+ EventCategory["PipelineAnalyticsPackagePickedUp"] = "pipeline-analytics.package-picked-up";
467
+ /**
444
468
  * Fired by `addon-post-analysis` whenever a gallery face row changes:
445
469
  * `kind:'buffered'` a new detected face was persisted, `'assigned'` /
446
470
  * `'unassigned'` its identity link changed, `'deleted'` the row was
@@ -5193,6 +5217,25 @@ function preprocess(fn, schema) {
5193
5217
  out: schema
5194
5218
  });
5195
5219
  }
5220
+ //#endregion
5221
+ //#region ../../node_modules/zod/v4/classic/compat.js
5222
+ /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
5223
+ var ZodIssueCode = {
5224
+ invalid_type: "invalid_type",
5225
+ too_big: "too_big",
5226
+ too_small: "too_small",
5227
+ invalid_format: "invalid_format",
5228
+ not_multiple_of: "not_multiple_of",
5229
+ unrecognized_keys: "unrecognized_keys",
5230
+ invalid_union: "invalid_union",
5231
+ invalid_key: "invalid_key",
5232
+ invalid_element: "invalid_element",
5233
+ invalid_value: "invalid_value",
5234
+ custom: "custom"
5235
+ };
5236
+ /** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
5237
+ var ZodFirstPartyTypeKind;
5238
+ ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5196
5239
  Object.fromEntries([
5197
5240
  {
5198
5241
  id: "overview",
@@ -14670,7 +14713,11 @@ array(ZoneRuleSchema).readonly();
14670
14713
  * Extend the enum here when a new gating consumer comes online (audio
14671
14714
  * gating, alert filtering, …) — no other surface needs to change.
14672
14715
  */
14673
- var ZoneRuleStageEnum = _enum(["motion", "detection"]);
14716
+ var ZoneRuleStageEnum = _enum([
14717
+ "motion",
14718
+ "detection",
14719
+ "package"
14720
+ ]);
14674
14721
  /**
14675
14722
  * Runtime registry: cap-property-name → cap definition. `BaseDevice`'s
14676
14723
  * `state` getter looks up the cap definition here to construct a
@@ -14764,16 +14811,24 @@ var DEVICE_LOCAL_STATE_CAPS = {
14764
14811
  })
14765
14812
  },
14766
14813
  /**
14767
- * Runtime-state slice — both stages mirrored together so consumers
14814
+ * Runtime-state slice — every stage mirrored together so consumers
14768
14815
  * see one reactive handle (`device.state.zoneRules.value`) instead
14769
- * of two. Bulk-replace mutations on either stage write the full
14770
- * `{motion, detection}` shape, so subscribers always get the
14816
+ * of one per stage. Bulk-replace mutations on any stage write the full
14817
+ * `{motion, detection, package}` shape, so subscribers always get the
14771
14818
  * complete current set. Consumers that only care about one stage
14772
14819
  * just read the matching property.
14820
+ *
14821
+ * `package` backs the package-drop detector — a package zone is a
14822
+ * `ZoneRule` on the `'package'` stage referencing drawn polygons
14823
+ * (see docs/superpowers/specs/2026-07-17-package-zones-design.md §3.1).
14824
+ * The orchestrator provider that writes this stage lands in a later
14825
+ * slice; until then the mirror carries only `{motion, detection}` and
14826
+ * consumers read `package` as absent (treat as `[]`).
14773
14827
  */
14774
14828
  runtimeState: object({
14775
14829
  motion: array(ZoneRuleSchema).readonly(),
14776
- detection: array(ZoneRuleSchema).readonly()
14830
+ detection: array(ZoneRuleSchema).readonly(),
14831
+ package: array(ZoneRuleSchema).readonly()
14777
14832
  })
14778
14833
  },
14779
14834
  zones: zonesCapability
@@ -18735,6 +18790,7 @@ var EventKindIconSchema = _enum([
18735
18790
  "smoke",
18736
18791
  "water",
18737
18792
  "button",
18793
+ "package",
18738
18794
  "generic"
18739
18795
  ]);
18740
18796
  var EventKindCategorySchema = _enum([
@@ -18742,7 +18798,8 @@ var EventKindCategorySchema = _enum([
18742
18798
  "audio",
18743
18799
  "detection",
18744
18800
  "sensor",
18745
- "custom"
18801
+ "custom",
18802
+ "package"
18746
18803
  ]);
18747
18804
  var EventKindDescriptorSchema = object({
18748
18805
  /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
@@ -22388,6 +22445,108 @@ method(object({
22388
22445
  auth: "admin"
22389
22446
  });
22390
22447
  /**
22448
+ * `recordingExport` cap — render a footage time range into a single downloadable
22449
+ * MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
22450
+ * bounded lifetime with a durable history, auto-expiry, and optional
22451
+ * delete-after-download.
22452
+ *
22453
+ * Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
22454
+ * recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
22455
+ * default `hub`) registers it. Device-scoped methods carry `deviceId` in their
22456
+ * input and dispatch to that single provider; the render runs on the node that
22457
+ * owns the footage (no cross-node segment transfer). Download rides the
22458
+ * framework addon data-plane. State persists in a DurableState blob (NOT
22459
+ * SQLite); history rows survive file deletion for audit.
22460
+ */
22461
+ /** Playback-speed multiplier for the render (1 = realtime). */
22462
+ var ExportSpeedSchema = number().min(.25).max(32);
22463
+ /** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
22464
+ var ExportTimelapseSchema = object({
22465
+ everyMs: number().int().positive(),
22466
+ outputFps: number().int().min(1).max(60).optional()
22467
+ });
22468
+ /**
22469
+ * Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
22470
+ * is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
22471
+ * silent. `maxLifeMs` bounds how long the finished file is kept;
22472
+ * `deleteAfterDownload` removes it shortly after the first complete download.
22473
+ */
22474
+ var ExportOptionsSchema = object({
22475
+ speed: ExportSpeedSchema.optional(),
22476
+ timelapse: ExportTimelapseSchema.optional(),
22477
+ includeAudio: boolean(),
22478
+ maxLifeMs: number().int().positive(),
22479
+ deleteAfterDownload: boolean(),
22480
+ title: string().max(200).optional()
22481
+ }).superRefine((v, ctx) => {
22482
+ if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
22483
+ code: ZodIssueCode.custom,
22484
+ message: "speed and timelapse are mutually exclusive",
22485
+ path: ["timelapse"]
22486
+ });
22487
+ });
22488
+ var ExportStateSchema = _enum([
22489
+ "queued",
22490
+ "rendering",
22491
+ "ready",
22492
+ "failed",
22493
+ "expired",
22494
+ "deleted"
22495
+ ]);
22496
+ /** One export job / history row. */
22497
+ var ExportRecordSchema = object({
22498
+ id: string(),
22499
+ deviceId: number(),
22500
+ profile: string(),
22501
+ fromMs: number(),
22502
+ toMs: number(),
22503
+ options: ExportOptionsSchema,
22504
+ state: ExportStateSchema,
22505
+ /** 0–100 while rendering; null otherwise. */
22506
+ progressPct: number().nullable(),
22507
+ /** File size once ready; null before. */
22508
+ fileBytes: number().nullable(),
22509
+ expiresAt: number(),
22510
+ deleteAfterDownload: boolean(),
22511
+ /** Epoch of the first complete download; null until then. */
22512
+ downloadedAt: number().nullable(),
22513
+ createdAt: number(),
22514
+ /** User id/name that requested the export. */
22515
+ createdBy: string(),
22516
+ /** Failure reason when state is 'failed'; null otherwise. */
22517
+ error: string().nullable()
22518
+ });
22519
+ /** Candidate download URLs (LAN first, then operator extra hosts). */
22520
+ var ExportDownloadSchema = object({
22521
+ url: string(),
22522
+ endpoints: array(string())
22523
+ });
22524
+ method(object({
22525
+ deviceId: number(),
22526
+ profile: string(),
22527
+ fromMs: number(),
22528
+ toMs: number(),
22529
+ options: ExportOptionsSchema
22530
+ }), ExportRecordSchema, {
22531
+ kind: "mutation",
22532
+ auth: "protected"
22533
+ }), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
22534
+ kind: "query",
22535
+ auth: "protected"
22536
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22537
+ kind: "query",
22538
+ auth: "protected"
22539
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22540
+ kind: "mutation",
22541
+ auth: "protected"
22542
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22543
+ kind: "mutation",
22544
+ auth: "protected"
22545
+ }), method(object({ exportId: string() }), ExportDownloadSchema, {
22546
+ kind: "query",
22547
+ auth: "protected"
22548
+ });
22549
+ /**
22391
22550
  * One publishable camera stream as its OWNING PROVIDER describes it — the same
22392
22551
  * payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
22393
22552
  * `deviceId`.
@@ -26311,6 +26470,42 @@ Object.freeze({
26311
26470
  addonId: null,
26312
26471
  access: "create"
26313
26472
  },
26473
+ "recordingExport.cancelExport": {
26474
+ capName: "recordingExport",
26475
+ capScope: "system",
26476
+ addonId: null,
26477
+ access: "create"
26478
+ },
26479
+ "recordingExport.createExport": {
26480
+ capName: "recordingExport",
26481
+ capScope: "system",
26482
+ addonId: null,
26483
+ access: "create"
26484
+ },
26485
+ "recordingExport.deleteExport": {
26486
+ capName: "recordingExport",
26487
+ capScope: "system",
26488
+ addonId: null,
26489
+ access: "delete"
26490
+ },
26491
+ "recordingExport.getDownloadUrl": {
26492
+ capName: "recordingExport",
26493
+ capScope: "system",
26494
+ addonId: null,
26495
+ access: "view"
26496
+ },
26497
+ "recordingExport.getExport": {
26498
+ capName: "recordingExport",
26499
+ capScope: "system",
26500
+ addonId: null,
26501
+ access: "view"
26502
+ },
26503
+ "recordingExport.listExports": {
26504
+ capName: "recordingExport",
26505
+ capScope: "system",
26506
+ addonId: null,
26507
+ access: "view"
26508
+ },
26314
26509
  "sceneMonitor.captureReference": {
26315
26510
  capName: "scene-monitor",
26316
26511
  capScope: "device",
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-H4AVePnn.mjs
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
@@ -5192,6 +5216,25 @@ function preprocess(fn, schema) {
5192
5216
  out: schema
5193
5217
  });
5194
5218
  }
5219
+ //#endregion
5220
+ //#region ../../node_modules/zod/v4/classic/compat.js
5221
+ /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
5222
+ var ZodIssueCode = {
5223
+ invalid_type: "invalid_type",
5224
+ too_big: "too_big",
5225
+ too_small: "too_small",
5226
+ invalid_format: "invalid_format",
5227
+ not_multiple_of: "not_multiple_of",
5228
+ unrecognized_keys: "unrecognized_keys",
5229
+ invalid_union: "invalid_union",
5230
+ invalid_key: "invalid_key",
5231
+ invalid_element: "invalid_element",
5232
+ invalid_value: "invalid_value",
5233
+ custom: "custom"
5234
+ };
5235
+ /** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
5236
+ var ZodFirstPartyTypeKind;
5237
+ ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5195
5238
  Object.fromEntries([
5196
5239
  {
5197
5240
  id: "overview",
@@ -14669,7 +14712,11 @@ array(ZoneRuleSchema).readonly();
14669
14712
  * Extend the enum here when a new gating consumer comes online (audio
14670
14713
  * gating, alert filtering, …) — no other surface needs to change.
14671
14714
  */
14672
- var ZoneRuleStageEnum = _enum(["motion", "detection"]);
14715
+ var ZoneRuleStageEnum = _enum([
14716
+ "motion",
14717
+ "detection",
14718
+ "package"
14719
+ ]);
14673
14720
  /**
14674
14721
  * Runtime registry: cap-property-name → cap definition. `BaseDevice`'s
14675
14722
  * `state` getter looks up the cap definition here to construct a
@@ -14763,16 +14810,24 @@ var DEVICE_LOCAL_STATE_CAPS = {
14763
14810
  })
14764
14811
  },
14765
14812
  /**
14766
- * Runtime-state slice — both stages mirrored together so consumers
14813
+ * Runtime-state slice — every stage mirrored together so consumers
14767
14814
  * see one reactive handle (`device.state.zoneRules.value`) instead
14768
- * of two. Bulk-replace mutations on either stage write the full
14769
- * `{motion, detection}` shape, so subscribers always get the
14815
+ * of one per stage. Bulk-replace mutations on any stage write the full
14816
+ * `{motion, detection, package}` shape, so subscribers always get the
14770
14817
  * complete current set. Consumers that only care about one stage
14771
14818
  * just read the matching property.
14819
+ *
14820
+ * `package` backs the package-drop detector — a package zone is a
14821
+ * `ZoneRule` on the `'package'` stage referencing drawn polygons
14822
+ * (see docs/superpowers/specs/2026-07-17-package-zones-design.md §3.1).
14823
+ * The orchestrator provider that writes this stage lands in a later
14824
+ * slice; until then the mirror carries only `{motion, detection}` and
14825
+ * consumers read `package` as absent (treat as `[]`).
14772
14826
  */
14773
14827
  runtimeState: object({
14774
14828
  motion: array(ZoneRuleSchema).readonly(),
14775
- detection: array(ZoneRuleSchema).readonly()
14829
+ detection: array(ZoneRuleSchema).readonly(),
14830
+ package: array(ZoneRuleSchema).readonly()
14776
14831
  })
14777
14832
  },
14778
14833
  zones: zonesCapability
@@ -18734,6 +18789,7 @@ var EventKindIconSchema = _enum([
18734
18789
  "smoke",
18735
18790
  "water",
18736
18791
  "button",
18792
+ "package",
18737
18793
  "generic"
18738
18794
  ]);
18739
18795
  var EventKindCategorySchema = _enum([
@@ -18741,7 +18797,8 @@ var EventKindCategorySchema = _enum([
18741
18797
  "audio",
18742
18798
  "detection",
18743
18799
  "sensor",
18744
- "custom"
18800
+ "custom",
18801
+ "package"
18745
18802
  ]);
18746
18803
  var EventKindDescriptorSchema = object({
18747
18804
  /** Stable kind id (e.g. 'motion', 'person', 'contact'). */
@@ -22387,6 +22444,108 @@ method(object({
22387
22444
  auth: "admin"
22388
22445
  });
22389
22446
  /**
22447
+ * `recordingExport` cap — render a footage time range into a single downloadable
22448
+ * MP4 (regular / accelerated / decelerated / timelapse, ± audio), kept for a
22449
+ * bounded lifetime with a durable history, auto-expiry, and optional
22450
+ * delete-after-download.
22451
+ *
22452
+ * Like `recording` this is a `scope:'system', mode:'singleton'` cap: the
22453
+ * recorder self-gates so exactly ONE node (the designated `recordingNodeId`,
22454
+ * default `hub`) registers it. Device-scoped methods carry `deviceId` in their
22455
+ * input and dispatch to that single provider; the render runs on the node that
22456
+ * owns the footage (no cross-node segment transfer). Download rides the
22457
+ * framework addon data-plane. State persists in a DurableState blob (NOT
22458
+ * SQLite); history rows survive file deletion for audit.
22459
+ */
22460
+ /** Playback-speed multiplier for the render (1 = realtime). */
22461
+ var ExportSpeedSchema = number().min(.25).max(32);
22462
+ /** Timelapse cadence — sample one source frame per `everyMs`, output at `outputFps`. */
22463
+ var ExportTimelapseSchema = object({
22464
+ everyMs: number().int().positive(),
22465
+ outputFps: number().int().min(1).max(60).optional()
22466
+ });
22467
+ /**
22468
+ * Render options. `speed` and `timelapse` are mutually exclusive. `includeAudio`
22469
+ * is honoured only for a realtime-ish speed (0.5–2×); timelapse is always
22470
+ * silent. `maxLifeMs` bounds how long the finished file is kept;
22471
+ * `deleteAfterDownload` removes it shortly after the first complete download.
22472
+ */
22473
+ var ExportOptionsSchema = object({
22474
+ speed: ExportSpeedSchema.optional(),
22475
+ timelapse: ExportTimelapseSchema.optional(),
22476
+ includeAudio: boolean(),
22477
+ maxLifeMs: number().int().positive(),
22478
+ deleteAfterDownload: boolean(),
22479
+ title: string().max(200).optional()
22480
+ }).superRefine((v, ctx) => {
22481
+ if (v.speed !== void 0 && v.timelapse !== void 0) ctx.addIssue({
22482
+ code: ZodIssueCode.custom,
22483
+ message: "speed and timelapse are mutually exclusive",
22484
+ path: ["timelapse"]
22485
+ });
22486
+ });
22487
+ var ExportStateSchema = _enum([
22488
+ "queued",
22489
+ "rendering",
22490
+ "ready",
22491
+ "failed",
22492
+ "expired",
22493
+ "deleted"
22494
+ ]);
22495
+ /** One export job / history row. */
22496
+ var ExportRecordSchema = object({
22497
+ id: string(),
22498
+ deviceId: number(),
22499
+ profile: string(),
22500
+ fromMs: number(),
22501
+ toMs: number(),
22502
+ options: ExportOptionsSchema,
22503
+ state: ExportStateSchema,
22504
+ /** 0–100 while rendering; null otherwise. */
22505
+ progressPct: number().nullable(),
22506
+ /** File size once ready; null before. */
22507
+ fileBytes: number().nullable(),
22508
+ expiresAt: number(),
22509
+ deleteAfterDownload: boolean(),
22510
+ /** Epoch of the first complete download; null until then. */
22511
+ downloadedAt: number().nullable(),
22512
+ createdAt: number(),
22513
+ /** User id/name that requested the export. */
22514
+ createdBy: string(),
22515
+ /** Failure reason when state is 'failed'; null otherwise. */
22516
+ error: string().nullable()
22517
+ });
22518
+ /** Candidate download URLs (LAN first, then operator extra hosts). */
22519
+ var ExportDownloadSchema = object({
22520
+ url: string(),
22521
+ endpoints: array(string())
22522
+ });
22523
+ method(object({
22524
+ deviceId: number(),
22525
+ profile: string(),
22526
+ fromMs: number(),
22527
+ toMs: number(),
22528
+ options: ExportOptionsSchema
22529
+ }), ExportRecordSchema, {
22530
+ kind: "mutation",
22531
+ auth: "protected"
22532
+ }), method(object({ deviceId: number().optional() }), array(ExportRecordSchema), {
22533
+ kind: "query",
22534
+ auth: "protected"
22535
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22536
+ kind: "query",
22537
+ auth: "protected"
22538
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22539
+ kind: "mutation",
22540
+ auth: "protected"
22541
+ }), method(object({ exportId: string() }), ExportRecordSchema, {
22542
+ kind: "mutation",
22543
+ auth: "protected"
22544
+ }), method(object({ exportId: string() }), ExportDownloadSchema, {
22545
+ kind: "query",
22546
+ auth: "protected"
22547
+ });
22548
+ /**
22390
22549
  * One publishable camera stream as its OWNING PROVIDER describes it — the same
22391
22550
  * payload the (legacy) push `streamBroker.publishCameraStream` carried, minus
22392
22551
  * `deviceId`.
@@ -26310,6 +26469,42 @@ Object.freeze({
26310
26469
  addonId: null,
26311
26470
  access: "create"
26312
26471
  },
26472
+ "recordingExport.cancelExport": {
26473
+ capName: "recordingExport",
26474
+ capScope: "system",
26475
+ addonId: null,
26476
+ access: "create"
26477
+ },
26478
+ "recordingExport.createExport": {
26479
+ capName: "recordingExport",
26480
+ capScope: "system",
26481
+ addonId: null,
26482
+ access: "create"
26483
+ },
26484
+ "recordingExport.deleteExport": {
26485
+ capName: "recordingExport",
26486
+ capScope: "system",
26487
+ addonId: null,
26488
+ access: "delete"
26489
+ },
26490
+ "recordingExport.getDownloadUrl": {
26491
+ capName: "recordingExport",
26492
+ capScope: "system",
26493
+ addonId: null,
26494
+ access: "view"
26495
+ },
26496
+ "recordingExport.getExport": {
26497
+ capName: "recordingExport",
26498
+ capScope: "system",
26499
+ addonId: null,
26500
+ access: "view"
26501
+ },
26502
+ "recordingExport.listExports": {
26503
+ capName: "recordingExport",
26504
+ capScope: "system",
26505
+ addonId: null,
26506
+ access: "view"
26507
+ },
26313
26508
  "sceneMonitor.captureReference": {
26314
26509
  capName: "scene-monitor",
26315
26510
  capScope: "device",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",