@camstack/addon-export-hap 1.2.103 → 1.2.104

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.
@@ -20348,7 +20348,17 @@ var EventDensityBucketSchema = object({
20348
20348
  bucketStart: number(),
20349
20349
  motion: number().int(),
20350
20350
  object: number().int(),
20351
- audio: number().int()
20351
+ audio: number().int(),
20352
+ /**
20353
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20354
+ * as opposed to `audio`, which is their COUNT (D431).
20355
+ *
20356
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20357
+ * measured", which is not the same claim as silence, and a lane that cannot
20358
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20359
+ * the count-on-a-level-meter did.
20360
+ */
20361
+ audioDbfs: number().optional()
20352
20362
  });
20353
20363
  /**
20354
20364
  * One camera's row in a `getEventDensityBatch` answer.
@@ -28563,7 +28573,23 @@ var RecordingRangeSchema = object({
28563
28573
  });
28564
28574
  var RecordingAvailabilitySchema = object({
28565
28575
  deviceId: number(),
28566
- ranges: array(RecordingRangeSchema)
28576
+ ranges: array(RecordingRangeSchema),
28577
+ /**
28578
+ * Every profile this camera has footage in — not only the one `ranges`
28579
+ * describes (D433).
28580
+ *
28581
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
28582
+ * and enumerating all of them triples the directory reads for a bar that
28583
+ * would look identical. But the answer used to say nothing about that, so a
28584
+ * caller asking "what can I export?" read the single preferred profile as
28585
+ * the only one that exists — on this deployment every camera records `high`
28586
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28587
+ * UI could not see it.
28588
+ *
28589
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28590
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28591
+ */
28592
+ profilesWithFootage: array(string())
28567
28593
  });
28568
28594
  var RecordingDaysSchema = object({
28569
28595
  deviceId: number(),
@@ -28589,7 +28615,11 @@ var RecordingDaysSchema = object({
28589
28615
  var RecordingAvailabilityForDeviceSchema = object({
28590
28616
  deviceId: number(),
28591
28617
  read: _enum(["read", "unreadable"]),
28592
- ranges: array(RecordingRangeSchema).readonly()
28618
+ ranges: array(RecordingRangeSchema).readonly(),
28619
+ /** Same field, same meaning, as the singular answer (D433). A row that
28620
+ * dropped it would tell a grid caller the archive holds one profile.
28621
+ * Empty on an `'unreadable'` row: nobody looked. */
28622
+ profilesWithFootage: array(string()).readonly()
28593
28623
  });
28594
28624
  /**
28595
28625
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28879,7 +28909,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28879
28909
  method(object({
28880
28910
  deviceId: number(),
28881
28911
  fromMs: number(),
28882
- toMs: number()
28912
+ toMs: number(),
28913
+ /**
28914
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28915
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28916
+ * reads. `profilesWithFootage` on the answer says what may be asked
28917
+ * for.
28918
+ */
28919
+ profile: string().optional()
28883
28920
  }), RecordingAvailabilitySchema, {
28884
28921
  kind: "query",
28885
28922
  auth: "protected"
@@ -20336,7 +20336,17 @@ var EventDensityBucketSchema = object({
20336
20336
  bucketStart: number(),
20337
20337
  motion: number().int(),
20338
20338
  object: number().int(),
20339
- audio: number().int()
20339
+ audio: number().int(),
20340
+ /**
20341
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20342
+ * as opposed to `audio`, which is their COUNT (D431).
20343
+ *
20344
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20345
+ * measured", which is not the same claim as silence, and a lane that cannot
20346
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20347
+ * the count-on-a-level-meter did.
20348
+ */
20349
+ audioDbfs: number().optional()
20340
20350
  });
20341
20351
  /**
20342
20352
  * One camera's row in a `getEventDensityBatch` answer.
@@ -28551,7 +28561,23 @@ var RecordingRangeSchema = object({
28551
28561
  });
28552
28562
  var RecordingAvailabilitySchema = object({
28553
28563
  deviceId: number(),
28554
- ranges: array(RecordingRangeSchema)
28564
+ ranges: array(RecordingRangeSchema),
28565
+ /**
28566
+ * Every profile this camera has footage in — not only the one `ranges`
28567
+ * describes (D433).
28568
+ *
28569
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
28570
+ * and enumerating all of them triples the directory reads for a bar that
28571
+ * would look identical. But the answer used to say nothing about that, so a
28572
+ * caller asking "what can I export?" read the single preferred profile as
28573
+ * the only one that exists — on this deployment every camera records `high`
28574
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28575
+ * UI could not see it.
28576
+ *
28577
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28578
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28579
+ */
28580
+ profilesWithFootage: array(string())
28555
28581
  });
28556
28582
  var RecordingDaysSchema = object({
28557
28583
  deviceId: number(),
@@ -28577,7 +28603,11 @@ var RecordingDaysSchema = object({
28577
28603
  var RecordingAvailabilityForDeviceSchema = object({
28578
28604
  deviceId: number(),
28579
28605
  read: _enum(["read", "unreadable"]),
28580
- ranges: array(RecordingRangeSchema).readonly()
28606
+ ranges: array(RecordingRangeSchema).readonly(),
28607
+ /** Same field, same meaning, as the singular answer (D433). A row that
28608
+ * dropped it would tell a grid caller the archive holds one profile.
28609
+ * Empty on an `'unreadable'` row: nobody looked. */
28610
+ profilesWithFootage: array(string()).readonly()
28581
28611
  });
28582
28612
  /**
28583
28613
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28867,7 +28897,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28867
28897
  method(object({
28868
28898
  deviceId: number(),
28869
28899
  fromMs: number(),
28870
- toMs: number()
28900
+ toMs: number(),
28901
+ /**
28902
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28903
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28904
+ * reads. `profilesWithFootage` on the answer says what may be asked
28905
+ * for.
28906
+ */
28907
+ profile: string().optional()
28871
28908
  }), RecordingAvailabilitySchema, {
28872
28909
  kind: "query",
28873
28910
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.103",
3
+ "version": "1.2.104",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",