@camstack/types 1.2.418 → 1.2.420

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 (46) 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/color.cap.d.ts +1 -0
  5. package/dist/capabilities/composer.cap.d.ts +3 -0
  6. package/dist/capabilities/core-blocks.cap.d.ts +21 -0
  7. package/dist/capabilities/group-commands.cap.d.ts +49 -0
  8. package/dist/capabilities/group-status.cap.d.ts +1 -1
  9. package/dist/capabilities/index.d.ts +4 -2
  10. package/dist/capabilities/notification-rules.cap.d.ts +46 -0
  11. package/dist/capabilities/osd-manager.cap.d.ts +12 -0
  12. package/dist/client.d.ts +1 -1
  13. package/dist/client.js +191 -5
  14. package/dist/client.mjs +191 -6
  15. package/dist/composition/composition.d.ts +1 -0
  16. package/dist/composition/helpers/actuator.d.ts +58 -0
  17. package/dist/composition/helpers/catalog.d.ts +7 -2
  18. package/dist/composition/helpers/index.d.ts +2 -1
  19. package/dist/composition/helpers/spec.d.ts +6 -1
  20. package/dist/{composition-B85l9j1M.mjs → composition-OhpuespA.mjs} +10 -3
  21. package/dist/{composition-OJKOJJD-.js → composition-re1aezX9.js} +21 -2
  22. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  23. package/dist/enums/event-category.d.ts +8 -0
  24. package/dist/enums.js +1 -1
  25. package/dist/enums.mjs +1 -1
  26. package/dist/{event-category-DXZ3f9Q5.js → event-category-Ave2VSxY.js} +8 -0
  27. package/dist/{event-category-DHXxB8t9.mjs → event-category-CT-hz5Rb.mjs} +8 -0
  28. package/dist/generated/addon-api.d.ts +21 -0
  29. package/dist/generated/cap-status-types.d.ts +3 -1
  30. package/dist/generated/capability-router-map.d.ts +5 -2
  31. package/dist/generated/device-local-state.d.ts +3 -0
  32. package/dist/generated/device-proxy.d.ts +3 -0
  33. package/dist/generated/device-scoped-caps.d.ts +1 -1
  34. package/dist/generated/history-catalog.d.ts +1 -1
  35. package/dist/generated/method-access-map.d.ts +1 -1
  36. package/dist/generated/method-device-selectors.d.ts +1 -1
  37. package/dist/generated/runtime-state-durability.d.ts +1 -1
  38. package/dist/generated/system-proxy.d.ts +1 -1
  39. package/dist/index.js +341 -19
  40. package/dist/index.mjs +328 -20
  41. package/dist/interfaces/event-bus.d.ts +15 -0
  42. package/dist/node.js +1 -1
  43. package/dist/node.mjs +1 -1
  44. package/dist/{sleep-7Gw3GJ4n.js → sleep-YJ6FVsUu.js} +8 -2
  45. package/dist/{sleep-B81gwQuR.mjs → sleep-bykKrTgu.mjs} +8 -2
  46. 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-OJKOJJD-.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 { Bt as canonicalHash, Ft as chooseFfmpegBinary, Gt as buildFfmpegArgs, It as ffmpegBinaryName, Lt as FFMPEG_RELEASE, P as compositionSourceKey, Pt as FFMPEG_PATH_ENV, Rt as getFfmpegArtifact, Vt as Fmp4BoxSplitter, Yt as isSoftwareDecode, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, zt as getFfmpegDownloadUrl } from "./composition-B85l9j1M.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,7 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-commands",
6716
6717
  "group-status",
6717
6718
  "heating-valve",
6718
6719
  "humidifier",
@@ -9101,6 +9102,7 @@ function createDeviceProxy(api, binding, opts) {
9101
9102
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9102
9103
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9103
9104
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9105
+ const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9104
9106
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9105
9107
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9106
9108
  const humidifierInterface = {
@@ -9656,6 +9658,7 @@ function createDeviceProxy(api, binding, opts) {
9656
9658
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9657
9659
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9658
9660
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9661
+ groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9659
9662
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9660
9663
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9661
9664
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
@@ -9740,6 +9743,7 @@ function createDeviceProxy(api, binding, opts) {
9740
9743
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9741
9744
  ...bound("flood") ? { flood: floodInterface } : {},
9742
9745
  ...bound("gas") ? { gas: gasInterface } : {},
9746
+ ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9743
9747
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9744
9748
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9745
9749
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
@@ -9823,7 +9827,7 @@ function createDeviceProxy(api, binding, opts) {
9823
9827
  * can answer "may a rule actuate this?" without importing the schema barrel
9824
9828
  * (~144MB RSS per runner, D28).
9825
9829
  *
9826
- * Coverage: 91 device-scoped capabilities.
9830
+ * Coverage: 93 device-scoped capabilities.
9827
9831
  */
9828
9832
  var DEVICE_SCOPED_CAPS = new Set([
9829
9833
  "accessories",
@@ -9864,6 +9868,8 @@ var DEVICE_SCOPED_CAPS = new Set([
9864
9868
  "feature-probe",
9865
9869
  "flood",
9866
9870
  "gas",
9871
+ "group-commands",
9872
+ "group-status",
9867
9873
  "heating-valve",
9868
9874
  "humidifier",
9869
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,7 @@ var CAP_NAMES = Object.freeze([
6713
6713
  "filesystem-browse",
6714
6714
  "flood",
6715
6715
  "gas",
6716
+ "group-commands",
6716
6717
  "group-status",
6717
6718
  "heating-valve",
6718
6719
  "humidifier",
@@ -9101,6 +9102,7 @@ function createDeviceProxy(api, binding, opts) {
9101
9102
  const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
9102
9103
  const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
9103
9104
  const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
9105
+ const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
9104
9106
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
9105
9107
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
9106
9108
  const humidifierInterface = {
@@ -9656,6 +9658,7 @@ function createDeviceProxy(api, binding, opts) {
9656
9658
  featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
9657
9659
  flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
9658
9660
  gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
9661
+ groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
9659
9662
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
9660
9663
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
9661
9664
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
@@ -9740,6 +9743,7 @@ function createDeviceProxy(api, binding, opts) {
9740
9743
  ...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
9741
9744
  ...bound("flood") ? { flood: floodInterface } : {},
9742
9745
  ...bound("gas") ? { gas: gasInterface } : {},
9746
+ ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
9743
9747
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
9744
9748
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
9745
9749
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
@@ -9823,7 +9827,7 @@ function createDeviceProxy(api, binding, opts) {
9823
9827
  * can answer "may a rule actuate this?" without importing the schema barrel
9824
9828
  * (~144MB RSS per runner, D28).
9825
9829
  *
9826
- * Coverage: 91 device-scoped capabilities.
9830
+ * Coverage: 93 device-scoped capabilities.
9827
9831
  */
9828
9832
  var DEVICE_SCOPED_CAPS = new Set([
9829
9833
  "accessories",
@@ -9864,6 +9868,8 @@ var DEVICE_SCOPED_CAPS = new Set([
9864
9868
  "feature-probe",
9865
9869
  "flood",
9866
9870
  "gas",
9871
+ "group-commands",
9872
+ "group-status",
9867
9873
  "heating-valve",
9868
9874
  "humidifier",
9869
9875
  "humidity-sensor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.418",
3
+ "version": "1.2.420",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",