@camstack/types 1.2.8 → 1.2.10

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.
@@ -24,8 +24,8 @@ import { DeviceType } from '../device/device-type.js';
24
24
  declare const NotifierPrioritySchema: z.ZodEnum<{
25
25
  high: "high";
26
26
  low: "low";
27
- normal: "normal";
28
27
  min: "min";
28
+ normal: "normal";
29
29
  }>;
30
30
  export type NotifierPriority = z.infer<typeof NotifierPrioritySchema>;
31
31
  declare const NotifierActionSchema: z.ZodObject<{
@@ -64,8 +64,8 @@ declare const NotifierSendInputSchema: z.ZodObject<{
64
64
  priority: z.ZodOptional<z.ZodEnum<{
65
65
  high: "high";
66
66
  low: "low";
67
- normal: "normal";
68
67
  min: "min";
68
+ normal: "normal";
69
69
  }>>;
70
70
  channel: z.ZodOptional<z.ZodString>;
71
71
  recipients: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -98,8 +98,8 @@ export declare const notifierCapability: {
98
98
  priority: z.ZodOptional<z.ZodEnum<{
99
99
  high: "high";
100
100
  low: "low";
101
- normal: "normal";
102
101
  min: "min";
102
+ normal: "normal";
103
103
  }>>;
104
104
  channel: z.ZodOptional<z.ZodString>;
105
105
  recipients: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -21,8 +21,8 @@ declare const ToastSchema: z.ZodObject<{
21
21
  message: z.ZodString;
22
22
  severity: z.ZodEnum<{
23
23
  info: "info";
24
- critical: "critical";
25
24
  warning: "warning";
25
+ critical: "critical";
26
26
  }>;
27
27
  duration: z.ZodOptional<z.ZodNumber>;
28
28
  action: z.ZodOptional<z.ZodObject<{
@@ -40,8 +40,8 @@ export declare const toastCapability: {
40
40
  message: z.ZodString;
41
41
  severity: z.ZodEnum<{
42
42
  info: "info";
43
- critical: "critical";
44
43
  warning: "warning";
44
+ critical: "critical";
45
45
  }>;
46
46
  duration: z.ZodOptional<z.ZodNumber>;
47
47
  action: z.ZodOptional<z.ZodObject<{
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Notification-Center taxonomy — the fixed vocabulary the NC rule editor
3
+ * offers as pickers instead of free text. Derived (never hand-listed) from the
4
+ * single `EVENT_TAXONOMY` dictionary so it stays in lockstep with every other
5
+ * taxonomy surface (timeline, filters, event page).
6
+ *
7
+ * Three buckets, mapped onto the rule editor's `stringList` conditions:
8
+ * - `videoClasses` → detection classes (person / vehicle / animal + subs)
9
+ * for the `classes` / `classesExclude` conditions.
10
+ * - `audioKinds` → audio-analyzer sub kinds (`audio-scream`, …) shown in
11
+ * the same class picker, grouped under an Audio header.
12
+ * - `labels` → sensor + control taxonomy kinds (doorbell / contact /
13
+ * lock / …) for the `sensorKinds` device-event condition.
14
+ *
15
+ * Each entry carries `parentKind` so the client can group video subs under
16
+ * their macro and sensor/control kinds under their category. This surface is
17
+ * served ADDITIVELY on the `nc.getConditionCatalog` bridge response — no cap
18
+ * method, no codegen — so it ships train-free with an addon deploy.
19
+ */
20
+ import { z } from 'zod';
21
+ /** One selectable taxonomy value: a stable kind id + display label + parent. */
22
+ export declare const NcTaxonomyEntrySchema: z.ZodObject<{
23
+ kind: z.ZodString;
24
+ label: z.ZodString;
25
+ parentKind: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ export type NcTaxonomyEntry = z.infer<typeof NcTaxonomyEntrySchema>;
28
+ /** The complete NC picker taxonomy — three grouped buckets. */
29
+ export declare const NcTaxonomySchema: z.ZodObject<{
30
+ videoClasses: z.ZodArray<z.ZodObject<{
31
+ kind: z.ZodString;
32
+ label: z.ZodString;
33
+ parentKind: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ audioKinds: z.ZodArray<z.ZodObject<{
36
+ kind: z.ZodString;
37
+ label: z.ZodString;
38
+ parentKind: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ labels: z.ZodArray<z.ZodObject<{
41
+ kind: z.ZodString;
42
+ label: z.ZodString;
43
+ parentKind: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ export type NcTaxonomy = z.infer<typeof NcTaxonomySchema>;
47
+ /**
48
+ * Build the NC taxonomy from `EVENT_TAXONOMY`. Insertion order is preserved
49
+ * (macros before their subs), which the client relies on for stable grouping.
50
+ */
51
+ export declare function buildNcTaxonomy(): NcTaxonomy;
52
+ /** The frozen NC taxonomy, derived once from the taxonomy dictionary. */
53
+ export declare const NC_TAXONOMY: NcTaxonomy;
@@ -147,9 +147,6 @@ export declare enum EventCategory {
147
147
  RecordingSegmentWritten = "recording.segment.written",
148
148
  RecordingPolicyFallback = "recording.policy.fallback",
149
149
  RecordingRetentionCompleted = "recording.retention.completed",
150
- /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
151
- * thumb is a scrub gap the recorder's keyframe backfill covers. */
152
- RecordingThumbSampled = "recording.thumb-sampled",
153
150
  /** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
154
151
  * progress bar the client reconciles via `recordingExport.getExport`. */
155
152
  RecordingExportProgress = "recording.export.progress",
package/dist/enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CGj9fI4L.js");
2
+ const require_event_category = require("./event-category-Cdyife4p.js");
3
3
  //#region src/enums/event-source-type.ts
4
4
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
5
5
  EventSourceType["Addon"] = "addon";
package/dist/enums.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-D4HJq7Mw.mjs";
1
+ import { t as EventCategory } from "./event-category-BLcNejAE.mjs";
2
2
  //#region src/enums/event-source-type.ts
3
3
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
4
4
  EventSourceType["Addon"] = "addon";
@@ -148,9 +148,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
148
148
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
149
149
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
150
150
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
151
- /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
152
- * thumb is a scrub gap the recorder's keyframe backfill covers. */
153
- EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
154
151
  /** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
155
152
  * progress bar the client reconciles via `recordingExport.getExport`. */
156
153
  EventCategory["RecordingExportProgress"] = "recording.export.progress";
@@ -148,9 +148,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
148
148
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
149
149
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
150
150
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
151
- /** Runner-sampled scrub thumbnail (~1/5 s/camera). Telemetry (D8): a lost
152
- * thumb is a scrub gap the recorder's keyframe backfill covers. */
153
- EventCategory["RecordingThumbSampled"] = "recording.thumb-sampled";
154
151
  /** Export render progress (0–100). Telemetry (D8): a lost tick is a stale
155
152
  * progress bar the client reconciles via `recordingExport.getExport`. */
156
153
  EventCategory["RecordingExportProgress"] = "recording.export.progress";