@camstack/types 0.1.5 → 0.1.6
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/package.json +1 -1
- package/dist/__tests__/addon-capability-provider.test.d.ts +0 -2
- package/dist/__tests__/addon-capability-provider.test.d.ts.map +0 -1
- package/dist/__tests__/addon-declaration.test.d.ts +0 -2
- package/dist/__tests__/addon-declaration.test.d.ts.map +0 -1
- package/dist/__tests__/capability.test.d.ts +0 -2
- package/dist/__tests__/capability.test.d.ts.map +0 -1
- package/dist/catalogs/coco-classmap.d.ts +0 -5
- package/dist/catalogs/coco-classmap.d.ts.map +0 -1
- package/dist/catalogs/index.d.ts +0 -2
- package/dist/catalogs/index.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +0 -1
- package/dist/generated/addon-api.d.ts +0 -4948
- package/dist/generated/addon-api.d.ts.map +0 -1
- package/dist/index.d.ts +0 -82
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces/addon-i18n.d.ts +0 -41
- package/dist/interfaces/addon-i18n.d.ts.map +0 -1
- package/dist/interfaces/addon-routes.d.ts +0 -50
- package/dist/interfaces/addon-routes.d.ts.map +0 -1
- package/dist/interfaces/addon.d.ts +0 -294
- package/dist/interfaces/addon.d.ts.map +0 -1
- package/dist/interfaces/advanced-notifier.d.ts +0 -59
- package/dist/interfaces/advanced-notifier.d.ts.map +0 -1
- package/dist/interfaces/agent-protocol.d.ts +0 -189
- package/dist/interfaces/agent-protocol.d.ts.map +0 -1
- package/dist/interfaces/agent.d.ts +0 -87
- package/dist/interfaces/agent.d.ts.map +0 -1
- package/dist/interfaces/analysis-persistence.d.ts +0 -278
- package/dist/interfaces/analysis-persistence.d.ts.map +0 -1
- package/dist/interfaces/analysis.d.ts +0 -27
- package/dist/interfaces/analysis.d.ts.map +0 -1
- package/dist/interfaces/api-shared.d.ts +0 -176
- package/dist/interfaces/api-shared.d.ts.map +0 -1
- package/dist/interfaces/auth-provider.d.ts +0 -39
- package/dist/interfaces/auth-provider.d.ts.map +0 -1
- package/dist/interfaces/auth.d.ts +0 -47
- package/dist/interfaces/auth.d.ts.map +0 -1
- package/dist/interfaces/camera-pipeline.d.ts +0 -121
- package/dist/interfaces/camera-pipeline.d.ts.map +0 -1
- package/dist/interfaces/capability.d.ts +0 -84
- package/dist/interfaces/capability.d.ts.map +0 -1
- package/dist/interfaces/classifier.d.ts +0 -8
- package/dist/interfaces/classifier.d.ts.map +0 -1
- package/dist/interfaces/config-ui.d.ts +0 -152
- package/dist/interfaces/config-ui.d.ts.map +0 -1
- package/dist/interfaces/context.d.ts +0 -44
- package/dist/interfaces/context.d.ts.map +0 -1
- package/dist/interfaces/cropper.d.ts +0 -8
- package/dist/interfaces/cropper.d.ts.map +0 -1
- package/dist/interfaces/decoder.d.ts +0 -27
- package/dist/interfaces/decoder.d.ts.map +0 -1
- package/dist/interfaces/detection-addon.d.ts +0 -15
- package/dist/interfaces/detection-addon.d.ts.map +0 -1
- package/dist/interfaces/detector.d.ts +0 -8
- package/dist/interfaces/detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/accessory.d.ts +0 -14
- package/dist/interfaces/device-capabilities/accessory.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/audio-detector.d.ts +0 -12
- package/dist/interfaces/device-capabilities/audio-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/camera.d.ts +0 -22
- package/dist/interfaces/device-capabilities/camera.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/doorbell.d.ts +0 -10
- package/dist/interfaces/device-capabilities/doorbell.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/events.d.ts +0 -47
- package/dist/interfaces/device-capabilities/events.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/index.d.ts +0 -15
- package/dist/interfaces/device-capabilities/index.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts +0 -7
- package/dist/interfaces/device-capabilities/motion-sensor.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/native-detection.d.ts +0 -14
- package/dist/interfaces/device-capabilities/native-detection.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/object-detector.d.ts +0 -59
- package/dist/interfaces/device-capabilities/object-detector.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts +0 -29
- package/dist/interfaces/device-capabilities/pan-tilt-zoom.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/recording.d.ts +0 -18
- package/dist/interfaces/device-capabilities/recording.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/siren.d.ts +0 -8
- package/dist/interfaces/device-capabilities/siren.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/status-light.d.ts +0 -7
- package/dist/interfaces/device-capabilities/status-light.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/switch.d.ts +0 -8
- package/dist/interfaces/device-capabilities/switch.d.ts.map +0 -1
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts +0 -8
- package/dist/interfaces/device-capabilities/two-way-audio.d.ts.map +0 -1
- package/dist/interfaces/device-capability.d.ts +0 -14
- package/dist/interfaces/device-capability.d.ts.map +0 -1
- package/dist/interfaces/device-provider.d.ts +0 -43
- package/dist/interfaces/device-provider.d.ts.map +0 -1
- package/dist/interfaces/device.d.ts +0 -40
- package/dist/interfaces/device.d.ts.map +0 -1
- package/dist/interfaces/event-bus.d.ts +0 -22
- package/dist/interfaces/event-bus.d.ts.map +0 -1
- package/dist/interfaces/feature-flags.d.ts +0 -14
- package/dist/interfaces/feature-flags.d.ts.map +0 -1
- package/dist/interfaces/ffmpeg.d.ts +0 -10
- package/dist/interfaces/ffmpeg.d.ts.map +0 -1
- package/dist/interfaces/inference-capabilities.d.ts +0 -101
- package/dist/interfaces/inference-capabilities.d.ts.map +0 -1
- package/dist/interfaces/inference-engine.d.ts +0 -17
- package/dist/interfaces/inference-engine.d.ts.map +0 -1
- package/dist/interfaces/lifecycle.d.ts +0 -19
- package/dist/interfaces/lifecycle.d.ts.map +0 -1
- package/dist/interfaces/logging.d.ts +0 -33
- package/dist/interfaces/logging.d.ts.map +0 -1
- package/dist/interfaces/model-catalog.d.ts +0 -25
- package/dist/interfaces/model-catalog.d.ts.map +0 -1
- package/dist/interfaces/network-quality.d.ts +0 -25
- package/dist/interfaces/network-quality.d.ts.map +0 -1
- package/dist/interfaces/network.d.ts +0 -43
- package/dist/interfaces/network.d.ts.map +0 -1
- package/dist/interfaces/notification.d.ts +0 -53
- package/dist/interfaces/notification.d.ts.map +0 -1
- package/dist/interfaces/pipeline-runner.d.ts +0 -23
- package/dist/interfaces/pipeline-runner.d.ts.map +0 -1
- package/dist/interfaces/pipeline-slot.d.ts +0 -10
- package/dist/interfaces/pipeline-slot.d.ts.map +0 -1
- package/dist/interfaces/platform.d.ts +0 -55
- package/dist/interfaces/platform.d.ts.map +0 -1
- package/dist/interfaces/process.d.ts +0 -41
- package/dist/interfaces/process.d.ts.map +0 -1
- package/dist/interfaces/python-env.d.ts +0 -20
- package/dist/interfaces/python-env.d.ts.map +0 -1
- package/dist/interfaces/refiner.d.ts +0 -8
- package/dist/interfaces/refiner.d.ts.map +0 -1
- package/dist/interfaces/repl.d.ts +0 -26
- package/dist/interfaces/repl.d.ts.map +0 -1
- package/dist/interfaces/repositories.d.ts +0 -20
- package/dist/interfaces/repositories.d.ts.map +0 -1
- package/dist/interfaces/restreamer.d.ts +0 -24
- package/dist/interfaces/restreamer.d.ts.map +0 -1
- package/dist/interfaces/router.d.ts +0 -30
- package/dist/interfaces/router.d.ts.map +0 -1
- package/dist/interfaces/scene-intelligence.d.ts +0 -21
- package/dist/interfaces/scene-intelligence.d.ts.map +0 -1
- package/dist/interfaces/scoped-token.d.ts +0 -22
- package/dist/interfaces/scoped-token.d.ts.map +0 -1
- package/dist/interfaces/server-analysis.d.ts +0 -146
- package/dist/interfaces/server-analysis.d.ts.map +0 -1
- package/dist/interfaces/server-network.d.ts +0 -78
- package/dist/interfaces/server-network.d.ts.map +0 -1
- package/dist/interfaces/storage-backend.d.ts +0 -27
- package/dist/interfaces/storage-backend.d.ts.map +0 -1
- package/dist/interfaces/storage.d.ts +0 -174
- package/dist/interfaces/storage.d.ts.map +0 -1
- package/dist/interfaces/stream-broker.d.ts +0 -92
- package/dist/interfaces/stream-broker.d.ts.map +0 -1
- package/dist/interfaces/streaming.d.ts +0 -29
- package/dist/interfaces/streaming.d.ts.map +0 -1
- package/dist/interfaces/task-handler.d.ts +0 -46
- package/dist/interfaces/task-handler.d.ts.map +0 -1
- package/dist/interfaces/webrtc-provider.d.ts +0 -11
- package/dist/interfaces/webrtc-provider.d.ts.map +0 -1
- package/dist/interfaces/worker-protocol.d.ts +0 -110
- package/dist/interfaces/worker-protocol.d.ts.map +0 -1
- package/dist/schemas/system-settings-schemas.d.ts +0 -27
- package/dist/schemas/system-settings-schemas.d.ts.map +0 -1
- package/dist/types/analytics.d.ts +0 -75
- package/dist/types/analytics.d.ts.map +0 -1
- package/dist/types/benchmark.d.ts +0 -112
- package/dist/types/benchmark.d.ts.map +0 -1
- package/dist/types/camera-detection.d.ts +0 -34
- package/dist/types/camera-detection.d.ts.map +0 -1
- package/dist/types/config.d.ts +0 -37
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/detection.d.ts +0 -93
- package/dist/types/detection.d.ts.map +0 -1
- package/dist/types/device-type.d.ts +0 -10
- package/dist/types/device-type.d.ts.map +0 -1
- package/dist/types/entities.d.ts +0 -35
- package/dist/types/entities.d.ts.map +0 -1
- package/dist/types/events.d.ts +0 -35
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/io.d.ts +0 -25
- package/dist/types/io.d.ts.map +0 -1
- package/dist/types/labels.d.ts +0 -12
- package/dist/types/labels.d.ts.map +0 -1
- package/dist/types/live-state.d.ts +0 -47
- package/dist/types/live-state.d.ts.map +0 -1
- package/dist/types/models.d.ts +0 -79
- package/dist/types/models.d.ts.map +0 -1
- package/dist/types/pipeline-schema.d.ts +0 -78
- package/dist/types/pipeline-schema.d.ts.map +0 -1
- package/dist/types/pipeline.d.ts +0 -42
- package/dist/types/pipeline.d.ts.map +0 -1
- package/dist/types/tracked.d.ts +0 -21
- package/dist/types/tracked.d.ts.map +0 -1
- package/dist/types/zones.d.ts +0 -48
- package/dist/types/zones.d.ts.map +0 -1
- package/dist/utils/cosine-similarity.d.ts +0 -3
- package/dist/utils/cosine-similarity.d.ts.map +0 -1
- package/dist/utils/hf-url.d.ts +0 -2
- package/dist/utils/hf-url.d.ts.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EncodedPacket } from './stream-broker.js';
|
|
2
|
-
export interface IWebRtcProvider {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly name: string;
|
|
5
|
-
handleOffer(streamId: string, sdpOffer: string): Promise<string>;
|
|
6
|
-
supportsStream(streamId: string): boolean;
|
|
7
|
-
registerStream(streamId: string, codec: string): Promise<void>;
|
|
8
|
-
pushPacket(streamId: string, packet: EncodedPacket): void;
|
|
9
|
-
unregisterStream(streamId: string): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=webrtc-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webrtc-provider.d.ts","sourceRoot":"","sources":["../../src/interfaces/webrtc-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChE,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;IACzC,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IACzD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAClD"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/** Messages sent from main process to worker */
|
|
2
|
-
export type MainToWorkerMessage = {
|
|
3
|
-
type: 'INIT';
|
|
4
|
-
addonId: string;
|
|
5
|
-
addonDir: string;
|
|
6
|
-
config: Record<string, unknown>;
|
|
7
|
-
storagePaths: Record<string, string>;
|
|
8
|
-
/** Private data directory for this addon */
|
|
9
|
-
dataDir: string;
|
|
10
|
-
/** Legacy location paths (deprecated — use storageProvider proxy instead) */
|
|
11
|
-
locationPaths: Record<string, string>;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'CONFIG_CHANGE';
|
|
14
|
-
config: Record<string, unknown>;
|
|
15
|
-
} | {
|
|
16
|
-
type: 'CAPABILITY_RESPONSE';
|
|
17
|
-
requestId: string;
|
|
18
|
-
result: unknown;
|
|
19
|
-
error?: string;
|
|
20
|
-
} | {
|
|
21
|
-
type: 'SHUTDOWN';
|
|
22
|
-
} | {
|
|
23
|
-
type: 'PING';
|
|
24
|
-
};
|
|
25
|
-
/** Messages sent from worker to main process */
|
|
26
|
-
export type WorkerToMainMessage = {
|
|
27
|
-
type: 'READY';
|
|
28
|
-
capabilities: ReadonlyArray<{
|
|
29
|
-
name: string;
|
|
30
|
-
mode: 'singleton' | 'collection';
|
|
31
|
-
}>;
|
|
32
|
-
} | {
|
|
33
|
-
type: 'CAPABILITY_REGISTER';
|
|
34
|
-
name: string;
|
|
35
|
-
mode: 'singleton' | 'collection';
|
|
36
|
-
} | {
|
|
37
|
-
type: 'CAPABILITY_CALL';
|
|
38
|
-
requestId: string;
|
|
39
|
-
capability: string;
|
|
40
|
-
method: string;
|
|
41
|
-
args: readonly unknown[];
|
|
42
|
-
} | {
|
|
43
|
-
type: 'LOG';
|
|
44
|
-
level: string;
|
|
45
|
-
message: string;
|
|
46
|
-
context?: Record<string, unknown>;
|
|
47
|
-
} | {
|
|
48
|
-
type: 'EVENT';
|
|
49
|
-
category: string;
|
|
50
|
-
data: Record<string, unknown>;
|
|
51
|
-
} | {
|
|
52
|
-
type: 'STATS';
|
|
53
|
-
cpu: number;
|
|
54
|
-
memory: number;
|
|
55
|
-
uptime: number;
|
|
56
|
-
} | {
|
|
57
|
-
type: 'PONG';
|
|
58
|
-
} | {
|
|
59
|
-
type: 'ERROR';
|
|
60
|
-
message: string;
|
|
61
|
-
stack?: string;
|
|
62
|
-
} | {
|
|
63
|
-
type: 'SUB_PROCESS_SPAWNED';
|
|
64
|
-
pid: number;
|
|
65
|
-
name: string;
|
|
66
|
-
command: string;
|
|
67
|
-
} | {
|
|
68
|
-
type: 'SUB_PROCESS_EXITED';
|
|
69
|
-
pid: number;
|
|
70
|
-
code: number | null;
|
|
71
|
-
} | {
|
|
72
|
-
type: 'TASK_HANDLER_REGISTER';
|
|
73
|
-
taskType: string;
|
|
74
|
-
description: string;
|
|
75
|
-
security?: 'safe' | 'dangerous';
|
|
76
|
-
};
|
|
77
|
-
/** Worker process state */
|
|
78
|
-
export type WorkerState = 'starting' | 'running' | 'stopping' | 'stopped' | 'crashed';
|
|
79
|
-
/** Worker process info exposed to main process */
|
|
80
|
-
export interface WorkerInfo {
|
|
81
|
-
readonly addonId: string;
|
|
82
|
-
readonly pid: number;
|
|
83
|
-
readonly state: WorkerState;
|
|
84
|
-
readonly cpuPercent: number;
|
|
85
|
-
readonly memoryRss: number;
|
|
86
|
-
readonly uptimeSeconds: number;
|
|
87
|
-
readonly restartCount: number;
|
|
88
|
-
readonly subProcesses: readonly SubProcessInfo[];
|
|
89
|
-
}
|
|
90
|
-
/** Sub-process info */
|
|
91
|
-
export interface SubProcessInfo {
|
|
92
|
-
readonly pid: number;
|
|
93
|
-
readonly name: string;
|
|
94
|
-
readonly command: string;
|
|
95
|
-
readonly state: 'running' | 'stopped' | 'crashed';
|
|
96
|
-
readonly cpuPercent: number;
|
|
97
|
-
readonly memoryRss: number;
|
|
98
|
-
readonly uptimeSeconds: number;
|
|
99
|
-
}
|
|
100
|
-
/** Worker process stats (distinct from the existing ProcessStats in process.ts) */
|
|
101
|
-
export interface WorkerProcessStats {
|
|
102
|
-
readonly pid: number;
|
|
103
|
-
readonly cpuPercent: number;
|
|
104
|
-
readonly memoryRss: number;
|
|
105
|
-
readonly heapUsed?: number;
|
|
106
|
-
readonly uptimeSeconds: number;
|
|
107
|
-
readonly restartCount: number;
|
|
108
|
-
readonly state: WorkerState;
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=worker-protocol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-protocol.d.ts","sourceRoot":"","sources":["../../src/interfaces/worker-protocol.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAC3B;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,GACD;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACnF;IAAE,IAAI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B;AAED,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;CAC5B"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* System settings UI schemas — the single source of truth for all settings sections.
|
|
3
|
-
*
|
|
4
|
-
* These are defined in @camstack/types so that:
|
|
5
|
-
* - The backend can serve them via API
|
|
6
|
-
* - Addons can reference/extend them
|
|
7
|
-
* - The frontend fetches them at runtime (no hardcoded duplication)
|
|
8
|
-
*
|
|
9
|
-
* Values are stored in the SQL system_settings table, not config.yaml.
|
|
10
|
-
* Only `server` is read-only (loaded from config.yaml at bootstrap).
|
|
11
|
-
*/
|
|
12
|
-
import type { ConfigUISchema } from '../interfaces/config-ui.js';
|
|
13
|
-
export type SystemSettingsSection = 'server' | 'auth' | 'features' | 'storage' | 'logging' | 'addons' | 'recording' | 'streaming' | 'ffmpeg' | 'detection' | 'backup' | 'retention';
|
|
14
|
-
/** Sections where fields are read-only (bootstrap from config.yaml). */
|
|
15
|
-
export declare const READ_ONLY_SECTIONS: ReadonlySet<SystemSettingsSection>;
|
|
16
|
-
export interface SettingsTabDef {
|
|
17
|
-
readonly id: SystemSettingsSection;
|
|
18
|
-
readonly label: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const SETTINGS_TABS: readonly SettingsTabDef[];
|
|
21
|
-
export declare const SYSTEM_SETTINGS_SCHEMAS: Readonly<Record<SystemSettingsSection, ConfigUISchema>>;
|
|
22
|
-
/**
|
|
23
|
-
* Get the UI schema for a settings section.
|
|
24
|
-
* Returns undefined for unknown sections.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getSystemSettingsSchema(section: string): ConfigUISchema | undefined;
|
|
27
|
-
//# sourceMappingURL=system-settings-schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system-settings-schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/system-settings-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAMhE,MAAM,MAAM,qBAAqB,GAC7B,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GACjE,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAA;AAE/E,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,qBAAqB,CAEhE,CAAA;AAMF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,qBAAqB,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,cAAc,EAQzC,CAAA;AA2TV,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAc3F,CAAA;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEnF"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { BoundingBox } from './io.js';
|
|
2
|
-
import type { ObjectState } from './tracked.js';
|
|
3
|
-
import type { DetectionEvent, EventSnapshot } from './events.js';
|
|
4
|
-
export interface TrackFilter {
|
|
5
|
-
readonly class?: readonly string[];
|
|
6
|
-
readonly state?: readonly ObjectState[];
|
|
7
|
-
readonly inZone?: string;
|
|
8
|
-
readonly minDwellMs?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface TimeRangeOptions {
|
|
11
|
-
readonly from: number;
|
|
12
|
-
readonly to: number;
|
|
13
|
-
readonly resolution: 'minute' | '5min' | 'hour';
|
|
14
|
-
}
|
|
15
|
-
export interface ZoneHistoryPoint {
|
|
16
|
-
readonly timestamp: number;
|
|
17
|
-
readonly objectCount: number;
|
|
18
|
-
readonly objectsByClass: Readonly<Record<string, number>>;
|
|
19
|
-
readonly entrances: number;
|
|
20
|
-
readonly exits: number;
|
|
21
|
-
}
|
|
22
|
-
export interface HeatmapOptions {
|
|
23
|
-
readonly from: number;
|
|
24
|
-
readonly to: number;
|
|
25
|
-
readonly class?: string;
|
|
26
|
-
readonly resolution: number;
|
|
27
|
-
}
|
|
28
|
-
export interface HeatmapData {
|
|
29
|
-
readonly width: number;
|
|
30
|
-
readonly height: number;
|
|
31
|
-
readonly gridSize: number;
|
|
32
|
-
readonly cells: Float32Array;
|
|
33
|
-
readonly maxCount: number;
|
|
34
|
-
}
|
|
35
|
-
export interface TrackDetail {
|
|
36
|
-
readonly trackId: string;
|
|
37
|
-
readonly class: string;
|
|
38
|
-
readonly originalClass: string;
|
|
39
|
-
readonly state: ObjectState;
|
|
40
|
-
readonly firstSeen: number;
|
|
41
|
-
readonly lastSeen: number;
|
|
42
|
-
readonly totalDwellMs: number;
|
|
43
|
-
readonly path: ReadonlyArray<{
|
|
44
|
-
readonly timestamp: number;
|
|
45
|
-
readonly bbox: BoundingBox;
|
|
46
|
-
readonly velocity: {
|
|
47
|
-
readonly dx: number;
|
|
48
|
-
readonly dy: number;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
|
-
readonly identity?: {
|
|
52
|
-
readonly name: string;
|
|
53
|
-
readonly confidence: number;
|
|
54
|
-
readonly matchedAt: number;
|
|
55
|
-
};
|
|
56
|
-
readonly plateText?: {
|
|
57
|
-
readonly text: string;
|
|
58
|
-
readonly confidence: number;
|
|
59
|
-
readonly readAt: number;
|
|
60
|
-
};
|
|
61
|
-
readonly subClass?: {
|
|
62
|
-
readonly class: string;
|
|
63
|
-
readonly confidence: number;
|
|
64
|
-
};
|
|
65
|
-
readonly zoneTransitions: ReadonlyArray<{
|
|
66
|
-
readonly zoneId: string;
|
|
67
|
-
readonly zoneName: string;
|
|
68
|
-
readonly entered: number;
|
|
69
|
-
readonly exited?: number;
|
|
70
|
-
readonly dwellMs: number;
|
|
71
|
-
}>;
|
|
72
|
-
readonly bestSnapshot?: EventSnapshot;
|
|
73
|
-
readonly events: readonly DetectionEvent[];
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/types/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;CAChD;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WA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,EAAE,EAAE,MAAM,CAAA;SAAE,CAAA;KAChE,CAAC,CAAA;IACF,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IACtG,QAAQ,CAAC,SAAS,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACpG,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3E,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC;QACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KACzB,CAAC,CAAA;IACF,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAA;IACrC,QAAQ,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,CAAA;CAC3C"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { BoundingBox } from './io.js';
|
|
2
|
-
export type BenchmarkMode = 'single-addon' | 'full-pipeline' | 'compare-runtimes' | 'compare-models';
|
|
3
|
-
export type BenchmarkSource = {
|
|
4
|
-
readonly type: 'reference';
|
|
5
|
-
readonly images: 'all' | readonly string[];
|
|
6
|
-
} | {
|
|
7
|
-
readonly type: 'camera';
|
|
8
|
-
readonly deviceId: string;
|
|
9
|
-
readonly durationSec: number;
|
|
10
|
-
};
|
|
11
|
-
export type BenchmarkExecution = {
|
|
12
|
-
readonly type: 'local';
|
|
13
|
-
} | {
|
|
14
|
-
readonly type: 'agent';
|
|
15
|
-
readonly agentId: string;
|
|
16
|
-
} | {
|
|
17
|
-
readonly type: 'multi-agent';
|
|
18
|
-
readonly agentIds: readonly string[];
|
|
19
|
-
} | {
|
|
20
|
-
readonly type: 'all-agents';
|
|
21
|
-
};
|
|
22
|
-
export interface BenchmarkTarget {
|
|
23
|
-
readonly label: string;
|
|
24
|
-
readonly addonId: string;
|
|
25
|
-
readonly config: Readonly<Record<string, unknown>>;
|
|
26
|
-
}
|
|
27
|
-
export interface BenchmarkConfig {
|
|
28
|
-
readonly mode: BenchmarkMode;
|
|
29
|
-
readonly source: BenchmarkSource;
|
|
30
|
-
readonly execution: BenchmarkExecution;
|
|
31
|
-
readonly iterations?: number;
|
|
32
|
-
readonly warmup?: number;
|
|
33
|
-
readonly targets: readonly BenchmarkTarget[];
|
|
34
|
-
}
|
|
35
|
-
export interface LatencyStats {
|
|
36
|
-
readonly mean: number;
|
|
37
|
-
readonly median: number;
|
|
38
|
-
readonly p95: number;
|
|
39
|
-
readonly p99: number;
|
|
40
|
-
readonly min: number;
|
|
41
|
-
readonly max: number;
|
|
42
|
-
}
|
|
43
|
-
export interface ResourceStats {
|
|
44
|
-
readonly peakMemoryMB: number;
|
|
45
|
-
readonly avgCpuPercent: number;
|
|
46
|
-
readonly avgGpuPercent?: number;
|
|
47
|
-
}
|
|
48
|
-
export interface AccuracyStats {
|
|
49
|
-
readonly mAP50?: number;
|
|
50
|
-
readonly precision?: number;
|
|
51
|
-
readonly recall?: number;
|
|
52
|
-
}
|
|
53
|
-
export interface SystemInfo {
|
|
54
|
-
readonly os: string;
|
|
55
|
-
readonly arch: string;
|
|
56
|
-
readonly cpuModel: string;
|
|
57
|
-
readonly cpuCores: number;
|
|
58
|
-
readonly totalMemoryMB: number;
|
|
59
|
-
readonly gpuModel?: string;
|
|
60
|
-
readonly pythonVersion?: string;
|
|
61
|
-
readonly nodeVersion: string;
|
|
62
|
-
}
|
|
63
|
-
export interface BenchmarkTargetResult {
|
|
64
|
-
readonly label: string;
|
|
65
|
-
readonly addonId: string;
|
|
66
|
-
readonly config: Readonly<Record<string, unknown>>;
|
|
67
|
-
readonly latency: LatencyStats;
|
|
68
|
-
readonly fps: number;
|
|
69
|
-
readonly accuracy?: AccuracyStats;
|
|
70
|
-
readonly resources: ResourceStats;
|
|
71
|
-
readonly stepBreakdown?: Readonly<Record<string, {
|
|
72
|
-
readonly meanMs: number;
|
|
73
|
-
readonly percentOfTotal: number;
|
|
74
|
-
}>>;
|
|
75
|
-
}
|
|
76
|
-
export type AgentBenchmarkStatus = 'completed' | 'partial' | 'failed' | 'disconnected';
|
|
77
|
-
export interface MultiBenchmarkReport {
|
|
78
|
-
readonly timestamp: string;
|
|
79
|
-
readonly source: BenchmarkSource;
|
|
80
|
-
readonly agents: ReadonlyArray<{
|
|
81
|
-
readonly agentId: string;
|
|
82
|
-
readonly status: AgentBenchmarkStatus;
|
|
83
|
-
readonly systemInfo: SystemInfo;
|
|
84
|
-
readonly results: readonly BenchmarkTargetResult[];
|
|
85
|
-
readonly error?: string;
|
|
86
|
-
readonly completedIterations?: number;
|
|
87
|
-
}>;
|
|
88
|
-
readonly leaderboard: ReadonlyArray<{
|
|
89
|
-
readonly rank: number;
|
|
90
|
-
readonly agentId: string;
|
|
91
|
-
readonly label: string;
|
|
92
|
-
readonly meanMs: number;
|
|
93
|
-
readonly fps: number;
|
|
94
|
-
readonly peakMemoryMB: number;
|
|
95
|
-
readonly accuracy?: AccuracyStats;
|
|
96
|
-
}>;
|
|
97
|
-
}
|
|
98
|
-
export interface GroundTruthAnnotation {
|
|
99
|
-
readonly class: string;
|
|
100
|
-
readonly originalClass?: string;
|
|
101
|
-
readonly bbox: BoundingBox;
|
|
102
|
-
readonly children?: readonly GroundTruthAnnotation[];
|
|
103
|
-
readonly identity?: string;
|
|
104
|
-
readonly plateText?: string;
|
|
105
|
-
readonly species?: string;
|
|
106
|
-
readonly vehicleType?: string;
|
|
107
|
-
}
|
|
108
|
-
export interface GroundTruth {
|
|
109
|
-
readonly image: string;
|
|
110
|
-
readonly annotations: readonly GroundTruthAnnotation[];
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=benchmark.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.d.ts","sourceRoot":"","sources":["../../src/types/benchmark.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAEpG,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE,CAAA;CAAE,GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAExF,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACtE;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAA;AAEnC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,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face CameraMotionConfig {
|
|
6
|
-
/** 'stream' = frame-diff analysis on decoded frames (default)
|
|
7
|
-
* 'onboarded' = use camera's native motion signal via IMotionSensor capability
|
|
8
|
-
* 'smart' = AI-based motion detection */
|
|
9
|
-
readonly source: 'stream' | 'onboarded' | 'smart';
|
|
10
|
-
/** Frame-diff settings (only used when source='stream') */
|
|
11
|
-
readonly threshold?: number;
|
|
12
|
-
readonly minArea?: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Camera native AI detection configuration.
|
|
16
|
-
* These events are emitted for recording/notifications, NOT for inference pipeline.
|
|
17
|
-
* Uses the IObjectDetector device capability to receive detection events.
|
|
18
|
-
*/
|
|
19
|
-
export interface CameraNativeDetectionConfig {
|
|
20
|
-
/** Whether to listen for the camera's native AI events */
|
|
21
|
-
readonly enabled: boolean;
|
|
22
|
-
/** Source identifier for attribution */
|
|
23
|
-
readonly source: string;
|
|
24
|
-
/** Classes the camera reports natively */
|
|
25
|
-
readonly classes: readonly string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Combined camera detection capabilities config.
|
|
29
|
-
*/
|
|
30
|
-
export interface CameraDetectionCapabilities {
|
|
31
|
-
readonly motion: CameraMotionConfig;
|
|
32
|
-
readonly nativeDetection?: CameraNativeDetectionConfig;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=camera-detection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"camera-detection.d.ts","sourceRoot":"","sources":["../../src/types/camera-detection.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;8CAE0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAA;IACjD,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,2BAA2B,CAAA;CACvD"}
|
package/dist/types/config.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { DetectionEventType } from './events.js';
|
|
2
|
-
export type DetectionRuntime = 'onnx' | 'coreml' | 'pytorch' | 'openvino' | 'tflite';
|
|
3
|
-
export type DetectionDevice = 'cpu' | 'gpu-cuda' | 'gpu-mps' | 'npu' | 'coral-edgetpu' | 'tensorrt';
|
|
4
|
-
export type ProbeCapability = 'fp32' | 'fp16' | 'int8' | 'batch-inference';
|
|
5
|
-
export interface ProbeResult {
|
|
6
|
-
readonly available: boolean;
|
|
7
|
-
readonly runtime: DetectionRuntime;
|
|
8
|
-
readonly device: DetectionDevice;
|
|
9
|
-
readonly capabilities: readonly ProbeCapability[];
|
|
10
|
-
readonly estimatedMemoryMB?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface CameraAnalysisConfig {
|
|
13
|
-
readonly tracker: {
|
|
14
|
-
readonly maxAge: number;
|
|
15
|
-
readonly minHits: number;
|
|
16
|
-
readonly iouThreshold: number;
|
|
17
|
-
};
|
|
18
|
-
readonly stateAnalyzer: {
|
|
19
|
-
readonly stationaryThresholdSec: number;
|
|
20
|
-
readonly loiteringThresholdSec: number;
|
|
21
|
-
readonly velocityThreshold: number;
|
|
22
|
-
};
|
|
23
|
-
readonly snapshots: {
|
|
24
|
-
readonly enabled: boolean;
|
|
25
|
-
readonly saveThumbnail: boolean;
|
|
26
|
-
readonly saveAnnotatedFrame: boolean;
|
|
27
|
-
readonly saveDebugThumbnails: boolean;
|
|
28
|
-
readonly clipPreSec: number;
|
|
29
|
-
readonly clipPostSec: number;
|
|
30
|
-
};
|
|
31
|
-
readonly events: {
|
|
32
|
-
readonly minTrackAge: number;
|
|
33
|
-
readonly cooldownSec: number;
|
|
34
|
-
readonly enabledTypes: readonly DetectionEventType[];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;AACpF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,eAAe,GAAG,UAAU,CAAA;AACnG,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,iBAAiB,CAAA;AAE1E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;IAClC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC,QAAQ,CAAC,YAAY,EAAE,SAAS,eAAe,EAAE,CAAA;IACjD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;KAC9B,CAAA;IACD,QAAQ,CAAC,aAAa,EAAE;QACtB,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAA;QACvC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAA;QACtC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;KACnC,CAAA;IACD,QAAQ,CAAC,SAAS,EAAE;QAClB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;QACzB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;QAC/B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAA;QACpC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAA;QACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;QAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAC7B,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;QAC5B,QAAQ,CAAC,YAAY,EAAE,SAAS,kBAAkB,EAAE,CAAA;KACrD,CAAA;CACF"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { BoundingBox, Landmark, FrameInput } from './io.js';
|
|
2
|
-
import type { DetectionZoneMembership } from './zones.js';
|
|
3
|
-
export interface SpatialDetection {
|
|
4
|
-
readonly class: string;
|
|
5
|
-
readonly originalClass: string;
|
|
6
|
-
readonly score: number;
|
|
7
|
-
readonly bbox: BoundingBox;
|
|
8
|
-
readonly landmarks?: readonly Landmark[];
|
|
9
|
-
readonly mask?: Uint8Array;
|
|
10
|
-
readonly maskWidth?: number;
|
|
11
|
-
readonly maskHeight?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface CropInput {
|
|
14
|
-
readonly frame: FrameInput;
|
|
15
|
-
readonly roi: BoundingBox;
|
|
16
|
-
readonly parentDetection: SpatialDetection;
|
|
17
|
-
}
|
|
18
|
-
export interface Classification {
|
|
19
|
-
readonly class: string;
|
|
20
|
-
readonly score: number;
|
|
21
|
-
readonly text?: string;
|
|
22
|
-
readonly embedding?: Float32Array;
|
|
23
|
-
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
24
|
-
}
|
|
25
|
-
export interface DetectorOutput {
|
|
26
|
-
readonly detections: readonly SpatialDetection[];
|
|
27
|
-
readonly inferenceMs: number;
|
|
28
|
-
readonly modelId: string;
|
|
29
|
-
}
|
|
30
|
-
export interface CropperOutput {
|
|
31
|
-
readonly crops: readonly SpatialDetection[];
|
|
32
|
-
readonly inferenceMs: number;
|
|
33
|
-
readonly modelId: string;
|
|
34
|
-
}
|
|
35
|
-
export interface ClassifierOutput {
|
|
36
|
-
readonly classifications: readonly Classification[];
|
|
37
|
-
readonly inferenceMs: number;
|
|
38
|
-
readonly modelId: string;
|
|
39
|
-
}
|
|
40
|
-
export interface RefinerOutput {
|
|
41
|
-
/** Base64-encoded binary mask for the refined detection region */
|
|
42
|
-
readonly mask: string;
|
|
43
|
-
readonly maskWidth: number;
|
|
44
|
-
readonly maskHeight: number;
|
|
45
|
-
readonly inferenceMs: number;
|
|
46
|
-
readonly modelId: string;
|
|
47
|
-
}
|
|
48
|
-
/** Origin type of a label — what kind of pipeline step produced it */
|
|
49
|
-
export type LabelOrigin = 'classification' | 'face' | 'plate' | 'recognition' | 'unknown';
|
|
50
|
-
/** A label produced by any classifier/recognizer step in the pipeline */
|
|
51
|
-
export interface LabelData {
|
|
52
|
-
/** The classification/recognition result (e.g., "Sunbird", "EA0202AA", "Dodge Journey SUV 2012") */
|
|
53
|
-
readonly label: string;
|
|
54
|
-
/** Confidence of the classification */
|
|
55
|
-
readonly score: number;
|
|
56
|
-
/** Bounding box of the source region this label applies to [x1, y1, x2, y2] */
|
|
57
|
-
readonly box: readonly [number, number, number, number];
|
|
58
|
-
/** Source addon that produced this label */
|
|
59
|
-
readonly addonId: string;
|
|
60
|
-
/** Origin type — what kind of step produced this label */
|
|
61
|
-
readonly origin: LabelOrigin;
|
|
62
|
-
}
|
|
63
|
-
/** A detection produced by the pipeline executor with accumulated labels */
|
|
64
|
-
export interface PipelineDetection {
|
|
65
|
-
readonly className: string;
|
|
66
|
-
readonly originalClass?: string;
|
|
67
|
-
readonly confidence: number;
|
|
68
|
-
readonly bbox: readonly [number, number, number, number];
|
|
69
|
-
/** Accumulated labels from all classifier/recognizer steps in the pipeline */
|
|
70
|
-
readonly labelsData: readonly LabelData[];
|
|
71
|
-
/** Base64-encoded binary segmentation mask (when using -seg models or refiner) */
|
|
72
|
-
readonly mask?: string;
|
|
73
|
-
readonly maskWidth?: number;
|
|
74
|
-
readonly maskHeight?: number;
|
|
75
|
-
/** Sub-detections from cropper steps (face bbox, plate bbox) — for debug */
|
|
76
|
-
readonly children?: readonly PipelineDetection[];
|
|
77
|
-
readonly zones?: readonly DetectionZoneMembership[];
|
|
78
|
-
readonly embeddingId?: string;
|
|
79
|
-
}
|
|
80
|
-
export interface PipelineStepTiming {
|
|
81
|
-
readonly addonId: string;
|
|
82
|
-
readonly modelId: string;
|
|
83
|
-
readonly ms: number;
|
|
84
|
-
readonly detections: number;
|
|
85
|
-
}
|
|
86
|
-
export interface PipelineRunResult {
|
|
87
|
-
readonly detections: readonly PipelineDetection[];
|
|
88
|
-
readonly stepTimings: readonly PipelineStepTiming[];
|
|
89
|
-
readonly totalMs: number;
|
|
90
|
-
readonly imageWidth: number;
|
|
91
|
-
readonly imageHeight: number;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=detection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/types/detection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB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AAA;IACzC,kFAAkF;IAClF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACjD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum DeviceType {
|
|
2
|
-
Camera = "camera"
|
|
3
|
-
}
|
|
4
|
-
export interface DeviceTypeInfo {
|
|
5
|
-
readonly type: DeviceType;
|
|
6
|
-
readonly label: string;
|
|
7
|
-
readonly icon: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const DEVICE_TYPE_INFO: Record<DeviceType, DeviceTypeInfo>;
|
|
10
|
-
//# sourceMappingURL=device-type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-type.d.ts","sourceRoot":"","sources":["../../src/types/device-type.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,cAAc,CAE/D,CAAA"}
|
package/dist/types/entities.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface ZoneDefinition {
|
|
2
|
-
readonly id: string;
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly cameraId: string;
|
|
5
|
-
readonly type: 'polygon' | 'tripwire';
|
|
6
|
-
readonly points: ReadonlyArray<{
|
|
7
|
-
readonly x: number;
|
|
8
|
-
readonly y: number;
|
|
9
|
-
}>;
|
|
10
|
-
readonly direction?: 'in' | 'out' | 'both';
|
|
11
|
-
readonly alertOnClasses?: readonly string[];
|
|
12
|
-
readonly color?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface KnownFace {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly label?: string;
|
|
18
|
-
readonly embeddings: readonly Float32Array[];
|
|
19
|
-
readonly thumbnailPath?: string;
|
|
20
|
-
readonly createdAt: number;
|
|
21
|
-
}
|
|
22
|
-
export interface KnownPlate {
|
|
23
|
-
readonly id: string;
|
|
24
|
-
readonly plateText: string;
|
|
25
|
-
readonly label?: string;
|
|
26
|
-
readonly vehicleDescription?: string;
|
|
27
|
-
readonly createdAt: number;
|
|
28
|
-
}
|
|
29
|
-
export interface KnownAudioEvent {
|
|
30
|
-
readonly id: string;
|
|
31
|
-
readonly className: string;
|
|
32
|
-
readonly label: string;
|
|
33
|
-
readonly notifyAlways: boolean;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=entities.d.ts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AC3B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;CAC/B"}
|
package/dist/types/events.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { BoundingBox } from './io.js';
|
|
2
|
-
import type { Classification } from './detection.js';
|
|
3
|
-
import type { TrackedDetection, TrackedObjectState } from './tracked.js';
|
|
4
|
-
export type DetectionEventType = 'object.detected' | 'object.classified' | 'object.entering' | 'object.leaving' | 'object.stationary' | 'object.loitering' | 'zone.enter' | 'zone.exit' | 'tripwire.cross' | 'audio.detected';
|
|
5
|
-
export type TrackEventType = 'track.new' | 'track.update' | 'track.stationary' | 'track.moving' | 'track.zone-enter' | 'track.zone-exit' | 'track.zone-dwell' | 'track.ended';
|
|
6
|
-
export type AnalysisEventType = DetectionEventType | TrackEventType;
|
|
7
|
-
export interface ZoneEvent {
|
|
8
|
-
readonly type: 'zone-enter' | 'zone-exit' | 'zone-loiter' | 'tripwire-cross';
|
|
9
|
-
readonly zoneId: string;
|
|
10
|
-
readonly zoneName: string;
|
|
11
|
-
readonly trackId: string;
|
|
12
|
-
readonly detection: TrackedDetection;
|
|
13
|
-
readonly direction?: 'in' | 'out' | 'left' | 'right';
|
|
14
|
-
readonly timestamp: number;
|
|
15
|
-
}
|
|
16
|
-
export interface EventSnapshot {
|
|
17
|
-
readonly thumbnailPath: string;
|
|
18
|
-
readonly annotatedFramePath: string;
|
|
19
|
-
readonly debugThumbnails?: Readonly<Record<string, string>>;
|
|
20
|
-
readonly clipPath?: string;
|
|
21
|
-
readonly clipDurationSec?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface DetectionEvent {
|
|
24
|
-
readonly id: string;
|
|
25
|
-
readonly type: DetectionEventType;
|
|
26
|
-
readonly timestamp: number;
|
|
27
|
-
readonly deviceId: string;
|
|
28
|
-
readonly detection: TrackedDetection;
|
|
29
|
-
readonly classifications: readonly Classification[];
|
|
30
|
-
readonly objectState: TrackedObjectState;
|
|
31
|
-
readonly zoneEvents: readonly ZoneEvent[];
|
|
32
|
-
readonly snapshot?: EventSnapshot;
|
|
33
|
-
readonly trackPath: readonly BoundingBox[];
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAC1B,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,gBAAgB,CAAA;AAEpB,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,CAAA;AAEjB,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,cAAc,CAAA;AAEnE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,gBAAgB,CAAA;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;IACpC,QA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