@camstack/types 1.2.43 → 1.2.44

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.
Files changed (36) hide show
  1. package/dist/addon.js +8 -2
  2. package/dist/addon.mjs +8 -2
  3. package/dist/capabilities/index.d.ts +5 -2
  4. package/dist/capabilities/osd-manager.cap.d.ts +900 -0
  5. package/dist/capabilities/pipeline-analytics.cap.d.ts +171 -4
  6. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +10 -0
  7. package/dist/capabilities/schemas/streaming-shared.d.ts +2 -0
  8. package/dist/capabilities/server-management.cap.d.ts +3 -3
  9. package/dist/capabilities/stream-broker.cap.d.ts +32 -0
  10. package/dist/ffmpeg/fmp4-box-splitter.d.ts +113 -0
  11. package/dist/ffmpeg/fmp4-fragment-child.d.ts +85 -0
  12. package/dist/ffmpeg/fmp4-fragment-plane.d.ts +142 -0
  13. package/dist/ffmpeg/invocation.d.ts +4 -2
  14. package/dist/fmp4-box-splitter-B53u9-Nu.mjs +615 -0
  15. package/dist/fmp4-box-splitter-BkWH7O3L.js +686 -0
  16. package/dist/generated/addon-api.d.ts +85 -0
  17. package/dist/generated/cap-input-defaults.d.ts +1 -1
  18. package/dist/generated/capability-router-map.d.ts +5 -2
  19. package/dist/generated/device-proxy.d.ts +3 -1
  20. package/dist/generated/method-access-map.d.ts +1 -1
  21. package/dist/generated/system-proxy.d.ts +2 -0
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.js +581 -404
  24. package/dist/index.mjs +558 -394
  25. package/dist/interfaces/camera-switches.d.ts +48 -0
  26. package/dist/interfaces/stream-broker.d.ts +18 -0
  27. package/dist/node.d.ts +4 -0
  28. package/dist/node.js +509 -3
  29. package/dist/node.mjs +507 -3
  30. package/dist/notification/schedule.d.ts +20 -0
  31. package/dist/{sleep-DtstvzWm.mjs → sleep-cC4Fuup8.mjs} +26 -1
  32. package/dist/{sleep-Bx9IIoT0.js → sleep-eiC10_cX.js} +26 -1
  33. package/dist/types/pipeline-step.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/canonical-hash-7nfBbEqR.mjs +0 -35
  36. package/dist/canonical-hash-BcZHRHIx.js +0 -40
@@ -1,35 +0,0 @@
1
- import { createHash } from "node:crypto";
2
- //#region src/utils/canonical-hash.ts
3
- /**
4
- * Deterministic SHA-256 hash of an arbitrary serialisable value. The
5
- * canonical form sorts object keys alphabetically at every depth so two
6
- * structurally-equal inputs with different key insertion orders produce
7
- * the same hash. Returns a 64-char lowercase hex digest.
8
- *
9
- * Used by export adapters (Alexa, HAP) to short-circuit re-discovery /
10
- * accessory-rebuild work when the upstream shape is byte-identical to
11
- * the last applied state — preventing user-visible "re-discovery"
12
- * notifications on every addon-runner respawn. Each respawn re-fires
13
- * `DeviceBindingsChanged` for every cap registration, which without
14
- * this guard would propagate redundant pushes.
15
- *
16
- * Note: this is a SYMPTOMATIC fix layered on top of the binding-change
17
- * subscription. The proper fix is a single "device ready" lifecycle
18
- * barrier so exports react only when the full cap set has landed —
19
- * tracked separately for post-HA-integration work.
20
- */
21
- function canonicalHash(value) {
22
- const canonical = JSON.stringify(value, replaceWithSortedKeys);
23
- return createHash("sha256").update(canonical ?? "").digest("hex");
24
- }
25
- function replaceWithSortedKeys(_key, value) {
26
- if (value && typeof value === "object" && !Array.isArray(value)) {
27
- const obj = value;
28
- const out = {};
29
- for (const k of Object.keys(obj).toSorted()) out[k] = obj[k];
30
- return out;
31
- }
32
- return value;
33
- }
34
- //#endregion
35
- export { canonicalHash as t };
@@ -1,40 +0,0 @@
1
- let node_crypto = require("node:crypto");
2
- //#region src/utils/canonical-hash.ts
3
- /**
4
- * Deterministic SHA-256 hash of an arbitrary serialisable value. The
5
- * canonical form sorts object keys alphabetically at every depth so two
6
- * structurally-equal inputs with different key insertion orders produce
7
- * the same hash. Returns a 64-char lowercase hex digest.
8
- *
9
- * Used by export adapters (Alexa, HAP) to short-circuit re-discovery /
10
- * accessory-rebuild work when the upstream shape is byte-identical to
11
- * the last applied state — preventing user-visible "re-discovery"
12
- * notifications on every addon-runner respawn. Each respawn re-fires
13
- * `DeviceBindingsChanged` for every cap registration, which without
14
- * this guard would propagate redundant pushes.
15
- *
16
- * Note: this is a SYMPTOMATIC fix layered on top of the binding-change
17
- * subscription. The proper fix is a single "device ready" lifecycle
18
- * barrier so exports react only when the full cap set has landed —
19
- * tracked separately for post-HA-integration work.
20
- */
21
- function canonicalHash(value) {
22
- const canonical = JSON.stringify(value, replaceWithSortedKeys);
23
- return (0, node_crypto.createHash)("sha256").update(canonical ?? "").digest("hex");
24
- }
25
- function replaceWithSortedKeys(_key, value) {
26
- if (value && typeof value === "object" && !Array.isArray(value)) {
27
- const obj = value;
28
- const out = {};
29
- for (const k of Object.keys(obj).toSorted()) out[k] = obj[k];
30
- return out;
31
- }
32
- return value;
33
- }
34
- //#endregion
35
- Object.defineProperty(exports, "canonicalHash", {
36
- enumerable: true,
37
- get: function() {
38
- return canonicalHash;
39
- }
40
- });