@camstack/types 1.2.98 → 1.2.100
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.
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/custom-model-registry.cap.d.ts +18 -0
- package/dist/capabilities/decoder.cap.d.ts +12 -12
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +38 -7
- package/dist/capabilities/model-convert.cap.d.ts +27 -0
- package/dist/capabilities/model-distributor.cap.d.ts +18 -0
- package/dist/capabilities/motion-detection.cap.d.ts +4 -4
- package/dist/capabilities/native-object-detection.cap.d.ts +15 -15
- package/dist/capabilities/notification-rules.cap.d.ts +35 -8
- package/dist/capabilities/osd-manager.cap.d.ts +13 -1
- package/dist/capabilities/pipeline-analytics.cap.d.ts +13 -10
- package/dist/capabilities/pipeline-executor.cap.d.ts +16 -12
- package/dist/capabilities/pipeline-runner.cap.d.ts +182 -5
- package/dist/capabilities/schemas/detection-shared.d.ts +4 -4
- package/dist/capabilities/schemas/streaming-shared.d.ts +6 -6
- package/dist/capabilities/stream-broker.cap.d.ts +3 -3
- package/dist/capabilities/zone-rules.cap.d.ts +3 -3
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +191 -25
- package/dist/index.mjs +182 -26
- package/dist/interfaces/pipeline-executor-capability.d.ts +3 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +31 -0
- package/dist/interfaces/stream-broker.d.ts +5 -2
- package/dist/notification/audio-condition.d.ts +19 -4
- package/dist/types/frame-view.d.ts +52 -0
- package/dist/types/io.d.ts +3 -0
- package/dist/types/labels.d.ts +11 -0
- package/dist/types/models.d.ts +27 -0
- package/package.json +1 -1
|
@@ -200,6 +200,8 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
200
200
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
202
202
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
203
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
203
205
|
}, z.core.$strip>>;
|
|
204
206
|
}, z.core.$strip>>;
|
|
205
207
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -363,6 +365,8 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
363
365
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
364
366
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
365
367
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
368
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
366
370
|
}, z.core.$strip>>;
|
|
367
371
|
}, z.core.$strip>>;
|
|
368
372
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -598,6 +602,8 @@ export declare const osdManagerCapability: {
|
|
|
598
602
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
599
603
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
600
604
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
605
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
606
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
601
607
|
}, z.core.$strip>>;
|
|
602
608
|
}, z.core.$strip>>;
|
|
603
609
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -639,6 +645,7 @@ export declare const osdManagerCapability: {
|
|
|
639
645
|
id: z.ZodString;
|
|
640
646
|
group: z.ZodEnum<{
|
|
641
647
|
audio: "audio";
|
|
648
|
+
package: "package";
|
|
642
649
|
system: "system";
|
|
643
650
|
device: "device";
|
|
644
651
|
label: "label";
|
|
@@ -646,7 +653,6 @@ export declare const osdManagerCapability: {
|
|
|
646
653
|
class: "class";
|
|
647
654
|
zones: "zones";
|
|
648
655
|
schedule: "schedule";
|
|
649
|
-
package: "package";
|
|
650
656
|
occupancy: "occupancy";
|
|
651
657
|
quality: "quality";
|
|
652
658
|
}>;
|
|
@@ -850,6 +856,8 @@ export declare const osdManagerCapability: {
|
|
|
850
856
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
851
857
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
852
858
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
859
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
860
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
853
861
|
}, z.core.$strip>>;
|
|
854
862
|
}, z.core.$strip>>;
|
|
855
863
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -1012,6 +1020,8 @@ export declare const osdManagerCapability: {
|
|
|
1012
1020
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1013
1021
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
1014
1022
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1023
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
1024
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
1015
1025
|
}, z.core.$strip>>;
|
|
1016
1026
|
}, z.core.$strip>>;
|
|
1017
1027
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -1206,6 +1216,8 @@ export declare const osdManagerCapability: {
|
|
|
1206
1216
|
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1207
1217
|
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
1208
1218
|
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1219
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
1209
1221
|
}, z.core.$strip>>;
|
|
1210
1222
|
}, z.core.$strip>>;
|
|
1211
1223
|
fallbackText: z.ZodDefault<z.ZodString>;
|
|
@@ -64,11 +64,11 @@ export declare const EventKindIconSchema: z.ZodEnum<{
|
|
|
64
64
|
person: "person";
|
|
65
65
|
vehicle: "vehicle";
|
|
66
66
|
animal: "animal";
|
|
67
|
+
package: "package";
|
|
67
68
|
button: "button";
|
|
68
69
|
generic: "generic";
|
|
69
70
|
motion: "motion";
|
|
70
71
|
smoke: "smoke";
|
|
71
|
-
package: "package";
|
|
72
72
|
water: "water";
|
|
73
73
|
door: "door";
|
|
74
74
|
pir: "pir";
|
|
@@ -76,11 +76,11 @@ export declare const EventKindIconSchema: z.ZodEnum<{
|
|
|
76
76
|
export type EventKindIcon = z.infer<typeof EventKindIconSchema>;
|
|
77
77
|
export declare const EventKindCategorySchema: z.ZodEnum<{
|
|
78
78
|
audio: "audio";
|
|
79
|
+
package: "package";
|
|
79
80
|
custom: "custom";
|
|
80
81
|
sensor: "sensor";
|
|
81
82
|
control: "control";
|
|
82
83
|
motion: "motion";
|
|
83
|
-
package: "package";
|
|
84
84
|
detection: "detection";
|
|
85
85
|
}>;
|
|
86
86
|
export type EventKindCategory = z.infer<typeof EventKindCategorySchema>;
|
|
@@ -101,22 +101,22 @@ declare const EventKindDescriptorSchema: z.ZodObject<{
|
|
|
101
101
|
person: "person";
|
|
102
102
|
vehicle: "vehicle";
|
|
103
103
|
animal: "animal";
|
|
104
|
+
package: "package";
|
|
104
105
|
button: "button";
|
|
105
106
|
generic: "generic";
|
|
106
107
|
motion: "motion";
|
|
107
108
|
smoke: "smoke";
|
|
108
|
-
package: "package";
|
|
109
109
|
water: "water";
|
|
110
110
|
door: "door";
|
|
111
111
|
pir: "pir";
|
|
112
112
|
}>;
|
|
113
113
|
category: z.ZodEnum<{
|
|
114
114
|
audio: "audio";
|
|
115
|
+
package: "package";
|
|
115
116
|
custom: "custom";
|
|
116
117
|
sensor: "sensor";
|
|
117
118
|
control: "control";
|
|
118
119
|
motion: "motion";
|
|
119
|
-
package: "package";
|
|
120
120
|
detection: "detection";
|
|
121
121
|
}>;
|
|
122
122
|
parentKind: z.ZodNullable<z.ZodString>;
|
|
@@ -144,22 +144,22 @@ declare const EventKindsForDeviceSchema: z.ZodObject<{
|
|
|
144
144
|
person: "person";
|
|
145
145
|
vehicle: "vehicle";
|
|
146
146
|
animal: "animal";
|
|
147
|
+
package: "package";
|
|
147
148
|
button: "button";
|
|
148
149
|
generic: "generic";
|
|
149
150
|
motion: "motion";
|
|
150
151
|
smoke: "smoke";
|
|
151
|
-
package: "package";
|
|
152
152
|
water: "water";
|
|
153
153
|
door: "door";
|
|
154
154
|
pir: "pir";
|
|
155
155
|
}>;
|
|
156
156
|
category: z.ZodEnum<{
|
|
157
157
|
audio: "audio";
|
|
158
|
+
package: "package";
|
|
158
159
|
custom: "custom";
|
|
159
160
|
sensor: "sensor";
|
|
160
161
|
control: "control";
|
|
161
162
|
motion: "motion";
|
|
162
|
-
package: "package";
|
|
163
163
|
detection: "detection";
|
|
164
164
|
}>;
|
|
165
165
|
parentKind: z.ZodNullable<z.ZodString>;
|
|
@@ -1233,6 +1233,7 @@ declare const TrackCascadeCountsSchema: z.ZodObject<{
|
|
|
1233
1233
|
faces: z.ZodNumber;
|
|
1234
1234
|
plates: z.ZodNumber;
|
|
1235
1235
|
embeddings: z.ZodNumber;
|
|
1236
|
+
groups: z.ZodNumber;
|
|
1236
1237
|
}, z.core.$strip>;
|
|
1237
1238
|
export type TrackCascadeCounts = z.infer<typeof TrackCascadeCountsSchema>;
|
|
1238
1239
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
@@ -1849,22 +1850,22 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
1849
1850
|
person: "person";
|
|
1850
1851
|
vehicle: "vehicle";
|
|
1851
1852
|
animal: "animal";
|
|
1853
|
+
package: "package";
|
|
1852
1854
|
button: "button";
|
|
1853
1855
|
generic: "generic";
|
|
1854
1856
|
motion: "motion";
|
|
1855
1857
|
smoke: "smoke";
|
|
1856
|
-
package: "package";
|
|
1857
1858
|
water: "water";
|
|
1858
1859
|
door: "door";
|
|
1859
1860
|
pir: "pir";
|
|
1860
1861
|
}>;
|
|
1861
1862
|
category: z.ZodEnum<{
|
|
1862
1863
|
audio: "audio";
|
|
1864
|
+
package: "package";
|
|
1863
1865
|
custom: "custom";
|
|
1864
1866
|
sensor: "sensor";
|
|
1865
1867
|
control: "control";
|
|
1866
1868
|
motion: "motion";
|
|
1867
|
-
package: "package";
|
|
1868
1869
|
detection: "detection";
|
|
1869
1870
|
}>;
|
|
1870
1871
|
parentKind: z.ZodNullable<z.ZodString>;
|
|
@@ -1910,22 +1911,22 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
1910
1911
|
person: "person";
|
|
1911
1912
|
vehicle: "vehicle";
|
|
1912
1913
|
animal: "animal";
|
|
1914
|
+
package: "package";
|
|
1913
1915
|
button: "button";
|
|
1914
1916
|
generic: "generic";
|
|
1915
1917
|
motion: "motion";
|
|
1916
1918
|
smoke: "smoke";
|
|
1917
|
-
package: "package";
|
|
1918
1919
|
water: "water";
|
|
1919
1920
|
door: "door";
|
|
1920
1921
|
pir: "pir";
|
|
1921
1922
|
}>;
|
|
1922
1923
|
category: z.ZodEnum<{
|
|
1923
1924
|
audio: "audio";
|
|
1925
|
+
package: "package";
|
|
1924
1926
|
custom: "custom";
|
|
1925
1927
|
sensor: "sensor";
|
|
1926
1928
|
control: "control";
|
|
1927
1929
|
motion: "motion";
|
|
1928
|
-
package: "package";
|
|
1929
1930
|
detection: "detection";
|
|
1930
1931
|
}>;
|
|
1931
1932
|
parentKind: z.ZodNullable<z.ZodString>;
|
|
@@ -2061,6 +2062,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
2061
2062
|
faces: z.ZodNumber;
|
|
2062
2063
|
plates: z.ZodNumber;
|
|
2063
2064
|
embeddings: z.ZodNumber;
|
|
2065
|
+
groups: z.ZodNumber;
|
|
2064
2066
|
}, z.core.$strip>, "mutation">;
|
|
2065
2067
|
/**
|
|
2066
2068
|
* Operator "clean slate" for a device (design §5.3): prune EVERY track for
|
|
@@ -2078,6 +2080,7 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
2078
2080
|
faces: z.ZodNumber;
|
|
2079
2081
|
plates: z.ZodNumber;
|
|
2080
2082
|
embeddings: z.ZodNumber;
|
|
2083
|
+
groups: z.ZodNumber;
|
|
2081
2084
|
}, z.core.$strip>, "mutation">;
|
|
2082
2085
|
/**
|
|
2083
2086
|
* Disk-wins reconcile for one camera. Drops media index rows whose blobs
|
|
@@ -4,6 +4,7 @@ import type { ConfigUISchema, ConfigField } from '../interfaces/config-ui.js';
|
|
|
4
4
|
import type { InferenceCapabilities, ModelAvailability } from '../interfaces/inference-capabilities.js';
|
|
5
5
|
import type { PipelineConfig } from '../types/pipeline.js';
|
|
6
6
|
import type { FrameResult, AudioResult } from '../types/detection.js';
|
|
7
|
+
import type { FrameRef, FrameViewSpec } from '../types/frame-view.js';
|
|
7
8
|
/**
|
|
8
9
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
9
10
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
@@ -17,11 +18,11 @@ export declare const NativeCropRefSchema: z.ZodObject<{
|
|
|
17
18
|
width: z.ZodNumber;
|
|
18
19
|
height: z.ZodNumber;
|
|
19
20
|
format: z.ZodEnum<{
|
|
20
|
-
jpeg: "jpeg";
|
|
21
21
|
rgb: "rgb";
|
|
22
|
+
gray: "gray";
|
|
23
|
+
jpeg: "jpeg";
|
|
22
24
|
bgr: "bgr";
|
|
23
25
|
yuv420: "yuv420";
|
|
24
|
-
gray: "gray";
|
|
25
26
|
}>;
|
|
26
27
|
pts: z.ZodNumber;
|
|
27
28
|
byteLength: z.ZodNumber;
|
|
@@ -36,6 +37,8 @@ export declare const NativeCropRefSchema: z.ZodObject<{
|
|
|
36
37
|
}, z.core.$strip>;
|
|
37
38
|
}, z.core.$strip>;
|
|
38
39
|
export type NativeCropRef = z.infer<typeof NativeCropRefSchema>;
|
|
40
|
+
export declare const FrameViewSpecSchema: z.ZodType<FrameViewSpec>;
|
|
41
|
+
export declare const FrameRefSchema: z.ZodType<FrameRef>;
|
|
39
42
|
declare const PipelineEngineChoiceSchema: z.ZodObject<{
|
|
40
43
|
runtime: z.ZodEnum<{
|
|
41
44
|
node: "node";
|
|
@@ -856,7 +859,7 @@ export declare const pipelineExecutorCapability: {
|
|
|
856
859
|
* legacy call shape used by existing benchmark code; once all
|
|
857
860
|
* callers pass it explicitly we make it required.
|
|
858
861
|
*
|
|
859
|
-
* Exactly one of `frame`, `frameHandle`, `imageBase64`,
|
|
862
|
+
* Exactly one of `frame`, `frameRef`, `frameHandle`, `imageBase64`,
|
|
860
863
|
* `referenceImage` must be provided:
|
|
861
864
|
* - `frame`: runtime dispatch path (runner → decoded broker frame).
|
|
862
865
|
* Carries the raw buffer, dimensions, and format; the executor
|
|
@@ -894,16 +897,17 @@ export declare const pipelineExecutorCapability: {
|
|
|
894
897
|
frame: z.ZodOptional<z.ZodObject<{
|
|
895
898
|
data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
896
899
|
format: z.ZodEnum<{
|
|
897
|
-
jpeg: "jpeg";
|
|
898
900
|
rgb: "rgb";
|
|
901
|
+
gray: "gray";
|
|
902
|
+
jpeg: "jpeg";
|
|
899
903
|
bgr: "bgr";
|
|
900
904
|
yuv420: "yuv420";
|
|
901
|
-
gray: "gray";
|
|
902
905
|
}>;
|
|
903
906
|
width: z.ZodNumber;
|
|
904
907
|
height: z.ZodNumber;
|
|
905
908
|
timestamp: z.ZodNumber;
|
|
906
909
|
}, z.core.$strip>>;
|
|
910
|
+
frameRef: z.ZodOptional<z.ZodType<FrameRef, unknown, z.core.$ZodTypeInternals<FrameRef, unknown>>>;
|
|
907
911
|
frameHandle: z.ZodOptional<z.ZodObject<{
|
|
908
912
|
shmId: z.ZodString;
|
|
909
913
|
slot: z.ZodNumber;
|
|
@@ -911,11 +915,11 @@ export declare const pipelineExecutorCapability: {
|
|
|
911
915
|
width: z.ZodNumber;
|
|
912
916
|
height: z.ZodNumber;
|
|
913
917
|
format: z.ZodEnum<{
|
|
914
|
-
jpeg: "jpeg";
|
|
915
918
|
rgb: "rgb";
|
|
919
|
+
gray: "gray";
|
|
920
|
+
jpeg: "jpeg";
|
|
916
921
|
bgr: "bgr";
|
|
917
922
|
yuv420: "yuv420";
|
|
918
|
-
gray: "gray";
|
|
919
923
|
}>;
|
|
920
924
|
pts: z.ZodNumber;
|
|
921
925
|
byteLength: z.ZodNumber;
|
|
@@ -940,11 +944,11 @@ export declare const pipelineExecutorCapability: {
|
|
|
940
944
|
width: z.ZodNumber;
|
|
941
945
|
height: z.ZodNumber;
|
|
942
946
|
format: z.ZodEnum<{
|
|
943
|
-
jpeg: "jpeg";
|
|
944
947
|
rgb: "rgb";
|
|
948
|
+
gray: "gray";
|
|
949
|
+
jpeg: "jpeg";
|
|
945
950
|
bgr: "bgr";
|
|
946
951
|
yuv420: "yuv420";
|
|
947
|
-
gray: "gray";
|
|
948
952
|
}>;
|
|
949
953
|
pts: z.ZodNumber;
|
|
950
954
|
byteLength: z.ZodNumber;
|
|
@@ -991,11 +995,11 @@ export declare const pipelineExecutorCapability: {
|
|
|
991
995
|
frames: z.ZodArray<z.ZodObject<{
|
|
992
996
|
data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
993
997
|
format: z.ZodEnum<{
|
|
994
|
-
jpeg: "jpeg";
|
|
995
998
|
rgb: "rgb";
|
|
999
|
+
gray: "gray";
|
|
1000
|
+
jpeg: "jpeg";
|
|
996
1001
|
bgr: "bgr";
|
|
997
1002
|
yuv420: "yuv420";
|
|
998
|
-
gray: "gray";
|
|
999
1003
|
}>;
|
|
1000
1004
|
width: z.ZodNumber;
|
|
1001
1005
|
height: z.ZodNumber;
|
|
@@ -1020,8 +1024,8 @@ export declare const pipelineExecutorCapability: {
|
|
|
1020
1024
|
height: z.ZodNumber;
|
|
1021
1025
|
format: z.ZodEnum<{
|
|
1022
1026
|
rgb: "rgb";
|
|
1023
|
-
bgr: "bgr";
|
|
1024
1027
|
gray: "gray";
|
|
1028
|
+
bgr: "bgr";
|
|
1025
1029
|
}>;
|
|
1026
1030
|
}, z.core.$strip>, z.ZodObject<{
|
|
1027
1031
|
frameId: z.ZodNumber;
|
|
@@ -302,12 +302,138 @@ declare const RunnerLocalLoadSchema: z.ZodObject<{
|
|
|
302
302
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
303
303
|
* working unchanged when they switch to reading from the runner cap.
|
|
304
304
|
*/
|
|
305
|
+
declare const FrameLazyCountersSchema: z.ZodObject<{
|
|
306
|
+
framesDecoded: z.ZodNumber;
|
|
307
|
+
framesAdmitted: z.ZodNumber;
|
|
308
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
309
|
+
viewsMaterialized: z.ZodNumber;
|
|
310
|
+
viewsSkipped: z.ZodNumber;
|
|
311
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
312
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
313
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
314
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
315
|
+
onDemandCropRequests: z.ZodNumber;
|
|
316
|
+
nativeHits: z.ZodNumber;
|
|
317
|
+
nativeMisses: z.ZodNumber;
|
|
318
|
+
tileHits: z.ZodNumber;
|
|
319
|
+
tileMisses: z.ZodNumber;
|
|
320
|
+
fallbackHits: z.ZodNumber;
|
|
321
|
+
fallbackMisses: z.ZodNumber;
|
|
322
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
323
|
+
residentRefs: z.ZodNumber;
|
|
324
|
+
residentBytes: z.ZodNumber;
|
|
325
|
+
releases: z.ZodNumber;
|
|
326
|
+
evictions: z.ZodNumber;
|
|
327
|
+
staleMisses: z.ZodNumber;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
declare const FrameLazyMetricsSchema: z.ZodObject<{
|
|
330
|
+
node: z.ZodObject<{
|
|
331
|
+
framesDecoded: z.ZodNumber;
|
|
332
|
+
framesAdmitted: z.ZodNumber;
|
|
333
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
334
|
+
viewsMaterialized: z.ZodNumber;
|
|
335
|
+
viewsSkipped: z.ZodNumber;
|
|
336
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
337
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
338
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
339
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
340
|
+
onDemandCropRequests: z.ZodNumber;
|
|
341
|
+
nativeHits: z.ZodNumber;
|
|
342
|
+
nativeMisses: z.ZodNumber;
|
|
343
|
+
tileHits: z.ZodNumber;
|
|
344
|
+
tileMisses: z.ZodNumber;
|
|
345
|
+
fallbackHits: z.ZodNumber;
|
|
346
|
+
fallbackMisses: z.ZodNumber;
|
|
347
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
348
|
+
residentRefs: z.ZodNumber;
|
|
349
|
+
residentBytes: z.ZodNumber;
|
|
350
|
+
releases: z.ZodNumber;
|
|
351
|
+
evictions: z.ZodNumber;
|
|
352
|
+
staleMisses: z.ZodNumber;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
355
|
+
framesDecoded: z.ZodNumber;
|
|
356
|
+
framesAdmitted: z.ZodNumber;
|
|
357
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
358
|
+
viewsMaterialized: z.ZodNumber;
|
|
359
|
+
viewsSkipped: z.ZodNumber;
|
|
360
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
361
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
362
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
363
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
364
|
+
onDemandCropRequests: z.ZodNumber;
|
|
365
|
+
nativeHits: z.ZodNumber;
|
|
366
|
+
nativeMisses: z.ZodNumber;
|
|
367
|
+
tileHits: z.ZodNumber;
|
|
368
|
+
tileMisses: z.ZodNumber;
|
|
369
|
+
fallbackHits: z.ZodNumber;
|
|
370
|
+
fallbackMisses: z.ZodNumber;
|
|
371
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
372
|
+
residentRefs: z.ZodNumber;
|
|
373
|
+
residentBytes: z.ZodNumber;
|
|
374
|
+
releases: z.ZodNumber;
|
|
375
|
+
evictions: z.ZodNumber;
|
|
376
|
+
staleMisses: z.ZodNumber;
|
|
377
|
+
deviceId: z.ZodNumber;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
}, z.core.$strip>;
|
|
305
380
|
declare const RunnerLocalMetricsSchema: z.ZodObject<{
|
|
306
381
|
nodeId: z.ZodString;
|
|
307
382
|
activeCameras: z.ZodNumber;
|
|
308
383
|
throttledCameras: z.ZodNumber;
|
|
309
384
|
avgInferenceTimeMs: z.ZodNumber;
|
|
310
385
|
queueDepth: z.ZodNumber;
|
|
386
|
+
frameLazy: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
node: z.ZodObject<{
|
|
388
|
+
framesDecoded: z.ZodNumber;
|
|
389
|
+
framesAdmitted: z.ZodNumber;
|
|
390
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
391
|
+
viewsMaterialized: z.ZodNumber;
|
|
392
|
+
viewsSkipped: z.ZodNumber;
|
|
393
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
394
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
395
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
396
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
397
|
+
onDemandCropRequests: z.ZodNumber;
|
|
398
|
+
nativeHits: z.ZodNumber;
|
|
399
|
+
nativeMisses: z.ZodNumber;
|
|
400
|
+
tileHits: z.ZodNumber;
|
|
401
|
+
tileMisses: z.ZodNumber;
|
|
402
|
+
fallbackHits: z.ZodNumber;
|
|
403
|
+
fallbackMisses: z.ZodNumber;
|
|
404
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
405
|
+
residentRefs: z.ZodNumber;
|
|
406
|
+
residentBytes: z.ZodNumber;
|
|
407
|
+
releases: z.ZodNumber;
|
|
408
|
+
evictions: z.ZodNumber;
|
|
409
|
+
staleMisses: z.ZodNumber;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
412
|
+
framesDecoded: z.ZodNumber;
|
|
413
|
+
framesAdmitted: z.ZodNumber;
|
|
414
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
415
|
+
viewsMaterialized: z.ZodNumber;
|
|
416
|
+
viewsSkipped: z.ZodNumber;
|
|
417
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
418
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
419
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
420
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
421
|
+
onDemandCropRequests: z.ZodNumber;
|
|
422
|
+
nativeHits: z.ZodNumber;
|
|
423
|
+
nativeMisses: z.ZodNumber;
|
|
424
|
+
tileHits: z.ZodNumber;
|
|
425
|
+
tileMisses: z.ZodNumber;
|
|
426
|
+
fallbackHits: z.ZodNumber;
|
|
427
|
+
fallbackMisses: z.ZodNumber;
|
|
428
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
429
|
+
residentRefs: z.ZodNumber;
|
|
430
|
+
residentBytes: z.ZodNumber;
|
|
431
|
+
releases: z.ZodNumber;
|
|
432
|
+
evictions: z.ZodNumber;
|
|
433
|
+
staleMisses: z.ZodNumber;
|
|
434
|
+
deviceId: z.ZodNumber;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
}, z.core.$strip>>;
|
|
311
437
|
}, z.core.$strip>;
|
|
312
438
|
/**
|
|
313
439
|
* Pipeline Runner capability — runtime detection workhorse.
|
|
@@ -460,6 +586,57 @@ export declare const pipelineRunnerCapability: {
|
|
|
460
586
|
throttledCameras: z.ZodNumber;
|
|
461
587
|
avgInferenceTimeMs: z.ZodNumber;
|
|
462
588
|
queueDepth: z.ZodNumber;
|
|
589
|
+
frameLazy: z.ZodOptional<z.ZodObject<{
|
|
590
|
+
node: z.ZodObject<{
|
|
591
|
+
framesDecoded: z.ZodNumber;
|
|
592
|
+
framesAdmitted: z.ZodNumber;
|
|
593
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
594
|
+
viewsMaterialized: z.ZodNumber;
|
|
595
|
+
viewsSkipped: z.ZodNumber;
|
|
596
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
597
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
598
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
599
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
600
|
+
onDemandCropRequests: z.ZodNumber;
|
|
601
|
+
nativeHits: z.ZodNumber;
|
|
602
|
+
nativeMisses: z.ZodNumber;
|
|
603
|
+
tileHits: z.ZodNumber;
|
|
604
|
+
tileMisses: z.ZodNumber;
|
|
605
|
+
fallbackHits: z.ZodNumber;
|
|
606
|
+
fallbackMisses: z.ZodNumber;
|
|
607
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
608
|
+
residentRefs: z.ZodNumber;
|
|
609
|
+
residentBytes: z.ZodNumber;
|
|
610
|
+
releases: z.ZodNumber;
|
|
611
|
+
evictions: z.ZodNumber;
|
|
612
|
+
staleMisses: z.ZodNumber;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
cameras: z.ZodArray<z.ZodObject<{
|
|
615
|
+
framesDecoded: z.ZodNumber;
|
|
616
|
+
framesAdmitted: z.ZodNumber;
|
|
617
|
+
framesDroppedPixelFree: z.ZodNumber;
|
|
618
|
+
viewsMaterialized: z.ZodNumber;
|
|
619
|
+
viewsSkipped: z.ZodNumber;
|
|
620
|
+
workerToRunnerBytes: z.ZodNumber;
|
|
621
|
+
runnerToPoolRawBytes: z.ZodNumber;
|
|
622
|
+
runnerToPoolJpegBytes: z.ZodNumber;
|
|
623
|
+
onDemandFullFrameRequests: z.ZodNumber;
|
|
624
|
+
onDemandCropRequests: z.ZodNumber;
|
|
625
|
+
nativeHits: z.ZodNumber;
|
|
626
|
+
nativeMisses: z.ZodNumber;
|
|
627
|
+
tileHits: z.ZodNumber;
|
|
628
|
+
tileMisses: z.ZodNumber;
|
|
629
|
+
fallbackHits: z.ZodNumber;
|
|
630
|
+
fallbackMisses: z.ZodNumber;
|
|
631
|
+
retainedWritesAvoided: z.ZodNumber;
|
|
632
|
+
residentRefs: z.ZodNumber;
|
|
633
|
+
residentBytes: z.ZodNumber;
|
|
634
|
+
releases: z.ZodNumber;
|
|
635
|
+
evictions: z.ZodNumber;
|
|
636
|
+
staleMisses: z.ZodNumber;
|
|
637
|
+
deviceId: z.ZodNumber;
|
|
638
|
+
}, z.core.$strip>>;
|
|
639
|
+
}, z.core.$strip>>;
|
|
463
640
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
464
641
|
/** Per-camera metrics for cameras attached to this runner. */
|
|
465
642
|
readonly getCameraMetrics: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -525,11 +702,11 @@ export declare const pipelineRunnerCapability: {
|
|
|
525
702
|
width: z.ZodNumber;
|
|
526
703
|
height: z.ZodNumber;
|
|
527
704
|
format: z.ZodEnum<{
|
|
528
|
-
jpeg: "jpeg";
|
|
529
705
|
rgb: "rgb";
|
|
706
|
+
gray: "gray";
|
|
707
|
+
jpeg: "jpeg";
|
|
530
708
|
bgr: "bgr";
|
|
531
709
|
yuv420: "yuv420";
|
|
532
|
-
gray: "gray";
|
|
533
710
|
}>;
|
|
534
711
|
pts: z.ZodNumber;
|
|
535
712
|
byteLength: z.ZodNumber;
|
|
@@ -593,11 +770,11 @@ export declare const pipelineRunnerCapability: {
|
|
|
593
770
|
width: z.ZodNumber;
|
|
594
771
|
height: z.ZodNumber;
|
|
595
772
|
format: z.ZodEnum<{
|
|
596
|
-
jpeg: "jpeg";
|
|
597
773
|
rgb: "rgb";
|
|
774
|
+
gray: "gray";
|
|
775
|
+
jpeg: "jpeg";
|
|
598
776
|
bgr: "bgr";
|
|
599
777
|
yuv420: "yuv420";
|
|
600
|
-
gray: "gray";
|
|
601
778
|
}>;
|
|
602
779
|
pts: z.ZodNumber;
|
|
603
780
|
byteLength: z.ZodNumber;
|
|
@@ -755,4 +932,4 @@ export type RunDetailSubtreeResult = NonNullable<Awaited<ReturnType<IPipelineRun
|
|
|
755
932
|
*/
|
|
756
933
|
export type RunStatelessStepInput = Parameters<IPipelineRunnerProvider['runStatelessStep']>[0];
|
|
757
934
|
export type RunStatelessStepResult = Awaited<ReturnType<IPipelineRunnerProvider['runStatelessStep']>>;
|
|
758
|
-
export { RunnerCameraConfigSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema };
|
|
935
|
+
export { FrameLazyCountersSchema, FrameLazyMetricsSchema, RunnerCameraConfigSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, };
|
|
@@ -8,20 +8,20 @@ import { z } from 'zod';
|
|
|
8
8
|
* `FrameFormat` type alias together.
|
|
9
9
|
*/
|
|
10
10
|
export declare const FrameFormatSchema: z.ZodEnum<{
|
|
11
|
-
jpeg: "jpeg";
|
|
12
11
|
rgb: "rgb";
|
|
12
|
+
gray: "gray";
|
|
13
|
+
jpeg: "jpeg";
|
|
13
14
|
bgr: "bgr";
|
|
14
15
|
yuv420: "yuv420";
|
|
15
|
-
gray: "gray";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const FrameInputSchema: z.ZodObject<{
|
|
18
18
|
data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
19
19
|
format: z.ZodEnum<{
|
|
20
|
-
jpeg: "jpeg";
|
|
21
20
|
rgb: "rgb";
|
|
21
|
+
gray: "gray";
|
|
22
|
+
jpeg: "jpeg";
|
|
22
23
|
bgr: "bgr";
|
|
23
24
|
yuv420: "yuv420";
|
|
24
|
-
gray: "gray";
|
|
25
25
|
}>;
|
|
26
26
|
width: z.ZodNumber;
|
|
27
27
|
height: z.ZodNumber;
|
|
@@ -165,11 +165,11 @@ export declare const DecodedFrameSchema: z.ZodObject<{
|
|
|
165
165
|
width: z.ZodNumber;
|
|
166
166
|
height: z.ZodNumber;
|
|
167
167
|
format: z.ZodEnum<{
|
|
168
|
-
jpeg: "jpeg";
|
|
169
168
|
rgb: "rgb";
|
|
169
|
+
gray: "gray";
|
|
170
|
+
jpeg: "jpeg";
|
|
170
171
|
bgr: "bgr";
|
|
171
172
|
yuv420: "yuv420";
|
|
172
|
-
gray: "gray";
|
|
173
173
|
}>;
|
|
174
174
|
timestamp: z.ZodNumber;
|
|
175
175
|
}, z.core.$strip>;
|
|
@@ -191,11 +191,11 @@ export declare const FrameHandleSchema: z.ZodObject<{
|
|
|
191
191
|
width: z.ZodNumber;
|
|
192
192
|
height: z.ZodNumber;
|
|
193
193
|
format: z.ZodEnum<{
|
|
194
|
-
jpeg: "jpeg";
|
|
195
194
|
rgb: "rgb";
|
|
195
|
+
gray: "gray";
|
|
196
|
+
jpeg: "jpeg";
|
|
196
197
|
bgr: "bgr";
|
|
197
198
|
yuv420: "yuv420";
|
|
198
|
-
gray: "gray";
|
|
199
199
|
}>;
|
|
200
200
|
pts: z.ZodNumber;
|
|
201
201
|
byteLength: z.ZodNumber;
|
|
@@ -211,9 +211,9 @@ export declare const FrameHandleSchema: z.ZodObject<{
|
|
|
211
211
|
*/
|
|
212
212
|
export declare const FrameHandleFormatSchema: z.ZodEnum<{
|
|
213
213
|
rgb: "rgb";
|
|
214
|
+
gray: "gray";
|
|
214
215
|
bgr: "bgr";
|
|
215
216
|
yuv420: "yuv420";
|
|
216
|
-
gray: "gray";
|
|
217
217
|
}>;
|
|
218
218
|
export type FrameHandleFormat = z.infer<typeof FrameHandleFormatSchema>;
|
|
219
219
|
/**
|
|
@@ -227,9 +227,9 @@ export declare const SubscribeFramesInputSchema: z.ZodObject<{
|
|
|
227
227
|
brokerId: z.ZodString;
|
|
228
228
|
format: z.ZodEnum<{
|
|
229
229
|
rgb: "rgb";
|
|
230
|
+
gray: "gray";
|
|
230
231
|
bgr: "bgr";
|
|
231
232
|
yuv420: "yuv420";
|
|
232
|
-
gray: "gray";
|
|
233
233
|
}>;
|
|
234
234
|
maxFps: z.ZodOptional<z.ZodNumber>;
|
|
235
235
|
tag: z.ZodOptional<z.ZodString>;
|
|
@@ -1222,9 +1222,9 @@ export declare const streamBrokerCapability: {
|
|
|
1222
1222
|
brokerId: z.ZodString;
|
|
1223
1223
|
format: z.ZodEnum<{
|
|
1224
1224
|
rgb: "rgb";
|
|
1225
|
+
gray: "gray";
|
|
1225
1226
|
bgr: "bgr";
|
|
1226
1227
|
yuv420: "yuv420";
|
|
1227
|
-
gray: "gray";
|
|
1228
1228
|
}>;
|
|
1229
1229
|
maxFps: z.ZodOptional<z.ZodNumber>;
|
|
1230
1230
|
tag: z.ZodOptional<z.ZodString>;
|
|
@@ -1242,11 +1242,11 @@ export declare const streamBrokerCapability: {
|
|
|
1242
1242
|
width: z.ZodNumber;
|
|
1243
1243
|
height: z.ZodNumber;
|
|
1244
1244
|
format: z.ZodEnum<{
|
|
1245
|
-
jpeg: "jpeg";
|
|
1246
1245
|
rgb: "rgb";
|
|
1246
|
+
gray: "gray";
|
|
1247
|
+
jpeg: "jpeg";
|
|
1247
1248
|
bgr: "bgr";
|
|
1248
1249
|
yuv420: "yuv420";
|
|
1249
|
-
gray: "gray";
|
|
1250
1250
|
}>;
|
|
1251
1251
|
pts: z.ZodNumber;
|
|
1252
1252
|
byteLength: z.ZodNumber;
|
|
@@ -11,8 +11,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
11
11
|
* gating, alert filtering, …) — no other surface needs to change.
|
|
12
12
|
*/
|
|
13
13
|
export declare const ZoneRuleStageEnum: z.ZodEnum<{
|
|
14
|
-
motion: "motion";
|
|
15
14
|
package: "package";
|
|
15
|
+
motion: "motion";
|
|
16
16
|
detection: "detection";
|
|
17
17
|
}>;
|
|
18
18
|
export type ZoneRuleStage = z.infer<typeof ZoneRuleStageEnum>;
|
|
@@ -44,8 +44,8 @@ export declare const zoneRulesCapability: {
|
|
|
44
44
|
readonly listRules: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
45
45
|
deviceId: z.ZodNumber;
|
|
46
46
|
stage: z.ZodEnum<{
|
|
47
|
-
motion: "motion";
|
|
48
47
|
package: "package";
|
|
48
|
+
motion: "motion";
|
|
49
49
|
detection: "detection";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -69,8 +69,8 @@ export declare const zoneRulesCapability: {
|
|
|
69
69
|
readonly setRules: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
70
70
|
deviceId: z.ZodNumber;
|
|
71
71
|
stage: z.ZodEnum<{
|
|
72
|
-
motion: "motion";
|
|
73
72
|
package: "package";
|
|
73
|
+
motion: "motion";
|
|
74
74
|
detection: "detection";
|
|
75
75
|
}>;
|
|
76
76
|
rules: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|