@camstack/types 1.1.3 → 1.1.5
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/base-addon.d.ts +11 -3
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/advanced-notifier.cap.d.ts +16 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/pipeline-analytics.cap.d.ts +85 -0
- package/dist/generated/addon-api.d.ts +92 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +38 -4
- package/dist/index.mjs +38 -5
- package/dist/interfaces/addon.d.ts +9 -2
- package/dist/interfaces/advanced-notifier.d.ts +7 -0
- package/dist/{sleep-BV7rLc6Y.mjs → sleep-NOH4yRwj.mjs} +17 -7
- package/dist/{sleep-DQ586nj1.js → sleep-PvOaU67M.js} +17 -7
- package/dist/types/pipeline-step.d.ts +1 -1
- package/package.json +1 -1
|
@@ -229,9 +229,17 @@ export declare abstract class BaseAddon<TConfig extends object = Record<string,
|
|
|
229
229
|
*/
|
|
230
230
|
private emitReadinessForProviders;
|
|
231
231
|
/**
|
|
232
|
-
* Resolve the shared models directory
|
|
233
|
-
*
|
|
234
|
-
*
|
|
232
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
233
|
+
*
|
|
234
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
235
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
236
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
237
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
238
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
239
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
240
|
+
*
|
|
241
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
242
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
235
243
|
*/
|
|
236
244
|
protected resolveModelsDir(): Promise<string>;
|
|
237
245
|
/**
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-PvOaU67M.js");
|
|
3
3
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
4
4
|
exports.BaseAddon = require_sleep.BaseAddon;
|
|
5
5
|
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as ReadinessTimeoutError, D as parseJsonUnknown, N as scopeKey, O as DATAPLANE_SECRET_HEADER, S as asJsonObject, a as adminUiCapability, at as BaseAddon, ht as DisposerChain, i as deviceOpsCapability, k as ReadinessRegistry, lt as emitReadiness, mt as EventCategory, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, t as sleep, w as asString, y as DeviceType } from "./sleep-
|
|
1
|
+
import { A as ReadinessTimeoutError, D as parseJsonUnknown, N as scopeKey, O as DATAPLANE_SECRET_HEADER, S as asJsonObject, a as adminUiCapability, at as BaseAddon, ht as DisposerChain, i as deviceOpsCapability, k as ReadinessRegistry, lt as emitReadiness, mt as EventCategory, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, t as sleep, w as asString, y as DeviceType } from "./sleep-NOH4yRwj.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
3
3
|
export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep };
|
|
@@ -18,6 +18,10 @@ declare const NotificationRuleConditionsSchema: z.ZodObject<{
|
|
|
18
18
|
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
19
19
|
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
eventTypeTokens: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
clipDescription: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
text: z.ZodString;
|
|
23
|
+
minSimilarity: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>;
|
|
21
25
|
}, z.core.$strip>;
|
|
22
26
|
declare const NotificationRuleTemplateSchema: z.ZodObject<{
|
|
23
27
|
title: z.ZodString;
|
|
@@ -52,6 +56,10 @@ declare const NotificationRuleSchema: z.ZodObject<{
|
|
|
52
56
|
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
53
57
|
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
54
58
|
eventTypeTokens: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
59
|
+
clipDescription: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
text: z.ZodString;
|
|
61
|
+
minSimilarity: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>>;
|
|
55
63
|
}, z.core.$strip>;
|
|
56
64
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
57
65
|
template: z.ZodOptional<z.ZodObject<{
|
|
@@ -126,6 +134,10 @@ export declare const advancedNotifierCapability: {
|
|
|
126
134
|
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
127
135
|
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
128
136
|
eventTypeTokens: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
137
|
+
clipDescription: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
text: z.ZodString;
|
|
139
|
+
minSimilarity: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>>;
|
|
129
141
|
}, z.core.$strip>;
|
|
130
142
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
131
143
|
template: z.ZodOptional<z.ZodObject<{
|
|
@@ -170,6 +182,10 @@ export declare const advancedNotifierCapability: {
|
|
|
170
182
|
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
171
183
|
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
172
184
|
eventTypeTokens: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
185
|
+
clipDescription: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
text: z.ZodString;
|
|
187
|
+
minSimilarity: z.ZodNumber;
|
|
188
|
+
}, z.core.$strip>>;
|
|
173
189
|
}, z.core.$strip>;
|
|
174
190
|
outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
175
191
|
template: z.ZodOptional<z.ZodObject<{
|
|
@@ -101,7 +101,7 @@ export { advancedNotifierCapability, NotificationRuleSchema, NotificationHistory
|
|
|
101
101
|
export type { IAdvancedNotifierProvider } from './advanced-notifier.cap.js';
|
|
102
102
|
export { detectionPipelineCapability, type IDetectionPipelineProvider, } from './detection-pipeline.cap.js';
|
|
103
103
|
export { cameraPipelineConfigCapability, type ICameraPipelineConfigProvider, } from './camera-pipeline-config.cap.js';
|
|
104
|
-
export { pipelineAnalyticsCapability, type IPipelineAnalyticsProvider, type Track, type TrackState, type MotionEvent, type ObjectEvent, type AudioEvent, type MediaFile, type MediaFileKind, type EventKind, type DetectionSource, TrackSchema, TrackStateSchema, MotionEventSchema, ObjectEventSchema, AudioEventSchema, MediaFileSchema, EventKindSchema, TrackedDetectionSchema, DetectionSourceSchema, } from './pipeline-analytics.cap.js';
|
|
104
|
+
export { pipelineAnalyticsCapability, type IPipelineAnalyticsProvider, type Track, type TrackState, type MotionEvent, type ObjectEvent, type AudioEvent, type MediaFile, type MediaFileKind, type EventKind, type DetectionSource, TrackSchema, TrackStateSchema, MotionEventSchema, ObjectEventSchema, AudioEventSchema, MediaFileSchema, EventKindSchema, TrackedDetectionSchema, DetectionSourceSchema, ScoredObjectEventSchema, type ScoredObjectEvent, } from './pipeline-analytics.cap.js';
|
|
105
105
|
export { metricsProviderCapability, SystemMetricsSchema, type IMetricsProvider, } from './metrics-provider.cap.js';
|
|
106
106
|
export { ptzCapability, PtzPresetSchema, PtzPositionSchema, PtzStatusSchema, PtzMoveCommandSchema, type IPtzProvider, type PtzOptions, type PtzStatus, } from './ptz.cap.js';
|
|
107
107
|
export { ptzAutotrackCapability, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzAutotrackRuntimeStateSchema, type PtzAutotrackSettings, type PtzAutotrackStatus, type PtzAutotrackTargetOption, type PtzAutotrackRuntimeState, type IPtzAutotrackProvider, } from './ptz-autotrack.cap.js';
|
|
@@ -216,6 +216,41 @@ declare const TrackedDetectionSchema: z.ZodObject<{
|
|
|
216
216
|
entered: "entered";
|
|
217
217
|
}>;
|
|
218
218
|
}, z.core.$strip>;
|
|
219
|
+
export declare const ScoredObjectEventSchema: z.ZodObject<{
|
|
220
|
+
kind: z.ZodLiteral<"object">;
|
|
221
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
222
|
+
pipeline: "pipeline";
|
|
223
|
+
onboard: "onboard";
|
|
224
|
+
}>>;
|
|
225
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
226
|
+
trackId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
className: z.ZodString;
|
|
228
|
+
label: z.ZodOptional<z.ZodString>;
|
|
229
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
bbox: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
x: z.ZodNumber;
|
|
232
|
+
y: z.ZodNumber;
|
|
233
|
+
w: z.ZodNumber;
|
|
234
|
+
h: z.ZodNumber;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
237
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
moving: "moving";
|
|
239
|
+
left: "left";
|
|
240
|
+
idle: "idle";
|
|
241
|
+
new: "new";
|
|
242
|
+
entered: "entered";
|
|
243
|
+
}>>;
|
|
244
|
+
frameWidth: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
frameHeight: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
mediaKey: z.ZodOptional<z.ZodString>;
|
|
247
|
+
mediaUrl: z.ZodOptional<z.ZodString>;
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
deviceId: z.ZodNumber;
|
|
250
|
+
timestamp: z.ZodNumber;
|
|
251
|
+
score: z.ZodNumber;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export type ScoredObjectEvent = z.infer<typeof ScoredObjectEventSchema>;
|
|
219
254
|
export declare const pipelineAnalyticsCapability: {
|
|
220
255
|
readonly name: "pipeline-analytics";
|
|
221
256
|
readonly scope: "device";
|
|
@@ -546,6 +581,56 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
546
581
|
sizeBytes: z.ZodNumber;
|
|
547
582
|
timestamp: z.ZodNumber;
|
|
548
583
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
584
|
+
/**
|
|
585
|
+
* Search object events by text query using CLIP cosine similarity.
|
|
586
|
+
* Encodes `text` via the `embedding-encoder` cap, queries the
|
|
587
|
+
* `ObjectEmbeddingStore` with optional prefilters, ranks all matching
|
|
588
|
+
* embeddings by cosine similarity, and joins winners to their
|
|
589
|
+
* ObjectEvents by trackId. Returns up to `limit` events scored ≥
|
|
590
|
+
* `minScore`, sorted descending by score.
|
|
591
|
+
*/
|
|
592
|
+
readonly searchObjectEvents: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
593
|
+
text: z.ZodString;
|
|
594
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
since: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
classFilter: z.ZodOptional<z.ZodString>;
|
|
598
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
599
|
+
minScore: z.ZodDefault<z.ZodNumber>;
|
|
600
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
601
|
+
kind: z.ZodLiteral<"object">;
|
|
602
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
603
|
+
pipeline: "pipeline";
|
|
604
|
+
onboard: "onboard";
|
|
605
|
+
}>>;
|
|
606
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
trackId: z.ZodOptional<z.ZodString>;
|
|
608
|
+
className: z.ZodString;
|
|
609
|
+
label: z.ZodOptional<z.ZodString>;
|
|
610
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
bbox: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
x: z.ZodNumber;
|
|
613
|
+
y: z.ZodNumber;
|
|
614
|
+
w: z.ZodNumber;
|
|
615
|
+
h: z.ZodNumber;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
zones: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
618
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
619
|
+
moving: "moving";
|
|
620
|
+
left: "left";
|
|
621
|
+
idle: "idle";
|
|
622
|
+
new: "new";
|
|
623
|
+
entered: "entered";
|
|
624
|
+
}>>;
|
|
625
|
+
frameWidth: z.ZodOptional<z.ZodNumber>;
|
|
626
|
+
frameHeight: z.ZodOptional<z.ZodNumber>;
|
|
627
|
+
mediaKey: z.ZodOptional<z.ZodString>;
|
|
628
|
+
mediaUrl: z.ZodOptional<z.ZodString>;
|
|
629
|
+
id: z.ZodString;
|
|
630
|
+
deviceId: z.ZodNumber;
|
|
631
|
+
timestamp: z.ZodNumber;
|
|
632
|
+
score: z.ZodNumber;
|
|
633
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
549
634
|
};
|
|
550
635
|
readonly events: {
|
|
551
636
|
/**
|
|
@@ -4563,6 +4563,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
4563
4563
|
cooldownSeconds?: number | undefined;
|
|
4564
4564
|
minDwellSeconds?: number | undefined;
|
|
4565
4565
|
eventTypeTokens?: readonly string[] | undefined;
|
|
4566
|
+
clipDescription?: {
|
|
4567
|
+
text: string;
|
|
4568
|
+
minSimilarity: number;
|
|
4569
|
+
} | undefined;
|
|
4566
4570
|
};
|
|
4567
4571
|
outputs: readonly string[];
|
|
4568
4572
|
priority: "high" | "low" | "normal" | "critical";
|
|
@@ -4597,6 +4601,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
4597
4601
|
cooldownSeconds?: number | undefined;
|
|
4598
4602
|
minDwellSeconds?: number | undefined;
|
|
4599
4603
|
eventTypeTokens?: readonly string[] | undefined;
|
|
4604
|
+
clipDescription?: {
|
|
4605
|
+
text: string;
|
|
4606
|
+
minSimilarity: number;
|
|
4607
|
+
} | undefined;
|
|
4600
4608
|
};
|
|
4601
4609
|
outputs: readonly string[];
|
|
4602
4610
|
priority: "high" | "low" | "normal" | "critical";
|
|
@@ -10003,6 +10011,44 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10003
10011
|
}[];
|
|
10004
10012
|
meta: object;
|
|
10005
10013
|
}>;
|
|
10014
|
+
searchObjectEvents: import("@trpc/server").TRPCQueryProcedure<{
|
|
10015
|
+
input: {
|
|
10016
|
+
[x: string]: unknown;
|
|
10017
|
+
text: string;
|
|
10018
|
+
deviceId?: number | undefined;
|
|
10019
|
+
since?: number | undefined;
|
|
10020
|
+
until?: number | undefined;
|
|
10021
|
+
classFilter?: string | undefined;
|
|
10022
|
+
limit?: number | undefined;
|
|
10023
|
+
minScore?: number | undefined;
|
|
10024
|
+
};
|
|
10025
|
+
output: readonly {
|
|
10026
|
+
kind: "object";
|
|
10027
|
+
className: string;
|
|
10028
|
+
id: string;
|
|
10029
|
+
deviceId: number;
|
|
10030
|
+
timestamp: number;
|
|
10031
|
+
score: number;
|
|
10032
|
+
source?: "pipeline" | "onboard" | undefined;
|
|
10033
|
+
frameId?: string | undefined;
|
|
10034
|
+
trackId?: string | undefined;
|
|
10035
|
+
label?: string | undefined;
|
|
10036
|
+
confidence?: number | undefined;
|
|
10037
|
+
bbox?: {
|
|
10038
|
+
x: number;
|
|
10039
|
+
y: number;
|
|
10040
|
+
w: number;
|
|
10041
|
+
h: number;
|
|
10042
|
+
} | undefined;
|
|
10043
|
+
zones?: readonly string[] | undefined;
|
|
10044
|
+
state?: "idle" | "left" | "moving" | "new" | "entered" | undefined;
|
|
10045
|
+
frameWidth?: number | undefined;
|
|
10046
|
+
frameHeight?: number | undefined;
|
|
10047
|
+
mediaKey?: string | undefined;
|
|
10048
|
+
mediaUrl?: string | undefined;
|
|
10049
|
+
}[];
|
|
10050
|
+
meta: object;
|
|
10051
|
+
}>;
|
|
10006
10052
|
}>>;
|
|
10007
10053
|
plateGallery: import("@trpc/server").TRPCBuiltRouter<{
|
|
10008
10054
|
ctx: TrpcContext;
|
|
@@ -18210,6 +18256,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18210
18256
|
cooldownSeconds?: number | undefined;
|
|
18211
18257
|
minDwellSeconds?: number | undefined;
|
|
18212
18258
|
eventTypeTokens?: readonly string[] | undefined;
|
|
18259
|
+
clipDescription?: {
|
|
18260
|
+
text: string;
|
|
18261
|
+
minSimilarity: number;
|
|
18262
|
+
} | undefined;
|
|
18213
18263
|
};
|
|
18214
18264
|
outputs: readonly string[];
|
|
18215
18265
|
priority: "high" | "low" | "normal" | "critical";
|
|
@@ -18244,6 +18294,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18244
18294
|
cooldownSeconds?: number | undefined;
|
|
18245
18295
|
minDwellSeconds?: number | undefined;
|
|
18246
18296
|
eventTypeTokens?: readonly string[] | undefined;
|
|
18297
|
+
clipDescription?: {
|
|
18298
|
+
text: string;
|
|
18299
|
+
minSimilarity: number;
|
|
18300
|
+
} | undefined;
|
|
18247
18301
|
};
|
|
18248
18302
|
outputs: readonly string[];
|
|
18249
18303
|
priority: "high" | "low" | "normal" | "critical";
|
|
@@ -23650,6 +23704,44 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
23650
23704
|
}[];
|
|
23651
23705
|
meta: object;
|
|
23652
23706
|
}>;
|
|
23707
|
+
searchObjectEvents: import("@trpc/server").TRPCQueryProcedure<{
|
|
23708
|
+
input: {
|
|
23709
|
+
[x: string]: unknown;
|
|
23710
|
+
text: string;
|
|
23711
|
+
deviceId?: number | undefined;
|
|
23712
|
+
since?: number | undefined;
|
|
23713
|
+
until?: number | undefined;
|
|
23714
|
+
classFilter?: string | undefined;
|
|
23715
|
+
limit?: number | undefined;
|
|
23716
|
+
minScore?: number | undefined;
|
|
23717
|
+
};
|
|
23718
|
+
output: readonly {
|
|
23719
|
+
kind: "object";
|
|
23720
|
+
className: string;
|
|
23721
|
+
id: string;
|
|
23722
|
+
deviceId: number;
|
|
23723
|
+
timestamp: number;
|
|
23724
|
+
score: number;
|
|
23725
|
+
source?: "pipeline" | "onboard" | undefined;
|
|
23726
|
+
frameId?: string | undefined;
|
|
23727
|
+
trackId?: string | undefined;
|
|
23728
|
+
label?: string | undefined;
|
|
23729
|
+
confidence?: number | undefined;
|
|
23730
|
+
bbox?: {
|
|
23731
|
+
x: number;
|
|
23732
|
+
y: number;
|
|
23733
|
+
w: number;
|
|
23734
|
+
h: number;
|
|
23735
|
+
} | undefined;
|
|
23736
|
+
zones?: readonly string[] | undefined;
|
|
23737
|
+
state?: "idle" | "left" | "moving" | "new" | "entered" | undefined;
|
|
23738
|
+
frameWidth?: number | undefined;
|
|
23739
|
+
frameHeight?: number | undefined;
|
|
23740
|
+
mediaKey?: string | undefined;
|
|
23741
|
+
mediaUrl?: string | undefined;
|
|
23742
|
+
}[];
|
|
23743
|
+
meta: object;
|
|
23744
|
+
}>;
|
|
23653
23745
|
}>>;
|
|
23654
23746
|
plateGallery: import("@trpc/server").TRPCBuiltRouter<{
|
|
23655
23747
|
ctx: TrpcContext;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 707 method paths across 110 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-PvOaU67M.js");
|
|
3
3
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region src/health/wiring-health.ts
|
|
@@ -13280,7 +13280,8 @@ var modelConvertCapability = {
|
|
|
13280
13280
|
internal: true,
|
|
13281
13281
|
methods: { convert: require_sleep.method(ModelConvertInputSchema, ConvertResultSchema, {
|
|
13282
13282
|
kind: "mutation",
|
|
13283
|
-
auth: "admin"
|
|
13283
|
+
auth: "admin",
|
|
13284
|
+
timeoutMs: 6e5
|
|
13284
13285
|
}) }
|
|
13285
13286
|
};
|
|
13286
13287
|
//#endregion
|
|
@@ -15857,7 +15858,14 @@ var NotificationRuleConditionsSchema = zod.z.object({
|
|
|
15857
15858
|
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
15858
15859
|
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
15859
15860
|
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
15860
|
-
eventTypeTokens: zod.z.array(zod.z.string()).readonly().optional()
|
|
15861
|
+
eventTypeTokens: zod.z.array(zod.z.string()).readonly().optional(),
|
|
15862
|
+
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
15863
|
+
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
15864
|
+
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
15865
|
+
clipDescription: zod.z.object({
|
|
15866
|
+
text: zod.z.string().min(1),
|
|
15867
|
+
minSimilarity: zod.z.number().min(0).max(1)
|
|
15868
|
+
}).optional()
|
|
15861
15869
|
});
|
|
15862
15870
|
var NotificationRuleTemplateSchema = zod.z.object({
|
|
15863
15871
|
title: zod.z.string(),
|
|
@@ -16186,6 +16194,16 @@ var TrackedDetectionSchema = zod.z.object({
|
|
|
16186
16194
|
zones: zod.z.array(zod.z.string()).readonly(),
|
|
16187
16195
|
state: TrackStateSchema
|
|
16188
16196
|
});
|
|
16197
|
+
var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: zod.z.number() });
|
|
16198
|
+
var SearchObjectEventsInput = zod.z.object({
|
|
16199
|
+
text: zod.z.string(),
|
|
16200
|
+
deviceId: zod.z.number().optional(),
|
|
16201
|
+
since: zod.z.number().optional(),
|
|
16202
|
+
until: zod.z.number().optional(),
|
|
16203
|
+
classFilter: zod.z.string().optional(),
|
|
16204
|
+
limit: zod.z.number().default(50),
|
|
16205
|
+
minScore: zod.z.number().min(0).max(1).default(.2)
|
|
16206
|
+
});
|
|
16189
16207
|
var pipelineAnalyticsCapability = {
|
|
16190
16208
|
name: "pipeline-analytics",
|
|
16191
16209
|
scope: "device",
|
|
@@ -16252,7 +16270,16 @@ var pipelineAnalyticsCapability = {
|
|
|
16252
16270
|
eventId: zod.z.string(),
|
|
16253
16271
|
kind: MediaFileKindEnum.optional()
|
|
16254
16272
|
}), zod.z.array(MediaFileSchema).readonly()),
|
|
16255
|
-
getTrackMedia: require_sleep.method(zod.z.object({ trackId: zod.z.string() }), zod.z.array(MediaFileSchema).readonly())
|
|
16273
|
+
getTrackMedia: require_sleep.method(zod.z.object({ trackId: zod.z.string() }), zod.z.array(MediaFileSchema).readonly()),
|
|
16274
|
+
/**
|
|
16275
|
+
* Search object events by text query using CLIP cosine similarity.
|
|
16276
|
+
* Encodes `text` via the `embedding-encoder` cap, queries the
|
|
16277
|
+
* `ObjectEmbeddingStore` with optional prefilters, ranks all matching
|
|
16278
|
+
* embeddings by cosine similarity, and joins winners to their
|
|
16279
|
+
* ObjectEvents by trackId. Returns up to `limit` events scored ≥
|
|
16280
|
+
* `minScore`, sorted descending by score.
|
|
16281
|
+
*/
|
|
16282
|
+
searchObjectEvents: require_sleep.method(SearchObjectEventsInput, zod.z.array(ScoredObjectEventSchema).readonly())
|
|
16256
16283
|
},
|
|
16257
16284
|
events: {
|
|
16258
16285
|
/**
|
|
@@ -23042,6 +23069,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
23042
23069
|
addonId: null,
|
|
23043
23070
|
access: "create"
|
|
23044
23071
|
},
|
|
23072
|
+
"pipelineAnalytics.searchObjectEvents": {
|
|
23073
|
+
capName: "pipeline-analytics",
|
|
23074
|
+
capScope: "device",
|
|
23075
|
+
addonId: null,
|
|
23076
|
+
access: "view"
|
|
23077
|
+
},
|
|
23045
23078
|
"pipelineExecutor.cacheFrameInPool": {
|
|
23046
23079
|
capName: "pipeline-executor",
|
|
23047
23080
|
capScope: "system",
|
|
@@ -26067,6 +26100,7 @@ exports.SUB_DETECTION_TYPES = SUB_DETECTION_TYPES;
|
|
|
26067
26100
|
exports.SYSTEM_CAP_NAMES = SYSTEM_CAP_NAMES;
|
|
26068
26101
|
exports.ScopedTokenSchema = ScopedTokenSchema;
|
|
26069
26102
|
exports.ScopedTokenSummarySchema = ScopedTokenSummarySchema;
|
|
26103
|
+
exports.ScoredObjectEventSchema = ScoredObjectEventSchema;
|
|
26070
26104
|
exports.ScriptRunnerStatusSchema = ScriptRunnerStatusSchema;
|
|
26071
26105
|
exports.SearchResultSchema = SearchResultSchema;
|
|
26072
26106
|
exports.SendEmailInputSchema = SendEmailInputSchema;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as SubscribeFramesInputSchema, A as ReadinessTimeoutError, B as CameraStreamSchema, C as asNumber, D as parseJsonUnknown, E as parseJsonObject, F as BrokerStatusSchema, G as FrameHandleSchema, H as DecodedFrameSchema, I as CAM_PROFILE_ORDER, J as ProfileSlotStatusSchema, K as ProfileRtspEntrySchema, L as CamProfileSchema, M as readinessKey, N as scopeKey, O as DATAPLANE_SECRET_HEADER, P as BrokerStatsSchema, Q as SubscribeAudioChunksResultSchema, R as CamStreamKindSchema, S as asJsonObject, T as parseJsonArray, U as EncodedPacketSchema, V as DecodedAudioChunkSchema, W as FrameHandleFormatSchema, X as StreamSourceSchema, Y as StreamSourceEntrySchema, Z as SubscribeAudioChunksInputSchema, _ as DeviceFeature, a as adminUiCapability, at as BaseAddon, b as asBoolean, c as createMirrorSource, ct as createEvent, d as DEVICE_STATUS_METHOD, dt as WELL_KNOWN_TABS, et as SubscribeFramesResultSchema, f as event, ft as WELL_KNOWN_TAB_MAP, g as ChargingStatus, h as method, ht as DisposerChain, i as deviceOpsCapability, it as selectAssignedProfileSlots, j as emitDownForOwnedCaps, k as ReadinessRegistry, l as createSliceHandle, lt as emitReadiness, m as isDeviceConfigCap, mt as EventCategory, n as sleepCancellable, nt as makeSourceBrokerId, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, pt as hydrateSchema, q as ProfileSlotSchema, r as RawStateResultSchema, rt as parseProfileBrokerId, s as createLazyTrpcSource, st as createDurableState, t as sleep, tt as makeProfileBrokerId, u as DEVICE_SETTINGS_CONTRIBUTION_METHODS, ut as isEvent, v as DeviceRole, w as asString, x as asJsonArray, y as DeviceType, z as CamStreamResolutionSchema } from "./sleep-
|
|
1
|
+
import { $ as SubscribeFramesInputSchema, A as ReadinessTimeoutError, B as CameraStreamSchema, C as asNumber, D as parseJsonUnknown, E as parseJsonObject, F as BrokerStatusSchema, G as FrameHandleSchema, H as DecodedFrameSchema, I as CAM_PROFILE_ORDER, J as ProfileSlotStatusSchema, K as ProfileRtspEntrySchema, L as CamProfileSchema, M as readinessKey, N as scopeKey, O as DATAPLANE_SECRET_HEADER, P as BrokerStatsSchema, Q as SubscribeAudioChunksResultSchema, R as CamStreamKindSchema, S as asJsonObject, T as parseJsonArray, U as EncodedPacketSchema, V as DecodedAudioChunkSchema, W as FrameHandleFormatSchema, X as StreamSourceSchema, Y as StreamSourceEntrySchema, Z as SubscribeAudioChunksInputSchema, _ as DeviceFeature, a as adminUiCapability, at as BaseAddon, b as asBoolean, c as createMirrorSource, ct as createEvent, d as DEVICE_STATUS_METHOD, dt as WELL_KNOWN_TABS, et as SubscribeFramesResultSchema, f as event, ft as WELL_KNOWN_TAB_MAP, g as ChargingStatus, h as method, ht as DisposerChain, i as deviceOpsCapability, it as selectAssignedProfileSlots, j as emitDownForOwnedCaps, k as ReadinessRegistry, l as createSliceHandle, lt as emitReadiness, m as isDeviceConfigCap, mt as EventCategory, n as sleepCancellable, nt as makeSourceBrokerId, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, pt as hydrateSchema, q as ProfileSlotSchema, r as RawStateResultSchema, rt as parseProfileBrokerId, s as createLazyTrpcSource, st as createDurableState, t as sleep, tt as makeProfileBrokerId, u as DEVICE_SETTINGS_CONTRIBUTION_METHODS, ut as isEvent, v as DeviceRole, w as asString, x as asJsonArray, y as DeviceType, z as CamStreamResolutionSchema } from "./sleep-NOH4yRwj.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/health/wiring-health.ts
|
|
@@ -13279,7 +13279,8 @@ var modelConvertCapability = {
|
|
|
13279
13279
|
internal: true,
|
|
13280
13280
|
methods: { convert: method(ModelConvertInputSchema, ConvertResultSchema, {
|
|
13281
13281
|
kind: "mutation",
|
|
13282
|
-
auth: "admin"
|
|
13282
|
+
auth: "admin",
|
|
13283
|
+
timeoutMs: 6e5
|
|
13283
13284
|
}) }
|
|
13284
13285
|
};
|
|
13285
13286
|
//#endregion
|
|
@@ -15856,7 +15857,14 @@ var NotificationRuleConditionsSchema = z.object({
|
|
|
15856
15857
|
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
15857
15858
|
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
15858
15859
|
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
15859
|
-
eventTypeTokens: z.array(z.string()).readonly().optional()
|
|
15860
|
+
eventTypeTokens: z.array(z.string()).readonly().optional(),
|
|
15861
|
+
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
15862
|
+
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
15863
|
+
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
15864
|
+
clipDescription: z.object({
|
|
15865
|
+
text: z.string().min(1),
|
|
15866
|
+
minSimilarity: z.number().min(0).max(1)
|
|
15867
|
+
}).optional()
|
|
15860
15868
|
});
|
|
15861
15869
|
var NotificationRuleTemplateSchema = z.object({
|
|
15862
15870
|
title: z.string(),
|
|
@@ -16185,6 +16193,16 @@ var TrackedDetectionSchema = z.object({
|
|
|
16185
16193
|
zones: z.array(z.string()).readonly(),
|
|
16186
16194
|
state: TrackStateSchema
|
|
16187
16195
|
});
|
|
16196
|
+
var ScoredObjectEventSchema = ObjectEventSchema.extend({ score: z.number() });
|
|
16197
|
+
var SearchObjectEventsInput = z.object({
|
|
16198
|
+
text: z.string(),
|
|
16199
|
+
deviceId: z.number().optional(),
|
|
16200
|
+
since: z.number().optional(),
|
|
16201
|
+
until: z.number().optional(),
|
|
16202
|
+
classFilter: z.string().optional(),
|
|
16203
|
+
limit: z.number().default(50),
|
|
16204
|
+
minScore: z.number().min(0).max(1).default(.2)
|
|
16205
|
+
});
|
|
16188
16206
|
var pipelineAnalyticsCapability = {
|
|
16189
16207
|
name: "pipeline-analytics",
|
|
16190
16208
|
scope: "device",
|
|
@@ -16251,7 +16269,16 @@ var pipelineAnalyticsCapability = {
|
|
|
16251
16269
|
eventId: z.string(),
|
|
16252
16270
|
kind: MediaFileKindEnum.optional()
|
|
16253
16271
|
}), z.array(MediaFileSchema).readonly()),
|
|
16254
|
-
getTrackMedia: method(z.object({ trackId: z.string() }), z.array(MediaFileSchema).readonly())
|
|
16272
|
+
getTrackMedia: method(z.object({ trackId: z.string() }), z.array(MediaFileSchema).readonly()),
|
|
16273
|
+
/**
|
|
16274
|
+
* Search object events by text query using CLIP cosine similarity.
|
|
16275
|
+
* Encodes `text` via the `embedding-encoder` cap, queries the
|
|
16276
|
+
* `ObjectEmbeddingStore` with optional prefilters, ranks all matching
|
|
16277
|
+
* embeddings by cosine similarity, and joins winners to their
|
|
16278
|
+
* ObjectEvents by trackId. Returns up to `limit` events scored ≥
|
|
16279
|
+
* `minScore`, sorted descending by score.
|
|
16280
|
+
*/
|
|
16281
|
+
searchObjectEvents: method(SearchObjectEventsInput, z.array(ScoredObjectEventSchema).readonly())
|
|
16255
16282
|
},
|
|
16256
16283
|
events: {
|
|
16257
16284
|
/**
|
|
@@ -23041,6 +23068,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
23041
23068
|
addonId: null,
|
|
23042
23069
|
access: "create"
|
|
23043
23070
|
},
|
|
23071
|
+
"pipelineAnalytics.searchObjectEvents": {
|
|
23072
|
+
capName: "pipeline-analytics",
|
|
23073
|
+
capScope: "device",
|
|
23074
|
+
addonId: null,
|
|
23075
|
+
access: "view"
|
|
23076
|
+
},
|
|
23044
23077
|
"pipelineExecutor.cacheFrameInPool": {
|
|
23045
23078
|
capName: "pipeline-executor",
|
|
23046
23079
|
capScope: "system",
|
|
@@ -25674,4 +25707,4 @@ function scoreRuntimes(hw) {
|
|
|
25674
25707
|
};
|
|
25675
25708
|
}
|
|
25676
25709
|
//#endregion
|
|
25677
|
-
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, decoderCapability, defaultDeviceFor, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, jobKindSchema, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, runtimeDevices, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
25710
|
+
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, decoderCapability, defaultDeviceFor, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, jobKindSchema, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, runtimeDevices, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
@@ -395,10 +395,17 @@ export interface AddonContext<TConfig = Record<string, unknown>> {
|
|
|
395
395
|
readonly addonConfig: Readonly<TConfig>;
|
|
396
396
|
/**
|
|
397
397
|
* Private data directory for this addon.
|
|
398
|
-
*
|
|
399
|
-
* The addon owns this directory exclusively.
|
|
398
|
+
* `<nodeDataDir>/addons-data/{addonId}` — the addon owns it exclusively.
|
|
400
399
|
*/
|
|
401
400
|
readonly dataDir: string;
|
|
401
|
+
/**
|
|
402
|
+
* Node-local data ROOT for this node (`CAMSTACK_DATA` ?? the kernel boot dir).
|
|
403
|
+
* The single, centralized anchor for internal per-node working directories
|
|
404
|
+
* (models, logs, addons-data). Always writable on the local node — unlike the
|
|
405
|
+
* hub-singleton `storage` cap, which returns the hub's path to every node.
|
|
406
|
+
* Use this (never `api.storage.resolve`) for internal node-local dirs.
|
|
407
|
+
*/
|
|
408
|
+
readonly nodeDataDir: string;
|
|
402
409
|
/** Infrastructure services provided by the kernel. */
|
|
403
410
|
readonly kernel: IKernelServices;
|
|
404
411
|
/**
|
|
@@ -20,6 +20,13 @@ export interface NotificationRule {
|
|
|
20
20
|
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
21
21
|
* unaffected (back-compat). Distinct from `eventTypes` which holds EventCategory strings. */
|
|
22
22
|
readonly eventTypeTokens?: readonly string[];
|
|
23
|
+
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
24
|
+
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
25
|
+
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
26
|
+
readonly clipDescription?: {
|
|
27
|
+
readonly text: string;
|
|
28
|
+
readonly minSimilarity: number;
|
|
29
|
+
};
|
|
23
30
|
};
|
|
24
31
|
readonly outputs: readonly string[];
|
|
25
32
|
readonly template?: {
|
|
@@ -1211,15 +1211,24 @@ var BaseAddon = class {
|
|
|
1211
1211
|
} catch {}
|
|
1212
1212
|
}
|
|
1213
1213
|
/**
|
|
1214
|
-
* Resolve the shared models directory
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1214
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
1215
|
+
*
|
|
1216
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
1217
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
1218
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
1219
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
1220
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
1221
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
1222
|
+
*
|
|
1223
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
1224
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
1217
1225
|
*/
|
|
1218
1226
|
async resolveModelsDir() {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1227
|
+
const { join } = await import("node:path");
|
|
1228
|
+
const { promises: fsp } = await import("node:fs");
|
|
1229
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
1230
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
1231
|
+
return dir;
|
|
1223
1232
|
}
|
|
1224
1233
|
/**
|
|
1225
1234
|
* Access the runtime capability registry for in-process provider lookups.
|
|
@@ -3074,6 +3083,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3074
3083
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3075
3084
|
getEventMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMedia", "query", input),
|
|
3076
3085
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3086
|
+
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3077
3087
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3078
3088
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|
|
3079
3089
|
applyDeviceSettingsPatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "applyDeviceSettingsPatch", "mutation", input)
|
|
@@ -1211,15 +1211,24 @@ var BaseAddon = class {
|
|
|
1211
1211
|
} catch {}
|
|
1212
1212
|
}
|
|
1213
1213
|
/**
|
|
1214
|
-
* Resolve the shared models directory
|
|
1215
|
-
*
|
|
1216
|
-
*
|
|
1214
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
1215
|
+
*
|
|
1216
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
1217
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
1218
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
1219
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
1220
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
1221
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
1222
|
+
*
|
|
1223
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
1224
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
1217
1225
|
*/
|
|
1218
1226
|
async resolveModelsDir() {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1227
|
+
const { join } = await import("node:path");
|
|
1228
|
+
const { promises: fsp } = await import("node:fs");
|
|
1229
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
1230
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
1231
|
+
return dir;
|
|
1223
1232
|
}
|
|
1224
1233
|
/**
|
|
1225
1234
|
* Access the runtime capability registry for in-process provider lookups.
|
|
@@ -3074,6 +3083,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3074
3083
|
pruneEventsBefore: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "pruneEventsBefore", "mutation", input),
|
|
3075
3084
|
getEventMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getEventMedia", "query", input),
|
|
3076
3085
|
getTrackMedia: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getTrackMedia", "query", input),
|
|
3086
|
+
searchObjectEvents: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "searchObjectEvents", "query", input),
|
|
3077
3087
|
getDeviceSettingsContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceSettingsContribution", "query", input),
|
|
3078
3088
|
getDeviceLiveContribution: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "getDeviceLiveContribution", "query", input),
|
|
3079
3089
|
applyDeviceSettingsPatch: (input) => dispatch("pipeline-analytics", "pipelineAnalytics", "applyDeviceSettingsPatch", "mutation", input)
|
|
@@ -12,7 +12,7 @@ export interface IPipelineStep {
|
|
|
12
12
|
readonly definition: StepDefinition;
|
|
13
13
|
getConfigSchema(): readonly ConfigField[];
|
|
14
14
|
}
|
|
15
|
-
export type PostprocessorType = 'yolo' | 'yolo-seg' | 'scrfd' | 'arcface' | 'softmax' | 'ctc' | 'saliency' | 'yamnet';
|
|
15
|
+
export type PostprocessorType = 'yolo' | 'yolo-seg' | 'scrfd' | 'arcface' | 'clip' | 'softmax' | 'ctc' | 'saliency' | 'yamnet';
|
|
16
16
|
export interface StepDefinition {
|
|
17
17
|
/** Unique step identifier (e.g., 'object-detection', 'face-detection') */
|
|
18
18
|
readonly id: string;
|