@camstack/types 1.2.536 → 1.2.538

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 (37) hide show
  1. package/CHANGELOG.md +17 -5
  2. package/dist/addon.d.ts +3 -2
  3. package/dist/addon.js +7 -4
  4. package/dist/addon.mjs +3 -3
  5. package/dist/audit/command-origin-claim.d.ts +79 -0
  6. package/dist/audit/device-transition.d.ts +2 -2
  7. package/dist/automation/action.d.ts +4 -0
  8. package/dist/automation/index.d.ts +0 -1
  9. package/dist/automation/recipe.d.ts +9 -18
  10. package/dist/capabilities/action-source.cap.d.ts +1 -0
  11. package/dist/capabilities/actions.cap.d.ts +7 -0
  12. package/dist/capabilities/device-manager.cap.d.ts +1 -0
  13. package/dist/capabilities/index.d.ts +1 -1
  14. package/dist/capabilities/notification-rules.cap.d.ts +79 -1897
  15. package/dist/client.d.ts +1 -1
  16. package/dist/client.js +70 -985
  17. package/dist/client.mjs +70 -986
  18. package/dist/{device-type-BfvqqzRp.js → composed-stable-id-C3J6LxC9.js} +14 -0
  19. package/dist/{device-type-DTTZKB2I.mjs → composed-stable-id-DLcPInGv.mjs} +9 -1
  20. package/dist/composition/composed-stable-id.d.ts +6 -0
  21. package/dist/composition/composition.d.ts +2 -2
  22. package/dist/{composition-C6TZGqUb.mjs → composition-BFJq1Y88.mjs} +2 -4
  23. package/dist/{composition-BxalDSTt.js → composition-BcVAbtBc.js} +4 -12
  24. package/dist/device/container-primary-child.d.ts +37 -5
  25. package/dist/device/device-context.d.ts +9 -2
  26. package/dist/generated/addon-api.d.ts +0 -35
  27. package/dist/generated/system-proxy.d.ts +1 -1
  28. package/dist/index.d.ts +2 -3
  29. package/dist/index.js +973 -1075
  30. package/dist/index.mjs +120 -220
  31. package/dist/node.js +6 -6
  32. package/dist/node.mjs +2 -2
  33. package/dist/notification/alarm-membership.d.ts +12 -11
  34. package/dist/{sleep-CCAQ_PEp.js → sleep-DgCXXFc3.js} +100 -45
  35. package/dist/{sleep-DnVqHJc4.mjs → sleep-VrfKAAGN.mjs} +54 -11
  36. package/package.json +1 -1
  37. package/dist/automation/nc-action-target.d.ts +0 -21
package/dist/node.js CHANGED
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_device_type = require("./device-type-BfvqqzRp.js");
25
- const require_composition = require("./composition-BxalDSTt.js");
24
+ const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
25
+ const require_composition = require("./composition-BcVAbtBc.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
28
28
  node_fs = __toESM(node_fs);
@@ -812,7 +812,7 @@ async function installPythonPackages(pythonPath, packages, logger) {
812
812
  });
813
813
  logger.info("Python packages installed successfully");
814
814
  } catch (err) {
815
- logger.error("Failed to install Python packages", { meta: { error: require_device_type.errMsg(err) } });
815
+ logger.error("Failed to install Python packages", { meta: { error: require_composed_stable_id.errMsg(err) } });
816
816
  throw err;
817
817
  }
818
818
  }
@@ -862,7 +862,7 @@ async function installPythonRequirements(pythonPath, requirementsFile, logger) {
862
862
  } catch (err) {
863
863
  logger.error("Failed to install Python requirements", { meta: {
864
864
  requirementsFile,
865
- error: require_device_type.errMsg(err)
865
+ error: require_composed_stable_id.errMsg(err)
866
866
  } });
867
867
  throw err;
868
868
  }
@@ -1253,7 +1253,7 @@ var Fmp4FragmentChild = class {
1253
1253
  meta: {
1254
1254
  sourceId: this.args.sourceId,
1255
1255
  decodeHwAccel: requested,
1256
- error: require_device_type.errMsg(err)
1256
+ error: require_composed_stable_id.errMsg(err)
1257
1257
  }
1258
1258
  });
1259
1259
  this.killChild();
@@ -1432,7 +1432,7 @@ var Fmp4FragmentChild = class {
1432
1432
  tags: { deviceId: this.args.deviceId },
1433
1433
  meta: {
1434
1434
  sourceId: this.args.sourceId,
1435
- error: require_device_type.errMsg(err)
1435
+ error: require_composed_stable_id.errMsg(err)
1436
1436
  }
1437
1437
  });
1438
1438
  }
package/dist/node.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { o as errMsg } from "./device-type-DTTZKB2I.mjs";
2
- import { Fn as getFfmpegArtifact, In as getFfmpegDownloadUrl, Ln as canonicalHash, Mn as chooseFfmpegBinary, Nn as ffmpegBinaryName, Pn as FFMPEG_RELEASE, R as compositionSourceKey, Rn as Fmp4BoxSplitter, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, jn as FFMPEG_PATH_ENV, qn as isSoftwareDecode } from "./composition-C6TZGqUb.mjs";
1
+ import { s as errMsg } from "./composed-stable-id-DLcPInGv.mjs";
2
+ import { An as FFMPEG_PATH_ENV, Fn as getFfmpegDownloadUrl, Hn as buildFfmpegArgs, In as canonicalHash, Kn as isSoftwareDecode, L as compositionSourceKey, Ln as Fmp4BoxSplitter, Mn as ffmpegBinaryName, Nn as FFMPEG_RELEASE, Pn as getFfmpegArtifact, i as CUSTOMIZATION_BLOCK_NAME_PREFIX, jn as chooseFfmpegBinary } from "./composition-BFJq1Y88.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";
@@ -10,13 +10,14 @@
10
10
  * fires, and the operator was never told. One predicate, so the engine and the
11
11
  * warning cannot disagree about which rules are the alarm.
12
12
  *
13
- * Structural inputs (conditions + the ENABLED on-match bindings), so the
13
+ * Structural inputs (conditions + the ENABLED on-match Action ids), so the
14
14
  * admin's form state and the engine's rule both answer without a cast.
15
- * Sequence bindings need {@link NcAlarmMembershipSubject.sequenceActionsOf} —
16
- * without it a sequence-ref cannot prove membership (fail closed for the
15
+ * An Action id needs {@link NcAlarmMembershipSubject.actionStepsOf} —
16
+ * without it an Action cannot prove membership (fail closed for the
17
17
  * opening-edge refusal: better a closing notification than a silent open).
18
18
  */
19
- import type { NcConditions, NcRuleAction, NcRuleActions } from '../capabilities/notification-rules.cap.js';
19
+ import type { ActionStep } from '../automation/recipe.js';
20
+ import type { NcConditions, NcRuleActions } from '../capabilities/notification-rules.cap.js';
20
21
  /**
21
22
  * The sensor-event kinds that are OPENINGS to the alarm — the keys of the
22
23
  * engine's opening table (`alarm-openings.ts`, which is checked against this
@@ -37,24 +38,24 @@ export interface NcAlarmMembershipSubject {
37
38
  /** The rule's actions block. Absent = no actuation. */
38
39
  readonly actions?: NcRuleActions;
39
40
  /**
40
- * Resolve a shared sequence's steps. Required when an `onTrigger` binding is
41
- * a sequence ref — without it that binding cannot prove membership.
41
+ * Resolve an Action's steps. Required when the rule has an `onTrigger`
42
+ * Action — without it that Action cannot prove membership.
42
43
  */
43
- readonly sequenceActionsOf?: (sequenceId: string) => readonly NcRuleAction[] | undefined;
44
+ readonly actionStepsOf?: (actionId: string) => readonly ActionStep[] | undefined;
44
45
  }
45
46
  /** True when the rule's deviceState gate names any `armed_*` word. */
46
47
  export declare function ruleGatedOnArmedState(rule: NcAlarmMembershipSubject): boolean;
47
48
  /**
48
49
  * A rule belongs to the alarm when its `deviceState` gate names ANY device's
49
- * `armed_*` word, or an on-match binding pulls the alarm panel's trigger
50
- * (D630). Button-only sequences do NOT count — they are not an automatic
50
+ * `armed_*` word, or an on-match Action pulls the alarm panel's trigger
51
+ * (D630). Button-only Actions do NOT count — they are not an automatic
51
52
  * escalation.
52
53
  */
53
54
  export declare function ruleBelongsToAlarm(rule: NcAlarmMembershipSubject): boolean;
54
55
  /**
55
56
  * A rule gated on `armed_*` auto-triggers the CamStack `alarm-panel` on match
56
- * — no `onTrigger` sequence required. Sirens are never part of this path.
57
- * An explicit `alarm-panel.trigger` binding without an armed gate stays
57
+ * — no `onTrigger` Action required. Sirens are never part of this path.
58
+ * An explicit `alarm-panel.trigger` step without an armed gate stays
58
59
  * explicit actuation only ({@link ruleBelongsToAlarm}).
59
60
  */
60
61
  export declare function ruleAutoTriggersAlarm(rule: NcAlarmMembershipSubject): boolean;
@@ -1,5 +1,5 @@
1
1
  const require_event_category = require("./event-category-BC4RRerT.js");
2
- const require_device_type = require("./device-type-BfvqqzRp.js");
2
+ const require_composed_stable_id = require("./composed-stable-id-C3J6LxC9.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -888,7 +888,7 @@ async function guarded(work) {
888
888
  } catch (err) {
889
889
  return {
890
890
  kind: "failed",
891
- error: require_device_type.errMsg(err)
891
+ error: require_composed_stable_id.errMsg(err)
892
892
  };
893
893
  }
894
894
  }
@@ -919,7 +919,7 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
919
919
  metas: migrations.map((m) => m.meta)
920
920
  });
921
921
  } catch (err) {
922
- log.error("the migration engine refused or could not take this addon catalogue — none ran", { meta: { error: require_device_type.errMsg(err) } });
922
+ log.error("the migration engine refused or could not take this addon catalogue — none ran", { meta: { error: require_composed_stable_id.errMsg(err) } });
923
923
  return {
924
924
  ...NOT_RUN,
925
925
  blockOwner: migrations.filter((m) => m.meta.onFailure === "block-owner").map((m) => m.meta.id)
@@ -974,7 +974,7 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
974
974
  } catch (err) {
975
975
  log.error("migration could not be completed with the engine", {
976
976
  tags,
977
- meta: { error: require_device_type.errMsg(err) }
977
+ meta: { error: require_composed_stable_id.errMsg(err) }
978
978
  });
979
979
  failed.push(step.id);
980
980
  }
@@ -6608,16 +6608,59 @@ function makeInMemoryRecords(owner = "spec", options = {}) {
6608
6608
  }
6609
6609
  //#endregion
6610
6610
  //#region src/audit/command-origin-claim.ts
6611
+ /**
6612
+ * The match a notification rule fired on (D705). Carried as a command origin so an
6613
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
6614
+ * anonymous press (D735). The same fields a rule fire ref freezes.
6615
+ */
6616
+ var RuleFireOriginSchema = zod.z.object({
6617
+ ruleId: zod.z.string(),
6618
+ ruleName: zod.z.string(),
6619
+ deviceId: zod.z.number().int(),
6620
+ sourceDeviceId: zod.z.number().int().optional(),
6621
+ recordId: zod.z.string(),
6622
+ timestamp: zod.z.number(),
6623
+ trackId: zod.z.string().optional(),
6624
+ eventId: zod.z.string().optional(),
6625
+ className: zod.z.string().optional(),
6626
+ label: zod.z.string().optional(),
6627
+ zones: zod.z.array(zod.z.string()).optional(),
6628
+ confidence: zod.z.number().optional(),
6629
+ sensorChange: zod.z.object({
6630
+ name: zod.z.string(),
6631
+ kind: zod.z.string(),
6632
+ state: zod.z.string()
6633
+ }).optional(),
6634
+ extraStills: zod.z.array(zod.z.object({
6635
+ ownerId: zod.z.string(),
6636
+ cameraId: zod.z.number().int()
6637
+ })).optional()
6638
+ });
6611
6639
  /** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
6612
- var CommandOriginClaimSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
6613
- kind: zod.z.literal("action"),
6614
- actionId: zod.z.string(),
6615
- runId: zod.z.string(),
6616
- automationId: zod.z.string().optional()
6617
- }), zod.z.object({
6618
- kind: zod.z.literal("scheduler"),
6619
- schedulerId: zod.z.string()
6620
- })]);
6640
+ var CommandOriginClaimSchema = zod.z.discriminatedUnion("kind", [
6641
+ zod.z.object({
6642
+ kind: zod.z.literal("action"),
6643
+ actionId: zod.z.string(),
6644
+ runId: zod.z.string(),
6645
+ automationId: zod.z.string().optional(),
6646
+ /** The rule fire that started this run, when one did (D705). */
6647
+ ruleFire: RuleFireOriginSchema.optional()
6648
+ }),
6649
+ zod.z.object({
6650
+ kind: zod.z.literal("scheduler"),
6651
+ schedulerId: zod.z.string()
6652
+ }),
6653
+ zod.z.object({
6654
+ kind: zod.z.literal("rule"),
6655
+ fire: RuleFireOriginSchema
6656
+ })
6657
+ ]);
6658
+ /** The rule fire a claim carries, if it carries one. */
6659
+ function ruleFireOfClaim(claim) {
6660
+ if (claim === void 0) return void 0;
6661
+ if (claim.kind === "rule") return claim.fire;
6662
+ if (claim.kind === "action") return claim.ruleFire;
6663
+ }
6621
6664
  //#endregion
6622
6665
  //#region src/audit/device-transition.ts
6623
6666
  /**
@@ -7911,7 +7954,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7911
7954
  events: { onStateChanged: { notOperatorFacing: "the `on` state trigger phrases both edges of this change" } },
7912
7955
  overrides: {
7913
7956
  byType: {
7914
- [require_device_type.DeviceType.Siren]: {
7957
+ [require_composed_stable_id.DeviceType.Siren]: {
7915
7958
  actions: {
7916
7959
  "switch.on": {
7917
7960
  label: t("Sound", "Fai suonare"),
@@ -7931,7 +7974,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7931
7974
  icon: "siren"
7932
7975
  } }
7933
7976
  },
7934
- [require_device_type.DeviceType.Light]: {
7977
+ [require_composed_stable_id.DeviceType.Light]: {
7935
7978
  actions: {
7936
7979
  "switch.on": { icon: "lightbulb" },
7937
7980
  "switch.off": { icon: "lightbulb-off" }
@@ -7940,7 +7983,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7940
7983
  }
7941
7984
  },
7942
7985
  byRole: {
7943
- [require_device_type.DeviceRole.Siren]: {
7986
+ [require_composed_stable_id.DeviceRole.Siren]: {
7944
7987
  actions: {
7945
7988
  "switch.on": {
7946
7989
  label: t("Sound", "Fai suonare"),
@@ -7960,21 +8003,21 @@ var ACTUATOR_CAP_VOCABULARY = {
7960
8003
  icon: "siren"
7961
8004
  } }
7962
8005
  },
7963
- [require_device_type.DeviceRole.Floodlight]: {
8006
+ [require_composed_stable_id.DeviceRole.Floodlight]: {
7964
8007
  actions: {
7965
8008
  "switch.on": { icon: "lightbulb" },
7966
8009
  "switch.off": { icon: "lightbulb-off" }
7967
8010
  },
7968
8011
  state: { on: { icon: "lightbulb" } }
7969
8012
  },
7970
- [require_device_type.DeviceRole.Spotlight]: {
8013
+ [require_composed_stable_id.DeviceRole.Spotlight]: {
7971
8014
  actions: {
7972
8015
  "switch.on": { icon: "lightbulb" },
7973
8016
  "switch.off": { icon: "lightbulb-off" }
7974
8017
  },
7975
8018
  state: { on: { icon: "lightbulb" } }
7976
8019
  },
7977
- [require_device_type.DeviceRole.Chime]: { actions: {
8020
+ [require_composed_stable_id.DeviceRole.Chime]: { actions: {
7978
8021
  "switch.on": {
7979
8022
  label: t("Enable chime", "Attiva il campanello"),
7980
8023
  phrase: t("Enable the chime {device}", "Attiva il campanello {device}"),
@@ -7986,7 +8029,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7986
8029
  icon: "bell-off"
7987
8030
  }
7988
8031
  } },
7989
- [require_device_type.DeviceRole.PirSensor]: { actions: {
8032
+ [require_composed_stable_id.DeviceRole.PirSensor]: { actions: {
7990
8033
  "switch.on": {
7991
8034
  label: t("Arm PIR", "Attiva il PIR"),
7992
8035
  phrase: t("Arm the PIR sensor {device}", "Attiva il sensore PIR {device}"),
@@ -7998,7 +8041,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7998
8041
  icon: "radar"
7999
8042
  }
8000
8043
  } },
8001
- [require_device_type.DeviceRole.Nightvision]: { actions: {
8044
+ [require_composed_stable_id.DeviceRole.Nightvision]: { actions: {
8002
8045
  "switch.on": {
8003
8046
  label: t("Night vision on", "Visione notturna attiva"),
8004
8047
  phrase: t("Turn on night vision on {device}", "Attiva la visione notturna di {device}"),
@@ -8010,7 +8053,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8010
8053
  icon: "sun"
8011
8054
  }
8012
8055
  } },
8013
- [require_device_type.DeviceRole.PrivacyMask]: { actions: {
8056
+ [require_composed_stable_id.DeviceRole.PrivacyMask]: { actions: {
8014
8057
  "switch.on": {
8015
8058
  label: t("Privacy on", "Privacy attiva"),
8016
8059
  phrase: t("Turn on privacy on {device}", "Attiva la privacy su {device}"),
@@ -8022,7 +8065,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8022
8065
  icon: "eye"
8023
8066
  }
8024
8067
  } },
8025
- [require_device_type.DeviceRole.Autotrack]: { actions: {
8068
+ [require_composed_stable_id.DeviceRole.Autotrack]: { actions: {
8026
8069
  "switch.on": {
8027
8070
  label: t("Autotrack on", "Inseguimento attivo"),
8028
8071
  phrase: t("Start autotracking on {device}", "Attiva l’inseguimento su {device}"),
@@ -8034,7 +8077,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8034
8077
  icon: "crosshair"
8035
8078
  }
8036
8079
  } },
8037
- [require_device_type.DeviceRole.Outlet]: {
8080
+ [require_composed_stable_id.DeviceRole.Outlet]: {
8038
8081
  actions: {
8039
8082
  "switch.on": { icon: "plug-zap" },
8040
8083
  "switch.off": { icon: "plug" }
@@ -8304,7 +8347,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8304
8347
  icon: "blinds"
8305
8348
  }],
8306
8349
  overrides: { byRole: {
8307
- [require_device_type.DeviceRole.CoverGarage]: { actions: {
8350
+ [require_composed_stable_id.DeviceRole.CoverGarage]: { actions: {
8308
8351
  "cover.open": {
8309
8352
  phrase: t("Open the garage door {device}", "Apri il garage {device}"),
8310
8353
  icon: "warehouse"
@@ -8314,7 +8357,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8314
8357
  icon: "warehouse"
8315
8358
  }
8316
8359
  } },
8317
- [require_device_type.DeviceRole.CoverGate]: { actions: {
8360
+ [require_composed_stable_id.DeviceRole.CoverGate]: { actions: {
8318
8361
  "cover.open": {
8319
8362
  phrase: t("Open the gate {device}", "Apri il cancello {device}"),
8320
8363
  icon: "fence"
@@ -8324,7 +8367,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8324
8367
  icon: "fence"
8325
8368
  }
8326
8369
  } },
8327
- [require_device_type.DeviceRole.CoverDoor]: { actions: {
8370
+ [require_composed_stable_id.DeviceRole.CoverDoor]: { actions: {
8328
8371
  "cover.open": {
8329
8372
  phrase: t("Open the door {device}", "Apri la porta {device}"),
8330
8373
  icon: "door-open"
@@ -8334,7 +8377,7 @@ var ACTUATOR_CAP_VOCABULARY = {
8334
8377
  icon: "door-closed"
8335
8378
  }
8336
8379
  } },
8337
- [require_device_type.DeviceRole.CoverWindow]: { actions: {
8380
+ [require_composed_stable_id.DeviceRole.CoverWindow]: { actions: {
8338
8381
  "cover.open": {
8339
8382
  phrase: t("Open the window {device}", "Apri la finestra {device}"),
8340
8383
  icon: "app-window"
@@ -8344,11 +8387,11 @@ var ACTUATOR_CAP_VOCABULARY = {
8344
8387
  icon: "app-window"
8345
8388
  }
8346
8389
  } },
8347
- [require_device_type.DeviceRole.CoverShutter]: { actions: {
8390
+ [require_composed_stable_id.DeviceRole.CoverShutter]: { actions: {
8348
8391
  "cover.open": { phrase: t("Raise the shutter {device}", "Alza la tapparella {device}") },
8349
8392
  "cover.close": { phrase: t("Lower the shutter {device}", "Abbassa la tapparella {device}") }
8350
8393
  } },
8351
- [require_device_type.DeviceRole.CoverAwning]: { actions: {
8394
+ [require_composed_stable_id.DeviceRole.CoverAwning]: { actions: {
8352
8395
  "cover.open": { phrase: t("Extend the awning {device}", "Apri la tenda da sole {device}") },
8353
8396
  "cover.close": { phrase: t("Retract the awning {device}", "Chiudi la tenda da sole {device}") }
8354
8397
  } }
@@ -10812,7 +10855,7 @@ var APPLIANCE_CAP_VOCABULARY = {
10812
10855
  }
10813
10856
  },
10814
10857
  overrides: { byType: {
10815
- [require_device_type.DeviceType.Washer]: {
10858
+ [require_composed_stable_id.DeviceType.Washer]: {
10816
10859
  state: { running: {
10817
10860
  whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
10818
10861
  whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
@@ -10822,7 +10865,7 @@ var APPLIANCE_CAP_VOCABULARY = {
10822
10865
  onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
10823
10866
  }
10824
10867
  },
10825
- [require_device_type.DeviceType.Dryer]: {
10868
+ [require_composed_stable_id.DeviceType.Dryer]: {
10826
10869
  state: { running: {
10827
10870
  whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
10828
10871
  whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
@@ -10832,7 +10875,7 @@ var APPLIANCE_CAP_VOCABULARY = {
10832
10875
  onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
10833
10876
  }
10834
10877
  },
10835
- [require_device_type.DeviceType.Dishwasher]: {
10878
+ [require_composed_stable_id.DeviceType.Dishwasher]: {
10836
10879
  state: { running: {
10837
10880
  whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
10838
10881
  whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
@@ -11691,73 +11734,73 @@ var SENSOR_CAP_VOCABULARY = {
11691
11734
  icon: "toggle-right"
11692
11735
  }],
11693
11736
  overrides: { byRole: {
11694
- [require_device_type.DeviceRole.MotionSensor]: { state: { on: {
11737
+ [require_composed_stable_id.DeviceRole.MotionSensor]: { state: { on: {
11695
11738
  label: t("Motion", "Movimento"),
11696
11739
  whenTrue: t("When {device} detects motion", "Quando {device} rileva movimento"),
11697
11740
  whenFalse: t("When motion clears on {device}", "Quando il movimento su {device} cessa"),
11698
11741
  icon: "activity"
11699
11742
  } } },
11700
- [require_device_type.DeviceRole.ContactSensor]: { state: { on: {
11743
+ [require_composed_stable_id.DeviceRole.ContactSensor]: { state: { on: {
11701
11744
  label: t("Open", "Aperto"),
11702
11745
  whenTrue: t("When {device} opens", "Quando {device} si apre"),
11703
11746
  whenFalse: t("When {device} closes", "Quando {device} si chiude"),
11704
11747
  icon: "door-open"
11705
11748
  } } },
11706
- [require_device_type.DeviceRole.LeakSensor]: { state: { on: {
11749
+ [require_composed_stable_id.DeviceRole.LeakSensor]: { state: { on: {
11707
11750
  label: t("Leak", "Perdita"),
11708
11751
  whenTrue: t("When {device} detects a leak", "Quando {device} rileva una perdita"),
11709
11752
  whenFalse: t("When {device} is dry again", "Quando {device} torna asciutto"),
11710
11753
  icon: "droplets"
11711
11754
  } } },
11712
- [require_device_type.DeviceRole.SmokeSensor]: { state: { on: {
11755
+ [require_composed_stable_id.DeviceRole.SmokeSensor]: { state: { on: {
11713
11756
  label: t("Smoke", "Fumo"),
11714
11757
  whenTrue: t("When {device} detects smoke", "Quando {device} rileva fumo"),
11715
11758
  whenFalse: t("When smoke clears on {device}", "Quando il fumo su {device} si dirada"),
11716
11759
  icon: "alarm-smoke"
11717
11760
  } } },
11718
- [require_device_type.DeviceRole.COSensor]: { state: { on: {
11761
+ [require_composed_stable_id.DeviceRole.COSensor]: { state: { on: {
11719
11762
  label: t("Carbon monoxide", "Monossido di carbonio"),
11720
11763
  whenTrue: t("When {device} detects carbon monoxide", "Quando {device} rileva monossido di carbonio"),
11721
11764
  whenFalse: t("When the carbon monoxide clears on {device}", "Quando il monossido su {device} rientra"),
11722
11765
  icon: "cloud-alert"
11723
11766
  } } },
11724
- [require_device_type.DeviceRole.GasSensor]: { state: { on: {
11767
+ [require_composed_stable_id.DeviceRole.GasSensor]: { state: { on: {
11725
11768
  label: t("Gas", "Gas"),
11726
11769
  whenTrue: t("When {device} detects gas", "Quando {device} rileva gas"),
11727
11770
  whenFalse: t("When the gas clears on {device}", "Quando il gas su {device} rientra"),
11728
11771
  icon: "flame"
11729
11772
  } } },
11730
- [require_device_type.DeviceRole.TamperSensor]: { state: { on: {
11773
+ [require_composed_stable_id.DeviceRole.TamperSensor]: { state: { on: {
11731
11774
  label: t("Tampered", "Manomesso"),
11732
11775
  whenTrue: t("When {device} is tampered with", "Quando {device} viene manomesso"),
11733
11776
  whenFalse: t("When the tamper alert on {device} clears", "Quando l’allarme di manomissione di {device} rientra"),
11734
11777
  icon: "shield-alert"
11735
11778
  } } },
11736
- [require_device_type.DeviceRole.VibrationSensor]: { state: { on: {
11779
+ [require_composed_stable_id.DeviceRole.VibrationSensor]: { state: { on: {
11737
11780
  label: t("Vibration", "Vibrazione"),
11738
11781
  whenTrue: t("When {device} vibrates", "Quando {device} vibra"),
11739
11782
  whenFalse: t("When {device} is still again", "Quando {device} torna fermo"),
11740
11783
  icon: "vibrate"
11741
11784
  } } },
11742
- [require_device_type.DeviceRole.ConnectivitySensor]: { state: { on: {
11785
+ [require_composed_stable_id.DeviceRole.ConnectivitySensor]: { state: { on: {
11743
11786
  label: t("Connected", "Connesso"),
11744
11787
  whenTrue: t("When {device} connects", "Quando {device} si connette"),
11745
11788
  whenFalse: t("When {device} disconnects", "Quando {device} si disconnette"),
11746
11789
  icon: "wifi"
11747
11790
  } } },
11748
- [require_device_type.DeviceRole.SoundSensor]: { state: { on: {
11791
+ [require_composed_stable_id.DeviceRole.SoundSensor]: { state: { on: {
11749
11792
  label: t("Sound", "Suono"),
11750
11793
  whenTrue: t("When {device} hears a sound", "Quando {device} sente un suono"),
11751
11794
  whenFalse: t("When {device} is quiet again", "Quando {device} torna silenzioso"),
11752
11795
  icon: "ear"
11753
11796
  } } },
11754
- [require_device_type.DeviceRole.BatterySensor]: { state: { on: {
11797
+ [require_composed_stable_id.DeviceRole.BatterySensor]: { state: { on: {
11755
11798
  label: t("Battery low", "Batteria scarica"),
11756
11799
  whenTrue: t("When the battery of {device} runs low", "Quando la batteria di {device} si scarica"),
11757
11800
  whenFalse: t("When the battery of {device} is fine again", "Quando la batteria di {device} torna a posto"),
11758
11801
  icon: "battery-low"
11759
11802
  } } },
11760
- [require_device_type.DeviceRole.BinaryHelper]: { state: { on: {
11803
+ [require_composed_stable_id.DeviceRole.BinaryHelper]: { state: { on: {
11761
11804
  label: t("On", "Acceso"),
11762
11805
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
11763
11806
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
@@ -17519,6 +17562,12 @@ Object.defineProperty(exports, "RevConflictError", {
17519
17562
  return RevConflictError;
17520
17563
  }
17521
17564
  });
17565
+ Object.defineProperty(exports, "RuleFireOriginSchema", {
17566
+ enumerable: true,
17567
+ get: function() {
17568
+ return RuleFireOriginSchema;
17569
+ }
17570
+ });
17522
17571
  Object.defineProperty(exports, "SCOPED_SETTINGS_SCOPES", {
17523
17572
  enumerable: true,
17524
17573
  get: function() {
@@ -18473,6 +18522,12 @@ Object.defineProperty(exports, "rowsDepsOver", {
18473
18522
  return rowsDepsOver;
18474
18523
  }
18475
18524
  });
18525
+ Object.defineProperty(exports, "ruleFireOfClaim", {
18526
+ enumerable: true,
18527
+ get: function() {
18528
+ return ruleFireOfClaim;
18529
+ }
18530
+ });
18476
18531
  Object.defineProperty(exports, "runAddonMigrations", {
18477
18532
  enumerable: true,
18478
18533
  get: function() {
@@ -1,5 +1,5 @@
1
1
  import { t as EventCategory } from "./event-category-78tcBemo.mjs";
2
- import { i as DeviceType, o as errMsg, r as DeviceRole } from "./device-type-DTTZKB2I.mjs";
2
+ import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-DLcPInGv.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -6608,16 +6608,59 @@ function makeInMemoryRecords(owner = "spec", options = {}) {
6608
6608
  }
6609
6609
  //#endregion
6610
6610
  //#region src/audit/command-origin-claim.ts
6611
+ /**
6612
+ * The match a notification rule fired on (D705). Carried as a command origin so an
6613
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
6614
+ * anonymous press (D735). The same fields a rule fire ref freezes.
6615
+ */
6616
+ var RuleFireOriginSchema = z.object({
6617
+ ruleId: z.string(),
6618
+ ruleName: z.string(),
6619
+ deviceId: z.number().int(),
6620
+ sourceDeviceId: z.number().int().optional(),
6621
+ recordId: z.string(),
6622
+ timestamp: z.number(),
6623
+ trackId: z.string().optional(),
6624
+ eventId: z.string().optional(),
6625
+ className: z.string().optional(),
6626
+ label: z.string().optional(),
6627
+ zones: z.array(z.string()).optional(),
6628
+ confidence: z.number().optional(),
6629
+ sensorChange: z.object({
6630
+ name: z.string(),
6631
+ kind: z.string(),
6632
+ state: z.string()
6633
+ }).optional(),
6634
+ extraStills: z.array(z.object({
6635
+ ownerId: z.string(),
6636
+ cameraId: z.number().int()
6637
+ })).optional()
6638
+ });
6611
6639
  /** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
6612
- var CommandOriginClaimSchema = z.discriminatedUnion("kind", [z.object({
6613
- kind: z.literal("action"),
6614
- actionId: z.string(),
6615
- runId: z.string(),
6616
- automationId: z.string().optional()
6617
- }), z.object({
6618
- kind: z.literal("scheduler"),
6619
- schedulerId: z.string()
6620
- })]);
6640
+ var CommandOriginClaimSchema = z.discriminatedUnion("kind", [
6641
+ z.object({
6642
+ kind: z.literal("action"),
6643
+ actionId: z.string(),
6644
+ runId: z.string(),
6645
+ automationId: z.string().optional(),
6646
+ /** The rule fire that started this run, when one did (D705). */
6647
+ ruleFire: RuleFireOriginSchema.optional()
6648
+ }),
6649
+ z.object({
6650
+ kind: z.literal("scheduler"),
6651
+ schedulerId: z.string()
6652
+ }),
6653
+ z.object({
6654
+ kind: z.literal("rule"),
6655
+ fire: RuleFireOriginSchema
6656
+ })
6657
+ ]);
6658
+ /** The rule fire a claim carries, if it carries one. */
6659
+ function ruleFireOfClaim(claim) {
6660
+ if (claim === void 0) return void 0;
6661
+ if (claim.kind === "rule") return claim.fire;
6662
+ if (claim.kind === "action") return claim.ruleFire;
6663
+ }
6621
6664
  //#endregion
6622
6665
  //#region src/audit/device-transition.ts
6623
6666
  /**
@@ -16847,4 +16890,4 @@ function sleepCancellable(ms, signal) {
16847
16890
  });
16848
16891
  }
16849
16892
  //#endregion
16850
- export { DEVICE_CHILDREN_BATCH_MAX as $, collectHydratedFieldValues as $i, event as $n, RECORD_DELETE_BATCH as $r, displayUnitFor as $t, CAP_ADVANCE_FIELDS as A, RecordUniqueViolationError as Ai, SHARE_VIEW_KINDS as An, resolvedValues as Ar, CAM_PROFILE_ORDER as At, CAP_COMMAND_ORIGIN_CONTEXT_KEY as B, recordsOverMigrationApi as Bi, StoredRecordKindDeclarationSchema as Bn, REMOVE_LEAF as Br, StreamSourceEntrySchema$1 as Bt, auditedFields as C, expandAudioChunkToF32le as Ca, InvalidRecordError as Ci, PEER_BYTES_CHUNK_BYTES as Cn, collectSecretMarkerRefs as Cr, createDebugEmitter as Ct, HF_BASE_URL as D, RecordNotFoundError as Di, PeerBytesTicketSchema as Dn, SCOPED_SETTINGS_SCOPES as Dr, AudioStreamPickSchema as Dt, DEFAULT_TOKEN_EXPIRY as E, RECORDS_ERROR_CODES as Ei, PEER_BYTES_TICKET_TTL_MS as En, transformSecretWrite as Er, AudioChunkFormatSchema as Et, withoutCallerStamp as F, UnknownRecordKindError as Fi, RecordFieldPathSchema as Fn, registrySwitchToBodyId as Fr, DecodedAudioChunkSchema as Ft, readNodePin as G, defineAddonMigrations as Gi, collectZodSecretPaths as Gn, recordSecretCollection as Gr, makeSourceBrokerId as Gt, commandOrigin as H, secretsOverMigrationApi as Hi, declarationsOf as Hn, mapSecretLeaves as Hr, SubscribeAudioChunksInputSchema as Ht, customAction as I, asRecordsError as Ii, RecordIndexSchema as In, registrySwitchToBodyMigration as Ir, FrameHandleSchema as It, PipelineRunResultBridge as J, emitReadiness as Ji, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Jn, RECORD_BATCH_MAX as Jr, DEFAULT_DISPLAY_PREFERENCE as Jt, toNodeId as K, runAddonMigrations as Ki, isZodSecret as Kn, recordSecretRef as Kr, parseProfileBrokerId as Kt, defineCustomActions as L, recordsErrorFromMessage as Li, RecordKindDeclarationSchema as Ln, RecordIntegrationInstances as Lr, ProfileRtspEntrySchema as Lt, CAP_NAMES as M, RevConflictError as Mi, defineEntryKind as Mn, createDurableState as Mr, CamStreamKindSchema as Mt, CAP_STATE_LEAVES as N, TransactRefusedError as Ni, entryBody as Nn, moveRegistrySwitchToBody as Nr, CamStreamResolutionSchema as Nt, HF_REPO as O, RecordSecretUnavailableError as Oi, CALLER_USERNAME_HEADER as On, nodeIdOfScopedKey as Or, BrokerStatsSchema as Ot, CALLER_STAMPED_CAPABILITIES as P, UnindexedFilterError as Pi, EntryDescriptorSchema as Pn, registrySwitchPortsOver as Pr, CameraStreamSchema as Pt, deviceOpsCapability as Q, collectHydratedFieldEntries as Qi, PROVIDER_PIN_FIELD as Qn, RECORD_DEFAULT_MAX_DATA_BYTES as Qr, baseUnitOf as Qt, describeCustomActions as R, defaultIntegrationDepsOver as Ri, RecordKindNameSchema as Rn, isInstanceEnabled as Rr, ProfileSlotSchema as Rt, createSliceHandle as S, audioChunkBytesPerSample as Sa, ForeignSecretMarkerError as Si, shortSecretRefHash as Sn, KeychainWriteRefusedError as Sr, __resetDebugInterestForTests as St, isCommand as T, PlaintextSecretError as Ti, PEER_BYTES_STALL_MS as Tn, resolveSecretMarkers as Tr, isDebugChannelName as Tt, nodePin as U, switchRecordsOverMigrationApi as Ui, defineRecordKinds as Un, parseSecretPath as Ur, SubscribeAudioChunksResultSchema as Ut, CAP_NODE_PIN_CONTEXT_KEY as V, rowsDepsOver as Vi, assertValidDeclaration as Vn, collectSecretLeaves as Vr, StreamSourceSchema as Vt, readCommandOrigin as W, AddonMigrationDefinitionError as Wi, SECRET_META as Wn, recordArrayItemPath as Wr, makeProfileBrokerId as Wt, MIGRATION_API_VERSION as X, WELL_KNOWN_TABS as Xi, HISTORY_DEFAULT_MIN_INTERVAL_MS as Xn, RECORD_CLASSES as Xr, QUANTITY_BASE as Xt, PipelineStepInputSchema as Y, isEvent as Yi, DEVICE_STATUS_METHOD as Yn, RECORD_BATCH_MAX_BYTES as Yr, DISPLAY_PREFERENCES as Yt, RawStateResultSchema as Z, WELL_KNOWN_TAB_MAP as Zi, HISTORY_UNIT_LABELS as Zn, RECORD_DATABASES as Zr, ReadingQuantitySchema as Zt, invokeTrpcLeaf as _, omitTransientConfig as _a, linksOfKind as _i, clearKnownSecrets as _n, normalizeAddonInitResult as _r, DEBUG_WATCH_HARD_CAP_MS as _t, asJsonArray as a, classifySecretWrite as aa, RECORD_SECRET_COLLECTION_PREFIX as ai, TransitionActorSchema as an, resolveCapMount as ar, findVocabAction as at, createLazyTrpcSource as b, findMigrationsBlocked as ba, DeclarationRefusedError as bi, registerKnownSecret as bn, secretTreeFromPaths as br, DebugInterest as bt, asString as c, isSecretMarker as ca, SECRET_REF_SCHEME as ci, TransitionValueSchema as cn, ErrorCodeSchema as cr, CAP_VOCABULARY_BY_NAME as ct, parseJsonUnknown as d, toSecretFieldView as da, formatSecretScope as di, createRecordsAccess as dn, forbiddenError as dr, ReadinessRegistry as dt, dehydrateConfigField as ea, RECORD_ID_MAX_LENGTH as ei, historyUnitFor as en, expandCapMethods as er, adminUiCapability as et, hfModelUrl as f, REDACTED_SECRET as fa, globalSecretScope as fi, assertTransactScope as fn, readErrorI18n as fr, ReadinessTimeoutError as ft, createDeviceProxy as g, isSecretConfigField as ga, linkField as gi, MIN_SCRUBBED_LENGTH as gn, migrationSet as gr, DEBUG_CHANNEL_PREFIX as gt, isDeviceScopedCap as h, isKeychainStoredField as ha, parseSecretRef as hi, createSecretsAccess as hn, classifyStoreError as hr, scopeKey as ht, asBoolean as i, SECRET_CLEAR as ia, RECORD_QUERY_MAX as ii, TransitionActorKindSchema as in, optionalMethod as ir, allVocabActions as it, CAP_METHOD_TIMEOUTS_MS as j, RecordsError as ji, DisposerChain as jn, normalizeNodeId as jr, CamProfileSchema as jt, RUNTIME_DEFAULTS as k, RecordTooLargeError as ki, DATAPLANE_SECRET_HEADER as kn, resolveDeviceSettings as kr, BrokerStatusSchema as kt, parseJsonArray as l, isSecretMarkerLike as la, arrayItemFieldPath as li, CommandOriginClaimSchema as ln, ErrorI18nPayloadSchema as lr, t as lt, DEVICE_SCOPED_CAPS as m, collectSecretConfigKeys as ma, normalizeSecretOwner as mi, REVALIDATE_AFTER_MS as mn, BaseAddon as mr, readinessKey as mt, sleepCancellable as n, hydrateSchema as na, RECORD_MAX_INDEXES as ni, readingMeta as nn, isDeviceConfigCap as nr, addonPagesSourceCapability as nt, asJsonObject as o, isSecretClear as oa, RECORD_SETTINGS_MAX_ROWS as oi, TransitionCommandSchema as on, systemMethod as or, vocabActionIdFor as ot, BOOT_RECOVERY_BACKOFF_MS as p, collectKeychainStoredKeys as pa, isSecretRef as pi, resolveSecretViewsIn as pn, userError as pr, emitDownForOwnedCaps as pt, viewerUiCapability as q, createEvent as qi, DEFAULT_RUNTIME_STATE_DURABILITY as qn, secretArrayPrefixes as qr, selectAssignedProfileSlots as qt, maskUrlCredentials as r, resolveHydratedFieldValue as ra, RECORD_MAX_INDEX_FIELDS as ri, DeviceTransitionSchema as rn, method as rr, actionEffect as rt, asNumber as s, isSecretFieldView as sa, RECORD_SWEEP_INTERVAL_MS as si, TransitionOutcomeSchema as sn, CamstackError as sr, CAP_VOCABULARY as st, sleep as t, dehydrateSchema as ta, RECORD_MAX_DATA_BYTES as ti, isReadingQuantity as tn, historyItemFieldPath as tr, AddonPageDeclarationSchema as tt, parseJsonObject as u, makeSecretMarker as ua, buildSecretRef as ui, makeInMemoryRecords as un, FORBIDDEN_MESSAGE_PREFIX as ur, MODEL_FORMATS as ut, addonSliceHandleApi as v, schemaDeclaresAnyField as va, optionalLinkField as vi, forgetKnownSecret as vn, mergeSecretStatePaths as vr, DEBUG_WATCH_REARM_EVERY_MS as vt, commandEffect as w, isAudioChunkFormat as wa, NoCallerError as wi, PEER_BYTES_MAX_OUTSTANDING as wn, isSecretRefOwnedBy as wr, getDebugInterest as wt, createMirrorSource as x, AUDIO_CHUNK_FORMATS as xa, FilterRequiredError as xi, scrubKnownSecrets as xn, secretTreeFromSchema as xr, DebugWatchTable as xt, createEventBusSliceSource as y, AddonMigrationsBlockedError as ya, BatchTooLargeError as yi, knownSecretCount as yn, parseSecretStatePath as yr, DEBUG_WATCH_WINDOW_MS as yt, deviceCustomAction as z, integrationRowsApiOver as zi, RecordRetentionSchema as zn, secretViewsOf as zr, ProfileSlotStatusSchema as zt };
16893
+ export { DEVICE_CHILDREN_BATCH_MAX as $, WELL_KNOWN_TAB_MAP as $i, HISTORY_UNIT_LABELS as $n, RECORD_DATABASES as $r, displayUnitFor as $t, CAP_ADVANCE_FIELDS as A, RecordSecretUnavailableError as Ai, CALLER_USERNAME_HEADER as An, nodeIdOfScopedKey as Ar, CAM_PROFILE_ORDER as At, CAP_COMMAND_ORIGIN_CONTEXT_KEY as B, defaultIntegrationDepsOver as Bi, RecordKindNameSchema as Bn, isInstanceEnabled as Br, StreamSourceEntrySchema$1 as Bt, auditedFields as C, AUDIO_CHUNK_FORMATS as Ca, FilterRequiredError as Ci, scrubKnownSecrets as Cn, secretTreeFromSchema as Cr, createDebugEmitter as Ct, HF_BASE_URL as D, PlaintextSecretError as Di, PEER_BYTES_STALL_MS as Dn, resolveSecretMarkers as Dr, AudioStreamPickSchema as Dt, DEFAULT_TOKEN_EXPIRY as E, isAudioChunkFormat as Ea, NoCallerError as Ei, PEER_BYTES_MAX_OUTSTANDING as En, isSecretRefOwnedBy as Er, AudioChunkFormatSchema as Et, withoutCallerStamp as F, TransactRefusedError as Fi, entryBody as Fn, moveRegistrySwitchToBody as Fr, DecodedAudioChunkSchema as Ft, readNodePin as G, switchRecordsOverMigrationApi as Gi, defineRecordKinds as Gn, parseSecretPath as Gr, makeSourceBrokerId as Gt, commandOrigin as H, recordsOverMigrationApi as Hi, StoredRecordKindDeclarationSchema as Hn, REMOVE_LEAF as Hr, SubscribeAudioChunksInputSchema as Ht, customAction as I, UnindexedFilterError as Ii, EntryDescriptorSchema as In, registrySwitchPortsOver as Ir, FrameHandleSchema as It, PipelineRunResultBridge as J, runAddonMigrations as Ji, isZodSecret as Jn, recordSecretRef as Jr, DEFAULT_DISPLAY_PREFERENCE as Jt, toNodeId as K, AddonMigrationDefinitionError as Ki, SECRET_META as Kn, recordArrayItemPath as Kr, parseProfileBrokerId as Kt, defineCustomActions as L, UnknownRecordKindError as Li, RecordFieldPathSchema as Ln, registrySwitchToBodyId as Lr, ProfileRtspEntrySchema as Lt, CAP_NAMES as M, RecordUniqueViolationError as Mi, SHARE_VIEW_KINDS as Mn, resolvedValues as Mr, CamStreamKindSchema as Mt, CAP_STATE_LEAVES as N, RecordsError as Ni, DisposerChain as Nn, normalizeNodeId as Nr, CamStreamResolutionSchema as Nt, HF_REPO as O, RECORDS_ERROR_CODES as Oi, PEER_BYTES_TICKET_TTL_MS as On, transformSecretWrite as Or, BrokerStatsSchema as Ot, CALLER_STAMPED_CAPABILITIES as P, RevConflictError as Pi, defineEntryKind as Pn, createDurableState as Pr, CameraStreamSchema as Pt, deviceOpsCapability as Q, WELL_KNOWN_TABS as Qi, HISTORY_DEFAULT_MIN_INTERVAL_MS as Qn, RECORD_CLASSES as Qr, baseUnitOf as Qt, describeCustomActions as R, asRecordsError as Ri, RecordIndexSchema as Rn, registrySwitchToBodyMigration as Rr, ProfileSlotSchema as Rt, createSliceHandle as S, findMigrationsBlocked as Sa, DeclarationRefusedError as Si, registerKnownSecret as Sn, secretTreeFromPaths as Sr, __resetDebugInterestForTests as St, isCommand as T, expandAudioChunkToF32le as Ta, InvalidRecordError as Ti, PEER_BYTES_CHUNK_BYTES as Tn, collectSecretMarkerRefs as Tr, isDebugChannelName as Tt, nodePin as U, rowsDepsOver as Ui, assertValidDeclaration as Un, collectSecretLeaves as Ur, SubscribeAudioChunksResultSchema as Ut, CAP_NODE_PIN_CONTEXT_KEY as V, integrationRowsApiOver as Vi, RecordRetentionSchema as Vn, secretViewsOf as Vr, StreamSourceSchema as Vt, readCommandOrigin as W, secretsOverMigrationApi as Wi, declarationsOf as Wn, mapSecretLeaves as Wr, makeProfileBrokerId as Wt, MIGRATION_API_VERSION as X, emitReadiness as Xi, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Xn, RECORD_BATCH_MAX as Xr, QUANTITY_BASE as Xt, PipelineStepInputSchema as Y, createEvent as Yi, DEFAULT_RUNTIME_STATE_DURABILITY as Yn, secretArrayPrefixes as Yr, DISPLAY_PREFERENCES as Yt, RawStateResultSchema as Z, isEvent as Zi, DEVICE_STATUS_METHOD as Zn, RECORD_BATCH_MAX_BYTES as Zr, ReadingQuantitySchema as Zt, invokeTrpcLeaf as _, isKeychainStoredField as _a, parseSecretRef as _i, createSecretsAccess as _n, classifyStoreError as _r, DEBUG_WATCH_HARD_CAP_MS as _t, asJsonArray as a, resolveHydratedFieldValue as aa, RECORD_MAX_INDEX_FIELDS as ai, TransitionActorSchema as an, method as ar, findVocabAction as at, createLazyTrpcSource as b, schemaDeclaresAnyField as ba, optionalLinkField as bi, forgetKnownSecret as bn, mergeSecretStatePaths as br, DebugInterest as bt, asString as c, isSecretClear as ca, RECORD_SETTINGS_MAX_ROWS as ci, TransitionValueSchema as cn, systemMethod as cr, CAP_VOCABULARY_BY_NAME as ct, parseJsonUnknown as d, isSecretMarkerLike as da, arrayItemFieldPath as di, ruleFireOfClaim as dn, ErrorI18nPayloadSchema as dr, ReadinessRegistry as dt, collectHydratedFieldEntries as ea, RECORD_DEFAULT_MAX_DATA_BYTES as ei, historyUnitFor as en, PROVIDER_PIN_FIELD as er, adminUiCapability as et, hfModelUrl as f, makeSecretMarker as fa, buildSecretRef as fi, makeInMemoryRecords as fn, FORBIDDEN_MESSAGE_PREFIX as fr, ReadinessTimeoutError as ft, createDeviceProxy as g, collectSecretConfigKeys as ga, normalizeSecretOwner as gi, REVALIDATE_AFTER_MS as gn, BaseAddon as gr, DEBUG_CHANNEL_PREFIX as gt, isDeviceScopedCap as h, collectKeychainStoredKeys as ha, isSecretRef as hi, resolveSecretViewsIn as hn, userError as hr, scopeKey as ht, asBoolean as i, hydrateSchema as ia, RECORD_MAX_INDEXES as ii, TransitionActorKindSchema as in, isDeviceConfigCap as ir, allVocabActions as it, CAP_METHOD_TIMEOUTS_MS as j, RecordTooLargeError as ji, DATAPLANE_SECRET_HEADER as jn, resolveDeviceSettings as jr, CamProfileSchema as jt, RUNTIME_DEFAULTS as k, RecordNotFoundError as ki, PeerBytesTicketSchema as kn, SCOPED_SETTINGS_SCOPES as kr, BrokerStatusSchema as kt, parseJsonArray as l, isSecretFieldView as la, RECORD_SWEEP_INTERVAL_MS as li, CommandOriginClaimSchema as ln, CamstackError as lr, t as lt, DEVICE_SCOPED_CAPS as m, REDACTED_SECRET as ma, globalSecretScope as mi, assertTransactScope as mn, readErrorI18n as mr, readinessKey as mt, sleepCancellable as n, dehydrateConfigField as na, RECORD_ID_MAX_LENGTH as ni, readingMeta as nn, expandCapMethods as nr, addonPagesSourceCapability as nt, asJsonObject as o, SECRET_CLEAR as oa, RECORD_QUERY_MAX as oi, TransitionCommandSchema as on, optionalMethod as or, vocabActionIdFor as ot, BOOT_RECOVERY_BACKOFF_MS as p, toSecretFieldView as pa, formatSecretScope as pi, createRecordsAccess as pn, forbiddenError as pr, emitDownForOwnedCaps as pt, viewerUiCapability as q, defineAddonMigrations as qi, collectZodSecretPaths as qn, recordSecretCollection as qr, selectAssignedProfileSlots as qt, maskUrlCredentials as r, dehydrateSchema as ra, RECORD_MAX_DATA_BYTES as ri, DeviceTransitionSchema as rn, historyItemFieldPath as rr, actionEffect as rt, asNumber as s, classifySecretWrite as sa, RECORD_SECRET_COLLECTION_PREFIX as si, TransitionOutcomeSchema as sn, resolveCapMount as sr, CAP_VOCABULARY as st, sleep as t, collectHydratedFieldValues as ta, RECORD_DELETE_BATCH as ti, isReadingQuantity as tn, event as tr, AddonPageDeclarationSchema as tt, parseJsonObject as u, isSecretMarker as ua, SECRET_REF_SCHEME as ui, RuleFireOriginSchema as un, ErrorCodeSchema as ur, MODEL_FORMATS as ut, addonSliceHandleApi as v, isSecretConfigField as va, linkField as vi, MIN_SCRUBBED_LENGTH as vn, migrationSet as vr, DEBUG_WATCH_REARM_EVERY_MS as vt, commandEffect as w, audioChunkBytesPerSample as wa, ForeignSecretMarkerError as wi, shortSecretRefHash as wn, KeychainWriteRefusedError as wr, getDebugInterest as wt, createMirrorSource as x, AddonMigrationsBlockedError as xa, BatchTooLargeError as xi, knownSecretCount as xn, parseSecretStatePath as xr, DebugWatchTable as xt, createEventBusSliceSource as y, omitTransientConfig as ya, linksOfKind as yi, clearKnownSecrets as yn, normalizeAddonInitResult as yr, DEBUG_WATCH_WINDOW_MS as yt, deviceCustomAction as z, recordsErrorFromMessage as zi, RecordKindDeclarationSchema as zn, RecordIntegrationInstances as zr, ProfileSlotStatusSchema as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.536",
3
+ "version": "1.2.538",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",
@@ -1,21 +0,0 @@
1
- /**
2
- * D983 for a notification sequence's cap step: the ONE reader of its target.
3
- *
4
- * A step stored before D983 names one device (`deviceId`); it is read as a
5
- * `devices` target, and `actionId` is filled when the cap and method match
6
- * exactly one vocabulary action. A step already in the new shape passes
7
- * through. Nothing else in the notification centre reads `deviceId`.
8
- */
9
- import type { NcRuleAction } from '../capabilities/notification-rules.cap.js';
10
- import type { ActionTarget } from './action-target.js';
11
- type NcCapAction = Extract<NcRuleAction, {
12
- kind: 'cap';
13
- }>;
14
- export interface NcCapTarget {
15
- readonly target: ActionTarget;
16
- readonly actionId: string | undefined;
17
- }
18
- export declare function normalizeNcCapTarget(action: NcCapAction): NcCapTarget;
19
- /** The step as it is stored from now on: `target` (and `actionId`) set, no `deviceId`. */
20
- export declare function normalizeNcAction(action: NcRuleAction): NcRuleAction;
21
- export {};