@camstack/types 1.2.417 → 1.2.419

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 (56) hide show
  1. package/dist/addon.js +2 -2
  2. package/dist/addon.mjs +2 -2
  3. package/dist/capabilities/addons.cap.d.ts +67 -1
  4. package/dist/capabilities/capability-definition.d.ts +5 -0
  5. package/dist/capabilities/color.cap.d.ts +1 -0
  6. package/dist/capabilities/composer.cap.d.ts +201 -0
  7. package/dist/capabilities/core-blocks.cap.d.ts +1441 -0
  8. package/dist/capabilities/group-commands.cap.d.ts +49 -0
  9. package/dist/capabilities/group-status.cap.d.ts +46 -0
  10. package/dist/capabilities/index.d.ts +6 -2
  11. package/dist/capabilities/motion.cap.d.ts +12 -4
  12. package/dist/capabilities/notification-rules.cap.d.ts +46 -0
  13. package/dist/capabilities/osd-manager.cap.d.ts +12 -0
  14. package/dist/client.js +37 -5
  15. package/dist/client.mjs +37 -5
  16. package/dist/composition/composition-report.d.ts +72 -0
  17. package/dist/composition/composition.d.ts +286 -5
  18. package/dist/composition/helpers/actuator.d.ts +58 -0
  19. package/dist/composition/helpers/aggregate.d.ts +41 -0
  20. package/dist/composition/helpers/catalog.d.ts +47 -0
  21. package/dist/composition/helpers/compile.d.ts +22 -0
  22. package/dist/composition/helpers/index.d.ts +7 -0
  23. package/dist/composition/helpers/save.d.ts +18 -0
  24. package/dist/composition/helpers/source-pick.d.ts +40 -0
  25. package/dist/composition/helpers/spec.d.ts +43 -0
  26. package/dist/composition/index.d.ts +1 -0
  27. package/dist/composition/source-ref.d.ts +11 -0
  28. package/dist/composition/validate-composition.d.ts +5 -0
  29. package/dist/{composition-kEl9mevu.mjs → composition-OhpuespA.mjs} +121 -8
  30. package/dist/{composition-DsmkwP9-.js → composition-re1aezX9.js} +198 -7
  31. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  32. package/dist/enums/event-category.d.ts +8 -0
  33. package/dist/enums.js +1 -1
  34. package/dist/enums.mjs +1 -1
  35. package/dist/{event-category-DXZ3f9Q5.js → event-category-Ave2VSxY.js} +8 -0
  36. package/dist/{event-category-DHXxB8t9.mjs → event-category-CT-hz5Rb.mjs} +8 -0
  37. package/dist/generated/addon-api.d.ts +35 -0
  38. package/dist/generated/addon-cap-facts.d.ts +1 -1
  39. package/dist/generated/cap-status-types.d.ts +5 -1
  40. package/dist/generated/capability-router-map.d.ts +8 -2
  41. package/dist/generated/device-local-state.d.ts +6 -0
  42. package/dist/generated/device-proxy.d.ts +6 -0
  43. package/dist/generated/device-scoped-caps.d.ts +1 -1
  44. package/dist/generated/history-catalog.d.ts +1 -1
  45. package/dist/generated/method-access-map.d.ts +1 -1
  46. package/dist/generated/method-device-selectors.d.ts +1 -1
  47. package/dist/generated/runtime-state-durability.d.ts +1 -1
  48. package/dist/generated/system-proxy.d.ts +1 -1
  49. package/dist/index.js +1040 -24
  50. package/dist/index.mjs +1006 -25
  51. package/dist/interfaces/event-bus.d.ts +15 -0
  52. package/dist/node.js +1 -1
  53. package/dist/node.mjs +1 -1
  54. package/dist/{sleep-gtskVoMw.js → sleep-YJ6FVsUu.js} +26 -2
  55. package/dist/{sleep-CARd6wZF.mjs → sleep-bykKrTgu.mjs} +26 -2
  56. package/package.json +1 -1
@@ -484,6 +484,17 @@ export interface StorageLocationsChangedPayload {
484
484
  * when a camera is assigned to or unassigned from an agent runner. Used by
485
485
  * the UI / metrics dashboard. No frame data.
486
486
  */
487
+ export type PipelinePackageLlmSilenceReason = 'timeout' | 'error';
488
+ /** The open edge: the confirm is not answering. `latencyMs` is the last call. */
489
+ export type PipelinePackageLlmSilencePayload = {
490
+ readonly deviceId: number;
491
+ readonly reason: PipelinePackageLlmSilenceReason;
492
+ readonly latencyMs: number;
493
+ };
494
+ /** The recovery edge. The camera is the subject; the answer itself is the package row. */
495
+ export type PipelinePackageLlmAnsweredPayload = {
496
+ readonly deviceId: number;
497
+ };
487
498
  export type PipelineMotionNoisePayload = {
488
499
  readonly deviceId: number;
489
500
  /** The rolling window the figures are over, in ms. */
@@ -1298,6 +1309,10 @@ export interface EventCatalog {
1298
1309
  'pipeline.motion-noisy': PipelineMotionNoisePayload;
1299
1310
  /** The camera's motion fell back, or a detection arrived (D907). */
1300
1311
  'pipeline.motion-calm': PipelineMotionNoisePayload;
1312
+ /** Package LLM confirm failed closed for the streak, one camera (D931). */
1313
+ 'pipeline.package-llm-silent': PipelinePackageLlmSilencePayload;
1314
+ /** A package LLM confirm returned yes or no after a silence edge (D931). */
1315
+ 'pipeline.package-llm-answered': PipelinePackageLlmAnsweredPayload;
1301
1316
  /** Per-camera pipeline config changed — orchestrator hot-reloads the assigned runner. */
1302
1317
  'pipeline.camera-updated': {
1303
1318
  readonly deviceId: number;
package/dist/node.js CHANGED
@@ -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_composition = require("./composition-DsmkwP9-.js");
24
+ const require_composition = require("./composition-re1aezX9.js");
25
25
  const require_err_msg = require("./err-msg-BhVbr0NX.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { At as Fmp4BoxSplitter, Ct as FFMPEG_PATH_ENV, Dt as getFfmpegArtifact, Et as FFMPEG_RELEASE, Ot as getFfmpegDownloadUrl, P as compositionSourceKey, Pt as buildFfmpegArgs, Rt as isSoftwareDecode, Tt as ffmpegBinaryName, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, kt as canonicalHash, wt as chooseFfmpegBinary } from "./composition-kEl9mevu.mjs";
1
+ import { Bt as getFfmpegArtifact, Ht as canonicalHash, It as FFMPEG_PATH_ENV, Lt as chooseFfmpegBinary, P as compositionSourceKey, Rt as ffmpegBinaryName, Ut as Fmp4BoxSplitter, Vt as getFfmpegDownloadUrl, Zt as isSoftwareDecode, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, qt as buildFfmpegArgs, zt as FFMPEG_RELEASE } from "./composition-OhpuespA.mjs";
2
2
  import { t as errMsg } from "./err-msg-BXKzRBwg.mjs";
3
3
  import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
4
4
  import * as fs from "node:fs";
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-DXZ3f9Q5.js");
1
+ const require_event_category = require("./event-category-Ave2VSxY.js");
2
2
  let zod = require("zod");
3
3
  //#region src/audio/audio-chunk-format.ts
4
4
  /**
@@ -6713,6 +6713,8 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-commands",
6717
+ "group-status",
6716
6718
  "heating-valve",
6717
6719
  "humidifier",
6718
6720
  "humidity-sensor",
@@ -7532,6 +7534,20 @@ var CAP_STATE_LEAVES = Object.freeze({
7532
7534
  "path": "detected",
7533
7535
  "valueType": "boolean"
7534
7536
  }],
7537
+ "group-status": [
7538
+ {
7539
+ "path": "included",
7540
+ "valueType": "number"
7541
+ },
7542
+ {
7543
+ "path": "excluded",
7544
+ "valueType": "number"
7545
+ },
7546
+ {
7547
+ "path": "total",
7548
+ "valueType": "number"
7549
+ }
7550
+ ],
7535
7551
  "heating-valve": [{
7536
7552
  "path": "position",
7537
7553
  "valueType": "number"
@@ -9086,6 +9102,8 @@ function createDeviceProxy(api, binding, opts) {
9086
9102
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9087
9103
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9088
9104
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9105
+ const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9106
+ const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9089
9107
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9090
9108
  const humidifierInterface = {
9091
9109
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
@@ -9640,6 +9658,8 @@ function createDeviceProxy(api, binding, opts) {
9640
9658
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9641
9659
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9642
9660
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9661
+ groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9662
+ groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9643
9663
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9644
9664
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
9645
9665
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
@@ -9723,6 +9743,8 @@ function createDeviceProxy(api, binding, opts) {
9723
9743
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9724
9744
  ...bound("flood") ? { flood: floodInterface } : {},
9725
9745
  ...bound("gas") ? { gas: gasInterface } : {},
9746
+ ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9747
+ ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9726
9748
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9727
9749
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
9728
9750
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
@@ -9805,7 +9827,7 @@ function createDeviceProxy(api, binding, opts) {
9805
9827
  * can answer "may a rule actuate this?" without importing the schema barrel
9806
9828
  * (~144MB RSS per runner, D28).
9807
9829
  *
9808
- * Coverage: 91 device-scoped capabilities.
9830
+ * Coverage: 93 device-scoped capabilities.
9809
9831
  */
9810
9832
  var DEVICE_SCOPED_CAPS = new Set([
9811
9833
  "accessories",
@@ -9846,6 +9868,8 @@ var DEVICE_SCOPED_CAPS = new Set([
9846
9868
  "feature-probe",
9847
9869
  "flood",
9848
9870
  "gas",
9871
+ "group-commands",
9872
+ "group-status",
9849
9873
  "heating-valve",
9850
9874
  "humidifier",
9851
9875
  "humidity-sensor",
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-DHXxB8t9.mjs";
1
+ import { t as EventCategory } from "./event-category-CT-hz5Rb.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/audio/audio-chunk-format.ts
4
4
  /**
@@ -6713,6 +6713,8 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-commands",
6717
+ "group-status",
6716
6718
  "heating-valve",
6717
6719
  "humidifier",
6718
6720
  "humidity-sensor",
@@ -7532,6 +7534,20 @@ var CAP_STATE_LEAVES = Object.freeze({
7532
7534
  "path": "detected",
7533
7535
  "valueType": "boolean"
7534
7536
  }],
7537
+ "group-status": [
7538
+ {
7539
+ "path": "included",
7540
+ "valueType": "number"
7541
+ },
7542
+ {
7543
+ "path": "excluded",
7544
+ "valueType": "number"
7545
+ },
7546
+ {
7547
+ "path": "total",
7548
+ "valueType": "number"
7549
+ }
7550
+ ],
7535
7551
  "heating-valve": [{
7536
7552
  "path": "position",
7537
7553
  "valueType": "number"
@@ -9086,6 +9102,8 @@ function createDeviceProxy(api, binding, opts) {
9086
9102
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9087
9103
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9088
9104
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9105
+ const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9106
+ const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9089
9107
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9090
9108
  const humidifierInterface = {
9091
9109
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
@@ -9640,6 +9658,8 @@ function createDeviceProxy(api, binding, opts) {
9640
9658
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9641
9659
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9642
9660
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9661
+ groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9662
+ groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9643
9663
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9644
9664
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
9645
9665
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
@@ -9723,6 +9743,8 @@ function createDeviceProxy(api, binding, opts) {
9723
9743
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9724
9744
  ...bound("flood") ? { flood: floodInterface } : {},
9725
9745
  ...bound("gas") ? { gas: gasInterface } : {},
9746
+ ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9747
+ ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9726
9748
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9727
9749
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
9728
9750
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
@@ -9805,7 +9827,7 @@ function createDeviceProxy(api, binding, opts) {
9805
9827
  * can answer "may a rule actuate this?" without importing the schema barrel
9806
9828
  * (~144MB RSS per runner, D28).
9807
9829
  *
9808
- * Coverage: 91 device-scoped capabilities.
9830
+ * Coverage: 93 device-scoped capabilities.
9809
9831
  */
9810
9832
  var DEVICE_SCOPED_CAPS = new Set([
9811
9833
  "accessories",
@@ -9846,6 +9868,8 @@ var DEVICE_SCOPED_CAPS = new Set([
9846
9868
  "feature-probe",
9847
9869
  "flood",
9848
9870
  "gas",
9871
+ "group-commands",
9872
+ "group-status",
9849
9873
  "heating-valve",
9850
9874
  "humidifier",
9851
9875
  "humidity-sensor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.417",
3
+ "version": "1.2.419",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",