@camstack/addon-export-hap 1.2.103 → 1.2.105

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.
@@ -16943,6 +16943,7 @@ var NcSystemEventKindSchema = _enum([
16943
16943
  "addon-crash-loop",
16944
16944
  "addon-update-available",
16945
16945
  "server-update-available",
16946
+ "wrapper-update-available",
16946
16947
  "alarm-triggered",
16947
16948
  "alarm-armed",
16948
16949
  "alarm-disarmed",
@@ -20348,7 +20349,17 @@ var EventDensityBucketSchema = object({
20348
20349
  bucketStart: number(),
20349
20350
  motion: number().int(),
20350
20351
  object: number().int(),
20351
- audio: number().int()
20352
+ audio: number().int(),
20353
+ /**
20354
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20355
+ * as opposed to `audio`, which is their COUNT (D431).
20356
+ *
20357
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20358
+ * measured", which is not the same claim as silence, and a lane that cannot
20359
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20360
+ * the count-on-a-level-meter did.
20361
+ */
20362
+ audioDbfs: number().optional()
20352
20363
  });
20353
20364
  /**
20354
20365
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22449,6 +22460,53 @@ var ImageContractSchema = object({
22449
22460
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22450
22461
  message: string()
22451
22462
  });
22463
+ /**
22464
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22465
+ * produced it.
22466
+ *
22467
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22468
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22469
+ * for a `docker` shell and says the app restarts into the new build for
22470
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22471
+ * nothing reads is the defect this repo keeps paying for.
22472
+ */
22473
+ var WrapperIdentitySchema = object({
22474
+ kind: _enum([
22475
+ "docker",
22476
+ "electron",
22477
+ "native",
22478
+ "contradictory",
22479
+ "unknown"
22480
+ ]),
22481
+ /** Every probe that ran, in a stable order. Never empty. */
22482
+ evidence: array(object({
22483
+ /** Which probe this row reports. */
22484
+ fact: _enum([
22485
+ "dockerenv-file",
22486
+ "proc-1-cgroup",
22487
+ "platform",
22488
+ "electron-app-version-env"
22489
+ ]),
22490
+ /**
22491
+ * `observed` — this process read it itself. `declared` — the shell told the
22492
+ * process and nothing here can check it. Only the Electron app version is
22493
+ * ever `declared`, and only because a child cannot see its parent.
22494
+ */
22495
+ mode: _enum(["observed", "declared"]),
22496
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22497
+ holds: boolean(),
22498
+ /** What was actually read, verbatim enough for an operator to argue with. */
22499
+ detail: string()
22500
+ })),
22501
+ /**
22502
+ * The version of the SHELL, when the shell has one it can state: the
22503
+ * Electron app version it declared, or the baked seed closure that
22504
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22505
+ * `unknown` — which version belongs to the shell is precisely what is not
22506
+ * known there.
22507
+ */
22508
+ currentVersion: string().nullable()
22509
+ });
22452
22510
  var ServerRollbackInfoSchema = object({
22453
22511
  /** The version that failed (or was manually rolled back). */
22454
22512
  fromVersion: string(),
@@ -22490,7 +22548,13 @@ var ServerPackageStatusSchema = object({
22490
22548
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22491
22549
  * version skew: an older provider's payload simply omits it.
22492
22550
  */
22493
- imageContract: ImageContractSchema.optional()
22551
+ imageContract: ImageContractSchema.optional(),
22552
+ /**
22553
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22554
+ * for version skew: an older provider's payload simply omits it, and an
22555
+ * absent wrapper is unknown — never `native`.
22556
+ */
22557
+ wrapper: WrapperIdentitySchema.optional()
22494
22558
  });
22495
22559
  var ServerUpdateCheckResultSchema = object({
22496
22560
  packageName: string(),
@@ -28563,7 +28627,23 @@ var RecordingRangeSchema = object({
28563
28627
  });
28564
28628
  var RecordingAvailabilitySchema = object({
28565
28629
  deviceId: number(),
28566
- ranges: array(RecordingRangeSchema)
28630
+ ranges: array(RecordingRangeSchema),
28631
+ /**
28632
+ * Every profile this camera has footage in — not only the one `ranges`
28633
+ * describes (D433).
28634
+ *
28635
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
28636
+ * and enumerating all of them triples the directory reads for a bar that
28637
+ * would look identical. But the answer used to say nothing about that, so a
28638
+ * caller asking "what can I export?" read the single preferred profile as
28639
+ * the only one that exists — on this deployment every camera records `high`
28640
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28641
+ * UI could not see it.
28642
+ *
28643
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28644
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28645
+ */
28646
+ profilesWithFootage: array(string())
28567
28647
  });
28568
28648
  var RecordingDaysSchema = object({
28569
28649
  deviceId: number(),
@@ -28589,7 +28669,11 @@ var RecordingDaysSchema = object({
28589
28669
  var RecordingAvailabilityForDeviceSchema = object({
28590
28670
  deviceId: number(),
28591
28671
  read: _enum(["read", "unreadable"]),
28592
- ranges: array(RecordingRangeSchema).readonly()
28672
+ ranges: array(RecordingRangeSchema).readonly(),
28673
+ /** Same field, same meaning, as the singular answer (D433). A row that
28674
+ * dropped it would tell a grid caller the archive holds one profile.
28675
+ * Empty on an `'unreadable'` row: nobody looked. */
28676
+ profilesWithFootage: array(string()).readonly()
28593
28677
  });
28594
28678
  /**
28595
28679
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28879,7 +28963,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28879
28963
  method(object({
28880
28964
  deviceId: number(),
28881
28965
  fromMs: number(),
28882
- toMs: number()
28966
+ toMs: number(),
28967
+ /**
28968
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28969
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28970
+ * reads. `profilesWithFootage` on the answer says what may be asked
28971
+ * for.
28972
+ */
28973
+ profile: string().optional()
28883
28974
  }), RecordingAvailabilitySchema, {
28884
28975
  kind: "query",
28885
28976
  auth: "protected"
@@ -16931,6 +16931,7 @@ var NcSystemEventKindSchema = _enum([
16931
16931
  "addon-crash-loop",
16932
16932
  "addon-update-available",
16933
16933
  "server-update-available",
16934
+ "wrapper-update-available",
16934
16935
  "alarm-triggered",
16935
16936
  "alarm-armed",
16936
16937
  "alarm-disarmed",
@@ -20336,7 +20337,17 @@ var EventDensityBucketSchema = object({
20336
20337
  bucketStart: number(),
20337
20338
  motion: number().int(),
20338
20339
  object: number().int(),
20339
- audio: number().int()
20340
+ audio: number().int(),
20341
+ /**
20342
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20343
+ * as opposed to `audio`, which is their COUNT (D431).
20344
+ *
20345
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20346
+ * measured", which is not the same claim as silence, and a lane that cannot
20347
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20348
+ * the count-on-a-level-meter did.
20349
+ */
20350
+ audioDbfs: number().optional()
20340
20351
  });
20341
20352
  /**
20342
20353
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22437,6 +22448,53 @@ var ImageContractSchema = object({
22437
22448
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22438
22449
  message: string()
22439
22450
  });
22451
+ /**
22452
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22453
+ * produced it.
22454
+ *
22455
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22456
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22457
+ * for a `docker` shell and says the app restarts into the new build for
22458
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22459
+ * nothing reads is the defect this repo keeps paying for.
22460
+ */
22461
+ var WrapperIdentitySchema = object({
22462
+ kind: _enum([
22463
+ "docker",
22464
+ "electron",
22465
+ "native",
22466
+ "contradictory",
22467
+ "unknown"
22468
+ ]),
22469
+ /** Every probe that ran, in a stable order. Never empty. */
22470
+ evidence: array(object({
22471
+ /** Which probe this row reports. */
22472
+ fact: _enum([
22473
+ "dockerenv-file",
22474
+ "proc-1-cgroup",
22475
+ "platform",
22476
+ "electron-app-version-env"
22477
+ ]),
22478
+ /**
22479
+ * `observed` — this process read it itself. `declared` — the shell told the
22480
+ * process and nothing here can check it. Only the Electron app version is
22481
+ * ever `declared`, and only because a child cannot see its parent.
22482
+ */
22483
+ mode: _enum(["observed", "declared"]),
22484
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22485
+ holds: boolean(),
22486
+ /** What was actually read, verbatim enough for an operator to argue with. */
22487
+ detail: string()
22488
+ })),
22489
+ /**
22490
+ * The version of the SHELL, when the shell has one it can state: the
22491
+ * Electron app version it declared, or the baked seed closure that
22492
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22493
+ * `unknown` — which version belongs to the shell is precisely what is not
22494
+ * known there.
22495
+ */
22496
+ currentVersion: string().nullable()
22497
+ });
22440
22498
  var ServerRollbackInfoSchema = object({
22441
22499
  /** The version that failed (or was manually rolled back). */
22442
22500
  fromVersion: string(),
@@ -22478,7 +22536,13 @@ var ServerPackageStatusSchema = object({
22478
22536
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22479
22537
  * version skew: an older provider's payload simply omits it.
22480
22538
  */
22481
- imageContract: ImageContractSchema.optional()
22539
+ imageContract: ImageContractSchema.optional(),
22540
+ /**
22541
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22542
+ * for version skew: an older provider's payload simply omits it, and an
22543
+ * absent wrapper is unknown — never `native`.
22544
+ */
22545
+ wrapper: WrapperIdentitySchema.optional()
22482
22546
  });
22483
22547
  var ServerUpdateCheckResultSchema = object({
22484
22548
  packageName: string(),
@@ -28551,7 +28615,23 @@ var RecordingRangeSchema = object({
28551
28615
  });
28552
28616
  var RecordingAvailabilitySchema = object({
28553
28617
  deviceId: number(),
28554
- ranges: array(RecordingRangeSchema)
28618
+ ranges: array(RecordingRangeSchema),
28619
+ /**
28620
+ * Every profile this camera has footage in — not only the one `ranges`
28621
+ * describes (D433).
28622
+ *
28623
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
28624
+ * and enumerating all of them triples the directory reads for a bar that
28625
+ * would look identical. But the answer used to say nothing about that, so a
28626
+ * caller asking "what can I export?" read the single preferred profile as
28627
+ * the only one that exists — on this deployment every camera records `high`
28628
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
28629
+ * UI could not see it.
28630
+ *
28631
+ * Cheap: it is the same shallow directory read the profile CHOICE already
28632
+ * makes. Ask for a specific profile's ranges with the `profile` input.
28633
+ */
28634
+ profilesWithFootage: array(string())
28555
28635
  });
28556
28636
  var RecordingDaysSchema = object({
28557
28637
  deviceId: number(),
@@ -28577,7 +28657,11 @@ var RecordingDaysSchema = object({
28577
28657
  var RecordingAvailabilityForDeviceSchema = object({
28578
28658
  deviceId: number(),
28579
28659
  read: _enum(["read", "unreadable"]),
28580
- ranges: array(RecordingRangeSchema).readonly()
28660
+ ranges: array(RecordingRangeSchema).readonly(),
28661
+ /** Same field, same meaning, as the singular answer (D433). A row that
28662
+ * dropped it would tell a grid caller the archive holds one profile.
28663
+ * Empty on an `'unreadable'` row: nobody looked. */
28664
+ profilesWithFootage: array(string()).readonly()
28581
28665
  });
28582
28666
  /**
28583
28667
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -28867,7 +28951,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28867
28951
  method(object({
28868
28952
  deviceId: number(),
28869
28953
  fromMs: number(),
28870
- toMs: number()
28954
+ toMs: number(),
28955
+ /**
28956
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28957
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28958
+ * reads. `profilesWithFootage` on the answer says what may be asked
28959
+ * for.
28960
+ */
28961
+ profile: string().optional()
28871
28962
  }), RecordingAvailabilitySchema, {
28872
28963
  kind: "query",
28873
28964
  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.105",
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",