@camstack/types 1.2.592 → 1.2.594

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 (43) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/addon.js +2 -2
  3. package/dist/addon.mjs +2 -2
  4. package/dist/capabilities/composer.cap.d.ts +9 -0
  5. package/dist/capabilities/core-blocks.cap.d.ts +64 -0
  6. package/dist/capabilities/device-manager.cap.d.ts +681 -48
  7. package/dist/capabilities/device-state-refresh.cap.d.ts +58 -0
  8. package/dist/capabilities/index.d.ts +3 -1
  9. package/dist/capabilities/power-source.cap.d.ts +10 -0
  10. package/dist/client.js +10 -0
  11. package/dist/client.mjs +10 -0
  12. package/dist/composition/composition-report.d.ts +3 -0
  13. package/dist/composition/composition.d.ts +14 -0
  14. package/dist/composition/power-source-link.d.ts +8 -0
  15. package/dist/device/base-device.d.ts +8 -0
  16. package/dist/device/command-hold.d.ts +6 -0
  17. package/dist/device/device-management.d.ts +4 -0
  18. package/dist/device/identity-links.d.ts +310 -0
  19. package/dist/device/index.d.ts +2 -0
  20. package/dist/device/state-refresh.d.ts +51 -0
  21. package/dist/enums/event-category.d.ts +14 -0
  22. package/dist/enums.js +1 -1
  23. package/dist/enums.mjs +1 -1
  24. package/dist/{event-category-CY27-fF0.mjs → event-category-7P4A3bYA.mjs} +14 -0
  25. package/dist/{event-category-BKxXXxnV.js → event-category-CMA0-jGW.js} +14 -0
  26. package/dist/generated/addon-api.d.ts +57 -0
  27. package/dist/generated/cap-vocabulary.d.ts +1 -1
  28. package/dist/generated/capability-router-map.d.ts +5 -2
  29. package/dist/generated/device-proxy.d.ts +3 -1
  30. package/dist/generated/device-scoped-caps.d.ts +1 -1
  31. package/dist/generated/method-access-map.d.ts +1 -1
  32. package/dist/generated/method-device-selectors.d.ts +2 -2
  33. package/dist/generated/system-proxy.d.ts +1 -1
  34. package/dist/{implemented-methods-k3KProJd.mjs → implemented-methods-DXeNAPAS.mjs} +11 -2
  35. package/dist/{implemented-methods-BarLh7tc.js → implemented-methods-Dj_2fX8-.js} +16 -1
  36. package/dist/index.d.ts +3 -0
  37. package/dist/index.js +442 -12
  38. package/dist/index.mjs +416 -13
  39. package/dist/node.js +1 -1
  40. package/dist/node.mjs +1 -1
  41. package/dist/{sleep-D2Ny6tvi.js → sleep-Bgzv_TCG.js} +23 -3
  42. package/dist/{sleep-dgC2VKW4.mjs → sleep-C9eelFbV.mjs} +23 -3
  43. package/package.json +1 -1
package/dist/node.js CHANGED
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  }) : target, mod));
23
23
  //#endregion
24
24
  const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
25
- const require_implemented_methods = require("./implemented-methods-BarLh7tc.js");
25
+ const require_implemented_methods = require("./implemented-methods-Dj_2fX8-.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
28
28
  node_fs = __toESM(node_fs);
package/dist/node.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { s as errMsg } from "./composed-stable-id-BNTaDZEh.mjs";
2
- import { a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegDownloadUrl, er as FFMPEG_PATH_ENV, fr as buildFfmpegArgs, gr as isSoftwareDecode, ir as getFfmpegArtifact, nr as ffmpegBinaryName, or as canonicalHash, rr as FFMPEG_RELEASE, sr as Fmp4BoxSplitter, t as implementedMethodsOf, tr as chooseFfmpegBinary, z as compositionSourceKey } from "./implemented-methods-k3KProJd.mjs";
2
+ import { B as compositionSourceKey, _r as isSoftwareDecode, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegArtifact, cr as Fmp4BoxSplitter, ir as FFMPEG_RELEASE, nr as chooseFfmpegBinary, or as getFfmpegDownloadUrl, pr as buildFfmpegArgs, rr as ffmpegBinaryName, sr as canonicalHash, t as implementedMethodsOf, tr as FFMPEG_PATH_ENV } from "./implemented-methods-DXeNAPAS.mjs";
3
3
  import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
4
4
  import * as fs from "node:fs";
5
5
  import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-BKxXXxnV.js");
1
+ const require_event_category = require("./event-category-CMA0-jGW.js");
2
2
  const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
@@ -7985,7 +7985,7 @@ var MODEL_FORMATS = [
7985
7985
  //#region src/generated/cap-vocabulary.ts
7986
7986
  /**
7987
7987
  * THE cap vocabulary (D920), projected from the declarations of every
7988
- * `*.cap.ts` (D1050): 213 caps (111 device, 102 system).
7988
+ * `*.cap.ts` (D1050): 214 caps (112 device, 102 system).
7989
7989
  * Device caps in their declared picker order, then system caps by name.
7990
7990
  */
7991
7991
  var CAP_VOCABULARY = {
@@ -14904,6 +14904,17 @@ var CAP_VOCABULARY = {
14904
14904
  },
14905
14905
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
14906
14906
  },
14907
+ "device-state-refresh": {
14908
+ scope: "device",
14909
+ noun: {
14910
+ en: "State refresh",
14911
+ it: "Aggiornamento dello stato"
14912
+ },
14913
+ notOperatorFacing: {
14914
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
14915
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
14916
+ }
14917
+ },
14907
14918
  "recording": {
14908
14919
  scope: "device",
14909
14920
  noun: {
@@ -18378,6 +18389,7 @@ var CAP_NAMES = Object.freeze([
18378
18389
  "device-removal-hook",
18379
18390
  "device-runs",
18380
18391
  "device-state",
18392
+ "device-state-refresh",
18381
18393
  "device-status",
18382
18394
  "device-transitions",
18383
18395
  "dishwasher",
@@ -21526,6 +21538,10 @@ function createDeviceProxy(api, binding, opts) {
21526
21538
  getRun: (input, options) => dispatch("device-runs", "deviceRuns", "getRun", "query", input, void 0, options),
21527
21539
  getCurrentRun: (input, options) => dispatch("device-runs", "deviceRuns", "getCurrentRun", "query", input, void 0, options)
21528
21540
  };
21541
+ const deviceStateRefreshInterface = {
21542
+ refresh: (input, options) => dispatch("device-state-refresh", "deviceStateRefresh", "refresh", "mutation", input, void 0, options),
21543
+ resubscribe: (input, options) => dispatch("device-state-refresh", "deviceStateRefresh", "resubscribe", "mutation", input, void 0, options)
21544
+ };
21529
21545
  const deviceStatusInterface = { getStatus: (input, options) => dispatch("device-status", "deviceStatus", "getStatus", "query", input, void 0, options) };
21530
21546
  const deviceTransitionsInterface = {
21531
21547
  listTransitions: (input, options) => dispatch("device-transitions", "deviceTransitions", "listTransitions", "query", input, void 0, options),
@@ -22061,6 +22077,8 @@ function createDeviceProxy(api, binding, opts) {
22061
22077
  applyInitialMeta: (input, options) => dispatchSystem("deviceManager", "applyInitialMeta", "mutation", input, void 0, options),
22062
22078
  setMetadata: (input, options) => dispatchSystem("deviceManager", "setMetadata", "mutation", input, void 0, options),
22063
22079
  setIdentifiers: (input, options) => dispatchSystem("deviceManager", "setIdentifiers", "mutation", input, void 0, options),
22080
+ setAttachedIdentifiers: (input, options) => dispatchSystem("deviceManager", "setAttachedIdentifiers", "mutation", input, void 0, options),
22081
+ listIdentityLinks: (input, options) => dispatchSystem("deviceManager", "listIdentityLinks", "query", input, void 0, options),
22064
22082
  setDisabled: (input, options) => dispatchSystem("deviceManager", "setDisabled", "mutation", input, void 0, options),
22065
22083
  getDevice: (input, options) => dispatchSystem("deviceManager", "getDevice", "query", input, void 0, options),
22066
22084
  getLinkedDevices: (input, options) => dispatchSystem("deviceManager", "getLinkedDevices", "query", input, void 0, options),
@@ -22309,6 +22327,7 @@ function createDeviceProxy(api, binding, opts) {
22309
22327
  ...bound("device-extension") ? { deviceExtension: deviceExtensionInterface } : {},
22310
22328
  ...bound("device-ops") ? { deviceOps: deviceOpsInterface } : {},
22311
22329
  ...bound("device-runs") ? { deviceRuns: deviceRunsInterface } : {},
22330
+ ...bound("device-state-refresh") ? { deviceStateRefresh: deviceStateRefreshInterface } : {},
22312
22331
  ...bound("device-status") ? { deviceStatus: deviceStatusInterface } : {},
22313
22332
  ...bound("device-transitions") ? { deviceTransitions: deviceTransitionsInterface } : {},
22314
22333
  ...bound("dishwasher") ? { dishwasher: dishwasherInterface } : {},
@@ -22422,7 +22441,7 @@ function createDeviceProxy(api, binding, opts) {
22422
22441
  * can answer "may a rule actuate this?" without importing the schema barrel
22423
22442
  * (~144MB RSS per runner, D28).
22424
22443
  *
22425
- * Coverage: 111 device-scoped capabilities.
22444
+ * Coverage: 112 device-scoped capabilities.
22426
22445
  */
22427
22446
  var DEVICE_SCOPED_CAPS = new Set([
22428
22447
  "accessories",
@@ -22454,6 +22473,7 @@ var DEVICE_SCOPED_CAPS = new Set([
22454
22473
  "device-extension",
22455
22474
  "device-ops",
22456
22475
  "device-runs",
22476
+ "device-state-refresh",
22457
22477
  "device-status",
22458
22478
  "device-transitions",
22459
22479
  "dishwasher",
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-CY27-fF0.mjs";
1
+ import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
2
2
  import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-BNTaDZEh.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
@@ -7985,7 +7985,7 @@ var MODEL_FORMATS = [
7985
7985
  //#region src/generated/cap-vocabulary.ts
7986
7986
  /**
7987
7987
  * THE cap vocabulary (D920), projected from the declarations of every
7988
- * `*.cap.ts` (D1050): 213 caps (111 device, 102 system).
7988
+ * `*.cap.ts` (D1050): 214 caps (112 device, 102 system).
7989
7989
  * Device caps in their declared picker order, then system caps by name.
7990
7990
  */
7991
7991
  var CAP_VOCABULARY = {
@@ -14904,6 +14904,17 @@ var CAP_VOCABULARY = {
14904
14904
  },
14905
14905
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
14906
14906
  },
14907
+ "device-state-refresh": {
14908
+ scope: "device",
14909
+ noun: {
14910
+ en: "State refresh",
14911
+ it: "Aggiornamento dello stato"
14912
+ },
14913
+ notOperatorFacing: {
14914
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
14915
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
14916
+ }
14917
+ },
14907
14918
  "recording": {
14908
14919
  scope: "device",
14909
14920
  noun: {
@@ -18378,6 +18389,7 @@ var CAP_NAMES = Object.freeze([
18378
18389
  "device-removal-hook",
18379
18390
  "device-runs",
18380
18391
  "device-state",
18392
+ "device-state-refresh",
18381
18393
  "device-status",
18382
18394
  "device-transitions",
18383
18395
  "dishwasher",
@@ -21526,6 +21538,10 @@ function createDeviceProxy(api, binding, opts) {
21526
21538
  getRun: (input, options) => dispatch("device-runs", "deviceRuns", "getRun", "query", input, void 0, options),
21527
21539
  getCurrentRun: (input, options) => dispatch("device-runs", "deviceRuns", "getCurrentRun", "query", input, void 0, options)
21528
21540
  };
21541
+ const deviceStateRefreshInterface = {
21542
+ refresh: (input, options) => dispatch("device-state-refresh", "deviceStateRefresh", "refresh", "mutation", input, void 0, options),
21543
+ resubscribe: (input, options) => dispatch("device-state-refresh", "deviceStateRefresh", "resubscribe", "mutation", input, void 0, options)
21544
+ };
21529
21545
  const deviceStatusInterface = { getStatus: (input, options) => dispatch("device-status", "deviceStatus", "getStatus", "query", input, void 0, options) };
21530
21546
  const deviceTransitionsInterface = {
21531
21547
  listTransitions: (input, options) => dispatch("device-transitions", "deviceTransitions", "listTransitions", "query", input, void 0, options),
@@ -22061,6 +22077,8 @@ function createDeviceProxy(api, binding, opts) {
22061
22077
  applyInitialMeta: (input, options) => dispatchSystem("deviceManager", "applyInitialMeta", "mutation", input, void 0, options),
22062
22078
  setMetadata: (input, options) => dispatchSystem("deviceManager", "setMetadata", "mutation", input, void 0, options),
22063
22079
  setIdentifiers: (input, options) => dispatchSystem("deviceManager", "setIdentifiers", "mutation", input, void 0, options),
22080
+ setAttachedIdentifiers: (input, options) => dispatchSystem("deviceManager", "setAttachedIdentifiers", "mutation", input, void 0, options),
22081
+ listIdentityLinks: (input, options) => dispatchSystem("deviceManager", "listIdentityLinks", "query", input, void 0, options),
22064
22082
  setDisabled: (input, options) => dispatchSystem("deviceManager", "setDisabled", "mutation", input, void 0, options),
22065
22083
  getDevice: (input, options) => dispatchSystem("deviceManager", "getDevice", "query", input, void 0, options),
22066
22084
  getLinkedDevices: (input, options) => dispatchSystem("deviceManager", "getLinkedDevices", "query", input, void 0, options),
@@ -22309,6 +22327,7 @@ function createDeviceProxy(api, binding, opts) {
22309
22327
  ...bound("device-extension") ? { deviceExtension: deviceExtensionInterface } : {},
22310
22328
  ...bound("device-ops") ? { deviceOps: deviceOpsInterface } : {},
22311
22329
  ...bound("device-runs") ? { deviceRuns: deviceRunsInterface } : {},
22330
+ ...bound("device-state-refresh") ? { deviceStateRefresh: deviceStateRefreshInterface } : {},
22312
22331
  ...bound("device-status") ? { deviceStatus: deviceStatusInterface } : {},
22313
22332
  ...bound("device-transitions") ? { deviceTransitions: deviceTransitionsInterface } : {},
22314
22333
  ...bound("dishwasher") ? { dishwasher: dishwasherInterface } : {},
@@ -22422,7 +22441,7 @@ function createDeviceProxy(api, binding, opts) {
22422
22441
  * can answer "may a rule actuate this?" without importing the schema barrel
22423
22442
  * (~144MB RSS per runner, D28).
22424
22443
  *
22425
- * Coverage: 111 device-scoped capabilities.
22444
+ * Coverage: 112 device-scoped capabilities.
22426
22445
  */
22427
22446
  var DEVICE_SCOPED_CAPS = new Set([
22428
22447
  "accessories",
@@ -22454,6 +22473,7 @@ var DEVICE_SCOPED_CAPS = new Set([
22454
22473
  "device-extension",
22455
22474
  "device-ops",
22456
22475
  "device-runs",
22476
+ "device-state-refresh",
22457
22477
  "device-status",
22458
22478
  "device-transitions",
22459
22479
  "dishwasher",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.592",
3
+ "version": "1.2.594",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",