@camstack/types 1.2.7 → 1.2.9

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 (34) hide show
  1. package/dist/addon.js +2 -2
  2. package/dist/addon.mjs +2 -2
  3. package/dist/capabilities/capability-definition.d.ts +74 -3
  4. package/dist/capabilities/custom-actions.d.ts +19 -0
  5. package/dist/capabilities/day-night.cap.d.ts +8 -8
  6. package/dist/capabilities/face-gallery.cap.d.ts +12 -0
  7. package/dist/capabilities/index.d.ts +29 -30
  8. package/dist/capabilities/notification-rules.cap.d.ts +1601 -0
  9. package/dist/capabilities/notifier.cap.d.ts +3 -3
  10. package/dist/capabilities/pipeline-analytics.cap.d.ts +8 -8
  11. package/dist/capabilities/recording.cap.d.ts +2 -2
  12. package/dist/capabilities/toast.cap.d.ts +2 -2
  13. package/dist/catalogs/nc-taxonomy.d.ts +53 -0
  14. package/dist/enums/event-category.d.ts +0 -3
  15. package/dist/enums.js +1 -1
  16. package/dist/enums.mjs +1 -1
  17. package/dist/{event-category-D4HJq7Mw.mjs → event-category-BLcNejAE.mjs} +0 -3
  18. package/dist/{event-category-CGj9fI4L.js → event-category-Cdyife4p.js} +0 -3
  19. package/dist/generated/addon-api.d.ts +1437 -367
  20. package/dist/generated/capability-router-map.d.ts +4 -4
  21. package/dist/generated/method-access-map.d.ts +1 -1
  22. package/dist/generated/system-proxy.d.ts +2 -0
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +2154 -1343
  25. package/dist/index.mjs +2125 -1341
  26. package/dist/interfaces/addon.d.ts +2 -2
  27. package/dist/interfaces/capability.d.ts +0 -1
  28. package/dist/interfaces/event-bus.d.ts +0 -16
  29. package/dist/interfaces/ops-log.d.ts +2 -2
  30. package/dist/{sleep-eVjOy4ev.js → sleep-BG8hQTA8.js} +2 -2
  31. package/dist/{sleep-BQ60XlE9.mjs → sleep-DiOnzenz.mjs} +2 -2
  32. package/package.json +1 -1
  33. package/dist/capabilities/advanced-notifier.cap.d.ts +0 -256
  34. package/dist/interfaces/advanced-notifier.d.ts +0 -73
@@ -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>>;
@@ -350,6 +350,7 @@ export type AudioEvent = z.infer<typeof AudioEventSchema>;
350
350
  declare const MediaFileKindEnum: z.ZodEnum<{
351
351
  snapshot: "snapshot";
352
352
  crop: "crop";
353
+ keyFrame: "keyFrame";
353
354
  thumbnail: "thumbnail";
354
355
  firstFrame: "firstFrame";
355
356
  lastFrame: "lastFrame";
@@ -357,7 +358,6 @@ declare const MediaFileKindEnum: z.ZodEnum<{
357
358
  fullFrameBoxed: "fullFrameBoxed";
358
359
  faceCrop: "faceCrop";
359
360
  plateCrop: "plateCrop";
360
- keyFrame: "keyFrame";
361
361
  keyFrameSmall: "keyFrameSmall";
362
362
  thumbnailSmall: "thumbnailSmall";
363
363
  }>;
@@ -367,6 +367,7 @@ declare const MediaFileSchema: z.ZodObject<{
367
367
  kind: z.ZodEnum<{
368
368
  snapshot: "snapshot";
369
369
  crop: "crop";
370
+ keyFrame: "keyFrame";
370
371
  thumbnail: "thumbnail";
371
372
  firstFrame: "firstFrame";
372
373
  lastFrame: "lastFrame";
@@ -374,7 +375,6 @@ declare const MediaFileSchema: z.ZodObject<{
374
375
  fullFrameBoxed: "fullFrameBoxed";
375
376
  faceCrop: "faceCrop";
376
377
  plateCrop: "plateCrop";
377
- keyFrame: "keyFrame";
378
378
  keyFrameSmall: "keyFrameSmall";
379
379
  thumbnailSmall: "thumbnailSmall";
380
380
  }>;
@@ -1196,9 +1196,9 @@ export declare const pipelineAnalyticsCapability: {
1196
1196
  olderThanMs: z.ZodNumber;
1197
1197
  reason: z.ZodOptional<z.ZodEnum<{
1198
1198
  manual: "manual";
1199
+ operator: "operator";
1199
1200
  retention: "retention";
1200
1201
  quota: "quota";
1201
- operator: "operator";
1202
1202
  }>>;
1203
1203
  }, z.core.$strip>, z.ZodObject<{
1204
1204
  motion: z.ZodNumber;
@@ -1238,9 +1238,9 @@ export declare const pipelineAnalyticsCapability: {
1238
1238
  }>;
1239
1239
  reason: z.ZodEnum<{
1240
1240
  manual: "manual";
1241
+ operator: "operator";
1241
1242
  retention: "retention";
1242
1243
  quota: "quota";
1243
- operator: "operator";
1244
1244
  }>;
1245
1245
  deviceId: z.ZodNullable<z.ZodNumber>;
1246
1246
  nodeId: z.ZodString;
@@ -1254,6 +1254,7 @@ export declare const pipelineAnalyticsCapability: {
1254
1254
  kind: z.ZodOptional<z.ZodEnum<{
1255
1255
  snapshot: "snapshot";
1256
1256
  crop: "crop";
1257
+ keyFrame: "keyFrame";
1257
1258
  thumbnail: "thumbnail";
1258
1259
  firstFrame: "firstFrame";
1259
1260
  lastFrame: "lastFrame";
@@ -1261,7 +1262,6 @@ export declare const pipelineAnalyticsCapability: {
1261
1262
  fullFrameBoxed: "fullFrameBoxed";
1262
1263
  faceCrop: "faceCrop";
1263
1264
  plateCrop: "plateCrop";
1264
- keyFrame: "keyFrame";
1265
1265
  keyFrameSmall: "keyFrameSmall";
1266
1266
  thumbnailSmall: "thumbnailSmall";
1267
1267
  }>>;
@@ -1270,6 +1270,7 @@ export declare const pipelineAnalyticsCapability: {
1270
1270
  kind: z.ZodEnum<{
1271
1271
  snapshot: "snapshot";
1272
1272
  crop: "crop";
1273
+ keyFrame: "keyFrame";
1273
1274
  thumbnail: "thumbnail";
1274
1275
  firstFrame: "firstFrame";
1275
1276
  lastFrame: "lastFrame";
@@ -1277,7 +1278,6 @@ export declare const pipelineAnalyticsCapability: {
1277
1278
  fullFrameBoxed: "fullFrameBoxed";
1278
1279
  faceCrop: "faceCrop";
1279
1280
  plateCrop: "plateCrop";
1280
- keyFrame: "keyFrame";
1281
1281
  keyFrameSmall: "keyFrameSmall";
1282
1282
  thumbnailSmall: "thumbnailSmall";
1283
1283
  }>;
@@ -1294,6 +1294,7 @@ export declare const pipelineAnalyticsCapability: {
1294
1294
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1295
1295
  snapshot: "snapshot";
1296
1296
  crop: "crop";
1297
+ keyFrame: "keyFrame";
1297
1298
  thumbnail: "thumbnail";
1298
1299
  firstFrame: "firstFrame";
1299
1300
  lastFrame: "lastFrame";
@@ -1301,7 +1302,6 @@ export declare const pipelineAnalyticsCapability: {
1301
1302
  fullFrameBoxed: "fullFrameBoxed";
1302
1303
  faceCrop: "faceCrop";
1303
1304
  plateCrop: "plateCrop";
1304
- keyFrame: "keyFrame";
1305
1305
  keyFrameSmall: "keyFrameSmall";
1306
1306
  thumbnailSmall: "thumbnailSmall";
1307
1307
  }>>>;
@@ -1310,6 +1310,7 @@ export declare const pipelineAnalyticsCapability: {
1310
1310
  kind: z.ZodEnum<{
1311
1311
  snapshot: "snapshot";
1312
1312
  crop: "crop";
1313
+ keyFrame: "keyFrame";
1313
1314
  thumbnail: "thumbnail";
1314
1315
  firstFrame: "firstFrame";
1315
1316
  lastFrame: "lastFrame";
@@ -1317,7 +1318,6 @@ export declare const pipelineAnalyticsCapability: {
1317
1318
  fullFrameBoxed: "fullFrameBoxed";
1318
1319
  faceCrop: "faceCrop";
1319
1320
  plateCrop: "plateCrop";
1320
- keyFrame: "keyFrame";
1321
1321
  keyFrameSmall: "keyFrameSmall";
1322
1322
  thumbnailSmall: "thumbnailSmall";
1323
1323
  }>;
@@ -472,9 +472,9 @@ export declare const recordingCapability: {
472
472
  deviceId: z.ZodNumber;
473
473
  reason: z.ZodOptional<z.ZodEnum<{
474
474
  manual: "manual";
475
+ operator: "operator";
475
476
  retention: "retention";
476
477
  quota: "quota";
477
- operator: "operator";
478
478
  }>>;
479
479
  }, z.core.$strip>, z.ZodObject<{
480
480
  floorMs: z.ZodNullable<z.ZodNumber>;
@@ -515,9 +515,9 @@ export declare const recordingCapability: {
515
515
  }>;
516
516
  reason: z.ZodEnum<{
517
517
  manual: "manual";
518
+ operator: "operator";
518
519
  retention: "retention";
519
520
  quota: "quota";
520
- operator: "operator";
521
521
  }>;
522
522
  deviceId: z.ZodNullable<z.ZodNumber>;
523
523
  nodeId: 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";