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