@camstack/types 1.1.43 → 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 +4 -0
- 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 +13 -6
- 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 +22 -0
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -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 +2745 -647
- 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 +3 -0
- 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 +1135 -38
- package/dist/index.mjs +1103 -39
- package/dist/interfaces/advanced-notifier.d.ts +2 -0
- package/dist/interfaces/event-bus.d.ts +96 -1
- package/dist/{sleep-Baang_XW.mjs → sleep-DkhOVOjW.mjs} +47 -0
- package/dist/{sleep-DmvEGsRg.js → sleep-k6I1e98_.js} +47 -0
- package/dist/types/models.d.ts +33 -1
- package/package.json +1 -1
|
@@ -27,6 +27,8 @@ export interface NotificationRule {
|
|
|
27
27
|
readonly text: string;
|
|
28
28
|
readonly minSimilarity: number;
|
|
29
29
|
};
|
|
30
|
+
/** Recognized-entity label match (face identity / plate vehicle name). */
|
|
31
|
+
readonly labels?: readonly string[];
|
|
30
32
|
};
|
|
31
33
|
readonly outputs: readonly string[];
|
|
32
34
|
readonly template?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FrameResult, AudioResult } from '../types/detection.js';
|
|
1
|
+
import type { FrameResult, AudioResult, ObjectDetection } from '../types/detection.js';
|
|
2
2
|
import type { PipelineExecutionTrace, StepCadence } from '../types/pipeline-step.js';
|
|
3
3
|
import type { MotionRegion } from '../capabilities/motion-detection.cap.js';
|
|
4
4
|
import type { CameraPipelineConfig } from '../types/camera-pipeline.js';
|
|
@@ -120,6 +120,97 @@ export interface DetectionResultPayload {
|
|
|
120
120
|
readonly capturedAt?: number;
|
|
121
121
|
[key: string]: unknown;
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Enriched frame emitted on `pipeline-analytics.frame-tracked` after
|
|
125
|
+
* post-analysis detail synthesis. Carries overlay-ready detections:
|
|
126
|
+
* first-level roots pass through from the inference frame; `kind:'detail'`
|
|
127
|
+
* entries (face/plate) are SYNTHESIZED per frame from per-track detail
|
|
128
|
+
* state (two-plane re-injection).
|
|
129
|
+
*/
|
|
130
|
+
export interface PipelineAnalyticsFrameTrackedPayload {
|
|
131
|
+
readonly deviceId: number;
|
|
132
|
+
readonly timestamp: number;
|
|
133
|
+
readonly frameWidth: number;
|
|
134
|
+
readonly frameHeight: number;
|
|
135
|
+
readonly detections: readonly ObjectDetection[];
|
|
136
|
+
[key: string]: unknown;
|
|
137
|
+
}
|
|
138
|
+
/** Lifecycle phase of a tracked object: it appears (`start`), its best
|
|
139
|
+
* observation materially improves (`update`), then it ends (`end`). */
|
|
140
|
+
export type TrackLifecyclePhase = 'start' | 'update' | 'end';
|
|
141
|
+
/**
|
|
142
|
+
* Emitted on `pipeline-analytics.track-lifecycle` at three moments of a
|
|
143
|
+
* tracked object's life — `phase:'start'` when it first appears,
|
|
144
|
+
* `phase:'update'` when its best observation MATERIALLY improves (a
|
|
145
|
+
* clearer/larger frame, a newly-recognized identity or plate), and
|
|
146
|
+
* `phase:'end'` exactly once when it expires (TTL-gated). One typed
|
|
147
|
+
* payload shape across phases so a consumer subscribes once and branches
|
|
148
|
+
* on `phase`. Supersedes the thin `TrackStarted` / `TrackEnded` pair.
|
|
149
|
+
*
|
|
150
|
+
* Fields carry the BEST-so-far observation (final at `end`). `media`
|
|
151
|
+
* addresses the current representative image over HTTP. Telemetry
|
|
152
|
+
* semantics (D8): a lost event only misses a moment, never a correctness
|
|
153
|
+
* issue — the durable summary lives in the track store + events.
|
|
154
|
+
*/
|
|
155
|
+
export interface PipelineAnalyticsTrackLifecyclePayload {
|
|
156
|
+
readonly deviceId: number;
|
|
157
|
+
readonly trackId: string;
|
|
158
|
+
readonly phase: TrackLifecyclePhase;
|
|
159
|
+
/** Per-track observed-class set (deduplicated accumulator). */
|
|
160
|
+
readonly classes: readonly string[];
|
|
161
|
+
readonly bestClassName: string;
|
|
162
|
+
readonly bestConfidence: number;
|
|
163
|
+
/** Identity name / plate text, when resolved. */
|
|
164
|
+
readonly label?: string;
|
|
165
|
+
readonly identityId?: string;
|
|
166
|
+
readonly plateText?: string;
|
|
167
|
+
readonly firstSeen: number;
|
|
168
|
+
readonly lastSeen: number;
|
|
169
|
+
/** `lastSeen - firstSeen`; ~0 at start, grows over the track's life. */
|
|
170
|
+
readonly durationMs: number;
|
|
171
|
+
readonly zonesVisited?: readonly string[];
|
|
172
|
+
readonly totalDistance?: number;
|
|
173
|
+
readonly positionsCount?: number;
|
|
174
|
+
readonly importance?: number;
|
|
175
|
+
readonly importanceReason?: string;
|
|
176
|
+
/** The current best image, addressable over HTTP. */
|
|
177
|
+
readonly media?: {
|
|
178
|
+
readonly keyFrameMediaKey?: string;
|
|
179
|
+
readonly bestCropMediaKey?: string;
|
|
180
|
+
readonly bestEventId?: string;
|
|
181
|
+
};
|
|
182
|
+
readonly embeddingId?: string;
|
|
183
|
+
readonly embeddingModelId?: string;
|
|
184
|
+
readonly [key: string]: unknown;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Emitted on `pipeline-analytics.face-gallery-changed` whenever a gallery
|
|
188
|
+
* face row changes. `kind:'buffered'` — a new face row was persisted
|
|
189
|
+
* (`FaceRecognizer.onTrackEnd`); `'assigned'` / `'unassigned'` — the face's
|
|
190
|
+
* identity link changed (`FaceGalleryProvider.assignFace`/`unassignFace`);
|
|
191
|
+
* `'deleted'` — the row was removed (`FaceGalleryProvider.deleteFace`).
|
|
192
|
+
* Telemetry semantics (D8): a lost event only delays a UI refresh, never a
|
|
193
|
+
* correctness issue. Consumer: `useFaceGalleryLiveRefresh` (admin-ui).
|
|
194
|
+
*/
|
|
195
|
+
export interface PipelineAnalyticsFaceGalleryChangedPayload {
|
|
196
|
+
readonly deviceId: number;
|
|
197
|
+
readonly faceId: string;
|
|
198
|
+
readonly kind: 'buffered' | 'assigned' | 'unassigned' | 'deleted';
|
|
199
|
+
readonly [key: string]: unknown;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Emitted when a plate-gallery row changes: `'buffered'` — a new read was
|
|
203
|
+
* persisted (`PlateRecognizer.onTrackEnd`); `'assigned'`/`'unassigned'` — the
|
|
204
|
+
* vehicle link changed (`PlateGalleryProvider`); `'deleted'` — the row was
|
|
205
|
+
* removed. Telemetry (D8): a lost event only delays a UI refresh. Consumer:
|
|
206
|
+
* `usePlateGalleryLiveRefresh` (admin-ui).
|
|
207
|
+
*/
|
|
208
|
+
export interface PipelineAnalyticsPlateGalleryChangedPayload {
|
|
209
|
+
readonly deviceId: number;
|
|
210
|
+
readonly plateId: string;
|
|
211
|
+
readonly kind: 'buffered' | 'assigned' | 'unassigned' | 'deleted';
|
|
212
|
+
readonly [key: string]: unknown;
|
|
213
|
+
}
|
|
123
214
|
/**
|
|
124
215
|
* Child steps enabled for a camera + their scheduling policy, as read
|
|
125
216
|
* from the pipeline catalog. Announced on `PipelineInferenceResultPayload`
|
|
@@ -602,6 +693,10 @@ export interface EventCatalog {
|
|
|
602
693
|
'detection.motion-analysis': MotionAnalysisPayload;
|
|
603
694
|
'detection.motion-zones-raw': MotionZonesRawPayload;
|
|
604
695
|
'motion.on-motion-changed': MotionOnMotionChangedPayload;
|
|
696
|
+
'pipeline-analytics.frame-tracked': PipelineAnalyticsFrameTrackedPayload;
|
|
697
|
+
'pipeline-analytics.track-lifecycle': PipelineAnalyticsTrackLifecyclePayload;
|
|
698
|
+
'pipeline-analytics.face-gallery-changed': PipelineAnalyticsFaceGalleryChangedPayload;
|
|
699
|
+
'pipeline-analytics.plate-gallery-changed': PipelineAnalyticsPlateGalleryChangedPayload;
|
|
605
700
|
/**
|
|
606
701
|
* On-board detection coming straight from the camera firmware (Reolink
|
|
607
702
|
* AI alarms, ONVIF analytics, etc.) — as opposed to `detection.result`
|
|
@@ -474,10 +474,43 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
474
474
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
475
475
|
EventCategory["EnrichmentSceneStateChanged"] = "enrichment.scene.state-changed";
|
|
476
476
|
EventCategory["EnrichmentActivitySummary"] = "enrichment.activity.summary";
|
|
477
|
+
/**
|
|
478
|
+
* Unified track-lifecycle event: ONE category carrying `phase:
|
|
479
|
+
* 'start' | 'update' | 'end'` with a rich, typed
|
|
480
|
+
* `PipelineAnalyticsTrackLifecyclePayload`. Supersedes the thin
|
|
481
|
+
* `PipelineAnalyticsTrackStarted` / `PipelineAnalyticsTrackEnded`
|
|
482
|
+
* pair — a consumer subscribes once and branches on `phase`.
|
|
483
|
+
*/
|
|
484
|
+
EventCategory["PipelineAnalyticsTrackLifecycle"] = "pipeline-analytics.track-lifecycle";
|
|
485
|
+
/**
|
|
486
|
+
* @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
|
|
487
|
+
* (`phase:'start'`). Kept as a soft alias — no known subscribers.
|
|
488
|
+
*/
|
|
477
489
|
EventCategory["PipelineAnalyticsTrackStarted"] = "pipeline-analytics.track-started";
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
|
|
492
|
+
* (`phase:'end'`). Kept as a soft alias — no known subscribers.
|
|
493
|
+
*/
|
|
478
494
|
EventCategory["PipelineAnalyticsTrackEnded"] = "pipeline-analytics.track-ended";
|
|
479
495
|
EventCategory["PipelineAnalyticsDetectionEvent"] = "pipeline-analytics.detection-event";
|
|
480
496
|
EventCategory["PipelineAnalyticsFrameTracked"] = "pipeline-analytics.frame-tracked";
|
|
497
|
+
/**
|
|
498
|
+
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
499
|
+
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
500
|
+
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
501
|
+
* removed. Telemetry semantics (D8): a lost event only delays a refresh,
|
|
502
|
+
* never a correctness issue. Payload `PipelineAnalyticsFaceGalleryChangedPayload`.
|
|
503
|
+
*/
|
|
504
|
+
EventCategory["PipelineAnalyticsFaceGalleryChanged"] = "pipeline-analytics.face-gallery-changed";
|
|
505
|
+
/**
|
|
506
|
+
* Fired by `addon-post-analysis` whenever a gallery plate row changes:
|
|
507
|
+
* `kind:'buffered'` a new read was persisted (`PlateRecognizer.onTrackEnd`),
|
|
508
|
+
* `'assigned'` / `'unassigned'` its vehicle link changed
|
|
509
|
+
* (`PlateGalleryProvider`), `'deleted'` the row was removed. Telemetry
|
|
510
|
+
* semantics (D8): a lost event only delays a refresh, never a correctness
|
|
511
|
+
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
512
|
+
*/
|
|
513
|
+
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
481
514
|
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
482
515
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
483
516
|
/**
|
|
@@ -3159,6 +3192,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3159
3192
|
pressureSensor: createSliceHandle(stateSource, binding.deviceId, "pressure-sensor"),
|
|
3160
3193
|
privacyMask: createSliceHandle(stateSource, binding.deviceId, "privacy-mask"),
|
|
3161
3194
|
ptzAutotrack: createSliceHandle(stateSource, binding.deviceId, "ptz-autotrack"),
|
|
3195
|
+
sceneMonitor: createSliceHandle(stateSource, binding.deviceId, "scene-monitor"),
|
|
3162
3196
|
scriptRunner: createSliceHandle(stateSource, binding.deviceId, "script-runner"),
|
|
3163
3197
|
smoke: createSliceHandle(stateSource, binding.deviceId, "smoke"),
|
|
3164
3198
|
streamParams: createSliceHandle(stateSource, binding.deviceId, "stream-params"),
|
|
@@ -3411,6 +3445,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3411
3445
|
getKeyEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEvents", "query", input),
|
|
3412
3446
|
getEventDensity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventDensity", "query", input),
|
|
3413
3447
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3448
|
+
pruneTracksBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneTracksBefore", "mutation", input),
|
|
3449
|
+
wipeAllAnalytics: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeAllAnalytics", "mutation", input),
|
|
3450
|
+
deleteTracks: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteTracks", "mutation", input),
|
|
3414
3451
|
getEventMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMedia", "query", input),
|
|
3415
3452
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3416
3453
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
@@ -3447,6 +3484,16 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3447
3484
|
setSettings: (input) => dispatch("ptz-autotrack", "ptzAutotrack", "setSettings", "mutation", input)
|
|
3448
3485
|
},
|
|
3449
3486
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3487
|
+
sceneMonitor: {
|
|
3488
|
+
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3489
|
+
createScene: (input) => dispatch("scene-monitor", "sceneMonitor", "createScene", "mutation", input),
|
|
3490
|
+
updateScene: (input) => dispatch("scene-monitor", "sceneMonitor", "updateScene", "mutation", input),
|
|
3491
|
+
deleteScene: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteScene", "mutation", input),
|
|
3492
|
+
captureReference: (input) => dispatch("scene-monitor", "sceneMonitor", "captureReference", "mutation", input),
|
|
3493
|
+
deleteReference: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteReference", "mutation", input),
|
|
3494
|
+
recheckNow: (input) => dispatch("scene-monitor", "sceneMonitor", "recheckNow", "mutation", input),
|
|
3495
|
+
getStatus: (input) => dispatch("scene-monitor", "sceneMonitor", "getStatus", "query", input)
|
|
3496
|
+
},
|
|
3450
3497
|
scriptRunner: {
|
|
3451
3498
|
run: (input) => dispatch("script-runner", "scriptRunner", "run", "mutation", input),
|
|
3452
3499
|
stop: (input) => dispatch("script-runner", "scriptRunner", "stop", "mutation", input),
|
|
@@ -474,10 +474,43 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
474
474
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
475
475
|
EventCategory["EnrichmentSceneStateChanged"] = "enrichment.scene.state-changed";
|
|
476
476
|
EventCategory["EnrichmentActivitySummary"] = "enrichment.activity.summary";
|
|
477
|
+
/**
|
|
478
|
+
* Unified track-lifecycle event: ONE category carrying `phase:
|
|
479
|
+
* 'start' | 'update' | 'end'` with a rich, typed
|
|
480
|
+
* `PipelineAnalyticsTrackLifecyclePayload`. Supersedes the thin
|
|
481
|
+
* `PipelineAnalyticsTrackStarted` / `PipelineAnalyticsTrackEnded`
|
|
482
|
+
* pair — a consumer subscribes once and branches on `phase`.
|
|
483
|
+
*/
|
|
484
|
+
EventCategory["PipelineAnalyticsTrackLifecycle"] = "pipeline-analytics.track-lifecycle";
|
|
485
|
+
/**
|
|
486
|
+
* @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
|
|
487
|
+
* (`phase:'start'`). Kept as a soft alias — no known subscribers.
|
|
488
|
+
*/
|
|
477
489
|
EventCategory["PipelineAnalyticsTrackStarted"] = "pipeline-analytics.track-started";
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated Superseded by {@link PipelineAnalyticsTrackLifecycle}
|
|
492
|
+
* (`phase:'end'`). Kept as a soft alias — no known subscribers.
|
|
493
|
+
*/
|
|
478
494
|
EventCategory["PipelineAnalyticsTrackEnded"] = "pipeline-analytics.track-ended";
|
|
479
495
|
EventCategory["PipelineAnalyticsDetectionEvent"] = "pipeline-analytics.detection-event";
|
|
480
496
|
EventCategory["PipelineAnalyticsFrameTracked"] = "pipeline-analytics.frame-tracked";
|
|
497
|
+
/**
|
|
498
|
+
* Fired by `addon-post-analysis` whenever a gallery face row changes:
|
|
499
|
+
* `kind:'buffered'` a new detected face was persisted, `'assigned'` /
|
|
500
|
+
* `'unassigned'` its identity link changed, `'deleted'` the row was
|
|
501
|
+
* removed. Telemetry semantics (D8): a lost event only delays a refresh,
|
|
502
|
+
* never a correctness issue. Payload `PipelineAnalyticsFaceGalleryChangedPayload`.
|
|
503
|
+
*/
|
|
504
|
+
EventCategory["PipelineAnalyticsFaceGalleryChanged"] = "pipeline-analytics.face-gallery-changed";
|
|
505
|
+
/**
|
|
506
|
+
* Fired by `addon-post-analysis` whenever a gallery plate row changes:
|
|
507
|
+
* `kind:'buffered'` a new read was persisted (`PlateRecognizer.onTrackEnd`),
|
|
508
|
+
* `'assigned'` / `'unassigned'` its vehicle link changed
|
|
509
|
+
* (`PlateGalleryProvider`), `'deleted'` the row was removed. Telemetry
|
|
510
|
+
* semantics (D8): a lost event only delays a refresh, never a correctness
|
|
511
|
+
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
512
|
+
*/
|
|
513
|
+
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
481
514
|
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
482
515
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
483
516
|
/**
|
|
@@ -3159,6 +3192,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3159
3192
|
pressureSensor: createSliceHandle(stateSource, binding.deviceId, "pressure-sensor"),
|
|
3160
3193
|
privacyMask: createSliceHandle(stateSource, binding.deviceId, "privacy-mask"),
|
|
3161
3194
|
ptzAutotrack: createSliceHandle(stateSource, binding.deviceId, "ptz-autotrack"),
|
|
3195
|
+
sceneMonitor: createSliceHandle(stateSource, binding.deviceId, "scene-monitor"),
|
|
3162
3196
|
scriptRunner: createSliceHandle(stateSource, binding.deviceId, "script-runner"),
|
|
3163
3197
|
smoke: createSliceHandle(stateSource, binding.deviceId, "smoke"),
|
|
3164
3198
|
streamParams: createSliceHandle(stateSource, binding.deviceId, "stream-params"),
|
|
@@ -3411,6 +3445,9 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3411
3445
|
getKeyEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getKeyEvents", "query", input),
|
|
3412
3446
|
getEventDensity: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventDensity", "query", input),
|
|
3413
3447
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3448
|
+
pruneTracksBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneTracksBefore", "mutation", input),
|
|
3449
|
+
wipeAllAnalytics: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "wipeAllAnalytics", "mutation", input),
|
|
3450
|
+
deleteTracks: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "deleteTracks", "mutation", input),
|
|
3414
3451
|
getEventMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMedia", "query", input),
|
|
3415
3452
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3416
3453
|
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
@@ -3447,6 +3484,16 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3447
3484
|
setSettings: (input) => dispatch("ptz-autotrack", "ptzAutotrack", "setSettings", "mutation", input)
|
|
3448
3485
|
},
|
|
3449
3486
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3487
|
+
sceneMonitor: {
|
|
3488
|
+
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3489
|
+
createScene: (input) => dispatch("scene-monitor", "sceneMonitor", "createScene", "mutation", input),
|
|
3490
|
+
updateScene: (input) => dispatch("scene-monitor", "sceneMonitor", "updateScene", "mutation", input),
|
|
3491
|
+
deleteScene: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteScene", "mutation", input),
|
|
3492
|
+
captureReference: (input) => dispatch("scene-monitor", "sceneMonitor", "captureReference", "mutation", input),
|
|
3493
|
+
deleteReference: (input) => dispatch("scene-monitor", "sceneMonitor", "deleteReference", "mutation", input),
|
|
3494
|
+
recheckNow: (input) => dispatch("scene-monitor", "sceneMonitor", "recheckNow", "mutation", input),
|
|
3495
|
+
getStatus: (input) => dispatch("scene-monitor", "sceneMonitor", "getStatus", "query", input)
|
|
3496
|
+
},
|
|
3450
3497
|
scriptRunner: {
|
|
3451
3498
|
run: (input) => dispatch("script-runner", "scriptRunner", "run", "mutation", input),
|
|
3452
3499
|
stop: (input) => dispatch("script-runner", "scriptRunner", "stop", "mutation", input),
|
package/dist/types/models.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { ClassMapDefinition, LabelDefinition } from './labels.js';
|
|
3
|
-
export declare const MODEL_FORMATS: readonly ["onnx", "coreml", "openvino", "tflite", "pt"];
|
|
3
|
+
export declare const MODEL_FORMATS: readonly ["onnx", "coreml", "openvino", "tflite", "pt", "gguf"];
|
|
4
4
|
export type ModelFormat = (typeof MODEL_FORMATS)[number];
|
|
5
5
|
export type ModelOutputFormat = 'yolo' | 'ssd' | 'embedding' | 'classification' | 'ocr' | 'segmentation';
|
|
6
6
|
/**
|
|
@@ -93,6 +93,16 @@ export declare const ModelFormatsSchema: z.ZodObject<{
|
|
|
93
93
|
python: "python";
|
|
94
94
|
}>>>>;
|
|
95
95
|
}, z.core.$strip>>;
|
|
96
|
+
gguf: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
url: z.ZodString;
|
|
98
|
+
sizeMB: z.ZodNumber;
|
|
99
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
101
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
102
|
+
node: "node";
|
|
103
|
+
python: "python";
|
|
104
|
+
}>>>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
96
106
|
}, z.core.$strip>;
|
|
97
107
|
/**
|
|
98
108
|
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
@@ -171,6 +181,16 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
|
|
|
171
181
|
python: "python";
|
|
172
182
|
}>>>>;
|
|
173
183
|
}, z.core.$strip>>;
|
|
184
|
+
gguf: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
url: z.ZodString;
|
|
186
|
+
sizeMB: z.ZodNumber;
|
|
187
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
189
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
190
|
+
node: "node";
|
|
191
|
+
python: "python";
|
|
192
|
+
}>>>>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
174
194
|
}, z.core.$strip>;
|
|
175
195
|
inputSize: z.ZodObject<{
|
|
176
196
|
width: z.ZodNumber;
|
|
@@ -312,6 +332,7 @@ export declare const ConvertArtifactSchema: z.ZodObject<{
|
|
|
312
332
|
openvino: "openvino";
|
|
313
333
|
tflite: "tflite";
|
|
314
334
|
pt: "pt";
|
|
335
|
+
gguf: "gguf";
|
|
315
336
|
}>;
|
|
316
337
|
precision: z.ZodOptional<z.ZodEnum<{
|
|
317
338
|
int8: "int8";
|
|
@@ -378,6 +399,16 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
378
399
|
python: "python";
|
|
379
400
|
}>>>>;
|
|
380
401
|
}, z.core.$strip>>;
|
|
402
|
+
gguf: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
url: z.ZodString;
|
|
404
|
+
sizeMB: z.ZodNumber;
|
|
405
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
407
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
408
|
+
node: "node";
|
|
409
|
+
python: "python";
|
|
410
|
+
}>>>>;
|
|
411
|
+
}, z.core.$strip>>;
|
|
381
412
|
}, z.core.$strip>;
|
|
382
413
|
inputSize: z.ZodObject<{
|
|
383
414
|
width: z.ZodNumber;
|
|
@@ -436,6 +467,7 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
436
467
|
openvino: "openvino";
|
|
437
468
|
tflite: "tflite";
|
|
438
469
|
pt: "pt";
|
|
470
|
+
gguf: "gguf";
|
|
439
471
|
}>;
|
|
440
472
|
precision: z.ZodOptional<z.ZodEnum<{
|
|
441
473
|
int8: "int8";
|