@camstack/types 1.1.43 → 1.1.45

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 (41) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/advanced-notifier.cap.d.ts +4 -0
  4. package/dist/capabilities/cap-router-predicates.d.ts +60 -0
  5. package/dist/capabilities/capability-definition.d.ts +1 -1
  6. package/dist/capabilities/custom-model-registry.cap.d.ts +24 -0
  7. package/dist/capabilities/index.d.ts +14 -7
  8. package/dist/capabilities/llm-runtime.cap.d.ts +286 -0
  9. package/dist/capabilities/llm-shared.d.ts +104 -0
  10. package/dist/capabilities/llm.cap.d.ts +596 -0
  11. package/dist/capabilities/login-method.cap.d.ts +53 -7
  12. package/dist/capabilities/model-convert.cap.d.ts +13 -0
  13. package/dist/capabilities/model-distributor.cap.d.ts +26 -0
  14. package/dist/capabilities/pipeline-analytics.cap.d.ts +144 -25
  15. package/dist/capabilities/pipeline-executor.cap.d.ts +24 -0
  16. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -0
  17. package/dist/capabilities/plate-gallery.cap.d.ts +114 -0
  18. package/dist/capabilities/platform-probe.cap.d.ts +9 -0
  19. package/dist/capabilities/scene-monitor.cap.d.ts +483 -0
  20. package/dist/capabilities/zone-analytics.cap.d.ts +78 -1
  21. package/dist/enums/event-category.d.ts +41 -0
  22. package/dist/generated/addon-api.d.ts +3135 -933
  23. package/dist/generated/cap-status-types.d.ts +3 -1
  24. package/dist/generated/capability-router-map.d.ts +13 -4
  25. package/dist/generated/device-local-state.d.ts +3 -0
  26. package/dist/generated/device-proxy.d.ts +3 -0
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/provider-kind-map.d.ts +1 -1
  29. package/dist/generated/system-proxy.d.ts +3 -1
  30. package/dist/index.js +1307 -58
  31. package/dist/index.mjs +1272 -59
  32. package/dist/inference/runtime-capabilities.d.ts +1 -1
  33. package/dist/interfaces/addon.d.ts +5 -1
  34. package/dist/interfaces/advanced-notifier.d.ts +2 -0
  35. package/dist/interfaces/event-bus.d.ts +107 -2
  36. package/dist/interfaces/platform.d.ts +17 -0
  37. package/dist/{sleep-DmvEGsRg.js → sleep-BdhADtqT.js} +55 -0
  38. package/dist/{sleep-Baang_XW.mjs → sleep-_sv7WKkq.mjs} +55 -0
  39. package/dist/types/models.d.ts +38 -1
  40. package/dist/types/pipeline-step.d.ts +20 -2
  41. package/package.json +1 -1
@@ -17,11 +17,19 @@ import { type InferProvider } from './capability-definition.js';
17
17
  * login page needs NO change.
18
18
  *
19
19
  * - `widget` — a Module-Federation widget the login page mounts (via
20
- * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
21
- * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
22
- * addon bundle. The referenced widget also declares `preAuth: true` in
23
- * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
24
- * stamps a public `bundleUrl` from `addonId` + `bundle`.
20
+ * `loadRemoteBundle`) for an in-page ceremony. `auth.listLoginMethods`
21
+ * stamps a public `bundleUrl` from `addonId` + `bundle`. Generic
22
+ * mechanism kept for future use; no shipped addon uses it on the login
23
+ * page (the passkey ceremony below runs natively in the shell instead).
24
+ *
25
+ * - `passkey` — a declarative WebAuthn ceremony the shell renders
26
+ * natively (`@simplewebauthn/browser` lives in `addon-admin-ui`, not in
27
+ * a remotely-loaded bundle). Carries the addon's effective `rpId` /
28
+ * `origin` (from its `resolveRpID()` / `resolveOrigin()`) so the shell
29
+ * can gate visibility (IP-literal origin, hostname/rpId mismatch) WITHOUT
30
+ * fetching any remote code pre-auth. Contribution stays unconditional —
31
+ * enrollment state is never leaked pre-auth; visibility is a shell
32
+ * decision.
25
33
  *
26
34
  * Every contribution carries a `stage`:
27
35
  * - `primary` — shown on the first credentials screen (OIDC /
@@ -75,7 +83,24 @@ export declare const WidgetLoginMethodSchema: z.ZodObject<{
75
83
  "second-factor": "second-factor";
76
84
  }>;
77
85
  }, z.core.$strip>;
78
- /** One login-method contribution — redirect button OR pre-auth widget. */
86
+ /**
87
+ * A declarative WebAuthn ceremony the shell renders natively (no remote
88
+ * code). Carries the addon's EFFECTIVE `rpId`/`origin` so the shell can
89
+ * gate visibility (IP-literal origin, hostname/rpId mismatch) before ever
90
+ * showing the button — the contribution itself stays unconditional.
91
+ */
92
+ export declare const PasskeyLoginMethodSchema: z.ZodObject<{
93
+ kind: z.ZodLiteral<"passkey">;
94
+ id: z.ZodString;
95
+ label: z.ZodString;
96
+ stage: z.ZodEnum<{
97
+ primary: "primary";
98
+ "second-factor": "second-factor";
99
+ }>;
100
+ rpId: z.ZodString;
101
+ origin: z.ZodNullable<z.ZodString>;
102
+ }, z.core.$strip>;
103
+ /** One login-method contribution — redirect button, pre-auth widget, or native passkey ceremony. */
79
104
  export declare const LoginMethodContributionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
105
  kind: z.ZodLiteral<"redirect">;
81
106
  id: z.ZodString;
@@ -100,6 +125,16 @@ export declare const LoginMethodContributionSchema: z.ZodDiscriminatedUnion<[z.Z
100
125
  primary: "primary";
101
126
  "second-factor": "second-factor";
102
127
  }>;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"passkey">;
130
+ id: z.ZodString;
131
+ label: z.ZodString;
132
+ stage: z.ZodEnum<{
133
+ primary: "primary";
134
+ "second-factor": "second-factor";
135
+ }>;
136
+ rpId: z.ZodString;
137
+ origin: z.ZodNullable<z.ZodString>;
103
138
  }, z.core.$strip>], "kind">;
104
139
  export declare const loginMethodCapability: {
105
140
  readonly name: "login-method";
@@ -131,6 +166,16 @@ export declare const loginMethodCapability: {
131
166
  primary: "primary";
132
167
  "second-factor": "second-factor";
133
168
  }>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ kind: z.ZodLiteral<"passkey">;
171
+ id: z.ZodString;
172
+ label: z.ZodString;
173
+ stage: z.ZodEnum<{
174
+ primary: "primary";
175
+ "second-factor": "second-factor";
176
+ }>;
177
+ rpId: z.ZodString;
178
+ origin: z.ZodNullable<z.ZodString>;
134
179
  }, z.core.$strip>], "kind">>>, import("./capability-definition.js").CapabilityMethodKind>;
135
180
  };
136
181
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
@@ -139,8 +184,9 @@ export declare const loginMethodCapability: {
139
184
  };
140
185
  };
141
186
  export type ILoginMethodProvider = InferProvider<typeof loginMethodCapability>;
142
- /** A single login-method contribution (redirect | widget). */
187
+ /** A single login-method contribution (redirect | widget | passkey). */
143
188
  export type LoginMethodContribution = z.infer<typeof LoginMethodContributionSchema>;
144
189
  export type RedirectLoginMethod = z.infer<typeof RedirectLoginMethodSchema>;
145
190
  export type WidgetLoginMethod = z.infer<typeof WidgetLoginMethodSchema>;
191
+ export type PasskeyLoginMethod = z.infer<typeof PasskeyLoginMethodSchema>;
146
192
  export type LoginStage = z.infer<typeof LoginStageEnum>;
@@ -164,11 +164,22 @@ export declare const modelConvertCapability: {
164
164
  python: "python";
165
165
  }>>>>;
166
166
  }, z.core.$strip>>;
167
+ gguf: z.ZodOptional<z.ZodObject<{
168
+ url: z.ZodString;
169
+ sizeMB: z.ZodNumber;
170
+ isDirectory: z.ZodOptional<z.ZodBoolean>;
171
+ files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
172
+ runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
173
+ node: "node";
174
+ python: "python";
175
+ }>>>>;
176
+ }, z.core.$strip>>;
167
177
  }, z.core.$strip>;
168
178
  inputSize: z.ZodObject<{
169
179
  width: z.ZodNumber;
170
180
  height: z.ZodNumber;
171
181
  }, z.core.$strip>;
182
+ inputChannels: z.ZodOptional<z.ZodNumber>;
172
183
  labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
173
184
  id: z.ZodString;
174
185
  name: z.ZodString;
@@ -189,6 +200,7 @@ export declare const modelConvertCapability: {
189
200
  letterbox: "letterbox";
190
201
  resize: "resize";
191
202
  }>>;
203
+ postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
192
204
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
193
205
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
194
206
  url: z.ZodString;
@@ -222,6 +234,7 @@ export declare const modelConvertCapability: {
222
234
  openvino: "openvino";
223
235
  tflite: "tflite";
224
236
  pt: "pt";
237
+ gguf: "gguf";
225
238
  }>;
226
239
  precision: z.ZodOptional<z.ZodEnum<{
227
240
  int8: "int8";
@@ -19,6 +19,7 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
19
19
  openvino: "openvino";
20
20
  tflite: "tflite";
21
21
  pt: "pt";
22
+ gguf: "gguf";
22
23
  }>;
23
24
  entry: z.ZodObject<{
24
25
  id: z.ZodString;
@@ -75,11 +76,22 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
75
76
  python: "python";
76
77
  }>>>>;
77
78
  }, z.core.$strip>>;
79
+ gguf: z.ZodOptional<z.ZodObject<{
80
+ url: z.ZodString;
81
+ sizeMB: z.ZodNumber;
82
+ isDirectory: z.ZodOptional<z.ZodBoolean>;
83
+ files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
84
+ runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
85
+ node: "node";
86
+ python: "python";
87
+ }>>>>;
88
+ }, z.core.$strip>>;
78
89
  }, z.core.$strip>;
79
90
  inputSize: z.ZodObject<{
80
91
  width: z.ZodNumber;
81
92
  height: z.ZodNumber;
82
93
  }, z.core.$strip>;
94
+ inputChannels: z.ZodOptional<z.ZodNumber>;
83
95
  labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
84
96
  id: z.ZodString;
85
97
  name: z.ZodString;
@@ -100,6 +112,7 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
100
112
  letterbox: "letterbox";
101
113
  resize: "resize";
102
114
  }>>;
115
+ postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
103
116
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
104
117
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
105
118
  url: z.ZodString;
@@ -148,6 +161,7 @@ export declare const modelDistributorCapability: {
148
161
  openvino: "openvino";
149
162
  tflite: "tflite";
150
163
  pt: "pt";
164
+ gguf: "gguf";
151
165
  }>;
152
166
  entry: z.ZodObject<{
153
167
  id: z.ZodString;
@@ -204,11 +218,22 @@ export declare const modelDistributorCapability: {
204
218
  python: "python";
205
219
  }>>>>;
206
220
  }, z.core.$strip>>;
221
+ gguf: z.ZodOptional<z.ZodObject<{
222
+ url: z.ZodString;
223
+ sizeMB: z.ZodNumber;
224
+ isDirectory: z.ZodOptional<z.ZodBoolean>;
225
+ files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
226
+ runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
227
+ node: "node";
228
+ python: "python";
229
+ }>>>>;
230
+ }, z.core.$strip>>;
207
231
  }, z.core.$strip>;
208
232
  inputSize: z.ZodObject<{
209
233
  width: z.ZodNumber;
210
234
  height: z.ZodNumber;
211
235
  }, z.core.$strip>;
236
+ inputChannels: z.ZodOptional<z.ZodNumber>;
212
237
  labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
213
238
  id: z.ZodString;
214
239
  name: z.ZodString;
@@ -229,6 +254,7 @@ export declare const modelDistributorCapability: {
229
254
  letterbox: "letterbox";
230
255
  resize: "resize";
231
256
  }>>;
257
+ postprocessor: z.ZodOptional<z.ZodCustom<import("../index.js").PostprocessorType, import("../index.js").PostprocessorType>>;
232
258
  faceAlignment: z.ZodOptional<z.ZodBoolean>;
233
259
  extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
234
260
  url: z.ZodString;
@@ -39,6 +39,21 @@ declare const EventKindSchema: z.ZodEnum<{
39
39
  motion: "motion";
40
40
  }>;
41
41
  export type EventKind = z.infer<typeof EventKindSchema>;
42
+ /**
43
+ * One audio-classification label heard on the track's camera while the
44
+ * track was alive, aggregated per label. An "episode" is one persisted
45
+ * audio event (the confident-classification path: score ≥ the device's
46
+ * `classificationMinScore`, class-change-or-heartbeat coalesced) — NOT
47
+ * one 32 ms inference chunk, so counts stay human-scaled.
48
+ */
49
+ declare const TrackAudioLabelSchema: z.ZodObject<{
50
+ label: z.ZodString;
51
+ peakScore: z.ZodNumber;
52
+ count: z.ZodNumber;
53
+ firstAt: z.ZodNumber;
54
+ lastAt: z.ZodNumber;
55
+ }, z.core.$strip>;
56
+ export type TrackAudioLabel = z.infer<typeof TrackAudioLabelSchema>;
42
57
  declare const TrackSchema: z.ZodObject<{
43
58
  trackId: z.ZodString;
44
59
  deviceId: z.ZodNumber;
@@ -73,6 +88,7 @@ declare const TrackSchema: z.ZodObject<{
73
88
  mediaKey: z.ZodString;
74
89
  }, z.core.$strip>>>;
75
90
  zonesVisited: z.ZodReadonly<z.ZodArray<z.ZodString>>;
91
+ classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
76
92
  totalDistance: z.ZodNumber;
77
93
  state: z.ZodEnum<{
78
94
  moving: "moving";
@@ -85,6 +101,13 @@ declare const TrackSchema: z.ZodObject<{
85
101
  importance: z.ZodOptional<z.ZodNumber>;
86
102
  bestEventId: z.ZodOptional<z.ZodString>;
87
103
  importanceReason: z.ZodOptional<z.ZodString>;
104
+ audioLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
105
+ label: z.ZodString;
106
+ peakScore: z.ZodNumber;
107
+ count: z.ZodNumber;
108
+ firstAt: z.ZodNumber;
109
+ lastAt: z.ZodNumber;
110
+ }, z.core.$strip>>>>;
88
111
  }, z.core.$strip>;
89
112
  export type Track = z.infer<typeof TrackSchema>;
90
113
  declare const MotionEventSchema: z.ZodObject<{
@@ -271,6 +294,15 @@ export declare const ScoredObjectEventSchema: z.ZodObject<{
271
294
  score: z.ZodNumber;
272
295
  }, z.core.$strip>;
273
296
  export type ScoredObjectEvent = z.infer<typeof ScoredObjectEventSchema>;
297
+ declare const TrackCascadeCountsSchema: z.ZodObject<{
298
+ tracks: z.ZodNumber;
299
+ events: z.ZodNumber;
300
+ media: z.ZodNumber;
301
+ faces: z.ZodNumber;
302
+ plates: z.ZodNumber;
303
+ embeddings: z.ZodNumber;
304
+ }, z.core.$strip>;
305
+ export type TrackCascadeCounts = z.infer<typeof TrackCascadeCountsSchema>;
274
306
  export declare const pipelineAnalyticsCapability: {
275
307
  readonly name: "pipeline-analytics";
276
308
  readonly scope: "device";
@@ -316,6 +348,7 @@ export declare const pipelineAnalyticsCapability: {
316
348
  mediaKey: z.ZodString;
317
349
  }, z.core.$strip>>>;
318
350
  zonesVisited: z.ZodReadonly<z.ZodArray<z.ZodString>>;
351
+ classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
319
352
  totalDistance: z.ZodNumber;
320
353
  state: z.ZodEnum<{
321
354
  moving: "moving";
@@ -328,6 +361,13 @@ export declare const pipelineAnalyticsCapability: {
328
361
  importance: z.ZodOptional<z.ZodNumber>;
329
362
  bestEventId: z.ZodOptional<z.ZodString>;
330
363
  importanceReason: z.ZodOptional<z.ZodString>;
364
+ audioLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
365
+ label: z.ZodString;
366
+ peakScore: z.ZodNumber;
367
+ count: z.ZodNumber;
368
+ firstAt: z.ZodNumber;
369
+ lastAt: z.ZodNumber;
370
+ }, z.core.$strip>>>>;
331
371
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
332
372
  readonly getTrack: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
333
373
  deviceId: z.ZodNumber;
@@ -366,6 +406,7 @@ export declare const pipelineAnalyticsCapability: {
366
406
  mediaKey: z.ZodString;
367
407
  }, z.core.$strip>>>;
368
408
  zonesVisited: z.ZodReadonly<z.ZodArray<z.ZodString>>;
409
+ classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
369
410
  totalDistance: z.ZodNumber;
370
411
  state: z.ZodEnum<{
371
412
  moving: "moving";
@@ -378,6 +419,13 @@ export declare const pipelineAnalyticsCapability: {
378
419
  importance: z.ZodOptional<z.ZodNumber>;
379
420
  bestEventId: z.ZodOptional<z.ZodString>;
380
421
  importanceReason: z.ZodOptional<z.ZodString>;
422
+ audioLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
423
+ label: z.ZodString;
424
+ peakScore: z.ZodNumber;
425
+ count: z.ZodNumber;
426
+ firstAt: z.ZodNumber;
427
+ lastAt: z.ZodNumber;
428
+ }, z.core.$strip>>>>;
381
429
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
382
430
  /** Historical completed tracks for a device. Queried from the
383
431
  * persisted `pipeline-analytics:tracks` collection; active tracks
@@ -421,6 +469,7 @@ export declare const pipelineAnalyticsCapability: {
421
469
  mediaKey: z.ZodString;
422
470
  }, z.core.$strip>>>;
423
471
  zonesVisited: z.ZodReadonly<z.ZodArray<z.ZodString>>;
472
+ classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
424
473
  totalDistance: z.ZodNumber;
425
474
  state: z.ZodEnum<{
426
475
  moving: "moving";
@@ -433,6 +482,13 @@ export declare const pipelineAnalyticsCapability: {
433
482
  importance: z.ZodOptional<z.ZodNumber>;
434
483
  bestEventId: z.ZodOptional<z.ZodString>;
435
484
  importanceReason: z.ZodOptional<z.ZodString>;
485
+ audioLabels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
486
+ label: z.ZodString;
487
+ peakScore: z.ZodNumber;
488
+ count: z.ZodNumber;
489
+ firstAt: z.ZodNumber;
490
+ lastAt: z.ZodNumber;
491
+ }, z.core.$strip>>>>;
436
492
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
437
493
  readonly clearTracks: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
438
494
  deviceId: z.ZodNumber;
@@ -573,12 +629,14 @@ export declare const pipelineAnalyticsCapability: {
573
629
  audio: z.ZodNumber;
574
630
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
575
631
  /**
576
- * Delete all events (motion + object + audio) for the given device
577
- * that are older than `cutoffMs` (exclusive), and delete their
578
- * thumbnails in lockstep. Returns per-kind deleted counts.
579
- *
580
- * Called by Phase B3 recorder orchestration to keep event history
581
- * aligned with available footage.
632
+ * @deprecated Prefer `pruneTracksBefore` the track is the ROOT of the
633
+ * analytics model and retention must cascade from it (design §5.1). This
634
+ * event-only prune leaves orphaned tracks/faces/plates/embeddings behind.
635
+ * Retained as a compat shim for the Phase-B3 recorder orchestration caller,
636
+ * which prunes events to keep history aligned with available footage and
637
+ * reads the per-kind counts. Delete all events (motion + object + audio)
638
+ * for the given device older than `cutoffMs` (exclusive) + their thumbnails
639
+ * in lockstep; returns per-kind deleted counts.
582
640
  */
583
641
  readonly pruneEventsBefore: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
584
642
  deviceId: z.ZodNumber;
@@ -588,6 +646,62 @@ export declare const pipelineAnalyticsCapability: {
588
646
  object: z.ZodNumber;
589
647
  audio: z.ZodNumber;
590
648
  }, z.core.$strip>, "mutation">;
649
+ /**
650
+ * Track-centric retention entry point (design §5.1). Selects every
651
+ * persisted track for the device whose `lastSeen < cutoffMs` (paged) and
652
+ * runs the extensible whole-track deletion cascade (design §3): object
653
+ * events + their media, track/face/plate-owned media, unassigned face
654
+ * reads, per-track CLIP embeddings, then the track root LAST. ENROLLED
655
+ * (assigned) faces/plates and `ownerKind:'identity'` media are exempt —
656
+ * the durable matching gallery always persists. Fires the per-track
657
+ * live-state cleanup so a pruned track can't linger in dispatch/overlay
658
+ * state. Returns per-family deleted counts (`tracks` authoritative).
659
+ *
660
+ * Replaces `pruneEventsBefore` as the correct time-based retention prune.
661
+ */
662
+ readonly pruneTracksBefore: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
663
+ deviceId: z.ZodNumber;
664
+ cutoffMs: z.ZodNumber;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ tracks: z.ZodNumber;
667
+ events: z.ZodNumber;
668
+ media: z.ZodNumber;
669
+ faces: z.ZodNumber;
670
+ plates: z.ZodNumber;
671
+ embeddings: z.ZodNumber;
672
+ }, z.core.$strip>, "mutation">;
673
+ /**
674
+ * Operator "clean slate" for a device (design §5.3): prune EVERY track for
675
+ * the device via the same cascade as `pruneTracksBefore` with `cutoffMs =
676
+ * now`. One call per device — no client-side track enumeration. Enrolled
677
+ * gallery + identity media are exempt (design §4). Returns per-family
678
+ * deleted counts.
679
+ */
680
+ readonly wipeAllAnalytics: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
681
+ deviceId: z.ZodNumber;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ tracks: z.ZodNumber;
684
+ events: z.ZodNumber;
685
+ media: z.ZodNumber;
686
+ faces: z.ZodNumber;
687
+ plates: z.ZodNumber;
688
+ embeddings: z.ZodNumber;
689
+ }, z.core.$strip>, "mutation">;
690
+ /**
691
+ * Delete whole tracks (object events) by id for the given device,
692
+ * cascading their media in lockstep. Returns the number of tracks
693
+ * actually deleted plus the ids that could not be removed.
694
+ *
695
+ * Operator-driven from the DI Events page (batch delete). Routes through
696
+ * the same widened track-deletion cascade (design §5.2).
697
+ */
698
+ readonly deleteTracks: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
699
+ deviceId: z.ZodNumber;
700
+ trackIds: z.ZodArray<z.ZodString>;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ deleted: z.ZodNumber;
703
+ failed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
704
+ }, z.core.$strip>, "mutation">;
591
705
  readonly getEventMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
592
706
  eventId: z.ZodString;
593
707
  kind: z.ZodOptional<z.ZodEnum<{
@@ -695,10 +809,12 @@ export declare const pipelineAnalyticsCapability: {
695
809
  };
696
810
  readonly events: {
697
811
  /**
698
- * Enriched frame emitted after refinement. Carries lightweight
699
- * tracked-detection metadata (track id, class, zones, state) so
700
- * downstream consumers (stream overlays, notifications) can
701
- * annotate without querying full Track state.
812
+ * Enriched frame emitted after refinement the live-overlay source of
813
+ * truth (two-plane re-injection). Carries the frame's detections in the
814
+ * `ObjectDetection` wire shape: first-level roots (with track info +
815
+ * enrichment labels) plus synthesized `kind:'detail'` face/plate entries
816
+ * re-projected from per-track detail state, so stream overlays render
817
+ * boxes + recognized names without querying full Track state.
702
818
  */
703
819
  readonly onFrameTracked: {
704
820
  readonly data: z.ZodObject<{
@@ -707,24 +823,25 @@ export declare const pipelineAnalyticsCapability: {
707
823
  frameWidth: z.ZodNumber;
708
824
  frameHeight: z.ZodNumber;
709
825
  detections: z.ZodReadonly<z.ZodArray<z.ZodObject<{
710
- trackId: z.ZodString;
711
- className: z.ZodString;
712
- confidence: z.ZodNumber;
826
+ id: z.ZodString;
827
+ kind: z.ZodEnum<{
828
+ "first-level": "first-level";
829
+ detail: "detail";
830
+ }>;
831
+ macroClass: z.ZodString;
832
+ score: z.ZodNumber;
713
833
  bbox: z.ZodObject<{
714
834
  x: z.ZodNumber;
715
835
  y: z.ZodNumber;
716
- w: z.ZodNumber;
717
- h: z.ZodNumber;
836
+ width: z.ZodNumber;
837
+ height: z.ZodNumber;
718
838
  }, z.core.$strip>;
719
- zones: z.ZodReadonly<z.ZodArray<z.ZodString>>;
720
- state: z.ZodEnum<{
721
- moving: "moving";
722
- left: "left";
723
- idle: "idle";
724
- new: "new";
725
- entered: "entered";
726
- }>;
727
- }, z.core.$strip>>>;
839
+ labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
840
+ label: z.ZodString;
841
+ score: z.ZodNumber;
842
+ }, z.core.$loose>>>;
843
+ parentId: z.ZodOptional<z.ZodString>;
844
+ }, z.core.$loose>>>;
728
845
  }, z.core.$strip>;
729
846
  };
730
847
  /** Track entered active state (first-seen). */
@@ -760,4 +877,6 @@ export declare const pipelineAnalyticsCapability: {
760
877
  };
761
878
  };
762
879
  export type IPipelineAnalyticsProvider = InferProvider<typeof pipelineAnalyticsCapability>;
763
- export { TrackStateSchema, EventKindSchema, TrackSchema, KeyEventSchema, MotionEventSchema, ObjectEventSchema, AudioEventSchema, MediaFileKindEnum, MediaFileSchema, TrackedDetectionSchema, };
880
+ export { TrackStateSchema, EventKindSchema, TrackSchema, TrackAudioLabelSchema, TrackCascadeCountsSchema, KeyEventSchema, MotionEventSchema, ObjectEventSchema, AudioEventSchema, MediaFileKindEnum, MediaFileSchema,
881
+ /** No longer carried on onFrameTracked (two-plane re-injection) — kept for compat. */
882
+ TrackedDetectionSchema, };
@@ -16,6 +16,7 @@ declare const PipelineEngineChoiceSchema: z.ZodObject<{
16
16
  openvino: "openvino";
17
17
  tflite: "tflite";
18
18
  pt: "pt";
19
+ gguf: "gguf";
19
20
  }>;
20
21
  device: z.ZodOptional<z.ZodString>;
21
22
  }, z.core.$strip>;
@@ -37,6 +38,7 @@ declare const AvailableEngineSchema: z.ZodObject<{
37
38
  openvino: "openvino";
38
39
  tflite: "tflite";
39
40
  pt: "pt";
41
+ gguf: "gguf";
40
42
  }>;
41
43
  device: z.ZodOptional<z.ZodString>;
42
44
  }, z.core.$strip>;
@@ -85,6 +87,7 @@ declare const PipelineTemplateSchema: z.ZodObject<{
85
87
  openvino: "openvino";
86
88
  tflite: "tflite";
87
89
  pt: "pt";
90
+ gguf: "gguf";
88
91
  }>;
89
92
  device: z.ZodOptional<z.ZodString>;
90
93
  }, z.core.$strip>;
@@ -242,6 +245,7 @@ declare const PipelineSchemaSchema: z.ZodObject<{
242
245
  openvino: "openvino";
243
246
  tflite: "tflite";
244
247
  pt: "pt";
248
+ gguf: "gguf";
245
249
  }>;
246
250
  device: z.ZodOptional<z.ZodString>;
247
251
  }, z.core.$strip>;
@@ -264,6 +268,7 @@ declare const PipelineSchemaSchema: z.ZodObject<{
264
268
  openvino: "openvino";
265
269
  tflite: "tflite";
266
270
  pt: "pt";
271
+ gguf: "gguf";
267
272
  }>;
268
273
  device: z.ZodOptional<z.ZodString>;
269
274
  }, z.core.$strip>;
@@ -340,6 +345,7 @@ declare const EngineProvisioningSchema: z.ZodObject<{
340
345
  onnx: "onnx";
341
346
  coreml: "coreml";
342
347
  openvino: "openvino";
348
+ edgetpu: "edgetpu";
343
349
  }>>;
344
350
  device: z.ZodNullable<z.ZodString>;
345
351
  state: z.ZodEnum<{
@@ -427,6 +433,7 @@ export declare const pipelineExecutorCapability: {
427
433
  openvino: "openvino";
428
434
  tflite: "tflite";
429
435
  pt: "pt";
436
+ gguf: "gguf";
430
437
  }>;
431
438
  device: z.ZodOptional<z.ZodString>;
432
439
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -442,6 +449,7 @@ export declare const pipelineExecutorCapability: {
442
449
  openvino: "openvino";
443
450
  tflite: "tflite";
444
451
  pt: "pt";
452
+ gguf: "gguf";
445
453
  }>;
446
454
  device: z.ZodOptional<z.ZodString>;
447
455
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -457,6 +465,7 @@ export declare const pipelineExecutorCapability: {
457
465
  openvino: "openvino";
458
466
  tflite: "tflite";
459
467
  pt: "pt";
468
+ gguf: "gguf";
460
469
  }>;
461
470
  device: z.ZodOptional<z.ZodString>;
462
471
  }, z.core.$strip>, z.ZodArray<z.ZodType<PipelineDefaultStepOutput, unknown, z.core.$ZodTypeInternals<PipelineDefaultStepOutput, unknown>>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -482,6 +491,7 @@ export declare const pipelineExecutorCapability: {
482
491
  openvino: "openvino";
483
492
  tflite: "tflite";
484
493
  pt: "pt";
494
+ gguf: "gguf";
485
495
  }>;
486
496
  device: z.ZodOptional<z.ZodString>;
487
497
  }, z.core.$strip>, "mutation">;
@@ -500,6 +510,7 @@ export declare const pipelineExecutorCapability: {
500
510
  onnx: "onnx";
501
511
  coreml: "coreml";
502
512
  openvino: "openvino";
513
+ edgetpu: "edgetpu";
503
514
  }>>;
504
515
  device: z.ZodNullable<z.ZodString>;
505
516
  state: z.ZodEnum<{
@@ -561,6 +572,7 @@ export declare const pipelineExecutorCapability: {
561
572
  openvino: "openvino";
562
573
  tflite: "tflite";
563
574
  pt: "pt";
575
+ gguf: "gguf";
564
576
  }>;
565
577
  device: z.ZodOptional<z.ZodString>;
566
578
  }, z.core.$strip>;
@@ -583,6 +595,7 @@ export declare const pipelineExecutorCapability: {
583
595
  openvino: "openvino";
584
596
  tflite: "tflite";
585
597
  pt: "pt";
598
+ gguf: "gguf";
586
599
  }>;
587
600
  device: z.ZodOptional<z.ZodString>;
588
601
  }, z.core.$strip>;
@@ -706,6 +719,7 @@ export declare const pipelineExecutorCapability: {
706
719
  openvino: "openvino";
707
720
  tflite: "tflite";
708
721
  pt: "pt";
722
+ gguf: "gguf";
709
723
  }>;
710
724
  device: z.ZodOptional<z.ZodString>;
711
725
  }, z.core.$strip>;
@@ -726,6 +740,7 @@ export declare const pipelineExecutorCapability: {
726
740
  openvino: "openvino";
727
741
  tflite: "tflite";
728
742
  pt: "pt";
743
+ gguf: "gguf";
729
744
  }>;
730
745
  device: z.ZodOptional<z.ZodString>;
731
746
  }, z.core.$strip>;
@@ -746,6 +761,7 @@ export declare const pipelineExecutorCapability: {
746
761
  openvino: "openvino";
747
762
  tflite: "tflite";
748
763
  pt: "pt";
764
+ gguf: "gguf";
749
765
  }>;
750
766
  device: z.ZodOptional<z.ZodString>;
751
767
  }, z.core.$strip>;
@@ -772,6 +788,7 @@ export declare const pipelineExecutorCapability: {
772
788
  openvino: "openvino";
773
789
  tflite: "tflite";
774
790
  pt: "pt";
791
+ gguf: "gguf";
775
792
  }>;
776
793
  device: z.ZodOptional<z.ZodString>;
777
794
  }, z.core.$strip>;
@@ -793,6 +810,7 @@ export declare const pipelineExecutorCapability: {
793
810
  openvino: "openvino";
794
811
  tflite: "tflite";
795
812
  pt: "pt";
813
+ gguf: "gguf";
796
814
  }>;
797
815
  }, z.core.$strip>, z.ZodObject<{
798
816
  filePath: z.ZodString;
@@ -808,6 +826,7 @@ export declare const pipelineExecutorCapability: {
808
826
  openvino: "openvino";
809
827
  tflite: "tflite";
810
828
  pt: "pt";
829
+ gguf: "gguf";
811
830
  }>;
812
831
  }, z.core.$strip>, z.ZodObject<{
813
832
  success: z.ZodLiteral<true>;
@@ -851,6 +870,7 @@ export declare const pipelineExecutorCapability: {
851
870
  openvino: "openvino";
852
871
  tflite: "tflite";
853
872
  pt: "pt";
873
+ gguf: "gguf";
854
874
  }>;
855
875
  device: z.ZodOptional<z.ZodString>;
856
876
  }, z.core.$strip>>;
@@ -920,6 +940,7 @@ export declare const pipelineExecutorCapability: {
920
940
  openvino: "openvino";
921
941
  tflite: "tflite";
922
942
  pt: "pt";
943
+ gguf: "gguf";
923
944
  }>;
924
945
  device: z.ZodOptional<z.ZodString>;
925
946
  }, z.core.$strip>>;
@@ -1003,6 +1024,7 @@ export declare const pipelineExecutorCapability: {
1003
1024
  openvino: "openvino";
1004
1025
  tflite: "tflite";
1005
1026
  pt: "pt";
1027
+ gguf: "gguf";
1006
1028
  }>;
1007
1029
  device: z.ZodOptional<z.ZodString>;
1008
1030
  }, z.core.$strip>;
@@ -1030,6 +1052,7 @@ export declare const pipelineExecutorCapability: {
1030
1052
  openvino: "openvino";
1031
1053
  tflite: "tflite";
1032
1054
  pt: "pt";
1055
+ gguf: "gguf";
1033
1056
  }>;
1034
1057
  device: z.ZodOptional<z.ZodString>;
1035
1058
  }, z.core.$strip>;
@@ -1054,6 +1077,7 @@ export declare const pipelineExecutorCapability: {
1054
1077
  openvino: "openvino";
1055
1078
  tflite: "tflite";
1056
1079
  pt: "pt";
1080
+ gguf: "gguf";
1057
1081
  }>;
1058
1082
  device: z.ZodOptional<z.ZodString>;
1059
1083
  }, z.core.$strip>;