@camstack/types 1.1.42 → 1.1.44
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/advanced-notifier.cap.d.ts +8 -4
- package/dist/capabilities/cap-router-predicates.d.ts +17 -0
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/custom-model-registry.cap.d.ts +20 -0
- package/dist/capabilities/index.d.ts +14 -7
- package/dist/capabilities/llm-runtime.cap.d.ts +286 -0
- package/dist/capabilities/llm-shared.d.ts +104 -0
- package/dist/capabilities/llm.cap.d.ts +596 -0
- package/dist/capabilities/login-method.cap.d.ts +53 -7
- package/dist/capabilities/model-convert.cap.d.ts +11 -0
- package/dist/capabilities/model-distributor.cap.d.ts +22 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +101 -25
- package/dist/capabilities/pipeline-executor.cap.d.ts +26 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -0
- package/dist/capabilities/pipeline-runner.cap.d.ts +107 -0
- package/dist/capabilities/plate-gallery.cap.d.ts +114 -0
- package/dist/capabilities/platform-probe.cap.d.ts +1 -0
- package/dist/capabilities/scene-monitor.cap.d.ts +483 -0
- package/dist/enums/event-category.d.ts +33 -0
- package/dist/generated/addon-api.d.ts +3305 -1081
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +13 -4
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +4 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/provider-kind-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +3 -1
- package/dist/index.js +1201 -48
- package/dist/index.mjs +1169 -49
- package/dist/interfaces/advanced-notifier.d.ts +2 -0
- package/dist/interfaces/event-bus.d.ts +111 -2
- package/dist/interfaces/pipeline-executor-capability.d.ts +9 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +8 -0
- package/dist/{sleep-BC9Yqte7.mjs → sleep-DkhOVOjW.mjs} +49 -1
- package/dist/{sleep-ByctZsHo.js → sleep-k6I1e98_.js} +49 -1
- package/dist/types/detection.d.ts +12 -0
- package/dist/types/models.d.ts +33 -1
- package/dist/types/pipeline-step.d.ts +31 -0
- package/package.json +1 -1
|
@@ -21,6 +21,39 @@ export declare const NativeCropResultSchema: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
export type NativeCropBbox = z.infer<typeof NativeCropBboxSchema>;
|
|
23
23
|
export type NativeCropCapResult = z.infer<typeof NativeCropResultSchema>;
|
|
24
|
+
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
25
|
+
* originating detection, in FRAME-space coordinates. Reuses
|
|
26
|
+
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
27
|
+
* the coordinates are frame-space rather than getNativeCrop's
|
|
28
|
+
* normalized [0,1] convention). */
|
|
29
|
+
declare const DetailParentSchema: z.ZodObject<{
|
|
30
|
+
bbox: z.ZodObject<{
|
|
31
|
+
x: z.ZodNumber;
|
|
32
|
+
y: z.ZodNumber;
|
|
33
|
+
w: z.ZodNumber;
|
|
34
|
+
h: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
className: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/** One child-step result from `runDetailSubtree` — an embedding, label,
|
|
39
|
+
* or refined detection produced by running the crop-subtree on a
|
|
40
|
+
* single tracked detection. */
|
|
41
|
+
declare const DetailResultSchema: z.ZodObject<{
|
|
42
|
+
stepId: z.ZodString;
|
|
43
|
+
className: z.ZodString;
|
|
44
|
+
score: z.ZodNumber;
|
|
45
|
+
bbox: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
x: z.ZodNumber;
|
|
47
|
+
y: z.ZodNumber;
|
|
48
|
+
w: z.ZodNumber;
|
|
49
|
+
h: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
embedding: z.ZodOptional<z.ZodString>;
|
|
52
|
+
label: z.ZodOptional<z.ZodString>;
|
|
53
|
+
alignedCropJpeg: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type DetailParent = z.infer<typeof DetailParentSchema>;
|
|
56
|
+
export type DetailResult = z.infer<typeof DetailResultSchema>;
|
|
24
57
|
/**
|
|
25
58
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
26
59
|
* new variants here when new motion-trigger paths are wired in
|
|
@@ -436,7 +469,81 @@ export declare const pipelineRunnerCapability: {
|
|
|
436
469
|
width: z.ZodNumber;
|
|
437
470
|
height: z.ZodNumber;
|
|
438
471
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
472
|
+
/**
|
|
473
|
+
* Two-plane design: run the DETAIL subtree (crop children —
|
|
474
|
+
* embedding, classifier, refiner steps whose `inputClasses ≠ null`)
|
|
475
|
+
* for a single tracked detection. The per-frame plane (`runPipeline`
|
|
476
|
+
* with `plane: 'frame'`) skips crop children entirely; a track-level
|
|
477
|
+
* caller invokes this per-track, on its own cadence, instead of on
|
|
478
|
+
* every frame. Takes either a `frameHandle` (shm lease/session —
|
|
479
|
+
* preferred, zero-copy) or a `cropJpeg` fallback when the lease/
|
|
480
|
+
* session backing the frame is already gone. `steps` narrows which
|
|
481
|
+
* configured children to run (default: all configured children for
|
|
482
|
+
* `parent.className`). Returns `null` when neither frame source is
|
|
483
|
+
* resolvable (handle evicted and no cropJpeg fallback supplied).
|
|
484
|
+
*/
|
|
485
|
+
readonly runDetailSubtree: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
486
|
+
deviceId: z.ZodNumber;
|
|
487
|
+
frameHandle: z.ZodOptional<z.ZodObject<{
|
|
488
|
+
shmId: z.ZodString;
|
|
489
|
+
slot: z.ZodNumber;
|
|
490
|
+
seq: z.ZodNumber;
|
|
491
|
+
width: z.ZodNumber;
|
|
492
|
+
height: z.ZodNumber;
|
|
493
|
+
format: z.ZodEnum<{
|
|
494
|
+
jpeg: "jpeg";
|
|
495
|
+
rgb: "rgb";
|
|
496
|
+
bgr: "bgr";
|
|
497
|
+
yuv420: "yuv420";
|
|
498
|
+
gray: "gray";
|
|
499
|
+
}>;
|
|
500
|
+
pts: z.ZodNumber;
|
|
501
|
+
byteLength: z.ZodNumber;
|
|
502
|
+
nodeId: z.ZodString;
|
|
503
|
+
slotCount: z.ZodNumber;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
cropJpeg: z.ZodOptional<z.ZodString>;
|
|
506
|
+
parent: z.ZodObject<{
|
|
507
|
+
bbox: z.ZodObject<{
|
|
508
|
+
x: z.ZodNumber;
|
|
509
|
+
y: z.ZodNumber;
|
|
510
|
+
w: z.ZodNumber;
|
|
511
|
+
h: z.ZodNumber;
|
|
512
|
+
}, z.core.$strip>;
|
|
513
|
+
className: z.ZodString;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
|
+
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
517
|
+
details: z.ZodArray<z.ZodObject<{
|
|
518
|
+
stepId: z.ZodString;
|
|
519
|
+
className: z.ZodString;
|
|
520
|
+
score: z.ZodNumber;
|
|
521
|
+
bbox: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
x: z.ZodNumber;
|
|
523
|
+
y: z.ZodNumber;
|
|
524
|
+
w: z.ZodNumber;
|
|
525
|
+
h: z.ZodNumber;
|
|
526
|
+
}, z.core.$strip>>;
|
|
527
|
+
embedding: z.ZodOptional<z.ZodString>;
|
|
528
|
+
label: z.ZodOptional<z.ZodString>;
|
|
529
|
+
alignedCropJpeg: z.ZodOptional<z.ZodString>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
531
|
+
}, z.core.$strip>>, "mutation">;
|
|
439
532
|
};
|
|
440
533
|
};
|
|
441
534
|
export type IPipelineRunnerProvider = InferProvider<typeof pipelineRunnerCapability>;
|
|
535
|
+
/**
|
|
536
|
+
* Named input/output types for `runDetailSubtree`, derived from the cap
|
|
537
|
+
* definition above (`InferProvider`) rather than a standalone exported zod
|
|
538
|
+
* schema — the method's input stays an INLINE `z.object({...})` literal so
|
|
539
|
+
* `scripts/lib/parse-cap.ts`'s `deviceBound` regex (which only scans a
|
|
540
|
+
* method's own inline call body for `deviceId: z.number(`) keeps detecting
|
|
541
|
+
* it as device-bound and `generate-device-proxy.ts` keeps mounting it on
|
|
542
|
+
* `DeviceProxy.pipelineRunner`. Extracting the input into a separate named
|
|
543
|
+
* schema constant (as `RunnerCameraConfigSchema` does for `attachCamera`)
|
|
544
|
+
* would silently drop it from the device proxy — verified via `npm run
|
|
545
|
+
* codegen` while implementing this cap.
|
|
546
|
+
*/
|
|
547
|
+
export type RunDetailSubtreeInput = Parameters<IPipelineRunnerProvider['runDetailSubtree']>[0];
|
|
548
|
+
export type RunDetailSubtreeResult = NonNullable<Awaited<ReturnType<IPipelineRunnerProvider['runDetailSubtree']>>>;
|
|
442
549
|
export { RunnerCameraConfigSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema };
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
declare const VehicleSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
sampleCount: z.ZodNumber;
|
|
7
|
+
coverMediaKey: z.ZodOptional<z.ZodString>;
|
|
8
|
+
coverBase64: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type Vehicle = z.infer<typeof VehicleSchema>;
|
|
11
|
+
declare const VehicleSampleInfoSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
text: z.ZodString;
|
|
14
|
+
score: z.ZodNumber;
|
|
15
|
+
addedAt: z.ZodNumber;
|
|
16
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type VehicleSampleInfo = z.infer<typeof VehicleSampleInfoSchema>;
|
|
3
20
|
declare const PlateInfoSchema: z.ZodObject<{
|
|
4
21
|
plateId: z.ZodString;
|
|
5
22
|
deviceId: z.ZodNumber;
|
|
@@ -8,6 +25,16 @@ declare const PlateInfoSchema: z.ZodObject<{
|
|
|
8
25
|
text: z.ZodString;
|
|
9
26
|
score: z.ZodNumber;
|
|
10
27
|
corrected: z.ZodBoolean;
|
|
28
|
+
recognizedVehicleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
vehicleName: z.ZodOptional<z.ZodString>;
|
|
30
|
+
assigned: z.ZodBoolean;
|
|
31
|
+
plateBbox: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
x: z.ZodNumber;
|
|
33
|
+
y: z.ZodNumber;
|
|
34
|
+
w: z.ZodNumber;
|
|
35
|
+
h: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
keyFrameMediaKey: z.ZodOptional<z.ZodString>;
|
|
11
38
|
base64: z.ZodOptional<z.ZodString>;
|
|
12
39
|
}, z.core.$strip>;
|
|
13
40
|
export type PlateInfo = z.infer<typeof PlateInfoSchema>;
|
|
@@ -35,6 +62,16 @@ export declare const plateGalleryCapability: {
|
|
|
35
62
|
text: z.ZodString;
|
|
36
63
|
score: z.ZodNumber;
|
|
37
64
|
corrected: z.ZodBoolean;
|
|
65
|
+
recognizedVehicleId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
vehicleName: z.ZodOptional<z.ZodString>;
|
|
67
|
+
assigned: z.ZodBoolean;
|
|
68
|
+
plateBbox: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
x: z.ZodNumber;
|
|
70
|
+
y: z.ZodNumber;
|
|
71
|
+
w: z.ZodNumber;
|
|
72
|
+
h: z.ZodNumber;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
keyFrameMediaKey: z.ZodOptional<z.ZodString>;
|
|
38
75
|
base64: z.ZodOptional<z.ZodString>;
|
|
39
76
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
40
77
|
readonly getPlateByTrack: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -48,6 +85,16 @@ export declare const plateGalleryCapability: {
|
|
|
48
85
|
text: z.ZodString;
|
|
49
86
|
score: z.ZodNumber;
|
|
50
87
|
corrected: z.ZodBoolean;
|
|
88
|
+
recognizedVehicleId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
vehicleName: z.ZodOptional<z.ZodString>;
|
|
90
|
+
assigned: z.ZodBoolean;
|
|
91
|
+
plateBbox: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
x: z.ZodNumber;
|
|
93
|
+
y: z.ZodNumber;
|
|
94
|
+
w: z.ZodNumber;
|
|
95
|
+
h: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
keyFrameMediaKey: z.ZodOptional<z.ZodString>;
|
|
51
98
|
base64: z.ZodOptional<z.ZodString>;
|
|
52
99
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
53
100
|
readonly getPlateMedia: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -72,6 +119,16 @@ export declare const plateGalleryCapability: {
|
|
|
72
119
|
text: z.ZodString;
|
|
73
120
|
score: z.ZodNumber;
|
|
74
121
|
corrected: z.ZodBoolean;
|
|
122
|
+
recognizedVehicleId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
vehicleName: z.ZodOptional<z.ZodString>;
|
|
124
|
+
assigned: z.ZodBoolean;
|
|
125
|
+
plateBbox: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
x: z.ZodNumber;
|
|
127
|
+
y: z.ZodNumber;
|
|
128
|
+
w: z.ZodNumber;
|
|
129
|
+
h: z.ZodNumber;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
keyFrameMediaKey: z.ZodOptional<z.ZodString>;
|
|
75
132
|
base64: z.ZodOptional<z.ZodString>;
|
|
76
133
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
77
134
|
/** Suggest groups of near-identical reads (same physical plate) for review/merge. */
|
|
@@ -94,6 +151,63 @@ export declare const plateGalleryCapability: {
|
|
|
94
151
|
readonly deletePlate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
95
152
|
plateId: z.ZodString;
|
|
96
153
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
154
|
+
readonly listVehicles: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
sampleCount: z.ZodNumber;
|
|
158
|
+
coverMediaKey: z.ZodOptional<z.ZodString>;
|
|
159
|
+
coverBase64: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
161
|
+
readonly createVehicle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
sampleCount: z.ZodNumber;
|
|
167
|
+
coverMediaKey: z.ZodOptional<z.ZodString>;
|
|
168
|
+
coverBase64: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>, "mutation">;
|
|
170
|
+
readonly renameVehicle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
174
|
+
readonly deleteVehicle: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
177
|
+
readonly listVehicleSamples: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
178
|
+
vehicleId: z.ZodString;
|
|
179
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
text: z.ZodString;
|
|
182
|
+
score: z.ZodNumber;
|
|
183
|
+
addedAt: z.ZodNumber;
|
|
184
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
187
|
+
readonly removeVehicleSample: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
188
|
+
vehicleId: z.ZodString;
|
|
189
|
+
sampleId: z.ZodString;
|
|
190
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
191
|
+
readonly assignPlate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
192
|
+
plateId: z.ZodString;
|
|
193
|
+
vehicleId: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
195
|
+
readonly unassignPlate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
196
|
+
plateId: z.ZodString;
|
|
197
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
198
|
+
readonly assignPlates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
199
|
+
plateIds: z.ZodArray<z.ZodString>;
|
|
200
|
+
vehicleId: z.ZodString;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
assigned: z.ZodNumber;
|
|
203
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
204
|
+
}, z.core.$strip>, "mutation">;
|
|
205
|
+
readonly unassignPlates: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
206
|
+
plateIds: z.ZodArray<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
unassigned: z.ZodNumber;
|
|
209
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
210
|
+
}, z.core.$strip>, "mutation">;
|
|
97
211
|
};
|
|
98
212
|
};
|
|
99
213
|
export type IPlateGalleryProvider = InferProvider<typeof plateGalleryCapability>;
|