@camstack/types 1.2.264 → 1.2.265

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.
@@ -71,7 +71,8 @@
71
71
  * families — or name a legacy kind, or none — derives `mixed`: it keeps firing,
72
72
  * it is listed and deletable, and it is never edited.
73
73
  */
74
- import { type NcAudioCondition, type NcConditions, type NcDelivery, type NcOccupancyCondition } from '../capabilities/notification-rules.cap.js';
74
+ import type { z } from 'zod';
75
+ import { type NcAudioCondition, type NcConditions, type NcDelivery, type NcOccupancyCondition, type NcRuleKindSchema } from '../capabilities/notification-rules.cap.js';
75
76
  import { type NcSystemEventFamily } from './system-event-families.js';
76
77
  /**
77
78
  * The kind of rule an operator is authoring.
@@ -82,7 +83,7 @@ import { type NcSystemEventFamily } from './system-event-families.js';
82
83
  * and `immediate` each split in two on their discriminating condition, and
83
84
  * `system-event` splits by the FAMILY of the event kinds it names (D637).
84
85
  */
85
- export type NcRuleKind = 'detection' | 'sensor' | 'occupancy' | 'sound' | NcSystemEventFamily | 'mixed';
86
+ export type NcRuleKind = z.infer<typeof NcRuleKindSchema>;
86
87
  /** Every kind a `system-event` rule can derive — the three families and `mixed`. */
87
88
  export declare const NC_SYSTEM_RULE_KINDS: readonly ["device-events", "system", "alarm", "mixed"];
88
89
  /** Is this a kind a `system-event` rule derives (any family, or `mixed`)? */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.264",
3
+ "version": "1.2.265",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",