@camstack/addon-provider-dreo 0.1.14 → 0.1.16
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 +681 -288
- package/dist/addon.mjs +681 -288
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -4665,7 +4665,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4665
4665
|
return inst;
|
|
4666
4666
|
}
|
|
4667
4667
|
//#endregion
|
|
4668
|
-
//#region ../types/dist/sleep-
|
|
4668
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4669
4669
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4670
4670
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4671
4671
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4851,6 +4851,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4851
4851
|
*/
|
|
4852
4852
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4853
4853
|
/**
|
|
4854
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4855
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4856
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4857
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4858
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4859
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4860
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4861
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4862
|
+
* broker's long backstop reconcile query).
|
|
4863
|
+
*/
|
|
4864
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4865
|
+
/**
|
|
4854
4866
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4855
4867
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4856
4868
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5374,10 +5386,6 @@ function hydrateField(field, values) {
|
|
|
5374
5386
|
};
|
|
5375
5387
|
}
|
|
5376
5388
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5377
|
-
if (field.type === "password") return {
|
|
5378
|
-
...field,
|
|
5379
|
-
value: ""
|
|
5380
|
-
};
|
|
5381
5389
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5382
5390
|
return {
|
|
5383
5391
|
...field,
|
|
@@ -6761,10 +6769,25 @@ function method(input, output, options) {
|
|
|
6761
6769
|
timeoutMs: options?.timeoutMs
|
|
6762
6770
|
};
|
|
6763
6771
|
}
|
|
6772
|
+
/**
|
|
6773
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6774
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6775
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6776
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6777
|
+
*/
|
|
6778
|
+
function systemMethod(input, output, options) {
|
|
6779
|
+
return {
|
|
6780
|
+
...method(input, output, options),
|
|
6781
|
+
systemOnly: true
|
|
6782
|
+
};
|
|
6783
|
+
}
|
|
6764
6784
|
/** Shorthand to define an event schema */
|
|
6765
6785
|
function event(data) {
|
|
6766
6786
|
return { data };
|
|
6767
6787
|
}
|
|
6788
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6789
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6790
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6768
6791
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6769
6792
|
var VersionOutputSchema = object({ version: string() });
|
|
6770
6793
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6946,6 +6969,36 @@ var ModelFormatsSchema = object({
|
|
|
6946
6969
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6947
6970
|
pt: ModelFormatEntrySchema.optional()
|
|
6948
6971
|
});
|
|
6972
|
+
/**
|
|
6973
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6974
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6975
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6976
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6977
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6978
|
+
* to an `id`.
|
|
6979
|
+
*/
|
|
6980
|
+
var ModelVariantGroupSchema = object({
|
|
6981
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6982
|
+
family: string(),
|
|
6983
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6984
|
+
tier: string(),
|
|
6985
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6986
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6987
|
+
/**
|
|
6988
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6989
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6990
|
+
* future performance variants plug into.
|
|
6991
|
+
*/
|
|
6992
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6993
|
+
/**
|
|
6994
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6995
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6996
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6997
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6998
|
+
* the group so the selector can offer it as a variant axis.
|
|
6999
|
+
*/
|
|
7000
|
+
resolution: number().int().positive().optional()
|
|
7001
|
+
});
|
|
6949
7002
|
var ModelCatalogEntrySchema = object({
|
|
6950
7003
|
id: string(),
|
|
6951
7004
|
name: string(),
|
|
@@ -6975,7 +7028,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6975
7028
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6976
7029
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6977
7030
|
*/
|
|
6978
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7031
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7032
|
+
/**
|
|
7033
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7034
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7035
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7036
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7037
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7038
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7039
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7040
|
+
*/
|
|
7041
|
+
legacy: boolean().optional(),
|
|
7042
|
+
/**
|
|
7043
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7044
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7045
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7046
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7047
|
+
*/
|
|
7048
|
+
metrics: object({
|
|
7049
|
+
map50: number().optional(),
|
|
7050
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7051
|
+
}).optional(),
|
|
7052
|
+
/**
|
|
7053
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7054
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7055
|
+
* the retraining addon and any future commercial distribution.
|
|
7056
|
+
*/
|
|
7057
|
+
license: string().optional(),
|
|
7058
|
+
/**
|
|
7059
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7060
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7061
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7062
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7063
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7064
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7065
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7066
|
+
*/
|
|
7067
|
+
group: ModelVariantGroupSchema.optional()
|
|
6979
7068
|
});
|
|
6980
7069
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6981
7070
|
format: literal("openvino"),
|
|
@@ -7036,8 +7125,8 @@ var RecordingModeSchema = _enum([
|
|
|
7036
7125
|
"onAudioThreshold"
|
|
7037
7126
|
]);
|
|
7038
7127
|
/**
|
|
7039
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7040
|
-
* reads directly (never inferred from `rules`):
|
|
7128
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7129
|
+
* UI reads directly (never inferred from `rules`):
|
|
7041
7130
|
* - `off` — not recording.
|
|
7042
7131
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7043
7132
|
* with pre/post-buffer.
|
|
@@ -9200,26 +9289,13 @@ onBrightnessChanged: { data: object({
|
|
|
9200
9289
|
*/
|
|
9201
9290
|
runtimeState: BrightnessStatusSchema
|
|
9202
9291
|
};
|
|
9292
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9203
9293
|
var StreamFormatSchema = _enum([
|
|
9204
9294
|
"webrtc",
|
|
9205
9295
|
"hls",
|
|
9206
9296
|
"mjpeg",
|
|
9207
9297
|
"rtsp"
|
|
9208
9298
|
]);
|
|
9209
|
-
var StreamInfoSchema = object({
|
|
9210
|
-
streamId: string(),
|
|
9211
|
-
format: StreamFormatSchema,
|
|
9212
|
-
url: string().nullable(),
|
|
9213
|
-
active: boolean()
|
|
9214
|
-
});
|
|
9215
|
-
method(object({
|
|
9216
|
-
streamId: string(),
|
|
9217
|
-
sourceUrl: string(),
|
|
9218
|
-
codec: string().optional()
|
|
9219
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9220
|
-
streamId: string(),
|
|
9221
|
-
format: StreamFormatSchema
|
|
9222
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9223
9299
|
var RtspRestreamEntrySchema = object({
|
|
9224
9300
|
brokerId: string(),
|
|
9225
9301
|
url: string(),
|
|
@@ -10087,37 +10163,7 @@ var consumablesCapability = {
|
|
|
10087
10163
|
scope: "device",
|
|
10088
10164
|
deviceNative: true,
|
|
10089
10165
|
mode: "singleton",
|
|
10090
|
-
deviceTypes:
|
|
10091
|
-
DeviceType.Camera,
|
|
10092
|
-
DeviceType.Hub,
|
|
10093
|
-
DeviceType.Light,
|
|
10094
|
-
DeviceType.Siren,
|
|
10095
|
-
DeviceType.Switch,
|
|
10096
|
-
DeviceType.Sensor,
|
|
10097
|
-
DeviceType.Thermostat,
|
|
10098
|
-
DeviceType.Button,
|
|
10099
|
-
DeviceType.EventEmitter,
|
|
10100
|
-
DeviceType.Update,
|
|
10101
|
-
DeviceType.Generic,
|
|
10102
|
-
DeviceType.Notifier,
|
|
10103
|
-
DeviceType.Script,
|
|
10104
|
-
DeviceType.Automation,
|
|
10105
|
-
DeviceType.Lock,
|
|
10106
|
-
DeviceType.Cover,
|
|
10107
|
-
DeviceType.Valve,
|
|
10108
|
-
DeviceType.Humidifier,
|
|
10109
|
-
DeviceType.WaterHeater,
|
|
10110
|
-
DeviceType.Fan,
|
|
10111
|
-
DeviceType.MediaPlayer,
|
|
10112
|
-
DeviceType.AlarmPanel,
|
|
10113
|
-
DeviceType.Control,
|
|
10114
|
-
DeviceType.Presence,
|
|
10115
|
-
DeviceType.Weather,
|
|
10116
|
-
DeviceType.Vacuum,
|
|
10117
|
-
DeviceType.LawnMower,
|
|
10118
|
-
DeviceType.Container,
|
|
10119
|
-
DeviceType.Image
|
|
10120
|
-
],
|
|
10166
|
+
deviceTypes: Object.values(DeviceType),
|
|
10121
10167
|
deviceConfig: { ui: {
|
|
10122
10168
|
kind: "widget",
|
|
10123
10169
|
widgetId: "host/consumables-panel",
|
|
@@ -11575,7 +11621,7 @@ var BoundingBoxSchema = object({
|
|
|
11575
11621
|
w: number(),
|
|
11576
11622
|
h: number()
|
|
11577
11623
|
});
|
|
11578
|
-
|
|
11624
|
+
object({
|
|
11579
11625
|
class: string(),
|
|
11580
11626
|
originalClass: string(),
|
|
11581
11627
|
score: number(),
|
|
@@ -11710,7 +11756,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11710
11756
|
enabled: boolean(),
|
|
11711
11757
|
modelId: string(),
|
|
11712
11758
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11713
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11714
11759
|
group: string().optional(),
|
|
11715
11760
|
settings: record(string(), unknown()).optional()
|
|
11716
11761
|
}));
|
|
@@ -11735,7 +11780,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11735
11780
|
formats: record(string(), object({
|
|
11736
11781
|
downloaded: boolean(),
|
|
11737
11782
|
sizeMB: number()
|
|
11738
|
-
}))
|
|
11783
|
+
})),
|
|
11784
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11785
|
+
legacy: boolean().optional()
|
|
11739
11786
|
});
|
|
11740
11787
|
var ConfigFieldBridge = custom();
|
|
11741
11788
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11749,6 +11796,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11749
11796
|
defaultModelId: string(),
|
|
11750
11797
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11751
11798
|
enabledByDefault: boolean().optional(),
|
|
11799
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11752
11800
|
defaultConfidence: number(),
|
|
11753
11801
|
group: string().optional(),
|
|
11754
11802
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11765,11 +11813,6 @@ var PipelineSchemaSchema = object({
|
|
|
11765
11813
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11766
11814
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11767
11815
|
});
|
|
11768
|
-
var DetectorOutputSchema = object({
|
|
11769
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11770
|
-
inferenceMs: number(),
|
|
11771
|
-
modelId: string()
|
|
11772
|
-
});
|
|
11773
11816
|
var EngineProvisioningSchema = object({
|
|
11774
11817
|
runtimeId: _enum([
|
|
11775
11818
|
"onnx",
|
|
@@ -11786,15 +11829,42 @@ var EngineProvisioningSchema = object({
|
|
|
11786
11829
|
]),
|
|
11787
11830
|
progress: number().optional(),
|
|
11788
11831
|
error: string().optional(),
|
|
11789
|
-
nextRetryAt: number().optional()
|
|
11832
|
+
nextRetryAt: number().optional(),
|
|
11833
|
+
/**
|
|
11834
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11835
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11836
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11837
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11838
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11839
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11840
|
+
*/
|
|
11841
|
+
configIssues: array(string()).optional()
|
|
11790
11842
|
});
|
|
11791
11843
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11792
11844
|
addonId: string(),
|
|
11793
|
-
modelId: string(),
|
|
11845
|
+
modelId: string().optional(),
|
|
11794
11846
|
enabled: boolean().default(true),
|
|
11795
11847
|
children: array(PipelineStepInputSchema).optional(),
|
|
11796
11848
|
settings: record(string(), unknown()).optional()
|
|
11797
11849
|
}));
|
|
11850
|
+
var ModelSubstitutionSchema = object({
|
|
11851
|
+
addonId: string(),
|
|
11852
|
+
chosen: string(),
|
|
11853
|
+
running: string(),
|
|
11854
|
+
format: string()
|
|
11855
|
+
});
|
|
11856
|
+
var PipelineValidationIssueSchema = object({
|
|
11857
|
+
addonId: string(),
|
|
11858
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11859
|
+
detail: string()
|
|
11860
|
+
});
|
|
11861
|
+
var PipelineValidationResultSchema = object({
|
|
11862
|
+
ok: boolean(),
|
|
11863
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11864
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11865
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11866
|
+
format: string()
|
|
11867
|
+
});
|
|
11798
11868
|
var ReferenceImageEntrySchema = object({
|
|
11799
11869
|
filename: string(),
|
|
11800
11870
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11865,7 +11935,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11865
11935
|
})) }), object({ success: literal(true) }), {
|
|
11866
11936
|
kind: "mutation",
|
|
11867
11937
|
auth: "admin"
|
|
11868
|
-
}), method(
|
|
11938
|
+
}), method(object({ nodeId: string() }), object({
|
|
11939
|
+
success: literal(true),
|
|
11940
|
+
clearedDevices: number()
|
|
11941
|
+
}), {
|
|
11942
|
+
kind: "mutation",
|
|
11943
|
+
auth: "admin"
|
|
11944
|
+
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({ steps: array(PipelineStepInputSchema) }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
|
|
11869
11945
|
name: string(),
|
|
11870
11946
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11871
11947
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11882,10 +11958,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11882
11958
|
modelId: string(),
|
|
11883
11959
|
format: ModelFormatSchema$1
|
|
11884
11960
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11885
|
-
addonId: string(),
|
|
11886
|
-
frame: FrameInputSchema,
|
|
11887
|
-
config: record(string(), unknown()).optional()
|
|
11888
|
-
}), DetectorOutputSchema), method(object({
|
|
11889
11961
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11890
11962
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11891
11963
|
frame: FrameInputSchema.optional(),
|
|
@@ -12064,6 +12136,25 @@ var zonesCapability = {
|
|
|
12064
12136
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12065
12137
|
};
|
|
12066
12138
|
/**
|
|
12139
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12140
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12141
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12142
|
+
* dims — no native resolution to plumb.
|
|
12143
|
+
*/
|
|
12144
|
+
var NativeCropBboxSchema = object({
|
|
12145
|
+
x: number(),
|
|
12146
|
+
y: number(),
|
|
12147
|
+
w: number(),
|
|
12148
|
+
h: number()
|
|
12149
|
+
});
|
|
12150
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12151
|
+
var NativeCropResultSchema = object({
|
|
12152
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12153
|
+
bytes: _instanceof(Uint8Array),
|
|
12154
|
+
width: number().int().positive(),
|
|
12155
|
+
height: number().int().positive()
|
|
12156
|
+
});
|
|
12157
|
+
/**
|
|
12067
12158
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12068
12159
|
* by both the Zod data schema (validation + default fallback) and
|
|
12069
12160
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12158,6 +12249,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12158
12249
|
kind: literal("remote-restream"),
|
|
12159
12250
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12160
12251
|
ownerNodeId: string(),
|
|
12252
|
+
/**
|
|
12253
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12254
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12255
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12256
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12257
|
+
*/
|
|
12258
|
+
ownerReachableHost: string().optional(),
|
|
12161
12259
|
/** Operator override for the owner host the runner dials. */
|
|
12162
12260
|
hubHostnameOverride: string().optional()
|
|
12163
12261
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12166,13 +12264,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12166
12264
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12167
12265
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12168
12266
|
*
|
|
12169
|
-
* Stateless-pipeline model: the
|
|
12170
|
-
*
|
|
12171
|
-
*
|
|
12172
|
-
*
|
|
12173
|
-
*
|
|
12174
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12175
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12267
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12268
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12269
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12270
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12271
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12176
12272
|
*/
|
|
12177
12273
|
var RunnerCameraConfigSchema = object({
|
|
12178
12274
|
deviceId: number(),
|
|
@@ -12223,14 +12319,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12223
12319
|
*/
|
|
12224
12320
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12225
12321
|
pipelineEnabled: boolean().default(true),
|
|
12226
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12227
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12228
12322
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12229
12323
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12230
12324
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12231
12325
|
audio: object({
|
|
12232
|
-
|
|
12233
|
-
modelId: string(),
|
|
12326
|
+
modelId: string().optional(),
|
|
12234
12327
|
enabled: boolean()
|
|
12235
12328
|
}).nullable().optional(),
|
|
12236
12329
|
/**
|
|
@@ -12317,7 +12410,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12317
12410
|
avgInferenceTimeMs: number(),
|
|
12318
12411
|
queueDepth: number()
|
|
12319
12412
|
});
|
|
12320
|
-
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly())
|
|
12413
|
+
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
12414
|
+
handle: FrameHandleSchema,
|
|
12415
|
+
bbox: NativeCropBboxSchema,
|
|
12416
|
+
maxWidth: number().int().positive().optional()
|
|
12417
|
+
}), NativeCropResultSchema.nullable());
|
|
12321
12418
|
/**
|
|
12322
12419
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12323
12420
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15248,7 +15345,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15248
15345
|
icon: string(),
|
|
15249
15346
|
path: string(),
|
|
15250
15347
|
remoteName: string(),
|
|
15251
|
-
bundle: string()
|
|
15348
|
+
bundle: string(),
|
|
15349
|
+
section: string().optional(),
|
|
15350
|
+
sectionLabel: string().optional()
|
|
15252
15351
|
});
|
|
15253
15352
|
var AddonPageInfoSchema = object({
|
|
15254
15353
|
addonId: string(),
|
|
@@ -15288,7 +15387,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15288
15387
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15289
15388
|
* without a separate filesystem stat.
|
|
15290
15389
|
*/
|
|
15291
|
-
bundle: string()
|
|
15390
|
+
bundle: string(),
|
|
15391
|
+
/**
|
|
15392
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15393
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15394
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15395
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15396
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15397
|
+
* "Addon Pages" group.
|
|
15398
|
+
*/
|
|
15399
|
+
section: string().optional(),
|
|
15400
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15401
|
+
sectionLabel: string().optional()
|
|
15292
15402
|
});
|
|
15293
15403
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15294
15404
|
var AddonHttpRouteSchema = object({
|
|
@@ -15504,6 +15614,17 @@ var WidgetMetadataSchema = object({
|
|
|
15504
15614
|
deviceContext: boolean().default(false),
|
|
15505
15615
|
integrationContext: boolean().default(false)
|
|
15506
15616
|
}),
|
|
15617
|
+
/**
|
|
15618
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15619
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15620
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15621
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15622
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15623
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15624
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15625
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15626
|
+
*/
|
|
15627
|
+
preAuth: boolean().optional().default(false),
|
|
15507
15628
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15508
15629
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15509
15630
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15805,6 +15926,66 @@ method(object({
|
|
|
15805
15926
|
password: string()
|
|
15806
15927
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15807
15928
|
/**
|
|
15929
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15930
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15931
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15932
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15933
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15934
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15935
|
+
*
|
|
15936
|
+
* A contribution is a discriminated union on `kind`:
|
|
15937
|
+
*
|
|
15938
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15939
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15940
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15941
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15942
|
+
* login page needs NO change.
|
|
15943
|
+
*
|
|
15944
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15945
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15946
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15947
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15948
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15949
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15950
|
+
*
|
|
15951
|
+
* Every contribution carries a `stage`:
|
|
15952
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15953
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15954
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15955
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15956
|
+
*
|
|
15957
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15958
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15959
|
+
* tRPC router.
|
|
15960
|
+
*/
|
|
15961
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15962
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15963
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15964
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15965
|
+
kind: literal("redirect"),
|
|
15966
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15967
|
+
id: string(),
|
|
15968
|
+
/** Operator-facing button label. */
|
|
15969
|
+
label: string(),
|
|
15970
|
+
/** lucide-react icon name. */
|
|
15971
|
+
icon: string().optional(),
|
|
15972
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15973
|
+
startUrl: string(),
|
|
15974
|
+
stage: LoginStageEnum
|
|
15975
|
+
}), object({
|
|
15976
|
+
kind: literal("widget"),
|
|
15977
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15978
|
+
id: string(),
|
|
15979
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15980
|
+
addonId: string(),
|
|
15981
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15982
|
+
bundle: string(),
|
|
15983
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15984
|
+
remote: WidgetRemoteSchema,
|
|
15985
|
+
stage: LoginStageEnum
|
|
15986
|
+
})]);
|
|
15987
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15988
|
+
/**
|
|
15808
15989
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15809
15990
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15810
15991
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17925,7 +18106,17 @@ var TrackSchema = object({
|
|
|
17925
18106
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17926
18107
|
totalDistance: number(),
|
|
17927
18108
|
state: TrackStateSchema,
|
|
17928
|
-
active: boolean()
|
|
18109
|
+
active: boolean(),
|
|
18110
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18111
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18112
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18113
|
+
importance: number().optional(),
|
|
18114
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18115
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18116
|
+
bestEventId: string().optional(),
|
|
18117
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18118
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18119
|
+
importanceReason: string().optional()
|
|
17929
18120
|
});
|
|
17930
18121
|
var BaseEventFields = {
|
|
17931
18122
|
id: string(),
|
|
@@ -17990,8 +18181,18 @@ var ObjectEventSchema = object({
|
|
|
17990
18181
|
frameHeight: number().optional(),
|
|
17991
18182
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
17992
18183
|
mediaKey: string().optional(),
|
|
18184
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18185
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18186
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18187
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18188
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18189
|
+
keyFrameMediaKey: string().optional(),
|
|
17993
18190
|
/** Populated by B5 (recording playback URL for this event). */
|
|
17994
|
-
mediaUrl: string().optional()
|
|
18191
|
+
mediaUrl: string().optional(),
|
|
18192
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18193
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18194
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18195
|
+
importance: number().optional()
|
|
17995
18196
|
});
|
|
17996
18197
|
var AudioEventSchema = object({
|
|
17997
18198
|
...BaseEventFields,
|
|
@@ -18015,7 +18216,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18015
18216
|
"fullFrame",
|
|
18016
18217
|
"fullFrameBoxed",
|
|
18017
18218
|
"faceCrop",
|
|
18018
|
-
"plateCrop"
|
|
18219
|
+
"plateCrop",
|
|
18220
|
+
"keyFrame"
|
|
18019
18221
|
]);
|
|
18020
18222
|
var MediaFileSchema = object({
|
|
18021
18223
|
key: string(),
|
|
@@ -18036,6 +18238,32 @@ var DeviceEventQueryInput = object({
|
|
|
18036
18238
|
projection: _enum(["full", "slim"]).optional()
|
|
18037
18239
|
});
|
|
18038
18240
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18241
|
+
var KeyEventQueryInput = object({
|
|
18242
|
+
deviceId: number(),
|
|
18243
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18244
|
+
since: number(),
|
|
18245
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18246
|
+
until: number(),
|
|
18247
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18248
|
+
/** Drop tracks scoring below this importance. */
|
|
18249
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18250
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18251
|
+
classFilter: string().optional()
|
|
18252
|
+
});
|
|
18253
|
+
var KeyEventSchema = object({
|
|
18254
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18255
|
+
id: string(),
|
|
18256
|
+
trackId: string(),
|
|
18257
|
+
/** Track start time (firstSeen). */
|
|
18258
|
+
timestamp: number(),
|
|
18259
|
+
className: string(),
|
|
18260
|
+
label: string().optional(),
|
|
18261
|
+
importance: number(),
|
|
18262
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18263
|
+
bestEventId: string(),
|
|
18264
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18265
|
+
windowMs: number().optional()
|
|
18266
|
+
});
|
|
18039
18267
|
var TrackedDetectionSchema = object({
|
|
18040
18268
|
trackId: string(),
|
|
18041
18269
|
className: string(),
|
|
@@ -18065,7 +18293,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18065
18293
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18066
18294
|
kind: "mutation",
|
|
18067
18295
|
auth: "admin"
|
|
18068
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18296
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18069
18297
|
deviceId: number(),
|
|
18070
18298
|
since: number(),
|
|
18071
18299
|
until: number(),
|
|
@@ -18110,11 +18338,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18110
18338
|
timestamp: number()
|
|
18111
18339
|
});
|
|
18112
18340
|
var CameraPipelineConfigSchema = object({
|
|
18113
|
-
engine: PipelineEngineChoiceSchema,
|
|
18341
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18114
18342
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18115
18343
|
audio: object({
|
|
18116
|
-
engine: PipelineEngineChoiceSchema,
|
|
18117
|
-
modelId: string(),
|
|
18344
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18345
|
+
modelId: string().optional(),
|
|
18118
18346
|
enabled: boolean(),
|
|
18119
18347
|
settings: record(string(), unknown()).readonly().optional()
|
|
18120
18348
|
}).nullable().optional()
|
|
@@ -18129,7 +18357,7 @@ var PipelineTemplateSchema = object({
|
|
|
18129
18357
|
});
|
|
18130
18358
|
var AgentAddonConfigSchema = object({
|
|
18131
18359
|
enabled: boolean(),
|
|
18132
|
-
modelId: string(),
|
|
18360
|
+
modelId: string().optional(),
|
|
18133
18361
|
settings: record(string(), unknown()).readonly()
|
|
18134
18362
|
});
|
|
18135
18363
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18139,12 +18367,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18139
18367
|
detectWeight: number().positive().optional(),
|
|
18140
18368
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18141
18369
|
detect: boolean().optional(),
|
|
18142
|
-
/**
|
|
18370
|
+
/**
|
|
18371
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18372
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18373
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18374
|
+
* parse — no code reads it and no write path emits it.
|
|
18375
|
+
*/
|
|
18143
18376
|
decode: boolean().optional(),
|
|
18144
18377
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18145
18378
|
audio: boolean().optional(),
|
|
18146
18379
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18147
|
-
ingest: boolean().optional()
|
|
18380
|
+
ingest: boolean().optional(),
|
|
18381
|
+
/**
|
|
18382
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18383
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18384
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18385
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18386
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18387
|
+
*/
|
|
18388
|
+
reachableHost: string().optional()
|
|
18148
18389
|
});
|
|
18149
18390
|
var CameraPipelineForAgentSchema = object({
|
|
18150
18391
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18192,25 +18433,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18192
18433
|
assignedAt: number()
|
|
18193
18434
|
});
|
|
18194
18435
|
/**
|
|
18195
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18196
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18197
|
-
* → co-located with pipeline → capacity).
|
|
18198
|
-
*/
|
|
18199
|
-
var DecoderAssignmentSchema = object({
|
|
18200
|
-
deviceId: number(),
|
|
18201
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18202
|
-
decoderNodeId: string(),
|
|
18203
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18204
|
-
pinned: boolean(),
|
|
18205
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18206
|
-
reason: _enum([
|
|
18207
|
-
"manual",
|
|
18208
|
-
"co-located",
|
|
18209
|
-
"capacity",
|
|
18210
|
-
"hardware-affinity"
|
|
18211
|
-
])
|
|
18212
|
-
});
|
|
18213
|
-
/**
|
|
18214
18436
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18215
18437
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18216
18438
|
*/
|
|
@@ -18250,6 +18472,15 @@ var GlobalMetricsSchema = object({
|
|
|
18250
18472
|
* capability providers.
|
|
18251
18473
|
*/
|
|
18252
18474
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18475
|
+
/**
|
|
18476
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18477
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18478
|
+
*/
|
|
18479
|
+
var IngestOwnerSchema = object({
|
|
18480
|
+
ownerNodeId: string(),
|
|
18481
|
+
reachableHost: string().optional(),
|
|
18482
|
+
configIssue: string().optional()
|
|
18483
|
+
});
|
|
18253
18484
|
/** Source block — always present; derives from the stream catalog. */
|
|
18254
18485
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18255
18486
|
camStreamId: string(),
|
|
@@ -18264,6 +18495,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18264
18495
|
detectionNodeId: string().nullable(),
|
|
18265
18496
|
decoderNodeId: string().nullable(),
|
|
18266
18497
|
audioNodeId: string().nullable(),
|
|
18498
|
+
/**
|
|
18499
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18500
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18501
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18502
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18503
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18504
|
+
*/
|
|
18505
|
+
sourceNodeId: string().nullable(),
|
|
18267
18506
|
pinned: object({
|
|
18268
18507
|
detection: boolean(),
|
|
18269
18508
|
decoder: boolean(),
|
|
@@ -18396,16 +18635,7 @@ method(object({
|
|
|
18396
18635
|
}), object({ success: literal(true) }), {
|
|
18397
18636
|
kind: "mutation",
|
|
18398
18637
|
auth: "admin"
|
|
18399
|
-
}), method(object({
|
|
18400
|
-
deviceId: number(),
|
|
18401
|
-
nodeId: string()
|
|
18402
|
-
}), _void(), {
|
|
18403
|
-
kind: "mutation",
|
|
18404
|
-
auth: "admin"
|
|
18405
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18406
|
-
kind: "mutation",
|
|
18407
|
-
auth: "admin"
|
|
18408
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18638
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18409
18639
|
deviceId: number(),
|
|
18410
18640
|
nodeId: string()
|
|
18411
18641
|
}), object({ success: literal(true) }), {
|
|
@@ -18426,10 +18656,7 @@ method(object({
|
|
|
18426
18656
|
nodeId: string(),
|
|
18427
18657
|
pinned: boolean(),
|
|
18428
18658
|
assignedAt: number()
|
|
18429
|
-
}))), method(object({
|
|
18430
|
-
deviceId: number(),
|
|
18431
|
-
pipelineNodeId: string().optional()
|
|
18432
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18659
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18433
18660
|
nodeId: string(),
|
|
18434
18661
|
settings: AgentPipelineSettingsSchema
|
|
18435
18662
|
})).readonly()), method(object({
|
|
@@ -18459,12 +18686,26 @@ method(object({
|
|
|
18459
18686
|
}), method(object({
|
|
18460
18687
|
agentNodeId: string(),
|
|
18461
18688
|
detect: boolean().nullable().optional(),
|
|
18462
|
-
decode: boolean().nullable().optional(),
|
|
18463
18689
|
audio: boolean().nullable().optional(),
|
|
18464
18690
|
ingest: boolean().nullable().optional()
|
|
18465
18691
|
}), object({ success: literal(true) }), {
|
|
18466
18692
|
kind: "mutation",
|
|
18467
18693
|
auth: "admin"
|
|
18694
|
+
}), method(object({
|
|
18695
|
+
agentNodeId: string(),
|
|
18696
|
+
reachableHost: string().nullable()
|
|
18697
|
+
}), object({ success: literal(true) }), {
|
|
18698
|
+
kind: "mutation",
|
|
18699
|
+
auth: "admin"
|
|
18700
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18701
|
+
success: literal(true),
|
|
18702
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18703
|
+
effectiveModelId: string().nullable(),
|
|
18704
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18705
|
+
clearedCameraOverrides: number()
|
|
18706
|
+
}), {
|
|
18707
|
+
kind: "mutation",
|
|
18708
|
+
auth: "admin"
|
|
18468
18709
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18469
18710
|
deviceId: number(),
|
|
18470
18711
|
addonId: string(),
|
|
@@ -18509,22 +18750,131 @@ method(object({
|
|
|
18509
18750
|
kind: "mutation",
|
|
18510
18751
|
auth: "admin"
|
|
18511
18752
|
});
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18753
|
+
/**
|
|
18754
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18755
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18756
|
+
* agents).
|
|
18757
|
+
*
|
|
18758
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18759
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18760
|
+
* version describes the node. Updates install into
|
|
18761
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18762
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18763
|
+
*
|
|
18764
|
+
* Providers:
|
|
18765
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18766
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18767
|
+
* unpinned calls.
|
|
18768
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18769
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18770
|
+
* `$hub.registerNode` manifest.
|
|
18771
|
+
*
|
|
18772
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18773
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18774
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18775
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18776
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18777
|
+
*
|
|
18778
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18779
|
+
*/
|
|
18780
|
+
/**
|
|
18781
|
+
* Where the running hub's code was loaded from:
|
|
18782
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18783
|
+
* plain resolution and runtime updates are refused.
|
|
18784
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18785
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18786
|
+
*/
|
|
18787
|
+
var ServerBootModeSchema = _enum([
|
|
18788
|
+
"workspace",
|
|
18789
|
+
"baked",
|
|
18790
|
+
"data-root"
|
|
18791
|
+
]);
|
|
18792
|
+
/**
|
|
18793
|
+
* Update lifecycle state:
|
|
18794
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18795
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18796
|
+
* restarted onto it (still running the OLD version).
|
|
18797
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18798
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18799
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18800
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18801
|
+
*/
|
|
18802
|
+
var ServerUpdateStateSchema = _enum([
|
|
18803
|
+
"idle",
|
|
18804
|
+
"checking",
|
|
18805
|
+
"staging",
|
|
18806
|
+
"pending-restart",
|
|
18807
|
+
"awaiting-confirmation"
|
|
18808
|
+
]);
|
|
18809
|
+
var ServerRollbackInfoSchema = object({
|
|
18810
|
+
/** The version that failed (or was manually rolled back). */
|
|
18811
|
+
fromVersion: string(),
|
|
18812
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18813
|
+
toVersion: string().nullable(),
|
|
18814
|
+
atMs: number(),
|
|
18815
|
+
reason: string()
|
|
18518
18816
|
});
|
|
18519
|
-
var
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18817
|
+
var ServerPackageStatusSchema = object({
|
|
18818
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18819
|
+
packageName: string(),
|
|
18820
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18821
|
+
runningVersion: string().nullable(),
|
|
18822
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18823
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18824
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18825
|
+
activeVersion: string().nullable(),
|
|
18826
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18827
|
+
previousVersion: string().nullable(),
|
|
18828
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18829
|
+
seedVersion: string().nullable(),
|
|
18830
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18831
|
+
latestVersion: string().nullable(),
|
|
18832
|
+
updateAvailable: boolean(),
|
|
18833
|
+
bootMode: ServerBootModeSchema,
|
|
18834
|
+
updateState: ServerUpdateStateSchema,
|
|
18835
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18836
|
+
pendingVersion: string().nullable(),
|
|
18837
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18838
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18839
|
+
/**
|
|
18840
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18841
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18842
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18843
|
+
*/
|
|
18844
|
+
stateFileCorrupt: boolean(),
|
|
18845
|
+
lastCheckedAtMs: number().nullable()
|
|
18846
|
+
});
|
|
18847
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18848
|
+
packageName: string(),
|
|
18849
|
+
runningVersion: string().nullable(),
|
|
18850
|
+
latestVersion: string().nullable(),
|
|
18851
|
+
updateAvailable: boolean(),
|
|
18852
|
+
checkedAtMs: number(),
|
|
18853
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18854
|
+
error: string().nullable()
|
|
18855
|
+
});
|
|
18856
|
+
var ServerUpdateActionResultSchema = object({
|
|
18857
|
+
accepted: boolean(),
|
|
18858
|
+
targetVersion: string().nullable(),
|
|
18859
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18860
|
+
restarting: boolean(),
|
|
18861
|
+
message: string()
|
|
18862
|
+
});
|
|
18863
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18864
|
+
kind: "mutation",
|
|
18865
|
+
auth: "admin"
|
|
18866
|
+
}), method(object({
|
|
18867
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18868
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18869
|
+
kind: "mutation",
|
|
18870
|
+
auth: "admin"
|
|
18871
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18872
|
+
kind: "mutation",
|
|
18873
|
+
auth: "admin"
|
|
18874
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18875
|
+
kind: "mutation",
|
|
18876
|
+
auth: "admin"
|
|
18523
18877
|
});
|
|
18524
|
-
method(object({
|
|
18525
|
-
deviceId: number(),
|
|
18526
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18527
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18528
18878
|
/**
|
|
18529
18879
|
* Query filter for settings-store collections.
|
|
18530
18880
|
*/
|
|
@@ -18677,9 +19027,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18677
19027
|
/**
|
|
18678
19028
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18679
19029
|
*
|
|
18680
|
-
*
|
|
18681
|
-
*
|
|
18682
|
-
*
|
|
19030
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19031
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19032
|
+
* prebuffer fallback.
|
|
18683
19033
|
*/
|
|
18684
19034
|
var SnapshotImageSchema = object({
|
|
18685
19035
|
base64: string(),
|
|
@@ -18710,11 +19060,12 @@ DeviceType.Camera, method(object({
|
|
|
18710
19060
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18711
19061
|
kind: "mutation",
|
|
18712
19062
|
auth: "admin"
|
|
18713
|
-
})
|
|
18714
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19063
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18715
19064
|
deviceId: number(),
|
|
18716
|
-
|
|
18717
|
-
|
|
19065
|
+
lastCapturedAt: number().nullable(),
|
|
19066
|
+
cacheAgeMs: number().nullable(),
|
|
19067
|
+
etag: string().nullable()
|
|
19068
|
+
})));
|
|
18718
19069
|
/**
|
|
18719
19070
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18720
19071
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -18965,10 +19316,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
18965
19316
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
18966
19317
|
* the assertion, bumps the credential counter, returns ok.
|
|
18967
19318
|
*
|
|
19319
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19320
|
+
* passkey IS the primary factor, no password leg:
|
|
19321
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19322
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19323
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19324
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19325
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19326
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19327
|
+
* resolves the credential by the response's credential id,
|
|
19328
|
+
* verifies the assertion against the stored challenge + that
|
|
19329
|
+
* credential's public key/counter, and returns the OWNING
|
|
19330
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19331
|
+
*
|
|
18968
19332
|
* 3. Management:
|
|
18969
19333
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
18970
19334
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
18971
19335
|
*
|
|
19336
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19337
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19338
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19339
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19340
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19341
|
+
* row ⇒ `enabled: false`).
|
|
19342
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19343
|
+
* the providing addon beside its credentials.
|
|
19344
|
+
*
|
|
18972
19345
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
18973
19346
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
18974
19347
|
* the cap to non-admins.
|
|
@@ -19011,6 +19384,17 @@ method(object({
|
|
|
19011
19384
|
}), object({ verified: boolean() }), {
|
|
19012
19385
|
kind: "mutation",
|
|
19013
19386
|
access: "view"
|
|
19387
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19388
|
+
kind: "mutation",
|
|
19389
|
+
access: "view"
|
|
19390
|
+
}), method(object({
|
|
19391
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19392
|
+
response: record(string(), unknown()) }), object({
|
|
19393
|
+
verified: boolean(),
|
|
19394
|
+
userId: string().nullable()
|
|
19395
|
+
}), {
|
|
19396
|
+
kind: "mutation",
|
|
19397
|
+
access: "view"
|
|
19014
19398
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19015
19399
|
userId: string(),
|
|
19016
19400
|
credentialId: string()
|
|
@@ -19018,6 +19402,13 @@ method(object({
|
|
|
19018
19402
|
kind: "mutation",
|
|
19019
19403
|
auth: "admin",
|
|
19020
19404
|
access: "delete"
|
|
19405
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19406
|
+
userId: string(),
|
|
19407
|
+
enabled: boolean()
|
|
19408
|
+
}), object({ success: literal(true) }), {
|
|
19409
|
+
kind: "mutation",
|
|
19410
|
+
auth: "admin",
|
|
19411
|
+
access: "create"
|
|
19021
19412
|
});
|
|
19022
19413
|
/**
|
|
19023
19414
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19075,9 +19466,10 @@ method(object({
|
|
|
19075
19466
|
auth: "admin"
|
|
19076
19467
|
});
|
|
19077
19468
|
/**
|
|
19078
|
-
* Optional client-side hints sent at session creation to help the
|
|
19079
|
-
*
|
|
19080
|
-
*
|
|
19469
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19470
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19471
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19472
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19081
19473
|
*/
|
|
19082
19474
|
var webrtcClientHintsSchema = object({
|
|
19083
19475
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19088,22 +19480,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19088
19480
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19089
19481
|
prefersTier: string().optional()
|
|
19090
19482
|
}).partial();
|
|
19091
|
-
method(object({
|
|
19092
|
-
streamId: string(),
|
|
19093
|
-
sdpOffer: string()
|
|
19094
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19095
|
-
streamId: string(),
|
|
19096
|
-
codec: string()
|
|
19097
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19098
|
-
streamId: string(),
|
|
19099
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19100
|
-
}), object({
|
|
19101
|
-
sessionId: string(),
|
|
19102
|
-
sdpOffer: string()
|
|
19103
|
-
}), { kind: "mutation" }), method(object({
|
|
19104
|
-
sessionId: string(),
|
|
19105
|
-
sdpAnswer: string()
|
|
19106
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19107
19483
|
/**
|
|
19108
19484
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19109
19485
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19590,7 +19966,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
19590
19966
|
latestVersion: string().nullable(),
|
|
19591
19967
|
hasUpdate: boolean(),
|
|
19592
19968
|
/** Optional manifest description for the row tooltip. */
|
|
19593
|
-
description: string().optional()
|
|
19969
|
+
description: string().optional(),
|
|
19970
|
+
/**
|
|
19971
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
19972
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
19973
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
19974
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
19975
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
19976
|
+
*/
|
|
19977
|
+
buildId: string().nullable()
|
|
19594
19978
|
});
|
|
19595
19979
|
var LogStreamEntrySchema = object({
|
|
19596
19980
|
timestamp: string(),
|
|
@@ -19826,7 +20210,17 @@ var FaceInfoSchema = object({
|
|
|
19826
20210
|
recognizedIdentityId: string().optional(),
|
|
19827
20211
|
identityName: string().optional(),
|
|
19828
20212
|
assigned: boolean(),
|
|
19829
|
-
base64: string().optional()
|
|
20213
|
+
base64: string().optional(),
|
|
20214
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20215
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20216
|
+
* legacy rows written before design B. */
|
|
20217
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20218
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20219
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20220
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20221
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20222
|
+
* back to the inline `base64` face crop. */
|
|
20223
|
+
keyFrameMediaKey: string().optional()
|
|
19830
20224
|
});
|
|
19831
20225
|
var FaceFilterEnum = _enum([
|
|
19832
20226
|
"unassigned",
|
|
@@ -20523,6 +20917,16 @@ var TopologyCategorySchema = object({
|
|
|
20523
20917
|
healthy: number(),
|
|
20524
20918
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20525
20919
|
});
|
|
20920
|
+
/**
|
|
20921
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20922
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20923
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20924
|
+
* rows and pre-phase-2 nodes report none.
|
|
20925
|
+
*/
|
|
20926
|
+
var TopologyRootPackageSchema = object({
|
|
20927
|
+
name: string(),
|
|
20928
|
+
version: string()
|
|
20929
|
+
});
|
|
20526
20930
|
var TopologyNodeSchema = object({
|
|
20527
20931
|
id: string(),
|
|
20528
20932
|
name: string(),
|
|
@@ -20546,7 +20950,8 @@ var TopologyNodeSchema = object({
|
|
|
20546
20950
|
status: string()
|
|
20547
20951
|
})).readonly(),
|
|
20548
20952
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20549
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20953
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20954
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20550
20955
|
});
|
|
20551
20956
|
var CapUsageEdgeSchema = object({
|
|
20552
20957
|
callerAddonId: string(),
|
|
@@ -23346,6 +23751,12 @@ Object.freeze({
|
|
|
23346
23751
|
addonId: null,
|
|
23347
23752
|
access: "create"
|
|
23348
23753
|
},
|
|
23754
|
+
"loginMethod.getLoginMethods": {
|
|
23755
|
+
capName: "login-method",
|
|
23756
|
+
capScope: "system",
|
|
23757
|
+
addonId: null,
|
|
23758
|
+
access: "view"
|
|
23759
|
+
},
|
|
23349
23760
|
"mediaPlayer.next": {
|
|
23350
23761
|
capName: "media-player",
|
|
23351
23762
|
capScope: "device",
|
|
@@ -23928,6 +24339,12 @@ Object.freeze({
|
|
|
23928
24339
|
addonId: null,
|
|
23929
24340
|
access: "view"
|
|
23930
24341
|
},
|
|
24342
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24343
|
+
capName: "pipeline-analytics",
|
|
24344
|
+
capScope: "device",
|
|
24345
|
+
addonId: null,
|
|
24346
|
+
access: "view"
|
|
24347
|
+
},
|
|
23931
24348
|
"pipelineAnalytics.getMotionEvents": {
|
|
23932
24349
|
capName: "pipeline-analytics",
|
|
23933
24350
|
capScope: "device",
|
|
@@ -23976,23 +24393,23 @@ Object.freeze({
|
|
|
23976
24393
|
addonId: null,
|
|
23977
24394
|
access: "create"
|
|
23978
24395
|
},
|
|
23979
|
-
"pipelineExecutor.
|
|
24396
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
23980
24397
|
capName: "pipeline-executor",
|
|
23981
24398
|
capScope: "system",
|
|
23982
24399
|
addonId: null,
|
|
23983
24400
|
access: "delete"
|
|
23984
24401
|
},
|
|
23985
|
-
"pipelineExecutor.
|
|
24402
|
+
"pipelineExecutor.deleteModel": {
|
|
23986
24403
|
capName: "pipeline-executor",
|
|
23987
24404
|
capScope: "system",
|
|
23988
24405
|
addonId: null,
|
|
23989
24406
|
access: "delete"
|
|
23990
24407
|
},
|
|
23991
|
-
"pipelineExecutor.
|
|
24408
|
+
"pipelineExecutor.deleteTemplate": {
|
|
23992
24409
|
capName: "pipeline-executor",
|
|
23993
24410
|
capScope: "system",
|
|
23994
24411
|
addonId: null,
|
|
23995
|
-
access: "
|
|
24412
|
+
access: "delete"
|
|
23996
24413
|
},
|
|
23997
24414
|
"pipelineExecutor.downloadModel": {
|
|
23998
24415
|
capName: "pipeline-executor",
|
|
@@ -24186,13 +24603,13 @@ Object.freeze({
|
|
|
24186
24603
|
addonId: null,
|
|
24187
24604
|
access: "create"
|
|
24188
24605
|
},
|
|
24189
|
-
"
|
|
24190
|
-
capName: "pipeline-
|
|
24606
|
+
"pipelineExecutor.validatePipeline": {
|
|
24607
|
+
capName: "pipeline-executor",
|
|
24191
24608
|
capScope: "system",
|
|
24192
24609
|
addonId: null,
|
|
24193
|
-
access: "
|
|
24610
|
+
access: "view"
|
|
24194
24611
|
},
|
|
24195
|
-
"pipelineOrchestrator.
|
|
24612
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24196
24613
|
capName: "pipeline-orchestrator",
|
|
24197
24614
|
capScope: "system",
|
|
24198
24615
|
addonId: null,
|
|
@@ -24276,19 +24693,13 @@ Object.freeze({
|
|
|
24276
24693
|
addonId: null,
|
|
24277
24694
|
access: "view"
|
|
24278
24695
|
},
|
|
24279
|
-
"pipelineOrchestrator.
|
|
24280
|
-
capName: "pipeline-orchestrator",
|
|
24281
|
-
capScope: "system",
|
|
24282
|
-
addonId: null,
|
|
24283
|
-
access: "view"
|
|
24284
|
-
},
|
|
24285
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24696
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24286
24697
|
capName: "pipeline-orchestrator",
|
|
24287
24698
|
capScope: "system",
|
|
24288
24699
|
addonId: null,
|
|
24289
24700
|
access: "view"
|
|
24290
24701
|
},
|
|
24291
|
-
"pipelineOrchestrator.
|
|
24702
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24292
24703
|
capName: "pipeline-orchestrator",
|
|
24293
24704
|
capScope: "system",
|
|
24294
24705
|
addonId: null,
|
|
@@ -24330,6 +24741,12 @@ Object.freeze({
|
|
|
24330
24741
|
addonId: null,
|
|
24331
24742
|
access: "delete"
|
|
24332
24743
|
},
|
|
24744
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24745
|
+
capName: "pipeline-orchestrator",
|
|
24746
|
+
capScope: "system",
|
|
24747
|
+
addonId: null,
|
|
24748
|
+
access: "delete"
|
|
24749
|
+
},
|
|
24333
24750
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24334
24751
|
capName: "pipeline-orchestrator",
|
|
24335
24752
|
capScope: "system",
|
|
@@ -24366,37 +24783,37 @@ Object.freeze({
|
|
|
24366
24783
|
addonId: null,
|
|
24367
24784
|
access: "create"
|
|
24368
24785
|
},
|
|
24369
|
-
"pipelineOrchestrator.
|
|
24786
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24370
24787
|
capName: "pipeline-orchestrator",
|
|
24371
24788
|
capScope: "system",
|
|
24372
24789
|
addonId: null,
|
|
24373
24790
|
access: "create"
|
|
24374
24791
|
},
|
|
24375
|
-
"pipelineOrchestrator.
|
|
24792
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24376
24793
|
capName: "pipeline-orchestrator",
|
|
24377
24794
|
capScope: "system",
|
|
24378
24795
|
addonId: null,
|
|
24379
24796
|
access: "create"
|
|
24380
24797
|
},
|
|
24381
|
-
"pipelineOrchestrator.
|
|
24798
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24382
24799
|
capName: "pipeline-orchestrator",
|
|
24383
24800
|
capScope: "system",
|
|
24384
24801
|
addonId: null,
|
|
24385
24802
|
access: "create"
|
|
24386
24803
|
},
|
|
24387
|
-
"pipelineOrchestrator.
|
|
24804
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24388
24805
|
capName: "pipeline-orchestrator",
|
|
24389
24806
|
capScope: "system",
|
|
24390
24807
|
addonId: null,
|
|
24391
24808
|
access: "create"
|
|
24392
24809
|
},
|
|
24393
|
-
"pipelineOrchestrator.
|
|
24810
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24394
24811
|
capName: "pipeline-orchestrator",
|
|
24395
24812
|
capScope: "system",
|
|
24396
24813
|
addonId: null,
|
|
24397
24814
|
access: "create"
|
|
24398
24815
|
},
|
|
24399
|
-
"pipelineOrchestrator.
|
|
24816
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24400
24817
|
capName: "pipeline-orchestrator",
|
|
24401
24818
|
capScope: "system",
|
|
24402
24819
|
addonId: null,
|
|
@@ -24456,6 +24873,12 @@ Object.freeze({
|
|
|
24456
24873
|
addonId: null,
|
|
24457
24874
|
access: "view"
|
|
24458
24875
|
},
|
|
24876
|
+
"pipelineRunner.getNativeCrop": {
|
|
24877
|
+
capName: "pipeline-runner",
|
|
24878
|
+
capScope: "system",
|
|
24879
|
+
addonId: null,
|
|
24880
|
+
access: "view"
|
|
24881
|
+
},
|
|
24459
24882
|
"pipelineRunner.reportMotion": {
|
|
24460
24883
|
capName: "pipeline-runner",
|
|
24461
24884
|
capScope: "system",
|
|
@@ -24696,33 +25119,45 @@ Object.freeze({
|
|
|
24696
25119
|
addonId: null,
|
|
24697
25120
|
access: "create"
|
|
24698
25121
|
},
|
|
24699
|
-
"
|
|
24700
|
-
capName: "
|
|
25122
|
+
"scriptRunner.run": {
|
|
25123
|
+
capName: "script-runner",
|
|
25124
|
+
capScope: "device",
|
|
25125
|
+
addonId: null,
|
|
25126
|
+
access: "create"
|
|
25127
|
+
},
|
|
25128
|
+
"scriptRunner.stop": {
|
|
25129
|
+
capName: "script-runner",
|
|
25130
|
+
capScope: "device",
|
|
25131
|
+
addonId: null,
|
|
25132
|
+
access: "create"
|
|
25133
|
+
},
|
|
25134
|
+
"serverManagement.applyServerUpdate": {
|
|
25135
|
+
capName: "server-management",
|
|
24701
25136
|
capScope: "system",
|
|
24702
25137
|
addonId: null,
|
|
24703
|
-
access: "
|
|
25138
|
+
access: "create"
|
|
24704
25139
|
},
|
|
24705
|
-
"
|
|
24706
|
-
capName: "
|
|
25140
|
+
"serverManagement.checkServerUpdate": {
|
|
25141
|
+
capName: "server-management",
|
|
24707
25142
|
capScope: "system",
|
|
24708
25143
|
addonId: null,
|
|
24709
25144
|
access: "create"
|
|
24710
25145
|
},
|
|
24711
|
-
"
|
|
24712
|
-
capName: "
|
|
25146
|
+
"serverManagement.getServerPackageStatus": {
|
|
25147
|
+
capName: "server-management",
|
|
24713
25148
|
capScope: "system",
|
|
24714
25149
|
addonId: null,
|
|
24715
|
-
access: "
|
|
25150
|
+
access: "view"
|
|
24716
25151
|
},
|
|
24717
|
-
"
|
|
24718
|
-
capName: "
|
|
24719
|
-
capScope: "
|
|
25152
|
+
"serverManagement.restartServer": {
|
|
25153
|
+
capName: "server-management",
|
|
25154
|
+
capScope: "system",
|
|
24720
25155
|
addonId: null,
|
|
24721
25156
|
access: "create"
|
|
24722
25157
|
},
|
|
24723
|
-
"
|
|
24724
|
-
capName: "
|
|
24725
|
-
capScope: "
|
|
25158
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25159
|
+
capName: "server-management",
|
|
25160
|
+
capScope: "system",
|
|
24726
25161
|
addonId: null,
|
|
24727
25162
|
access: "create"
|
|
24728
25163
|
},
|
|
@@ -24810,23 +25245,17 @@ Object.freeze({
|
|
|
24810
25245
|
addonId: null,
|
|
24811
25246
|
access: "view"
|
|
24812
25247
|
},
|
|
24813
|
-
"snapshot.
|
|
25248
|
+
"snapshot.getSnapshotOverview": {
|
|
24814
25249
|
capName: "snapshot",
|
|
24815
25250
|
capScope: "device",
|
|
24816
25251
|
addonId: null,
|
|
24817
|
-
access: "create"
|
|
24818
|
-
},
|
|
24819
|
-
"snapshotProvider.getSnapshot": {
|
|
24820
|
-
capName: "snapshot-provider",
|
|
24821
|
-
capScope: "system",
|
|
24822
|
-
addonId: null,
|
|
24823
25252
|
access: "view"
|
|
24824
25253
|
},
|
|
24825
|
-
"
|
|
24826
|
-
capName: "snapshot
|
|
24827
|
-
capScope: "
|
|
25254
|
+
"snapshot.invalidateCache": {
|
|
25255
|
+
capName: "snapshot",
|
|
25256
|
+
capScope: "device",
|
|
24828
25257
|
addonId: null,
|
|
24829
|
-
access: "
|
|
25258
|
+
access: "create"
|
|
24830
25259
|
},
|
|
24831
25260
|
"ssoBridge.signBridgeToken": {
|
|
24832
25261
|
capName: "sso-bridge",
|
|
@@ -25254,30 +25683,6 @@ Object.freeze({
|
|
|
25254
25683
|
addonId: null,
|
|
25255
25684
|
access: "view"
|
|
25256
25685
|
},
|
|
25257
|
-
"streamingEngine.getStreamUrl": {
|
|
25258
|
-
capName: "streaming-engine",
|
|
25259
|
-
capScope: "system",
|
|
25260
|
-
addonId: null,
|
|
25261
|
-
access: "view"
|
|
25262
|
-
},
|
|
25263
|
-
"streamingEngine.listStreams": {
|
|
25264
|
-
capName: "streaming-engine",
|
|
25265
|
-
capScope: "system",
|
|
25266
|
-
addonId: null,
|
|
25267
|
-
access: "view"
|
|
25268
|
-
},
|
|
25269
|
-
"streamingEngine.registerStream": {
|
|
25270
|
-
capName: "streaming-engine",
|
|
25271
|
-
capScope: "system",
|
|
25272
|
-
addonId: null,
|
|
25273
|
-
access: "create"
|
|
25274
|
-
},
|
|
25275
|
-
"streamingEngine.unregisterStream": {
|
|
25276
|
-
capName: "streaming-engine",
|
|
25277
|
-
capScope: "system",
|
|
25278
|
-
addonId: null,
|
|
25279
|
-
access: "delete"
|
|
25280
|
-
},
|
|
25281
25686
|
"streamParams.getConfigSchema": {
|
|
25282
25687
|
capName: "stream-params",
|
|
25283
25688
|
capScope: "device",
|
|
@@ -25524,6 +25929,12 @@ Object.freeze({
|
|
|
25524
25929
|
addonId: null,
|
|
25525
25930
|
access: "view"
|
|
25526
25931
|
},
|
|
25932
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25933
|
+
capName: "user-passkeys",
|
|
25934
|
+
capScope: "system",
|
|
25935
|
+
addonId: null,
|
|
25936
|
+
access: "view"
|
|
25937
|
+
},
|
|
25527
25938
|
"userPasskeys.beginRegistration": {
|
|
25528
25939
|
capName: "user-passkeys",
|
|
25529
25940
|
capScope: "system",
|
|
@@ -25536,12 +25947,24 @@ Object.freeze({
|
|
|
25536
25947
|
addonId: null,
|
|
25537
25948
|
access: "view"
|
|
25538
25949
|
},
|
|
25950
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25951
|
+
capName: "user-passkeys",
|
|
25952
|
+
capScope: "system",
|
|
25953
|
+
addonId: null,
|
|
25954
|
+
access: "view"
|
|
25955
|
+
},
|
|
25539
25956
|
"userPasskeys.finishRegistration": {
|
|
25540
25957
|
capName: "user-passkeys",
|
|
25541
25958
|
capScope: "system",
|
|
25542
25959
|
addonId: null,
|
|
25543
25960
|
access: "create"
|
|
25544
25961
|
},
|
|
25962
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25963
|
+
capName: "user-passkeys",
|
|
25964
|
+
capScope: "system",
|
|
25965
|
+
addonId: null,
|
|
25966
|
+
access: "view"
|
|
25967
|
+
},
|
|
25545
25968
|
"userPasskeys.listPasskeys": {
|
|
25546
25969
|
capName: "user-passkeys",
|
|
25547
25970
|
capScope: "system",
|
|
@@ -25554,6 +25977,12 @@ Object.freeze({
|
|
|
25554
25977
|
addonId: null,
|
|
25555
25978
|
access: "delete"
|
|
25556
25979
|
},
|
|
25980
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
25981
|
+
capName: "user-passkeys",
|
|
25982
|
+
capScope: "system",
|
|
25983
|
+
addonId: null,
|
|
25984
|
+
access: "create"
|
|
25985
|
+
},
|
|
25557
25986
|
"vacuumControl.locate": {
|
|
25558
25987
|
capName: "vacuum-control",
|
|
25559
25988
|
capScope: "device",
|
|
@@ -25626,6 +26055,18 @@ Object.freeze({
|
|
|
25626
26055
|
addonId: null,
|
|
25627
26056
|
access: "view"
|
|
25628
26057
|
},
|
|
26058
|
+
"viewerUi.getStaticDir": {
|
|
26059
|
+
capName: "viewer-ui",
|
|
26060
|
+
capScope: "system",
|
|
26061
|
+
addonId: null,
|
|
26062
|
+
access: "view"
|
|
26063
|
+
},
|
|
26064
|
+
"viewerUi.getVersion": {
|
|
26065
|
+
capName: "viewer-ui",
|
|
26066
|
+
capScope: "system",
|
|
26067
|
+
addonId: null,
|
|
26068
|
+
access: "view"
|
|
26069
|
+
},
|
|
25629
26070
|
"waterHeater.setAway": {
|
|
25630
26071
|
capName: "water-heater",
|
|
25631
26072
|
capScope: "device",
|
|
@@ -25644,54 +26085,6 @@ Object.freeze({
|
|
|
25644
26085
|
addonId: null,
|
|
25645
26086
|
access: "create"
|
|
25646
26087
|
},
|
|
25647
|
-
"webrtc.closeSession": {
|
|
25648
|
-
capName: "webrtc",
|
|
25649
|
-
capScope: "system",
|
|
25650
|
-
addonId: null,
|
|
25651
|
-
access: "create"
|
|
25652
|
-
},
|
|
25653
|
-
"webrtc.createSession": {
|
|
25654
|
-
capName: "webrtc",
|
|
25655
|
-
capScope: "system",
|
|
25656
|
-
addonId: null,
|
|
25657
|
-
access: "create"
|
|
25658
|
-
},
|
|
25659
|
-
"webrtc.handleAnswer": {
|
|
25660
|
-
capName: "webrtc",
|
|
25661
|
-
capScope: "system",
|
|
25662
|
-
addonId: null,
|
|
25663
|
-
access: "create"
|
|
25664
|
-
},
|
|
25665
|
-
"webrtc.handleOffer": {
|
|
25666
|
-
capName: "webrtc",
|
|
25667
|
-
capScope: "system",
|
|
25668
|
-
addonId: null,
|
|
25669
|
-
access: "create"
|
|
25670
|
-
},
|
|
25671
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25672
|
-
capName: "webrtc",
|
|
25673
|
-
capScope: "system",
|
|
25674
|
-
addonId: null,
|
|
25675
|
-
access: "view"
|
|
25676
|
-
},
|
|
25677
|
-
"webrtc.registerStream": {
|
|
25678
|
-
capName: "webrtc",
|
|
25679
|
-
capScope: "system",
|
|
25680
|
-
addonId: null,
|
|
25681
|
-
access: "create"
|
|
25682
|
-
},
|
|
25683
|
-
"webrtc.supportsStream": {
|
|
25684
|
-
capName: "webrtc",
|
|
25685
|
-
capScope: "system",
|
|
25686
|
-
addonId: null,
|
|
25687
|
-
access: "view"
|
|
25688
|
-
},
|
|
25689
|
-
"webrtc.unregisterStream": {
|
|
25690
|
-
capName: "webrtc",
|
|
25691
|
-
capScope: "system",
|
|
25692
|
-
addonId: null,
|
|
25693
|
-
access: "delete"
|
|
25694
|
-
},
|
|
25695
26088
|
"webrtcSession.addIceCandidate": {
|
|
25696
26089
|
capName: "webrtc-session",
|
|
25697
26090
|
capScope: "device",
|