@camstack/types 1.2.259 → 1.2.261

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 (73) hide show
  1. package/dist/addon/base-addon.d.ts +9 -1
  2. package/dist/addon.js +15 -7
  3. package/dist/addon.mjs +15 -7
  4. package/dist/capabilities/camera-streams.cap.d.ts +5 -5
  5. package/dist/capabilities/capability-definition.d.ts +9 -0
  6. package/dist/capabilities/custom-model-registry.cap.d.ts +18 -12
  7. package/dist/capabilities/decoder.cap.d.ts +12 -12
  8. package/dist/capabilities/device-extension.cap.d.ts +370 -0
  9. package/dist/capabilities/device-manager.cap.d.ts +45 -5
  10. package/dist/capabilities/doorbell.cap.d.ts +41 -0
  11. package/dist/capabilities/embedding-encoder.cap.d.ts +175 -0
  12. package/dist/capabilities/index.d.ts +17 -14
  13. package/dist/capabilities/llm-runtime.cap.d.ts +4 -4
  14. package/dist/capabilities/llm-shared.d.ts +6 -6
  15. package/dist/capabilities/llm.cap.d.ts +6 -6
  16. package/dist/capabilities/load-contribution.cap.d.ts +2 -2
  17. package/dist/capabilities/model-convert.cap.d.ts +9 -6
  18. package/dist/capabilities/model-distributor.cap.d.ts +18 -12
  19. package/dist/capabilities/motion-detection.cap.d.ts +4 -4
  20. package/dist/capabilities/notification-rules.cap.d.ts +603 -31
  21. package/dist/capabilities/osd-manager.cap.d.ts +7 -7
  22. package/dist/capabilities/pipeline-analytics.cap.d.ts +130 -129
  23. package/dist/capabilities/pipeline-executor.cap.d.ts +78 -120
  24. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +78 -65
  25. package/dist/capabilities/pipeline-runner.cap.d.ts +30 -6
  26. package/dist/capabilities/platform-probe.cap.d.ts +4 -13
  27. package/dist/capabilities/recording-export.cap.d.ts +7 -7
  28. package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
  29. package/dist/capabilities/schemas/streaming-shared.d.ts +8 -8
  30. package/dist/capabilities/stream-broker.cap.d.ts +9 -9
  31. package/dist/capabilities/system.cap.d.ts +2 -2
  32. package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
  33. package/dist/capabilities/vector-store.cap.d.ts +14 -0
  34. package/dist/capabilities/videoclips.cap.d.ts +5 -5
  35. package/dist/capabilities/webrtc-session.cap.d.ts +2 -2
  36. package/dist/device-extension/index.d.ts +3 -0
  37. package/dist/device-extension/slot-descriptor.d.ts +62 -0
  38. package/dist/device-extension/slot-provider.d.ts +68 -0
  39. package/dist/generated/addon-api.d.ts +59 -9
  40. package/dist/generated/cap-input-defaults.d.ts +1 -1
  41. package/dist/generated/capability-router-map.d.ts +5 -2
  42. package/dist/generated/collection-array-methods.d.ts +1 -1
  43. package/dist/generated/device-proxy.d.ts +7 -7
  44. package/dist/generated/device-scoped-caps.d.ts +1 -1
  45. package/dist/generated/extension-slots.d.ts +39 -0
  46. package/dist/generated/method-access-map.d.ts +1 -1
  47. package/dist/generated/method-device-selectors.d.ts +1 -1
  48. package/dist/generated/system-proxy.d.ts +4 -2
  49. package/dist/index.d.ts +8 -3
  50. package/dist/index.js +3125 -1792
  51. package/dist/index.mjs +3049 -1788
  52. package/dist/interfaces/addon.d.ts +41 -0
  53. package/dist/interfaces/event-bus.d.ts +11 -1
  54. package/dist/interfaces/pipeline-executor-capability.d.ts +15 -6
  55. package/dist/interfaces/platform.d.ts +2 -2
  56. package/dist/interfaces/stream-broker.d.ts +2 -2
  57. package/dist/node.d.ts +1 -0
  58. package/dist/node.js +73 -7
  59. package/dist/node.mjs +73 -8
  60. package/dist/notification/system-event-summary.d.ts +83 -0
  61. package/dist/notification/template-vars.d.ts +15 -0
  62. package/dist/pipeline/cluster-model-scope.d.ts +59 -3
  63. package/dist/{sleep-DU7mu4wb.mjs → sleep-BXv0ZcRa.mjs} +49 -33
  64. package/dist/{sleep-DtomDrRW.js → sleep-QxyLiUId.js} +54 -32
  65. package/dist/storage/atomic-write.d.ts +25 -0
  66. package/dist/types/clip-model.d.ts +64 -0
  67. package/dist/types/detection.d.ts +9 -0
  68. package/dist/types/models.d.ts +18 -19
  69. package/dist/types/pipeline-step.d.ts +9 -1
  70. package/dist/types/pipeline.d.ts +2 -1
  71. package/dist/utils/background-run-registry.d.ts +69 -0
  72. package/dist/utils/runtime-mapping.d.ts +9 -54
  73. package/package.json +1 -1
@@ -27,10 +27,10 @@ import { type InferProvider } from './capability-definition.js';
27
27
  */
28
28
  declare const TrackStateSchema: z.ZodEnum<{
29
29
  moving: "moving";
30
- left: "left";
31
- idle: "idle";
32
30
  new: "new";
33
31
  entered: "entered";
32
+ left: "left";
33
+ idle: "idle";
34
34
  }>;
35
35
  export type TrackState = z.infer<typeof TrackStateSchema>;
36
36
  declare const EventKindSchema: z.ZodEnum<{
@@ -86,8 +86,8 @@ export declare const EventKindCategorySchema: z.ZodEnum<{
86
86
  export type EventKindCategory = z.infer<typeof EventKindCategorySchema>;
87
87
  /** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
88
88
  export declare const EventKindLevelSchema: z.ZodEnum<{
89
- sub: "sub";
90
89
  macro: "macro";
90
+ sub: "sub";
91
91
  }>;
92
92
  export type EventKindLevel = z.infer<typeof EventKindLevelSchema>;
93
93
  declare const EventKindDescriptorSchema: z.ZodObject<{
@@ -121,8 +121,8 @@ declare const EventKindDescriptorSchema: z.ZodObject<{
121
121
  }>;
122
122
  parentKind: z.ZodNullable<z.ZodString>;
123
123
  level: z.ZodEnum<{
124
- sub: "sub";
125
124
  macro: "macro";
125
+ sub: "sub";
126
126
  }>;
127
127
  source: z.ZodObject<{
128
128
  capName: z.ZodString;
@@ -164,8 +164,8 @@ declare const EventKindsForDeviceSchema: z.ZodObject<{
164
164
  }>;
165
165
  parentKind: z.ZodNullable<z.ZodString>;
166
166
  level: z.ZodEnum<{
167
- sub: "sub";
168
167
  macro: "macro";
168
+ sub: "sub";
169
169
  }>;
170
170
  source: z.ZodObject<{
171
171
  capName: z.ZodString;
@@ -490,10 +490,10 @@ declare const TrackSchema: z.ZodObject<{
490
490
  totalDistance: z.ZodNumber;
491
491
  state: z.ZodEnum<{
492
492
  moving: "moving";
493
- left: "left";
494
- idle: "idle";
495
493
  new: "new";
496
494
  entered: "entered";
495
+ left: "left";
496
+ idle: "idle";
497
497
  }>;
498
498
  active: z.ZodBoolean;
499
499
  importance: z.ZodOptional<z.ZodNumber>;
@@ -516,6 +516,9 @@ declare const TrackSchema: z.ZodObject<{
516
516
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
517
517
  hasRider: z.ZodOptional<z.ZodBoolean>;
518
518
  previewMissReason: z.ZodOptional<z.ZodString>;
519
+ modelId: z.ZodOptional<z.ZodString>;
520
+ frameWidth: z.ZodOptional<z.ZodNumber>;
521
+ frameHeight: z.ZodOptional<z.ZodNumber>;
519
522
  label: z.ZodOptional<z.ZodString>;
520
523
  labelScore: z.ZodOptional<z.ZodNumber>;
521
524
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -636,10 +639,10 @@ declare const ObjectEventSchema: z.ZodObject<{
636
639
  spawnRefused: z.ZodOptional<z.ZodString>;
637
640
  state: z.ZodOptional<z.ZodEnum<{
638
641
  moving: "moving";
639
- left: "left";
640
- idle: "idle";
641
642
  new: "new";
642
643
  entered: "entered";
644
+ left: "left";
645
+ idle: "idle";
643
646
  }>>;
644
647
  zoneCrossing: z.ZodOptional<z.ZodObject<{
645
648
  direction: z.ZodEnum<{
@@ -728,6 +731,7 @@ declare const MediaFileKindEnum: z.ZodEnum<{
728
731
  confirmationCrop: "confirmationCrop";
729
732
  debugCrop: "debugCrop";
730
733
  sceneFrame: "sceneFrame";
734
+ lastSceneFrame: "lastSceneFrame";
731
735
  }>;
732
736
  export type MediaFileKind = z.infer<typeof MediaFileKindEnum>;
733
737
  /**
@@ -757,6 +761,7 @@ declare const MediaFileRefSchema: z.ZodObject<{
757
761
  confirmationCrop: "confirmationCrop";
758
762
  debugCrop: "debugCrop";
759
763
  sceneFrame: "sceneFrame";
764
+ lastSceneFrame: "lastSceneFrame";
760
765
  }>;
761
766
  sizeBytes: z.ZodNumber;
762
767
  timestamp: z.ZodNumber;
@@ -833,6 +838,7 @@ declare const MediaFileSchema: z.ZodObject<{
833
838
  confirmationCrop: "confirmationCrop";
834
839
  debugCrop: "debugCrop";
835
840
  sceneFrame: "sceneFrame";
841
+ lastSceneFrame: "lastSceneFrame";
836
842
  }>;
837
843
  sizeBytes: z.ZodNumber;
838
844
  timestamp: z.ZodNumber;
@@ -872,10 +878,11 @@ declare const MediaFileInfoSchema: z.ZodObject<{
872
878
  confirmationCrop: "confirmationCrop";
873
879
  debugCrop: "debugCrop";
874
880
  sceneFrame: "sceneFrame";
881
+ lastSceneFrame: "lastSceneFrame";
875
882
  }>;
876
- url: z.ZodString;
877
883
  mediaId: z.ZodNumber;
878
884
  sizeBytes: z.ZodNumber;
885
+ url: z.ZodString;
879
886
  }, z.core.$strip>;
880
887
  export type MediaFileInfo = z.infer<typeof MediaFileInfoSchema>;
881
888
  /**
@@ -1014,6 +1021,7 @@ export declare const RetrainFrameCandidateSchema: z.ZodObject<{
1014
1021
  confirmationCrop: "confirmationCrop";
1015
1022
  debugCrop: "debugCrop";
1016
1023
  sceneFrame: "sceneFrame";
1024
+ lastSceneFrame: "lastSceneFrame";
1017
1025
  }>;
1018
1026
  timestamp: z.ZodNumber;
1019
1027
  sizeBytes: z.ZodNumber;
@@ -1042,6 +1050,7 @@ export declare const RetrainFrameSchema: z.ZodObject<{
1042
1050
  confirmationCrop: "confirmationCrop";
1043
1051
  debugCrop: "debugCrop";
1044
1052
  sceneFrame: "sceneFrame";
1053
+ lastSceneFrame: "lastSceneFrame";
1045
1054
  }>;
1046
1055
  sizeBytes: z.ZodNumber;
1047
1056
  width: z.ZodNumber;
@@ -1077,6 +1086,7 @@ export declare const RetrainFrameSelectionSchema: z.ZodObject<{
1077
1086
  confirmationCrop: "confirmationCrop";
1078
1087
  debugCrop: "debugCrop";
1079
1088
  sceneFrame: "sceneFrame";
1089
+ lastSceneFrame: "lastSceneFrame";
1080
1090
  }>;
1081
1091
  sizeBytes: z.ZodNumber;
1082
1092
  width: z.ZodNumber;
@@ -1112,6 +1122,7 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
1112
1122
  confirmationCrop: "confirmationCrop";
1113
1123
  debugCrop: "debugCrop";
1114
1124
  sceneFrame: "sceneFrame";
1125
+ lastSceneFrame: "lastSceneFrame";
1115
1126
  }>;
1116
1127
  timestamp: z.ZodNumber;
1117
1128
  sizeBytes: z.ZodNumber;
@@ -1138,6 +1149,7 @@ export declare const RetrainFrameListSchema: z.ZodObject<{
1138
1149
  confirmationCrop: "confirmationCrop";
1139
1150
  debugCrop: "debugCrop";
1140
1151
  sceneFrame: "sceneFrame";
1152
+ lastSceneFrame: "lastSceneFrame";
1141
1153
  }>;
1142
1154
  sizeBytes: z.ZodNumber;
1143
1155
  width: z.ZodNumber;
@@ -1416,10 +1428,10 @@ declare const RecentTracksPageSchema: z.ZodObject<{
1416
1428
  totalDistance: z.ZodNumber;
1417
1429
  state: z.ZodEnum<{
1418
1430
  moving: "moving";
1419
- left: "left";
1420
- idle: "idle";
1421
1431
  new: "new";
1422
1432
  entered: "entered";
1433
+ left: "left";
1434
+ idle: "idle";
1423
1435
  }>;
1424
1436
  active: z.ZodBoolean;
1425
1437
  importance: z.ZodOptional<z.ZodNumber>;
@@ -1442,6 +1454,9 @@ declare const RecentTracksPageSchema: z.ZodObject<{
1442
1454
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
1443
1455
  hasRider: z.ZodOptional<z.ZodBoolean>;
1444
1456
  previewMissReason: z.ZodOptional<z.ZodString>;
1457
+ modelId: z.ZodOptional<z.ZodString>;
1458
+ frameWidth: z.ZodOptional<z.ZodNumber>;
1459
+ frameHeight: z.ZodOptional<z.ZodNumber>;
1445
1460
  label: z.ZodOptional<z.ZodString>;
1446
1461
  labelScore: z.ZodOptional<z.ZodNumber>;
1447
1462
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -1616,10 +1631,10 @@ declare const TrackedDetectionSchema: z.ZodObject<{
1616
1631
  zones: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1617
1632
  state: z.ZodEnum<{
1618
1633
  moving: "moving";
1619
- left: "left";
1620
- idle: "idle";
1621
1634
  new: "new";
1622
1635
  entered: "entered";
1636
+ left: "left";
1637
+ idle: "idle";
1623
1638
  }>;
1624
1639
  }, z.core.$strip>;
1625
1640
  export declare const ScoredObjectEventSchema: z.ZodObject<{
@@ -1639,10 +1654,10 @@ export declare const ScoredObjectEventSchema: z.ZodObject<{
1639
1654
  spawnRefused: z.ZodOptional<z.ZodString>;
1640
1655
  state: z.ZodOptional<z.ZodEnum<{
1641
1656
  moving: "moving";
1642
- left: "left";
1643
- idle: "idle";
1644
1657
  new: "new";
1645
1658
  entered: "entered";
1659
+ left: "left";
1660
+ idle: "idle";
1646
1661
  }>>;
1647
1662
  zoneCrossing: z.ZodOptional<z.ZodObject<{
1648
1663
  direction: z.ZodEnum<{
@@ -1741,6 +1756,7 @@ declare const EventMediaKindFootprintSchema: z.ZodObject<{
1741
1756
  confirmationCrop: "confirmationCrop";
1742
1757
  debugCrop: "debugCrop";
1743
1758
  sceneFrame: "sceneFrame";
1759
+ lastSceneFrame: "lastSceneFrame";
1744
1760
  }>;
1745
1761
  rows: z.ZodNumber;
1746
1762
  bytes: z.ZodNumber;
@@ -1790,6 +1806,7 @@ declare const EventMediaKindBreakdownSchema: z.ZodObject<{
1790
1806
  confirmationCrop: "confirmationCrop";
1791
1807
  debugCrop: "debugCrop";
1792
1808
  sceneFrame: "sceneFrame";
1809
+ lastSceneFrame: "lastSceneFrame";
1793
1810
  }>;
1794
1811
  rows: z.ZodNumber;
1795
1812
  bytes: z.ZodNumber;
@@ -1805,34 +1822,38 @@ declare const EventPruneCountsSchema: z.ZodObject<{
1805
1822
  audio: z.ZodNumber;
1806
1823
  }, z.core.$strip>;
1807
1824
  export type EventPruneCounts = z.infer<typeof EventPruneCountsSchema>;
1808
- declare const ReplayTrackSchema: z.ZodObject<{
1809
- className: z.ZodString;
1810
- firstSeenMs: z.ZodNumber;
1811
- lastSeenMs: z.ZodNumber;
1812
- bbox: z.ZodObject<{
1813
- x: z.ZodNumber;
1814
- y: z.ZodNumber;
1815
- w: z.ZodNumber;
1816
- h: z.ZodNumber;
1817
- }, z.core.$strip>;
1818
- framesMatched: z.ZodNumber;
1819
- }, z.core.$strip>;
1820
- declare const RunReplayFrameProcessorResultSchema: z.ZodObject<{
1821
- tracks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1822
- className: z.ZodString;
1823
- firstSeenMs: z.ZodNumber;
1824
- lastSeenMs: z.ZodNumber;
1825
- bbox: z.ZodObject<{
1826
- x: z.ZodNumber;
1827
- y: z.ZodNumber;
1828
- w: z.ZodNumber;
1829
- h: z.ZodNumber;
1830
- }, z.core.$strip>;
1831
- framesMatched: z.ZodNumber;
1832
- }, z.core.$strip>>>;
1833
- }, z.core.$strip>;
1834
- export type ReplayTrack = z.infer<typeof ReplayTrackSchema>;
1835
- export type RunReplayFrameProcessorResult = z.infer<typeof RunReplayFrameProcessorResultSchema>;
1825
+ /**
1826
+ * Why a rebuild did not start, BY NAME — ONE vocabulary for both gates in front
1827
+ * of a pass (D649 over D651). A bare `started: false` read the same for "the
1828
+ * stores are booting" and "the cluster row names a model with no CLIP
1829
+ * metadata", which need different fixes.
1830
+ * - `stores-unavailable` — the analytics stores or the API are not up yet.
1831
+ * - the owner's confirmation of the cluster model (D651, `ClusterPinConfirmer`):
1832
+ * a pass that rewrites an index needs two agreeing reads of the OWNER's
1833
+ * answer (`pipelineOrchestrator.getClusterModelChoice`) — a pass that cannot
1834
+ * name its model does not run (D54):
1835
+ * - the owner's own `unreadable` reasons (`owner-not-ready`,
1836
+ * `store-read-failed`, `three-way-read-unavailable`, `invalid-stored`,
1837
+ * `not-cluster-scoped`);
1838
+ * - `method-unavailable` — the orchestrator predates the method;
1839
+ * - `read-failed` — the call failed or answered something unparseable;
1840
+ * - `reads-disagree` — the two reads named different choices.
1841
+ * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
1842
+ * index to fill and no dimension to check against (D649).
1843
+ */
1844
+ export declare const RebuildObjectEmbeddingsRefusalSchema: z.ZodEnum<{
1845
+ "owner-not-ready": "owner-not-ready";
1846
+ "store-read-failed": "store-read-failed";
1847
+ "three-way-read-unavailable": "three-way-read-unavailable";
1848
+ "invalid-stored": "invalid-stored";
1849
+ "not-cluster-scoped": "not-cluster-scoped";
1850
+ "stores-unavailable": "stores-unavailable";
1851
+ "method-unavailable": "method-unavailable";
1852
+ "read-failed": "read-failed";
1853
+ "reads-disagree": "reads-disagree";
1854
+ "not-a-clip-model": "not-a-clip-model";
1855
+ }>;
1856
+ export type RebuildObjectEmbeddingsRefusal = z.infer<typeof RebuildObjectEmbeddingsRefusalSchema>;
1836
1857
  /**
1837
1858
  * The long-term series a camera produces. A closed union so a typo cannot
1838
1859
  * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
@@ -1960,10 +1981,10 @@ export declare const pipelineAnalyticsCapability: {
1960
1981
  totalDistance: z.ZodNumber;
1961
1982
  state: z.ZodEnum<{
1962
1983
  moving: "moving";
1963
- left: "left";
1964
- idle: "idle";
1965
1984
  new: "new";
1966
1985
  entered: "entered";
1986
+ left: "left";
1987
+ idle: "idle";
1967
1988
  }>;
1968
1989
  active: z.ZodBoolean;
1969
1990
  importance: z.ZodOptional<z.ZodNumber>;
@@ -1986,6 +2007,9 @@ export declare const pipelineAnalyticsCapability: {
1986
2007
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
1987
2008
  hasRider: z.ZodOptional<z.ZodBoolean>;
1988
2009
  previewMissReason: z.ZodOptional<z.ZodString>;
2010
+ modelId: z.ZodOptional<z.ZodString>;
2011
+ frameWidth: z.ZodOptional<z.ZodNumber>;
2012
+ frameHeight: z.ZodOptional<z.ZodNumber>;
1989
2013
  label: z.ZodOptional<z.ZodString>;
1990
2014
  labelScore: z.ZodOptional<z.ZodNumber>;
1991
2015
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -2070,10 +2094,10 @@ export declare const pipelineAnalyticsCapability: {
2070
2094
  totalDistance: z.ZodNumber;
2071
2095
  state: z.ZodEnum<{
2072
2096
  moving: "moving";
2073
- left: "left";
2074
- idle: "idle";
2075
2097
  new: "new";
2076
2098
  entered: "entered";
2099
+ left: "left";
2100
+ idle: "idle";
2077
2101
  }>;
2078
2102
  active: z.ZodBoolean;
2079
2103
  importance: z.ZodOptional<z.ZodNumber>;
@@ -2096,6 +2120,9 @@ export declare const pipelineAnalyticsCapability: {
2096
2120
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
2097
2121
  hasRider: z.ZodOptional<z.ZodBoolean>;
2098
2122
  previewMissReason: z.ZodOptional<z.ZodString>;
2123
+ modelId: z.ZodOptional<z.ZodString>;
2124
+ frameWidth: z.ZodOptional<z.ZodNumber>;
2125
+ frameHeight: z.ZodOptional<z.ZodNumber>;
2099
2126
  label: z.ZodOptional<z.ZodString>;
2100
2127
  labelScore: z.ZodOptional<z.ZodNumber>;
2101
2128
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -2210,10 +2237,10 @@ export declare const pipelineAnalyticsCapability: {
2210
2237
  totalDistance: z.ZodNumber;
2211
2238
  state: z.ZodEnum<{
2212
2239
  moving: "moving";
2213
- left: "left";
2214
- idle: "idle";
2215
2240
  new: "new";
2216
2241
  entered: "entered";
2242
+ left: "left";
2243
+ idle: "idle";
2217
2244
  }>;
2218
2245
  active: z.ZodBoolean;
2219
2246
  importance: z.ZodOptional<z.ZodNumber>;
@@ -2236,6 +2263,9 @@ export declare const pipelineAnalyticsCapability: {
2236
2263
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
2237
2264
  hasRider: z.ZodOptional<z.ZodBoolean>;
2238
2265
  previewMissReason: z.ZodOptional<z.ZodString>;
2266
+ modelId: z.ZodOptional<z.ZodString>;
2267
+ frameWidth: z.ZodOptional<z.ZodNumber>;
2268
+ frameHeight: z.ZodOptional<z.ZodNumber>;
2239
2269
  label: z.ZodOptional<z.ZodString>;
2240
2270
  labelScore: z.ZodOptional<z.ZodNumber>;
2241
2271
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -2346,10 +2376,10 @@ export declare const pipelineAnalyticsCapability: {
2346
2376
  totalDistance: z.ZodNumber;
2347
2377
  state: z.ZodEnum<{
2348
2378
  moving: "moving";
2349
- left: "left";
2350
- idle: "idle";
2351
2379
  new: "new";
2352
2380
  entered: "entered";
2381
+ left: "left";
2382
+ idle: "idle";
2353
2383
  }>;
2354
2384
  active: z.ZodBoolean;
2355
2385
  importance: z.ZodOptional<z.ZodNumber>;
@@ -2372,6 +2402,9 @@ export declare const pipelineAnalyticsCapability: {
2372
2402
  hasEmbeddedFace: z.ZodOptional<z.ZodBoolean>;
2373
2403
  hasRider: z.ZodOptional<z.ZodBoolean>;
2374
2404
  previewMissReason: z.ZodOptional<z.ZodString>;
2405
+ modelId: z.ZodOptional<z.ZodString>;
2406
+ frameWidth: z.ZodOptional<z.ZodNumber>;
2407
+ frameHeight: z.ZodOptional<z.ZodNumber>;
2375
2408
  label: z.ZodOptional<z.ZodString>;
2376
2409
  labelScore: z.ZodOptional<z.ZodNumber>;
2377
2410
  labelMeta: z.ZodOptional<z.ZodObject<{
@@ -2534,10 +2567,10 @@ export declare const pipelineAnalyticsCapability: {
2534
2567
  spawnRefused: z.ZodOptional<z.ZodString>;
2535
2568
  state: z.ZodOptional<z.ZodEnum<{
2536
2569
  moving: "moving";
2537
- left: "left";
2538
- idle: "idle";
2539
2570
  new: "new";
2540
2571
  entered: "entered";
2572
+ left: "left";
2573
+ idle: "idle";
2541
2574
  }>>;
2542
2575
  zoneCrossing: z.ZodOptional<z.ZodObject<{
2543
2576
  direction: z.ZodEnum<{
@@ -2644,8 +2677,8 @@ export declare const pipelineAnalyticsCapability: {
2644
2677
  }>;
2645
2678
  parentKind: z.ZodNullable<z.ZodString>;
2646
2679
  level: z.ZodEnum<{
2647
- sub: "sub";
2648
2680
  macro: "macro";
2681
+ sub: "sub";
2649
2682
  }>;
2650
2683
  source: z.ZodObject<{
2651
2684
  capName: z.ZodString;
@@ -2705,8 +2738,8 @@ export declare const pipelineAnalyticsCapability: {
2705
2738
  }>;
2706
2739
  parentKind: z.ZodNullable<z.ZodString>;
2707
2740
  level: z.ZodEnum<{
2708
- sub: "sub";
2709
2741
  macro: "macro";
2742
+ sub: "sub";
2710
2743
  }>;
2711
2744
  source: z.ZodObject<{
2712
2745
  capName: z.ZodString;
@@ -3220,6 +3253,7 @@ export declare const pipelineAnalyticsCapability: {
3220
3253
  confirmationCrop: "confirmationCrop";
3221
3254
  debugCrop: "debugCrop";
3222
3255
  sceneFrame: "sceneFrame";
3256
+ lastSceneFrame: "lastSceneFrame";
3223
3257
  }>;
3224
3258
  rows: z.ZodNumber;
3225
3259
  bytes: z.ZodNumber;
@@ -3614,6 +3648,7 @@ export declare const pipelineAnalyticsCapability: {
3614
3648
  confirmationCrop: "confirmationCrop";
3615
3649
  debugCrop: "debugCrop";
3616
3650
  sceneFrame: "sceneFrame";
3651
+ lastSceneFrame: "lastSceneFrame";
3617
3652
  }>;
3618
3653
  timestamp: z.ZodNumber;
3619
3654
  sizeBytes: z.ZodNumber;
@@ -3640,6 +3675,7 @@ export declare const pipelineAnalyticsCapability: {
3640
3675
  confirmationCrop: "confirmationCrop";
3641
3676
  debugCrop: "debugCrop";
3642
3677
  sceneFrame: "sceneFrame";
3678
+ lastSceneFrame: "lastSceneFrame";
3643
3679
  }>;
3644
3680
  sizeBytes: z.ZodNumber;
3645
3681
  width: z.ZodNumber;
@@ -3688,6 +3724,7 @@ export declare const pipelineAnalyticsCapability: {
3688
3724
  confirmationCrop: "confirmationCrop";
3689
3725
  debugCrop: "debugCrop";
3690
3726
  sceneFrame: "sceneFrame";
3727
+ lastSceneFrame: "lastSceneFrame";
3691
3728
  }>;
3692
3729
  sizeBytes: z.ZodNumber;
3693
3730
  width: z.ZodNumber;
@@ -3802,73 +3839,6 @@ export declare const pipelineAnalyticsCapability: {
3802
3839
  reason: z.ZodString;
3803
3840
  detail: z.ZodOptional<z.ZodString>;
3804
3841
  }, z.core.$strip>], "kind">, "mutation">;
3805
- /**
3806
- * The FrameProcessor pass of a replay run — see the `Replay` section
3807
- * above this capability's definition for why this is not the
3808
- * `processFrame` method this file's header says pipeline-analytics does
3809
- * not have.
3810
- *
3811
- * Constructs a FRESH `FrameProcessor` for `(deviceId, source)`, feeds it
3812
- * `frames` IN THE ORDER GIVEN (the caller is responsible for time
3813
- * ordering — this method does not sort), and returns the tracks it
3814
- * produced. Zero persistence: no `TrackStore`, no event bus, no media
3815
- * capture. `zones` / `detectionRules` are the run's OWN zone set —
3816
- * typically the camera's real zones plus an ephemeral overlay
3817
- * (`addon-benchmark`'s `replay-plan.ts`), never read from or written to
3818
- * the `zones` capability by this method itself.
3819
- */
3820
- readonly runReplayFrameProcessor: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3821
- deviceId: z.ZodNumber;
3822
- source: z.ZodEnum<{
3823
- pipeline: "pipeline";
3824
- onboard: "onboard";
3825
- }>;
3826
- zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3827
- id: z.ZodString;
3828
- name: z.ZodString;
3829
- kind: z.ZodDefault<z.ZodEnum<{
3830
- polygon: "polygon";
3831
- tripwire: "tripwire";
3832
- }>>;
3833
- polygon: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3834
- x: z.ZodNumber;
3835
- y: z.ZodNumber;
3836
- }, z.core.$strip>>>;
3837
- color: z.ZodDefault<z.ZodString>;
3838
- }, z.core.$strip>>>>;
3839
- detectionRules: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3840
- id: z.ZodString;
3841
- name: z.ZodOptional<z.ZodString>;
3842
- zoneIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
3843
- mode: z.ZodEnum<{
3844
- include: "include";
3845
- exclude: "exclude";
3846
- }>;
3847
- classFilter: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
3848
- overlapThreshold: z.ZodOptional<z.ZodNumber>;
3849
- bboxInclusionPct: z.ZodOptional<z.ZodNumber>;
3850
- preferMask: z.ZodOptional<z.ZodBoolean>;
3851
- enabled: z.ZodDefault<z.ZodBoolean>;
3852
- }, z.core.$strip>>>>;
3853
- zoneMembershipMinOverlap: z.ZodOptional<z.ZodNumber>;
3854
- frames: z.ZodArray<z.ZodObject<{
3855
- timestamp: z.ZodNumber;
3856
- frame: z.ZodCustom<import("../index.js").FrameResult, import("../index.js").FrameResult>;
3857
- }, z.core.$strip>>;
3858
- }, z.core.$strip>, z.ZodObject<{
3859
- tracks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3860
- className: z.ZodString;
3861
- firstSeenMs: z.ZodNumber;
3862
- lastSeenMs: z.ZodNumber;
3863
- bbox: z.ZodObject<{
3864
- x: z.ZodNumber;
3865
- y: z.ZodNumber;
3866
- w: z.ZodNumber;
3867
- h: z.ZodNumber;
3868
- }, z.core.$strip>;
3869
- framesMatched: z.ZodNumber;
3870
- }, z.core.$strip>>>;
3871
- }, z.core.$strip>, "mutation">;
3872
3842
  /** Every annotation on a track, oldest first. */
3873
3843
  readonly listRetrainAnnotations: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3874
3844
  trackId: z.ZodString;
@@ -4100,6 +4070,7 @@ export declare const pipelineAnalyticsCapability: {
4100
4070
  confirmationCrop: "confirmationCrop";
4101
4071
  debugCrop: "debugCrop";
4102
4072
  sceneFrame: "sceneFrame";
4073
+ lastSceneFrame: "lastSceneFrame";
4103
4074
  }>>;
4104
4075
  deviceId: z.ZodNumber;
4105
4076
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -4120,6 +4091,7 @@ export declare const pipelineAnalyticsCapability: {
4120
4091
  confirmationCrop: "confirmationCrop";
4121
4092
  debugCrop: "debugCrop";
4122
4093
  sceneFrame: "sceneFrame";
4094
+ lastSceneFrame: "lastSceneFrame";
4123
4095
  }>;
4124
4096
  sizeBytes: z.ZodNumber;
4125
4097
  timestamp: z.ZodNumber;
@@ -4148,6 +4120,7 @@ export declare const pipelineAnalyticsCapability: {
4148
4120
  confirmationCrop: "confirmationCrop";
4149
4121
  debugCrop: "debugCrop";
4150
4122
  sceneFrame: "sceneFrame";
4123
+ lastSceneFrame: "lastSceneFrame";
4151
4124
  }>>>;
4152
4125
  deviceId: z.ZodNumber;
4153
4126
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -4168,6 +4141,7 @@ export declare const pipelineAnalyticsCapability: {
4168
4141
  confirmationCrop: "confirmationCrop";
4169
4142
  debugCrop: "debugCrop";
4170
4143
  sceneFrame: "sceneFrame";
4144
+ lastSceneFrame: "lastSceneFrame";
4171
4145
  }>;
4172
4146
  sizeBytes: z.ZodNumber;
4173
4147
  timestamp: z.ZodNumber;
@@ -4210,10 +4184,11 @@ export declare const pipelineAnalyticsCapability: {
4210
4184
  confirmationCrop: "confirmationCrop";
4211
4185
  debugCrop: "debugCrop";
4212
4186
  sceneFrame: "sceneFrame";
4187
+ lastSceneFrame: "lastSceneFrame";
4213
4188
  }>;
4214
- url: z.ZodString;
4215
4189
  mediaId: z.ZodNumber;
4216
4190
  sizeBytes: z.ZodNumber;
4191
+ url: z.ZodString;
4217
4192
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
4218
4193
  /**
4219
4194
  * What media an EVENT has, without any of it — the twin `getEventMedia`
@@ -4259,10 +4234,11 @@ export declare const pipelineAnalyticsCapability: {
4259
4234
  confirmationCrop: "confirmationCrop";
4260
4235
  debugCrop: "debugCrop";
4261
4236
  sceneFrame: "sceneFrame";
4237
+ lastSceneFrame: "lastSceneFrame";
4262
4238
  }>;
4263
- url: z.ZodString;
4264
4239
  mediaId: z.ZodNumber;
4265
4240
  sizeBytes: z.ZodNumber;
4241
+ url: z.ZodString;
4266
4242
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
4267
4243
  /**
4268
4244
  * Which of `ownerIds` hold at least ONE media row — an INDEX read, never a
@@ -4313,7 +4289,13 @@ export declare const pipelineAnalyticsCapability: {
4313
4289
  until: z.ZodOptional<z.ZodNumber>;
4314
4290
  classFilter: z.ZodOptional<z.ZodString>;
4315
4291
  limit: z.ZodDefault<z.ZodNumber>;
4316
- minScore: z.ZodDefault<z.ZodNumber>;
4292
+ minScore: z.ZodOptional<z.ZodNumber>;
4293
+ strictness: z.ZodOptional<z.ZodEnum<{
4294
+ loose: "loose";
4295
+ balanced: "balanced";
4296
+ strict: "strict";
4297
+ }>>;
4298
+ modelId: z.ZodOptional<z.ZodString>;
4317
4299
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
4318
4300
  confidence: z.ZodOptional<z.ZodNumber>;
4319
4301
  bbox: z.ZodOptional<z.ZodObject<{
@@ -4331,10 +4313,10 @@ export declare const pipelineAnalyticsCapability: {
4331
4313
  spawnRefused: z.ZodOptional<z.ZodString>;
4332
4314
  state: z.ZodOptional<z.ZodEnum<{
4333
4315
  moving: "moving";
4334
- left: "left";
4335
- idle: "idle";
4336
4316
  new: "new";
4337
4317
  entered: "entered";
4318
+ left: "left";
4319
+ idle: "idle";
4338
4320
  }>>;
4339
4321
  zoneCrossing: z.ZodOptional<z.ZodObject<{
4340
4322
  direction: z.ZodEnum<{
@@ -4379,9 +4361,12 @@ export declare const pipelineAnalyticsCapability: {
4379
4361
  deviceId: z.ZodNumber;
4380
4362
  timestamp: z.ZodNumber;
4381
4363
  score: z.ZodNumber;
4382
- }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
4364
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind> & {
4365
+ readonly caller: "required";
4366
+ };
4383
4367
  readonly wipeObjectEmbeddings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
4384
4368
  deleted: z.ZodNumber;
4369
+ failedIndexes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4385
4370
  }, z.core.$strip>, "mutation">;
4386
4371
  readonly rebuildObjectEmbeddings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
4387
4372
  deviceId: z.ZodOptional<z.ZodNumber>;
@@ -4393,6 +4378,20 @@ export declare const pipelineAnalyticsCapability: {
4393
4378
  }, z.core.$strip>, z.ZodObject<{
4394
4379
  started: z.ZodBoolean;
4395
4380
  alreadyRunning: z.ZodBoolean;
4381
+ refusal: z.ZodOptional<z.ZodEnum<{
4382
+ "owner-not-ready": "owner-not-ready";
4383
+ "store-read-failed": "store-read-failed";
4384
+ "three-way-read-unavailable": "three-way-read-unavailable";
4385
+ "invalid-stored": "invalid-stored";
4386
+ "not-cluster-scoped": "not-cluster-scoped";
4387
+ "stores-unavailable": "stores-unavailable";
4388
+ "method-unavailable": "method-unavailable";
4389
+ "read-failed": "read-failed";
4390
+ "reads-disagree": "reads-disagree";
4391
+ "not-a-clip-model": "not-a-clip-model";
4392
+ }>>;
4393
+ modelId: z.ZodOptional<z.ZodString>;
4394
+ index: z.ZodOptional<z.ZodString>;
4396
4395
  }, z.core.$strip>, "mutation">;
4397
4396
  readonly getObjectEmbeddingRebuildStatus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
4398
4397
  running: z.ZodBoolean;
@@ -4407,6 +4406,8 @@ export declare const pipelineAnalyticsCapability: {
4407
4406
  startedAtMs: z.ZodNullable<z.ZodNumber>;
4408
4407
  finishedAtMs: z.ZodNullable<z.ZodNumber>;
4409
4408
  error: z.ZodNullable<z.ZodString>;
4409
+ modelId: z.ZodNullable<z.ZodString>;
4410
+ index: z.ZodNullable<z.ZodString>;
4410
4411
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
4411
4412
  };
4412
4413
  readonly events: {