@camstack/types 1.2.109 → 1.2.111

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 (55) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/addons.cap.d.ts +9 -9
  4. package/dist/capabilities/broker.cap.d.ts +4 -4
  5. package/dist/capabilities/camera-streams.cap.d.ts +5 -5
  6. package/dist/capabilities/climate-control.cap.d.ts +8 -8
  7. package/dist/capabilities/core-blocks.cap.d.ts +16 -16
  8. package/dist/capabilities/day-night.cap.d.ts +8 -8
  9. package/dist/capabilities/decoder.cap.d.ts +13 -13
  10. package/dist/capabilities/device-manager.cap.d.ts +5 -5
  11. package/dist/capabilities/face-gallery.cap.d.ts +1 -1
  12. package/dist/capabilities/image-settings.cap.d.ts +16 -16
  13. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  14. package/dist/capabilities/llm.cap.d.ts +4 -4
  15. package/dist/capabilities/media-player.cap.d.ts +9 -9
  16. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  17. package/dist/capabilities/model-convert.cap.d.ts +3 -3
  18. package/dist/capabilities/motion-detection.cap.d.ts +4 -4
  19. package/dist/capabilities/notification-output.cap.d.ts +9 -9
  20. package/dist/capabilities/notification-rules.cap.d.ts +10 -10
  21. package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
  22. package/dist/capabilities/osd-manager.cap.d.ts +2 -2
  23. package/dist/capabilities/pipeline-analytics.cap.d.ts +191 -54
  24. package/dist/capabilities/pipeline-executor.cap.d.ts +117 -19
  25. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +21 -21
  26. package/dist/capabilities/pipeline-runner.cap.d.ts +6 -6
  27. package/dist/capabilities/platform-probe.cap.d.ts +2 -2
  28. package/dist/capabilities/recording-export.cap.d.ts +7 -7
  29. package/dist/capabilities/recording.cap.d.ts +7 -7
  30. package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
  31. package/dist/capabilities/schemas/orchestrator-metrics.d.ts +2 -2
  32. package/dist/capabilities/schemas/streaming-shared.d.ts +11 -11
  33. package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
  34. package/dist/capabilities/storage-migration.cap.d.ts +4 -4
  35. package/dist/capabilities/storage.cap.d.ts +2 -2
  36. package/dist/capabilities/stream-broker.cap.d.ts +50 -50
  37. package/dist/capabilities/user-management.cap.d.ts +20 -20
  38. package/dist/capabilities/vacuum-control.cap.d.ts +26 -26
  39. package/dist/capabilities/webrtc-session.cap.d.ts +4 -4
  40. package/dist/generated/addon-api.d.ts +50 -8
  41. package/dist/generated/method-access-map.d.ts +1 -1
  42. package/dist/generated/method-device-selectors.d.ts +1 -1
  43. package/dist/generated/system-proxy.d.ts +1 -1
  44. package/dist/index.js +2140 -1951
  45. package/dist/index.mjs +2140 -1951
  46. package/dist/interfaces/adoption-job.d.ts +2 -2
  47. package/dist/interfaces/relocate.d.ts +10 -10
  48. package/dist/interfaces/stream-broker.d.ts +2 -2
  49. package/dist/lifecycle/job.d.ts +8 -8
  50. package/dist/{sleep-BJTBu5cu.js → sleep-BCRrMlni.js} +4 -0
  51. package/dist/{sleep-Dj1DG9Od.mjs → sleep-DJlqY62B.mjs} +4 -0
  52. package/dist/types/frame-view.d.ts +10 -24
  53. package/dist/types/labels.d.ts +30 -1
  54. package/dist/types/models.d.ts +4 -4
  55. package/package.json +1 -1
@@ -26,9 +26,9 @@ import { type InferProvider } from './capability-definition.js';
26
26
  * (per-device surface) and `track-trail` caps — see P11 cleanup.
27
27
  */
28
28
  declare const TrackStateSchema: z.ZodEnum<{
29
- idle: "idle";
30
29
  moving: "moving";
31
30
  left: "left";
31
+ idle: "idle";
32
32
  new: "new";
33
33
  entered: "entered";
34
34
  }>;
@@ -411,9 +411,9 @@ declare const TrackSchema: z.ZodObject<{
411
411
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
412
412
  totalDistance: z.ZodNumber;
413
413
  state: z.ZodEnum<{
414
- idle: "idle";
415
414
  moving: "moving";
416
415
  left: "left";
416
+ idle: "idle";
417
417
  new: "new";
418
418
  entered: "entered";
419
419
  }>;
@@ -539,9 +539,9 @@ declare const ObjectEventSchema: z.ZodObject<{
539
539
  }, z.core.$strip>>;
540
540
  zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
541
541
  state: z.ZodOptional<z.ZodEnum<{
542
- idle: "idle";
543
542
  moving: "moving";
544
543
  left: "left";
544
+ idle: "idle";
545
545
  new: "new";
546
546
  entered: "entered";
547
547
  }>>;
@@ -604,8 +604,8 @@ declare const AudioEventSchema: z.ZodObject<{
604
604
  }, z.core.$strip>;
605
605
  export type AudioEvent = z.infer<typeof AudioEventSchema>;
606
606
  declare const MediaFileKindEnum: z.ZodEnum<{
607
- snapshot: "snapshot";
608
607
  crop: "crop";
608
+ snapshot: "snapshot";
609
609
  keyFrame: "keyFrame";
610
610
  thumbnail: "thumbnail";
611
611
  firstFrame: "firstFrame";
@@ -621,8 +621,8 @@ export type MediaFileKind = z.infer<typeof MediaFileKindEnum>;
621
621
  declare const MediaFileSchema: z.ZodObject<{
622
622
  key: z.ZodString;
623
623
  kind: z.ZodEnum<{
624
- snapshot: "snapshot";
625
624
  crop: "crop";
625
+ snapshot: "snapshot";
626
626
  keyFrame: "keyFrame";
627
627
  thumbnail: "thumbnail";
628
628
  firstFrame: "firstFrame";
@@ -655,8 +655,8 @@ declare const MediaFileInfoSchema: z.ZodObject<{
655
655
  key: z.ZodString;
656
656
  timestamp: z.ZodNumber;
657
657
  kind: z.ZodEnum<{
658
- snapshot: "snapshot";
659
658
  crop: "crop";
659
+ snapshot: "snapshot";
660
660
  keyFrame: "keyFrame";
661
661
  thumbnail: "thumbnail";
662
662
  firstFrame: "firstFrame";
@@ -748,6 +748,12 @@ export declare const RetrainAnnotationSchema: z.ZodObject<{
748
748
  export type RetrainAnnotation = z.infer<typeof RetrainAnnotationSchema>;
749
749
  /** The write form — the server owns `id`, `createdAt` and the frame binding. */
750
750
  export declare const RetrainAnnotationDraftSchema: z.ZodObject<{
751
+ bbox: z.ZodObject<{
752
+ x: z.ZodNumber;
753
+ y: z.ZodNumber;
754
+ w: z.ZodNumber;
755
+ h: z.ZodNumber;
756
+ }, z.core.$strip>;
751
757
  kind: z.ZodEnum<{
752
758
  subject: "subject";
753
759
  model_error: "model_error";
@@ -757,12 +763,6 @@ export declare const RetrainAnnotationDraftSchema: z.ZodObject<{
757
763
  operator: "operator";
758
764
  assist: "assist";
759
765
  }>;
760
- bbox: z.ZodObject<{
761
- x: z.ZodNumber;
762
- y: z.ZodNumber;
763
- w: z.ZodNumber;
764
- h: z.ZodNumber;
765
- }, z.core.$strip>;
766
766
  macroClass: z.ZodEnum<{
767
767
  person: "person";
768
768
  vehicle: "vehicle";
@@ -792,8 +792,8 @@ export type RetrainTrack = z.infer<typeof RetrainTrackSchema>;
792
792
  export declare const RetrainFrameCandidateSchema: z.ZodObject<{
793
793
  mediaKey: z.ZodString;
794
794
  kind: z.ZodEnum<{
795
- snapshot: "snapshot";
796
795
  crop: "crop";
796
+ snapshot: "snapshot";
797
797
  keyFrame: "keyFrame";
798
798
  thumbnail: "thumbnail";
799
799
  firstFrame: "firstFrame";
@@ -817,8 +817,8 @@ export declare const RetrainFrameSchema: z.ZodObject<{
817
817
  trackId: z.ZodString;
818
818
  sourceMediaKey: z.ZodString;
819
819
  sourceKind: z.ZodEnum<{
820
- snapshot: "snapshot";
821
820
  crop: "crop";
821
+ snapshot: "snapshot";
822
822
  keyFrame: "keyFrame";
823
823
  thumbnail: "thumbnail";
824
824
  firstFrame: "firstFrame";
@@ -849,8 +849,8 @@ export declare const RetrainFrameSelectionSchema: z.ZodObject<{
849
849
  trackId: z.ZodString;
850
850
  sourceMediaKey: z.ZodString;
851
851
  sourceKind: z.ZodEnum<{
852
- snapshot: "snapshot";
853
852
  crop: "crop";
853
+ snapshot: "snapshot";
854
854
  keyFrame: "keyFrame";
855
855
  thumbnail: "thumbnail";
856
856
  firstFrame: "firstFrame";
@@ -881,8 +881,8 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
881
881
  candidates: z.ZodReadonly<z.ZodArray<z.ZodObject<{
882
882
  mediaKey: z.ZodString;
883
883
  kind: z.ZodEnum<{
884
- snapshot: "snapshot";
885
884
  crop: "crop";
885
+ snapshot: "snapshot";
886
886
  keyFrame: "keyFrame";
887
887
  thumbnail: "thumbnail";
888
888
  firstFrame: "firstFrame";
@@ -904,8 +904,8 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
904
904
  trackId: z.ZodString;
905
905
  sourceMediaKey: z.ZodString;
906
906
  sourceKind: z.ZodEnum<{
907
- snapshot: "snapshot";
908
907
  crop: "crop";
908
+ snapshot: "snapshot";
909
909
  keyFrame: "keyFrame";
910
910
  thumbnail: "thumbnail";
911
911
  firstFrame: "firstFrame";
@@ -950,6 +950,12 @@ export declare const RetrainAssistResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
950
950
  stepId: z.ZodString;
951
951
  minScore: z.ZodNumber;
952
952
  proposals: z.ZodReadonly<z.ZodArray<z.ZodObject<{
953
+ bbox: z.ZodObject<{
954
+ x: z.ZodNumber;
955
+ y: z.ZodNumber;
956
+ w: z.ZodNumber;
957
+ h: z.ZodNumber;
958
+ }, z.core.$strip>;
953
959
  kind: z.ZodEnum<{
954
960
  subject: "subject";
955
961
  model_error: "model_error";
@@ -959,12 +965,6 @@ export declare const RetrainAssistResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
959
965
  operator: "operator";
960
966
  assist: "assist";
961
967
  }>;
962
- bbox: z.ZodObject<{
963
- x: z.ZodNumber;
964
- y: z.ZodNumber;
965
- w: z.ZodNumber;
966
- h: z.ZodNumber;
967
- }, z.core.$strip>;
968
968
  macroClass: z.ZodEnum<{
969
969
  person: "person";
970
970
  vehicle: "vehicle";
@@ -1064,9 +1064,9 @@ declare const RecentTracksPageSchema: z.ZodObject<{
1064
1064
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1065
1065
  totalDistance: z.ZodNumber;
1066
1066
  state: z.ZodEnum<{
1067
- idle: "idle";
1068
1067
  moving: "moving";
1069
1068
  left: "left";
1069
+ idle: "idle";
1070
1070
  new: "new";
1071
1071
  entered: "entered";
1072
1072
  }>;
@@ -1229,9 +1229,9 @@ declare const TrackedDetectionSchema: z.ZodObject<{
1229
1229
  }, z.core.$strip>;
1230
1230
  zones: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1231
1231
  state: z.ZodEnum<{
1232
- idle: "idle";
1233
1232
  moving: "moving";
1234
1233
  left: "left";
1234
+ idle: "idle";
1235
1235
  new: "new";
1236
1236
  entered: "entered";
1237
1237
  }>;
@@ -1246,9 +1246,9 @@ export declare const ScoredObjectEventSchema: z.ZodObject<{
1246
1246
  }, z.core.$strip>>;
1247
1247
  zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1248
1248
  state: z.ZodOptional<z.ZodEnum<{
1249
- idle: "idle";
1250
1249
  moving: "moving";
1251
1250
  left: "left";
1251
+ idle: "idle";
1252
1252
  new: "new";
1253
1253
  entered: "entered";
1254
1254
  }>>;
@@ -1338,6 +1338,34 @@ declare const EventPruneCountsSchema: z.ZodObject<{
1338
1338
  audio: z.ZodNumber;
1339
1339
  }, z.core.$strip>;
1340
1340
  export type EventPruneCounts = z.infer<typeof EventPruneCountsSchema>;
1341
+ declare const ReplayTrackSchema: z.ZodObject<{
1342
+ className: z.ZodString;
1343
+ firstSeenMs: z.ZodNumber;
1344
+ lastSeenMs: z.ZodNumber;
1345
+ bbox: z.ZodObject<{
1346
+ x: z.ZodNumber;
1347
+ y: z.ZodNumber;
1348
+ w: z.ZodNumber;
1349
+ h: z.ZodNumber;
1350
+ }, z.core.$strip>;
1351
+ framesMatched: z.ZodNumber;
1352
+ }, z.core.$strip>;
1353
+ declare const RunReplayFrameProcessorResultSchema: z.ZodObject<{
1354
+ tracks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1355
+ className: z.ZodString;
1356
+ firstSeenMs: z.ZodNumber;
1357
+ lastSeenMs: z.ZodNumber;
1358
+ bbox: z.ZodObject<{
1359
+ x: z.ZodNumber;
1360
+ y: z.ZodNumber;
1361
+ w: z.ZodNumber;
1362
+ h: z.ZodNumber;
1363
+ }, z.core.$strip>;
1364
+ framesMatched: z.ZodNumber;
1365
+ }, z.core.$strip>>>;
1366
+ }, z.core.$strip>;
1367
+ export type ReplayTrack = z.infer<typeof ReplayTrackSchema>;
1368
+ export type RunReplayFrameProcessorResult = z.infer<typeof RunReplayFrameProcessorResultSchema>;
1341
1369
  export declare const pipelineAnalyticsCapability: {
1342
1370
  readonly name: "pipeline-analytics";
1343
1371
  readonly scope: "device";
@@ -1397,9 +1425,9 @@ export declare const pipelineAnalyticsCapability: {
1397
1425
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1398
1426
  totalDistance: z.ZodNumber;
1399
1427
  state: z.ZodEnum<{
1400
- idle: "idle";
1401
1428
  moving: "moving";
1402
1429
  left: "left";
1430
+ idle: "idle";
1403
1431
  new: "new";
1404
1432
  entered: "entered";
1405
1433
  }>;
@@ -1494,9 +1522,9 @@ export declare const pipelineAnalyticsCapability: {
1494
1522
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1495
1523
  totalDistance: z.ZodNumber;
1496
1524
  state: z.ZodEnum<{
1497
- idle: "idle";
1498
1525
  moving: "moving";
1499
1526
  left: "left";
1527
+ idle: "idle";
1500
1528
  new: "new";
1501
1529
  entered: "entered";
1502
1530
  }>;
@@ -1614,9 +1642,9 @@ export declare const pipelineAnalyticsCapability: {
1614
1642
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1615
1643
  totalDistance: z.ZodNumber;
1616
1644
  state: z.ZodEnum<{
1617
- idle: "idle";
1618
1645
  moving: "moving";
1619
1646
  left: "left";
1647
+ idle: "idle";
1620
1648
  new: "new";
1621
1649
  entered: "entered";
1622
1650
  }>;
@@ -1730,9 +1758,9 @@ export declare const pipelineAnalyticsCapability: {
1730
1758
  classes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1731
1759
  totalDistance: z.ZodNumber;
1732
1760
  state: z.ZodEnum<{
1733
- idle: "idle";
1734
1761
  moving: "moving";
1735
1762
  left: "left";
1763
+ idle: "idle";
1736
1764
  new: "new";
1737
1765
  entered: "entered";
1738
1766
  }>;
@@ -1881,9 +1909,9 @@ export declare const pipelineAnalyticsCapability: {
1881
1909
  }, z.core.$strip>>;
1882
1910
  zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1883
1911
  state: z.ZodOptional<z.ZodEnum<{
1884
- idle: "idle";
1885
1912
  moving: "moving";
1886
1913
  left: "left";
1914
+ idle: "idle";
1887
1915
  new: "new";
1888
1916
  entered: "entered";
1889
1917
  }>>;
@@ -2369,10 +2397,10 @@ export declare const pipelineAnalyticsCapability: {
2369
2397
  }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
2370
2398
  jobId: z.ZodString;
2371
2399
  state: z.ZodEnum<{
2400
+ failed: "failed";
2372
2401
  running: "running";
2373
2402
  queued: "queued";
2374
2403
  done: "done";
2375
- failed: "failed";
2376
2404
  cancelled: "cancelled";
2377
2405
  }>;
2378
2406
  fromLocationId: z.ZodString;
@@ -2391,6 +2419,48 @@ export declare const pipelineAnalyticsCapability: {
2391
2419
  }, z.core.$strip>, z.ZodObject<{
2392
2420
  cancelled: z.ZodBoolean;
2393
2421
  }, z.core.$strip>, "mutation">;
2422
+ /**
2423
+ * Moves event media between locations — the OPERATOR's mover, without the
2424
+ * coordinator's lease. Twin of `recording.relocateFootage`: the same
2425
+ * engine the lease-gated coordinated migration uses
2426
+ * (`startStorageMigrationMove`), armable in the background and WITHOUT
2427
+ * pausing anything. Exists because `eventMedia` was the only storage
2428
+ * class whose only move path went through the recorder's global pause.
2429
+ */
2430
+ readonly relocateMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2431
+ toLocationId: z.ZodString;
2432
+ throttleMbps: z.ZodOptional<z.ZodNumber>;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ jobId: z.ZodString;
2435
+ }, z.core.$strip>, "mutation">;
2436
+ /** Every relocate job this addon knows about, newest first (in RAM: the
2437
+ * move is resumable, so a lost list costs nothing but the display). */
2438
+ readonly listRelocateMediaJobs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
2439
+ jobId: z.ZodString;
2440
+ state: z.ZodEnum<{
2441
+ failed: "failed";
2442
+ running: "running";
2443
+ queued: "queued";
2444
+ done: "done";
2445
+ cancelled: "cancelled";
2446
+ }>;
2447
+ fromLocationId: z.ZodString;
2448
+ toLocationId: z.ZodString;
2449
+ deviceId: z.ZodNullable<z.ZodNumber>;
2450
+ entities: z.ZodArray<z.ZodString>;
2451
+ filesMoved: z.ZodNumber;
2452
+ bytesMoved: z.ZodNumber;
2453
+ filesTotal: z.ZodNullable<z.ZodNumber>;
2454
+ startedAt: z.ZodNumber;
2455
+ finishedAt: z.ZodNullable<z.ZodNumber>;
2456
+ error: z.ZodNullable<z.ZodString>;
2457
+ }, z.core.$strip>>>, "query">;
2458
+ /** Cancel a running or queued relocate job. */
2459
+ readonly cancelRelocateMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2460
+ jobId: z.ZodString;
2461
+ }, z.core.$strip>, z.ZodObject<{
2462
+ cancelled: z.ZodBoolean;
2463
+ }, z.core.$strip>, "mutation">;
2394
2464
  readonly listOpsLog: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2395
2465
  deviceId: z.ZodOptional<z.ZodNumber>;
2396
2466
  limit: z.ZodOptional<z.ZodNumber>;
@@ -2515,8 +2585,8 @@ export declare const pipelineAnalyticsCapability: {
2515
2585
  candidates: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2516
2586
  mediaKey: z.ZodString;
2517
2587
  kind: z.ZodEnum<{
2518
- snapshot: "snapshot";
2519
2588
  crop: "crop";
2589
+ snapshot: "snapshot";
2520
2590
  keyFrame: "keyFrame";
2521
2591
  thumbnail: "thumbnail";
2522
2592
  firstFrame: "firstFrame";
@@ -2538,8 +2608,8 @@ export declare const pipelineAnalyticsCapability: {
2538
2608
  trackId: z.ZodString;
2539
2609
  sourceMediaKey: z.ZodString;
2540
2610
  sourceKind: z.ZodEnum<{
2541
- snapshot: "snapshot";
2542
2611
  crop: "crop";
2612
+ snapshot: "snapshot";
2543
2613
  keyFrame: "keyFrame";
2544
2614
  thumbnail: "thumbnail";
2545
2615
  firstFrame: "firstFrame";
@@ -2583,8 +2653,8 @@ export declare const pipelineAnalyticsCapability: {
2583
2653
  trackId: z.ZodString;
2584
2654
  sourceMediaKey: z.ZodString;
2585
2655
  sourceKind: z.ZodEnum<{
2586
- snapshot: "snapshot";
2587
2656
  crop: "crop";
2657
+ snapshot: "snapshot";
2588
2658
  keyFrame: "keyFrame";
2589
2659
  thumbnail: "thumbnail";
2590
2660
  firstFrame: "firstFrame";
@@ -2676,6 +2746,12 @@ export declare const pipelineAnalyticsCapability: {
2676
2746
  stepId: z.ZodString;
2677
2747
  minScore: z.ZodNumber;
2678
2748
  proposals: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2749
+ bbox: z.ZodObject<{
2750
+ x: z.ZodNumber;
2751
+ y: z.ZodNumber;
2752
+ w: z.ZodNumber;
2753
+ h: z.ZodNumber;
2754
+ }, z.core.$strip>;
2679
2755
  kind: z.ZodEnum<{
2680
2756
  subject: "subject";
2681
2757
  model_error: "model_error";
@@ -2685,12 +2761,6 @@ export declare const pipelineAnalyticsCapability: {
2685
2761
  operator: "operator";
2686
2762
  assist: "assist";
2687
2763
  }>;
2688
- bbox: z.ZodObject<{
2689
- x: z.ZodNumber;
2690
- y: z.ZodNumber;
2691
- w: z.ZodNumber;
2692
- h: z.ZodNumber;
2693
- }, z.core.$strip>;
2694
2764
  macroClass: z.ZodEnum<{
2695
2765
  person: "person";
2696
2766
  vehicle: "vehicle";
@@ -2709,6 +2779,73 @@ export declare const pipelineAnalyticsCapability: {
2709
2779
  reason: z.ZodString;
2710
2780
  detail: z.ZodOptional<z.ZodString>;
2711
2781
  }, z.core.$strip>], "kind">, "mutation">;
2782
+ /**
2783
+ * The FrameProcessor pass of a replay run — see the `Replay` section
2784
+ * above this capability's definition for why this is not the
2785
+ * `processFrame` method this file's header says pipeline-analytics does
2786
+ * not have.
2787
+ *
2788
+ * Constructs a FRESH `FrameProcessor` for `(deviceId, source)`, feeds it
2789
+ * `frames` IN THE ORDER GIVEN (the caller is responsible for time
2790
+ * ordering — this method does not sort), and returns the tracks it
2791
+ * produced. Zero persistence: no `TrackStore`, no event bus, no media
2792
+ * capture. `zones` / `detectionRules` are the run's OWN zone set —
2793
+ * typically the camera's real zones plus an ephemeral overlay
2794
+ * (`addon-benchmark`'s `replay-plan.ts`), never read from or written to
2795
+ * the `zones` capability by this method itself.
2796
+ */
2797
+ readonly runReplayFrameProcessor: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2798
+ deviceId: z.ZodNumber;
2799
+ source: z.ZodEnum<{
2800
+ pipeline: "pipeline";
2801
+ onboard: "onboard";
2802
+ }>;
2803
+ zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ name: z.ZodString;
2806
+ kind: z.ZodDefault<z.ZodEnum<{
2807
+ polygon: "polygon";
2808
+ tripwire: "tripwire";
2809
+ }>>;
2810
+ polygon: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2811
+ x: z.ZodNumber;
2812
+ y: z.ZodNumber;
2813
+ }, z.core.$strip>>>;
2814
+ color: z.ZodDefault<z.ZodString>;
2815
+ }, z.core.$strip>>>>;
2816
+ detectionRules: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
2817
+ id: z.ZodString;
2818
+ name: z.ZodOptional<z.ZodString>;
2819
+ zoneIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2820
+ mode: z.ZodEnum<{
2821
+ include: "include";
2822
+ exclude: "exclude";
2823
+ }>;
2824
+ classFilter: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
2825
+ overlapThreshold: z.ZodOptional<z.ZodNumber>;
2826
+ bboxInclusionPct: z.ZodOptional<z.ZodNumber>;
2827
+ preferMask: z.ZodOptional<z.ZodBoolean>;
2828
+ enabled: z.ZodDefault<z.ZodBoolean>;
2829
+ }, z.core.$strip>>>>;
2830
+ zoneMembershipMinOverlap: z.ZodOptional<z.ZodNumber>;
2831
+ frames: z.ZodArray<z.ZodObject<{
2832
+ timestamp: z.ZodNumber;
2833
+ frame: z.ZodCustom<import("../index.js").FrameResult, import("../index.js").FrameResult>;
2834
+ }, z.core.$strip>>;
2835
+ }, z.core.$strip>, z.ZodObject<{
2836
+ tracks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2837
+ className: z.ZodString;
2838
+ firstSeenMs: z.ZodNumber;
2839
+ lastSeenMs: z.ZodNumber;
2840
+ bbox: z.ZodObject<{
2841
+ x: z.ZodNumber;
2842
+ y: z.ZodNumber;
2843
+ w: z.ZodNumber;
2844
+ h: z.ZodNumber;
2845
+ }, z.core.$strip>;
2846
+ framesMatched: z.ZodNumber;
2847
+ }, z.core.$strip>>>;
2848
+ }, z.core.$strip>, "mutation">;
2712
2849
  /** Every annotation on a track, oldest first. */
2713
2850
  readonly listRetrainAnnotations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2714
2851
  trackId: z.ZodString;
@@ -2764,6 +2901,12 @@ export declare const pipelineAnalyticsCapability: {
2764
2901
  trackId: z.ZodString;
2765
2902
  frameId: z.ZodString;
2766
2903
  annotations: z.ZodArray<z.ZodObject<{
2904
+ bbox: z.ZodObject<{
2905
+ x: z.ZodNumber;
2906
+ y: z.ZodNumber;
2907
+ w: z.ZodNumber;
2908
+ h: z.ZodNumber;
2909
+ }, z.core.$strip>;
2767
2910
  kind: z.ZodEnum<{
2768
2911
  subject: "subject";
2769
2912
  model_error: "model_error";
@@ -2773,12 +2916,6 @@ export declare const pipelineAnalyticsCapability: {
2773
2916
  operator: "operator";
2774
2917
  assist: "assist";
2775
2918
  }>;
2776
- bbox: z.ZodObject<{
2777
- x: z.ZodNumber;
2778
- y: z.ZodNumber;
2779
- w: z.ZodNumber;
2780
- h: z.ZodNumber;
2781
- }, z.core.$strip>;
2782
2919
  macroClass: z.ZodEnum<{
2783
2920
  person: "person";
2784
2921
  vehicle: "vehicle";
@@ -2902,8 +3039,8 @@ export declare const pipelineAnalyticsCapability: {
2902
3039
  readonly getEventMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2903
3040
  eventId: z.ZodString;
2904
3041
  kind: z.ZodOptional<z.ZodEnum<{
2905
- snapshot: "snapshot";
2906
3042
  crop: "crop";
3043
+ snapshot: "snapshot";
2907
3044
  keyFrame: "keyFrame";
2908
3045
  thumbnail: "thumbnail";
2909
3046
  firstFrame: "firstFrame";
@@ -2919,8 +3056,8 @@ export declare const pipelineAnalyticsCapability: {
2919
3056
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
2920
3057
  key: z.ZodString;
2921
3058
  kind: z.ZodEnum<{
2922
- snapshot: "snapshot";
2923
3059
  crop: "crop";
3060
+ snapshot: "snapshot";
2924
3061
  keyFrame: "keyFrame";
2925
3062
  thumbnail: "thumbnail";
2926
3063
  firstFrame: "firstFrame";
@@ -2943,8 +3080,8 @@ export declare const pipelineAnalyticsCapability: {
2943
3080
  readonly getTrackMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
2944
3081
  trackId: z.ZodString;
2945
3082
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2946
- snapshot: "snapshot";
2947
3083
  crop: "crop";
3084
+ snapshot: "snapshot";
2948
3085
  keyFrame: "keyFrame";
2949
3086
  thumbnail: "thumbnail";
2950
3087
  firstFrame: "firstFrame";
@@ -2960,8 +3097,8 @@ export declare const pipelineAnalyticsCapability: {
2960
3097
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
2961
3098
  key: z.ZodString;
2962
3099
  kind: z.ZodEnum<{
2963
- snapshot: "snapshot";
2964
3100
  crop: "crop";
3101
+ snapshot: "snapshot";
2965
3102
  keyFrame: "keyFrame";
2966
3103
  thumbnail: "thumbnail";
2967
3104
  firstFrame: "firstFrame";
@@ -2999,8 +3136,8 @@ export declare const pipelineAnalyticsCapability: {
2999
3136
  key: z.ZodString;
3000
3137
  timestamp: z.ZodNumber;
3001
3138
  kind: z.ZodEnum<{
3002
- snapshot: "snapshot";
3003
3139
  crop: "crop";
3140
+ snapshot: "snapshot";
3004
3141
  keyFrame: "keyFrame";
3005
3142
  thumbnail: "thumbnail";
3006
3143
  firstFrame: "firstFrame";
@@ -3040,9 +3177,9 @@ export declare const pipelineAnalyticsCapability: {
3040
3177
  }, z.core.$strip>>;
3041
3178
  zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
3042
3179
  state: z.ZodOptional<z.ZodEnum<{
3043
- idle: "idle";
3044
3180
  moving: "moving";
3045
3181
  left: "left";
3182
+ idle: "idle";
3046
3183
  new: "new";
3047
3184
  entered: "entered";
3048
3185
  }>>;
@@ -3136,8 +3273,8 @@ export declare const pipelineAnalyticsCapability: {
3136
3273
  detections: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3137
3274
  id: z.ZodString;
3138
3275
  kind: z.ZodEnum<{
3139
- "first-level": "first-level";
3140
3276
  detail: "detail";
3277
+ "first-level": "first-level";
3141
3278
  }>;
3142
3279
  macroClass: z.ZodString;
3143
3280
  score: z.ZodNumber;