@camstack/addon-provider-velux 0.1.5 → 0.1.7
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
|
@@ -4642,7 +4642,7 @@ function preprocess(fn, schema) {
|
|
|
4642
4642
|
});
|
|
4643
4643
|
}
|
|
4644
4644
|
//#endregion
|
|
4645
|
-
//#region ../types/dist/sleep-
|
|
4645
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4646
4646
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4647
4647
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4648
4648
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4828,6 +4828,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4828
4828
|
*/
|
|
4829
4829
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4830
4830
|
/**
|
|
4831
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4832
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4833
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4834
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4835
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4836
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4837
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4838
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4839
|
+
* broker's long backstop reconcile query).
|
|
4840
|
+
*/
|
|
4841
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4842
|
+
/**
|
|
4831
4843
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4832
4844
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4833
4845
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5351,10 +5363,6 @@ function hydrateField(field, values) {
|
|
|
5351
5363
|
};
|
|
5352
5364
|
}
|
|
5353
5365
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5354
|
-
if (field.type === "password") return {
|
|
5355
|
-
...field,
|
|
5356
|
-
value: ""
|
|
5357
|
-
};
|
|
5358
5366
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5359
5367
|
return {
|
|
5360
5368
|
...field,
|
|
@@ -6738,10 +6746,25 @@ function method(input, output, options) {
|
|
|
6738
6746
|
timeoutMs: options?.timeoutMs
|
|
6739
6747
|
};
|
|
6740
6748
|
}
|
|
6749
|
+
/**
|
|
6750
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6751
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6752
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6753
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6754
|
+
*/
|
|
6755
|
+
function systemMethod(input, output, options) {
|
|
6756
|
+
return {
|
|
6757
|
+
...method(input, output, options),
|
|
6758
|
+
systemOnly: true
|
|
6759
|
+
};
|
|
6760
|
+
}
|
|
6741
6761
|
/** Shorthand to define an event schema */
|
|
6742
6762
|
function event(data) {
|
|
6743
6763
|
return { data };
|
|
6744
6764
|
}
|
|
6765
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6766
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6767
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6745
6768
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6746
6769
|
var VersionOutputSchema = object({ version: string() });
|
|
6747
6770
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6923,6 +6946,36 @@ var ModelFormatsSchema = object({
|
|
|
6923
6946
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6924
6947
|
pt: ModelFormatEntrySchema.optional()
|
|
6925
6948
|
});
|
|
6949
|
+
/**
|
|
6950
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6951
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6952
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6953
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6954
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6955
|
+
* to an `id`.
|
|
6956
|
+
*/
|
|
6957
|
+
var ModelVariantGroupSchema = object({
|
|
6958
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6959
|
+
family: string(),
|
|
6960
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6961
|
+
tier: string(),
|
|
6962
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6963
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6964
|
+
/**
|
|
6965
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6966
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6967
|
+
* future performance variants plug into.
|
|
6968
|
+
*/
|
|
6969
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6970
|
+
/**
|
|
6971
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6972
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6973
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6974
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6975
|
+
* the group so the selector can offer it as a variant axis.
|
|
6976
|
+
*/
|
|
6977
|
+
resolution: number().int().positive().optional()
|
|
6978
|
+
});
|
|
6926
6979
|
var ModelCatalogEntrySchema = object({
|
|
6927
6980
|
id: string(),
|
|
6928
6981
|
name: string(),
|
|
@@ -6952,7 +7005,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6952
7005
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6953
7006
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6954
7007
|
*/
|
|
6955
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7008
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7009
|
+
/**
|
|
7010
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7011
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7012
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7013
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7014
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7015
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7016
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7017
|
+
*/
|
|
7018
|
+
legacy: boolean().optional(),
|
|
7019
|
+
/**
|
|
7020
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7021
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7022
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7023
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7024
|
+
*/
|
|
7025
|
+
metrics: object({
|
|
7026
|
+
map50: number().optional(),
|
|
7027
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7028
|
+
}).optional(),
|
|
7029
|
+
/**
|
|
7030
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7031
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7032
|
+
* the retraining addon and any future commercial distribution.
|
|
7033
|
+
*/
|
|
7034
|
+
license: string().optional(),
|
|
7035
|
+
/**
|
|
7036
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7037
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7038
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7039
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7040
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7041
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7042
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7043
|
+
*/
|
|
7044
|
+
group: ModelVariantGroupSchema.optional()
|
|
6956
7045
|
});
|
|
6957
7046
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6958
7047
|
format: literal("openvino"),
|
|
@@ -7013,8 +7102,8 @@ var RecordingModeSchema = _enum([
|
|
|
7013
7102
|
"onAudioThreshold"
|
|
7014
7103
|
]);
|
|
7015
7104
|
/**
|
|
7016
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7017
|
-
* reads directly (never inferred from `rules`):
|
|
7105
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7106
|
+
* UI reads directly (never inferred from `rules`):
|
|
7018
7107
|
* - `off` — not recording.
|
|
7019
7108
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7020
7109
|
* with pre/post-buffer.
|
|
@@ -9177,26 +9266,13 @@ onBrightnessChanged: { data: object({
|
|
|
9177
9266
|
*/
|
|
9178
9267
|
runtimeState: BrightnessStatusSchema
|
|
9179
9268
|
};
|
|
9269
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9180
9270
|
var StreamFormatSchema = _enum([
|
|
9181
9271
|
"webrtc",
|
|
9182
9272
|
"hls",
|
|
9183
9273
|
"mjpeg",
|
|
9184
9274
|
"rtsp"
|
|
9185
9275
|
]);
|
|
9186
|
-
var StreamInfoSchema = object({
|
|
9187
|
-
streamId: string(),
|
|
9188
|
-
format: StreamFormatSchema,
|
|
9189
|
-
url: string().nullable(),
|
|
9190
|
-
active: boolean()
|
|
9191
|
-
});
|
|
9192
|
-
method(object({
|
|
9193
|
-
streamId: string(),
|
|
9194
|
-
sourceUrl: string(),
|
|
9195
|
-
codec: string().optional()
|
|
9196
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9197
|
-
streamId: string(),
|
|
9198
|
-
format: StreamFormatSchema
|
|
9199
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9200
9276
|
var RtspRestreamEntrySchema = object({
|
|
9201
9277
|
brokerId: string(),
|
|
9202
9278
|
url: string(),
|
|
@@ -10064,37 +10140,7 @@ var consumablesCapability = {
|
|
|
10064
10140
|
scope: "device",
|
|
10065
10141
|
deviceNative: true,
|
|
10066
10142
|
mode: "singleton",
|
|
10067
|
-
deviceTypes:
|
|
10068
|
-
DeviceType.Camera,
|
|
10069
|
-
DeviceType.Hub,
|
|
10070
|
-
DeviceType.Light,
|
|
10071
|
-
DeviceType.Siren,
|
|
10072
|
-
DeviceType.Switch,
|
|
10073
|
-
DeviceType.Sensor,
|
|
10074
|
-
DeviceType.Thermostat,
|
|
10075
|
-
DeviceType.Button,
|
|
10076
|
-
DeviceType.EventEmitter,
|
|
10077
|
-
DeviceType.Update,
|
|
10078
|
-
DeviceType.Generic,
|
|
10079
|
-
DeviceType.Notifier,
|
|
10080
|
-
DeviceType.Script,
|
|
10081
|
-
DeviceType.Automation,
|
|
10082
|
-
DeviceType.Lock,
|
|
10083
|
-
DeviceType.Cover,
|
|
10084
|
-
DeviceType.Valve,
|
|
10085
|
-
DeviceType.Humidifier,
|
|
10086
|
-
DeviceType.WaterHeater,
|
|
10087
|
-
DeviceType.Fan,
|
|
10088
|
-
DeviceType.MediaPlayer,
|
|
10089
|
-
DeviceType.AlarmPanel,
|
|
10090
|
-
DeviceType.Control,
|
|
10091
|
-
DeviceType.Presence,
|
|
10092
|
-
DeviceType.Weather,
|
|
10093
|
-
DeviceType.Vacuum,
|
|
10094
|
-
DeviceType.LawnMower,
|
|
10095
|
-
DeviceType.Container,
|
|
10096
|
-
DeviceType.Image
|
|
10097
|
-
],
|
|
10143
|
+
deviceTypes: Object.values(DeviceType),
|
|
10098
10144
|
deviceConfig: { ui: {
|
|
10099
10145
|
kind: "widget",
|
|
10100
10146
|
widgetId: "host/consumables-panel",
|
|
@@ -11552,7 +11598,7 @@ var BoundingBoxSchema = object({
|
|
|
11552
11598
|
w: number(),
|
|
11553
11599
|
h: number()
|
|
11554
11600
|
});
|
|
11555
|
-
|
|
11601
|
+
object({
|
|
11556
11602
|
class: string(),
|
|
11557
11603
|
originalClass: string(),
|
|
11558
11604
|
score: number(),
|
|
@@ -11687,7 +11733,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11687
11733
|
enabled: boolean(),
|
|
11688
11734
|
modelId: string(),
|
|
11689
11735
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11690
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11691
11736
|
group: string().optional(),
|
|
11692
11737
|
settings: record(string(), unknown()).optional()
|
|
11693
11738
|
}));
|
|
@@ -11712,7 +11757,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11712
11757
|
formats: record(string(), object({
|
|
11713
11758
|
downloaded: boolean(),
|
|
11714
11759
|
sizeMB: number()
|
|
11715
|
-
}))
|
|
11760
|
+
})),
|
|
11761
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11762
|
+
legacy: boolean().optional()
|
|
11716
11763
|
});
|
|
11717
11764
|
var ConfigFieldBridge = custom();
|
|
11718
11765
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11726,6 +11773,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11726
11773
|
defaultModelId: string(),
|
|
11727
11774
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11728
11775
|
enabledByDefault: boolean().optional(),
|
|
11776
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11729
11777
|
defaultConfidence: number(),
|
|
11730
11778
|
group: string().optional(),
|
|
11731
11779
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11742,11 +11790,6 @@ var PipelineSchemaSchema = object({
|
|
|
11742
11790
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11743
11791
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11744
11792
|
});
|
|
11745
|
-
var DetectorOutputSchema = object({
|
|
11746
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11747
|
-
inferenceMs: number(),
|
|
11748
|
-
modelId: string()
|
|
11749
|
-
});
|
|
11750
11793
|
var EngineProvisioningSchema = object({
|
|
11751
11794
|
runtimeId: _enum([
|
|
11752
11795
|
"onnx",
|
|
@@ -11763,15 +11806,42 @@ var EngineProvisioningSchema = object({
|
|
|
11763
11806
|
]),
|
|
11764
11807
|
progress: number().optional(),
|
|
11765
11808
|
error: string().optional(),
|
|
11766
|
-
nextRetryAt: number().optional()
|
|
11809
|
+
nextRetryAt: number().optional(),
|
|
11810
|
+
/**
|
|
11811
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11812
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11813
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11814
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11815
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11816
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11817
|
+
*/
|
|
11818
|
+
configIssues: array(string()).optional()
|
|
11767
11819
|
});
|
|
11768
11820
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11769
11821
|
addonId: string(),
|
|
11770
|
-
modelId: string(),
|
|
11822
|
+
modelId: string().optional(),
|
|
11771
11823
|
enabled: boolean().default(true),
|
|
11772
11824
|
children: array(PipelineStepInputSchema).optional(),
|
|
11773
11825
|
settings: record(string(), unknown()).optional()
|
|
11774
11826
|
}));
|
|
11827
|
+
var ModelSubstitutionSchema = object({
|
|
11828
|
+
addonId: string(),
|
|
11829
|
+
chosen: string(),
|
|
11830
|
+
running: string(),
|
|
11831
|
+
format: string()
|
|
11832
|
+
});
|
|
11833
|
+
var PipelineValidationIssueSchema = object({
|
|
11834
|
+
addonId: string(),
|
|
11835
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11836
|
+
detail: string()
|
|
11837
|
+
});
|
|
11838
|
+
var PipelineValidationResultSchema = object({
|
|
11839
|
+
ok: boolean(),
|
|
11840
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11841
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11842
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11843
|
+
format: string()
|
|
11844
|
+
});
|
|
11775
11845
|
var ReferenceImageEntrySchema = object({
|
|
11776
11846
|
filename: string(),
|
|
11777
11847
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11842,7 +11912,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11842
11912
|
})) }), object({ success: literal(true) }), {
|
|
11843
11913
|
kind: "mutation",
|
|
11844
11914
|
auth: "admin"
|
|
11845
|
-
}), method(
|
|
11915
|
+
}), method(object({ nodeId: string() }), object({
|
|
11916
|
+
success: literal(true),
|
|
11917
|
+
clearedDevices: number()
|
|
11918
|
+
}), {
|
|
11919
|
+
kind: "mutation",
|
|
11920
|
+
auth: "admin"
|
|
11921
|
+
}), 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({
|
|
11846
11922
|
name: string(),
|
|
11847
11923
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11848
11924
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11859,10 +11935,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11859
11935
|
modelId: string(),
|
|
11860
11936
|
format: ModelFormatSchema$1
|
|
11861
11937
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11862
|
-
addonId: string(),
|
|
11863
|
-
frame: FrameInputSchema,
|
|
11864
|
-
config: record(string(), unknown()).optional()
|
|
11865
|
-
}), DetectorOutputSchema), method(object({
|
|
11866
11938
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11867
11939
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11868
11940
|
frame: FrameInputSchema.optional(),
|
|
@@ -12041,6 +12113,25 @@ var zonesCapability = {
|
|
|
12041
12113
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12042
12114
|
};
|
|
12043
12115
|
/**
|
|
12116
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12117
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12118
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12119
|
+
* dims — no native resolution to plumb.
|
|
12120
|
+
*/
|
|
12121
|
+
var NativeCropBboxSchema = object({
|
|
12122
|
+
x: number(),
|
|
12123
|
+
y: number(),
|
|
12124
|
+
w: number(),
|
|
12125
|
+
h: number()
|
|
12126
|
+
});
|
|
12127
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12128
|
+
var NativeCropResultSchema = object({
|
|
12129
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12130
|
+
bytes: _instanceof(Uint8Array),
|
|
12131
|
+
width: number().int().positive(),
|
|
12132
|
+
height: number().int().positive()
|
|
12133
|
+
});
|
|
12134
|
+
/**
|
|
12044
12135
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12045
12136
|
* by both the Zod data schema (validation + default fallback) and
|
|
12046
12137
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12135,6 +12226,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12135
12226
|
kind: literal("remote-restream"),
|
|
12136
12227
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12137
12228
|
ownerNodeId: string(),
|
|
12229
|
+
/**
|
|
12230
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12231
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12232
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12233
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12234
|
+
*/
|
|
12235
|
+
ownerReachableHost: string().optional(),
|
|
12138
12236
|
/** Operator override for the owner host the runner dials. */
|
|
12139
12237
|
hubHostnameOverride: string().optional()
|
|
12140
12238
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12143,13 +12241,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12143
12241
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12144
12242
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12145
12243
|
*
|
|
12146
|
-
* Stateless-pipeline model: the
|
|
12147
|
-
*
|
|
12148
|
-
*
|
|
12149
|
-
*
|
|
12150
|
-
*
|
|
12151
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12152
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12244
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12245
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12246
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12247
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12248
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12153
12249
|
*/
|
|
12154
12250
|
var RunnerCameraConfigSchema = object({
|
|
12155
12251
|
deviceId: number(),
|
|
@@ -12200,14 +12296,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12200
12296
|
*/
|
|
12201
12297
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12202
12298
|
pipelineEnabled: boolean().default(true),
|
|
12203
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12204
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12205
12299
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12206
12300
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12207
12301
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12208
12302
|
audio: object({
|
|
12209
|
-
|
|
12210
|
-
modelId: string(),
|
|
12303
|
+
modelId: string().optional(),
|
|
12211
12304
|
enabled: boolean()
|
|
12212
12305
|
}).nullable().optional(),
|
|
12213
12306
|
/**
|
|
@@ -12294,7 +12387,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12294
12387
|
avgInferenceTimeMs: number(),
|
|
12295
12388
|
queueDepth: number()
|
|
12296
12389
|
});
|
|
12297
|
-
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())
|
|
12390
|
+
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({
|
|
12391
|
+
handle: FrameHandleSchema,
|
|
12392
|
+
bbox: NativeCropBboxSchema,
|
|
12393
|
+
maxWidth: number().int().positive().optional()
|
|
12394
|
+
}), NativeCropResultSchema.nullable());
|
|
12298
12395
|
/**
|
|
12299
12396
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12300
12397
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15225,7 +15322,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15225
15322
|
icon: string(),
|
|
15226
15323
|
path: string(),
|
|
15227
15324
|
remoteName: string(),
|
|
15228
|
-
bundle: string()
|
|
15325
|
+
bundle: string(),
|
|
15326
|
+
section: string().optional(),
|
|
15327
|
+
sectionLabel: string().optional()
|
|
15229
15328
|
});
|
|
15230
15329
|
var AddonPageInfoSchema = object({
|
|
15231
15330
|
addonId: string(),
|
|
@@ -15265,7 +15364,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15265
15364
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15266
15365
|
* without a separate filesystem stat.
|
|
15267
15366
|
*/
|
|
15268
|
-
bundle: string()
|
|
15367
|
+
bundle: string(),
|
|
15368
|
+
/**
|
|
15369
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15370
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15371
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15372
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15373
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15374
|
+
* "Addon Pages" group.
|
|
15375
|
+
*/
|
|
15376
|
+
section: string().optional(),
|
|
15377
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15378
|
+
sectionLabel: string().optional()
|
|
15269
15379
|
});
|
|
15270
15380
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15271
15381
|
var AddonHttpRouteSchema = object({
|
|
@@ -15481,6 +15591,17 @@ var WidgetMetadataSchema = object({
|
|
|
15481
15591
|
deviceContext: boolean().default(false),
|
|
15482
15592
|
integrationContext: boolean().default(false)
|
|
15483
15593
|
}),
|
|
15594
|
+
/**
|
|
15595
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15596
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15597
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15598
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15599
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15600
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15601
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15602
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15603
|
+
*/
|
|
15604
|
+
preAuth: boolean().optional().default(false),
|
|
15484
15605
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15485
15606
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15486
15607
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15782,6 +15903,66 @@ method(object({
|
|
|
15782
15903
|
password: string()
|
|
15783
15904
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15784
15905
|
/**
|
|
15906
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15907
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15908
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15909
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15910
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15911
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15912
|
+
*
|
|
15913
|
+
* A contribution is a discriminated union on `kind`:
|
|
15914
|
+
*
|
|
15915
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15916
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15917
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15918
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15919
|
+
* login page needs NO change.
|
|
15920
|
+
*
|
|
15921
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15922
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15923
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15924
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15925
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15926
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15927
|
+
*
|
|
15928
|
+
* Every contribution carries a `stage`:
|
|
15929
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15930
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15931
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15932
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15933
|
+
*
|
|
15934
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15935
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15936
|
+
* tRPC router.
|
|
15937
|
+
*/
|
|
15938
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15939
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15940
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15941
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15942
|
+
kind: literal("redirect"),
|
|
15943
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15944
|
+
id: string(),
|
|
15945
|
+
/** Operator-facing button label. */
|
|
15946
|
+
label: string(),
|
|
15947
|
+
/** lucide-react icon name. */
|
|
15948
|
+
icon: string().optional(),
|
|
15949
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15950
|
+
startUrl: string(),
|
|
15951
|
+
stage: LoginStageEnum
|
|
15952
|
+
}), object({
|
|
15953
|
+
kind: literal("widget"),
|
|
15954
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15955
|
+
id: string(),
|
|
15956
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15957
|
+
addonId: string(),
|
|
15958
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15959
|
+
bundle: string(),
|
|
15960
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15961
|
+
remote: WidgetRemoteSchema,
|
|
15962
|
+
stage: LoginStageEnum
|
|
15963
|
+
})]);
|
|
15964
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15965
|
+
/**
|
|
15785
15966
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15786
15967
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15787
15968
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17885,7 +18066,17 @@ var TrackSchema = object({
|
|
|
17885
18066
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17886
18067
|
totalDistance: number(),
|
|
17887
18068
|
state: TrackStateSchema,
|
|
17888
|
-
active: boolean()
|
|
18069
|
+
active: boolean(),
|
|
18070
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18071
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18072
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18073
|
+
importance: number().optional(),
|
|
18074
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18075
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18076
|
+
bestEventId: string().optional(),
|
|
18077
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18078
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18079
|
+
importanceReason: string().optional()
|
|
17889
18080
|
});
|
|
17890
18081
|
var BaseEventFields = {
|
|
17891
18082
|
id: string(),
|
|
@@ -17950,8 +18141,18 @@ var ObjectEventSchema = object({
|
|
|
17950
18141
|
frameHeight: number().optional(),
|
|
17951
18142
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
17952
18143
|
mediaKey: string().optional(),
|
|
18144
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18145
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18146
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18147
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18148
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18149
|
+
keyFrameMediaKey: string().optional(),
|
|
17953
18150
|
/** Populated by B5 (recording playback URL for this event). */
|
|
17954
|
-
mediaUrl: string().optional()
|
|
18151
|
+
mediaUrl: string().optional(),
|
|
18152
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18153
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18154
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18155
|
+
importance: number().optional()
|
|
17955
18156
|
});
|
|
17956
18157
|
var AudioEventSchema = object({
|
|
17957
18158
|
...BaseEventFields,
|
|
@@ -17975,7 +18176,8 @@ var MediaFileKindEnum = _enum([
|
|
|
17975
18176
|
"fullFrame",
|
|
17976
18177
|
"fullFrameBoxed",
|
|
17977
18178
|
"faceCrop",
|
|
17978
|
-
"plateCrop"
|
|
18179
|
+
"plateCrop",
|
|
18180
|
+
"keyFrame"
|
|
17979
18181
|
]);
|
|
17980
18182
|
var MediaFileSchema = object({
|
|
17981
18183
|
key: string(),
|
|
@@ -17996,6 +18198,32 @@ var DeviceEventQueryInput = object({
|
|
|
17996
18198
|
projection: _enum(["full", "slim"]).optional()
|
|
17997
18199
|
});
|
|
17998
18200
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18201
|
+
var KeyEventQueryInput = object({
|
|
18202
|
+
deviceId: number(),
|
|
18203
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18204
|
+
since: number(),
|
|
18205
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18206
|
+
until: number(),
|
|
18207
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18208
|
+
/** Drop tracks scoring below this importance. */
|
|
18209
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18210
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18211
|
+
classFilter: string().optional()
|
|
18212
|
+
});
|
|
18213
|
+
var KeyEventSchema = object({
|
|
18214
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18215
|
+
id: string(),
|
|
18216
|
+
trackId: string(),
|
|
18217
|
+
/** Track start time (firstSeen). */
|
|
18218
|
+
timestamp: number(),
|
|
18219
|
+
className: string(),
|
|
18220
|
+
label: string().optional(),
|
|
18221
|
+
importance: number(),
|
|
18222
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18223
|
+
bestEventId: string(),
|
|
18224
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18225
|
+
windowMs: number().optional()
|
|
18226
|
+
});
|
|
17999
18227
|
var TrackedDetectionSchema = object({
|
|
18000
18228
|
trackId: string(),
|
|
18001
18229
|
className: string(),
|
|
@@ -18025,7 +18253,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18025
18253
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18026
18254
|
kind: "mutation",
|
|
18027
18255
|
auth: "admin"
|
|
18028
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18256
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18029
18257
|
deviceId: number(),
|
|
18030
18258
|
since: number(),
|
|
18031
18259
|
until: number(),
|
|
@@ -18070,11 +18298,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18070
18298
|
timestamp: number()
|
|
18071
18299
|
});
|
|
18072
18300
|
var CameraPipelineConfigSchema = object({
|
|
18073
|
-
engine: PipelineEngineChoiceSchema,
|
|
18301
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18074
18302
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18075
18303
|
audio: object({
|
|
18076
|
-
engine: PipelineEngineChoiceSchema,
|
|
18077
|
-
modelId: string(),
|
|
18304
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18305
|
+
modelId: string().optional(),
|
|
18078
18306
|
enabled: boolean(),
|
|
18079
18307
|
settings: record(string(), unknown()).readonly().optional()
|
|
18080
18308
|
}).nullable().optional()
|
|
@@ -18089,7 +18317,7 @@ var PipelineTemplateSchema = object({
|
|
|
18089
18317
|
});
|
|
18090
18318
|
var AgentAddonConfigSchema = object({
|
|
18091
18319
|
enabled: boolean(),
|
|
18092
|
-
modelId: string(),
|
|
18320
|
+
modelId: string().optional(),
|
|
18093
18321
|
settings: record(string(), unknown()).readonly()
|
|
18094
18322
|
});
|
|
18095
18323
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18099,12 +18327,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18099
18327
|
detectWeight: number().positive().optional(),
|
|
18100
18328
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18101
18329
|
detect: boolean().optional(),
|
|
18102
|
-
/**
|
|
18330
|
+
/**
|
|
18331
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18332
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18333
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18334
|
+
* parse — no code reads it and no write path emits it.
|
|
18335
|
+
*/
|
|
18103
18336
|
decode: boolean().optional(),
|
|
18104
18337
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18105
18338
|
audio: boolean().optional(),
|
|
18106
18339
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18107
|
-
ingest: boolean().optional()
|
|
18340
|
+
ingest: boolean().optional(),
|
|
18341
|
+
/**
|
|
18342
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18343
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18344
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18345
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18346
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18347
|
+
*/
|
|
18348
|
+
reachableHost: string().optional()
|
|
18108
18349
|
});
|
|
18109
18350
|
var CameraPipelineForAgentSchema = object({
|
|
18110
18351
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18152,25 +18393,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18152
18393
|
assignedAt: number()
|
|
18153
18394
|
});
|
|
18154
18395
|
/**
|
|
18155
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18156
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18157
|
-
* → co-located with pipeline → capacity).
|
|
18158
|
-
*/
|
|
18159
|
-
var DecoderAssignmentSchema = object({
|
|
18160
|
-
deviceId: number(),
|
|
18161
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18162
|
-
decoderNodeId: string(),
|
|
18163
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18164
|
-
pinned: boolean(),
|
|
18165
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18166
|
-
reason: _enum([
|
|
18167
|
-
"manual",
|
|
18168
|
-
"co-located",
|
|
18169
|
-
"capacity",
|
|
18170
|
-
"hardware-affinity"
|
|
18171
|
-
])
|
|
18172
|
-
});
|
|
18173
|
-
/**
|
|
18174
18396
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18175
18397
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18176
18398
|
*/
|
|
@@ -18210,6 +18432,15 @@ var GlobalMetricsSchema = object({
|
|
|
18210
18432
|
* capability providers.
|
|
18211
18433
|
*/
|
|
18212
18434
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18435
|
+
/**
|
|
18436
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18437
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18438
|
+
*/
|
|
18439
|
+
var IngestOwnerSchema = object({
|
|
18440
|
+
ownerNodeId: string(),
|
|
18441
|
+
reachableHost: string().optional(),
|
|
18442
|
+
configIssue: string().optional()
|
|
18443
|
+
});
|
|
18213
18444
|
/** Source block — always present; derives from the stream catalog. */
|
|
18214
18445
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18215
18446
|
camStreamId: string(),
|
|
@@ -18224,6 +18455,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18224
18455
|
detectionNodeId: string().nullable(),
|
|
18225
18456
|
decoderNodeId: string().nullable(),
|
|
18226
18457
|
audioNodeId: string().nullable(),
|
|
18458
|
+
/**
|
|
18459
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18460
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18461
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18462
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18463
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18464
|
+
*/
|
|
18465
|
+
sourceNodeId: string().nullable(),
|
|
18227
18466
|
pinned: object({
|
|
18228
18467
|
detection: boolean(),
|
|
18229
18468
|
decoder: boolean(),
|
|
@@ -18356,16 +18595,7 @@ method(object({
|
|
|
18356
18595
|
}), object({ success: literal(true) }), {
|
|
18357
18596
|
kind: "mutation",
|
|
18358
18597
|
auth: "admin"
|
|
18359
|
-
}), method(object({
|
|
18360
|
-
deviceId: number(),
|
|
18361
|
-
nodeId: string()
|
|
18362
|
-
}), _void(), {
|
|
18363
|
-
kind: "mutation",
|
|
18364
|
-
auth: "admin"
|
|
18365
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18366
|
-
kind: "mutation",
|
|
18367
|
-
auth: "admin"
|
|
18368
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18598
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18369
18599
|
deviceId: number(),
|
|
18370
18600
|
nodeId: string()
|
|
18371
18601
|
}), object({ success: literal(true) }), {
|
|
@@ -18386,10 +18616,7 @@ method(object({
|
|
|
18386
18616
|
nodeId: string(),
|
|
18387
18617
|
pinned: boolean(),
|
|
18388
18618
|
assignedAt: number()
|
|
18389
|
-
}))), method(object({
|
|
18390
|
-
deviceId: number(),
|
|
18391
|
-
pipelineNodeId: string().optional()
|
|
18392
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18619
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18393
18620
|
nodeId: string(),
|
|
18394
18621
|
settings: AgentPipelineSettingsSchema
|
|
18395
18622
|
})).readonly()), method(object({
|
|
@@ -18419,12 +18646,26 @@ method(object({
|
|
|
18419
18646
|
}), method(object({
|
|
18420
18647
|
agentNodeId: string(),
|
|
18421
18648
|
detect: boolean().nullable().optional(),
|
|
18422
|
-
decode: boolean().nullable().optional(),
|
|
18423
18649
|
audio: boolean().nullable().optional(),
|
|
18424
18650
|
ingest: boolean().nullable().optional()
|
|
18425
18651
|
}), object({ success: literal(true) }), {
|
|
18426
18652
|
kind: "mutation",
|
|
18427
18653
|
auth: "admin"
|
|
18654
|
+
}), method(object({
|
|
18655
|
+
agentNodeId: string(),
|
|
18656
|
+
reachableHost: string().nullable()
|
|
18657
|
+
}), object({ success: literal(true) }), {
|
|
18658
|
+
kind: "mutation",
|
|
18659
|
+
auth: "admin"
|
|
18660
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18661
|
+
success: literal(true),
|
|
18662
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18663
|
+
effectiveModelId: string().nullable(),
|
|
18664
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18665
|
+
clearedCameraOverrides: number()
|
|
18666
|
+
}), {
|
|
18667
|
+
kind: "mutation",
|
|
18668
|
+
auth: "admin"
|
|
18428
18669
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18429
18670
|
deviceId: number(),
|
|
18430
18671
|
addonId: string(),
|
|
@@ -18469,22 +18710,131 @@ method(object({
|
|
|
18469
18710
|
kind: "mutation",
|
|
18470
18711
|
auth: "admin"
|
|
18471
18712
|
});
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18713
|
+
/**
|
|
18714
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18715
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18716
|
+
* agents).
|
|
18717
|
+
*
|
|
18718
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18719
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18720
|
+
* version describes the node. Updates install into
|
|
18721
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18722
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18723
|
+
*
|
|
18724
|
+
* Providers:
|
|
18725
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18726
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18727
|
+
* unpinned calls.
|
|
18728
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18729
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18730
|
+
* `$hub.registerNode` manifest.
|
|
18731
|
+
*
|
|
18732
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18733
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18734
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18735
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18736
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18737
|
+
*
|
|
18738
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18739
|
+
*/
|
|
18740
|
+
/**
|
|
18741
|
+
* Where the running hub's code was loaded from:
|
|
18742
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18743
|
+
* plain resolution and runtime updates are refused.
|
|
18744
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18745
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18746
|
+
*/
|
|
18747
|
+
var ServerBootModeSchema = _enum([
|
|
18748
|
+
"workspace",
|
|
18749
|
+
"baked",
|
|
18750
|
+
"data-root"
|
|
18751
|
+
]);
|
|
18752
|
+
/**
|
|
18753
|
+
* Update lifecycle state:
|
|
18754
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18755
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18756
|
+
* restarted onto it (still running the OLD version).
|
|
18757
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18758
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18759
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18760
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18761
|
+
*/
|
|
18762
|
+
var ServerUpdateStateSchema = _enum([
|
|
18763
|
+
"idle",
|
|
18764
|
+
"checking",
|
|
18765
|
+
"staging",
|
|
18766
|
+
"pending-restart",
|
|
18767
|
+
"awaiting-confirmation"
|
|
18768
|
+
]);
|
|
18769
|
+
var ServerRollbackInfoSchema = object({
|
|
18770
|
+
/** The version that failed (or was manually rolled back). */
|
|
18771
|
+
fromVersion: string(),
|
|
18772
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18773
|
+
toVersion: string().nullable(),
|
|
18774
|
+
atMs: number(),
|
|
18775
|
+
reason: string()
|
|
18478
18776
|
});
|
|
18479
|
-
var
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18777
|
+
var ServerPackageStatusSchema = object({
|
|
18778
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18779
|
+
packageName: string(),
|
|
18780
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18781
|
+
runningVersion: string().nullable(),
|
|
18782
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18783
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18784
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18785
|
+
activeVersion: string().nullable(),
|
|
18786
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18787
|
+
previousVersion: string().nullable(),
|
|
18788
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18789
|
+
seedVersion: string().nullable(),
|
|
18790
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18791
|
+
latestVersion: string().nullable(),
|
|
18792
|
+
updateAvailable: boolean(),
|
|
18793
|
+
bootMode: ServerBootModeSchema,
|
|
18794
|
+
updateState: ServerUpdateStateSchema,
|
|
18795
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18796
|
+
pendingVersion: string().nullable(),
|
|
18797
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18798
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18799
|
+
/**
|
|
18800
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18801
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18802
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18803
|
+
*/
|
|
18804
|
+
stateFileCorrupt: boolean(),
|
|
18805
|
+
lastCheckedAtMs: number().nullable()
|
|
18806
|
+
});
|
|
18807
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18808
|
+
packageName: string(),
|
|
18809
|
+
runningVersion: string().nullable(),
|
|
18810
|
+
latestVersion: string().nullable(),
|
|
18811
|
+
updateAvailable: boolean(),
|
|
18812
|
+
checkedAtMs: number(),
|
|
18813
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18814
|
+
error: string().nullable()
|
|
18815
|
+
});
|
|
18816
|
+
var ServerUpdateActionResultSchema = object({
|
|
18817
|
+
accepted: boolean(),
|
|
18818
|
+
targetVersion: string().nullable(),
|
|
18819
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18820
|
+
restarting: boolean(),
|
|
18821
|
+
message: string()
|
|
18822
|
+
});
|
|
18823
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18824
|
+
kind: "mutation",
|
|
18825
|
+
auth: "admin"
|
|
18826
|
+
}), method(object({
|
|
18827
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18828
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18829
|
+
kind: "mutation",
|
|
18830
|
+
auth: "admin"
|
|
18831
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18832
|
+
kind: "mutation",
|
|
18833
|
+
auth: "admin"
|
|
18834
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18835
|
+
kind: "mutation",
|
|
18836
|
+
auth: "admin"
|
|
18483
18837
|
});
|
|
18484
|
-
method(object({
|
|
18485
|
-
deviceId: number(),
|
|
18486
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18487
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18488
18838
|
/**
|
|
18489
18839
|
* Query filter for settings-store collections.
|
|
18490
18840
|
*/
|
|
@@ -18637,9 +18987,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18637
18987
|
/**
|
|
18638
18988
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18639
18989
|
*
|
|
18640
|
-
*
|
|
18641
|
-
*
|
|
18642
|
-
*
|
|
18990
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
18991
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
18992
|
+
* prebuffer fallback.
|
|
18643
18993
|
*/
|
|
18644
18994
|
var SnapshotImageSchema = object({
|
|
18645
18995
|
base64: string(),
|
|
@@ -18670,11 +19020,12 @@ DeviceType.Camera, method(object({
|
|
|
18670
19020
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18671
19021
|
kind: "mutation",
|
|
18672
19022
|
auth: "admin"
|
|
18673
|
-
})
|
|
18674
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19023
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18675
19024
|
deviceId: number(),
|
|
18676
|
-
|
|
18677
|
-
|
|
19025
|
+
lastCapturedAt: number().nullable(),
|
|
19026
|
+
cacheAgeMs: number().nullable(),
|
|
19027
|
+
etag: string().nullable()
|
|
19028
|
+
})));
|
|
18678
19029
|
/**
|
|
18679
19030
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18680
19031
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -18925,10 +19276,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
18925
19276
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
18926
19277
|
* the assertion, bumps the credential counter, returns ok.
|
|
18927
19278
|
*
|
|
19279
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19280
|
+
* passkey IS the primary factor, no password leg:
|
|
19281
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19282
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19283
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19284
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19285
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19286
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19287
|
+
* resolves the credential by the response's credential id,
|
|
19288
|
+
* verifies the assertion against the stored challenge + that
|
|
19289
|
+
* credential's public key/counter, and returns the OWNING
|
|
19290
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19291
|
+
*
|
|
18928
19292
|
* 3. Management:
|
|
18929
19293
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
18930
19294
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
18931
19295
|
*
|
|
19296
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19297
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19298
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19299
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19300
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19301
|
+
* row ⇒ `enabled: false`).
|
|
19302
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19303
|
+
* the providing addon beside its credentials.
|
|
19304
|
+
*
|
|
18932
19305
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
18933
19306
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
18934
19307
|
* the cap to non-admins.
|
|
@@ -18971,6 +19344,17 @@ method(object({
|
|
|
18971
19344
|
}), object({ verified: boolean() }), {
|
|
18972
19345
|
kind: "mutation",
|
|
18973
19346
|
access: "view"
|
|
19347
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19348
|
+
kind: "mutation",
|
|
19349
|
+
access: "view"
|
|
19350
|
+
}), method(object({
|
|
19351
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19352
|
+
response: record(string(), unknown()) }), object({
|
|
19353
|
+
verified: boolean(),
|
|
19354
|
+
userId: string().nullable()
|
|
19355
|
+
}), {
|
|
19356
|
+
kind: "mutation",
|
|
19357
|
+
access: "view"
|
|
18974
19358
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
18975
19359
|
userId: string(),
|
|
18976
19360
|
credentialId: string()
|
|
@@ -18978,6 +19362,13 @@ method(object({
|
|
|
18978
19362
|
kind: "mutation",
|
|
18979
19363
|
auth: "admin",
|
|
18980
19364
|
access: "delete"
|
|
19365
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19366
|
+
userId: string(),
|
|
19367
|
+
enabled: boolean()
|
|
19368
|
+
}), object({ success: literal(true) }), {
|
|
19369
|
+
kind: "mutation",
|
|
19370
|
+
auth: "admin",
|
|
19371
|
+
access: "create"
|
|
18981
19372
|
});
|
|
18982
19373
|
/**
|
|
18983
19374
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19035,9 +19426,10 @@ method(object({
|
|
|
19035
19426
|
auth: "admin"
|
|
19036
19427
|
});
|
|
19037
19428
|
/**
|
|
19038
|
-
* Optional client-side hints sent at session creation to help the
|
|
19039
|
-
*
|
|
19040
|
-
*
|
|
19429
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19430
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19431
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19432
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19041
19433
|
*/
|
|
19042
19434
|
var webrtcClientHintsSchema = object({
|
|
19043
19435
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19048,22 +19440,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19048
19440
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19049
19441
|
prefersTier: string().optional()
|
|
19050
19442
|
}).partial();
|
|
19051
|
-
method(object({
|
|
19052
|
-
streamId: string(),
|
|
19053
|
-
sdpOffer: string()
|
|
19054
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19055
|
-
streamId: string(),
|
|
19056
|
-
codec: string()
|
|
19057
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19058
|
-
streamId: string(),
|
|
19059
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19060
|
-
}), object({
|
|
19061
|
-
sessionId: string(),
|
|
19062
|
-
sdpOffer: string()
|
|
19063
|
-
}), { kind: "mutation" }), method(object({
|
|
19064
|
-
sessionId: string(),
|
|
19065
|
-
sdpAnswer: string()
|
|
19066
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19067
19443
|
/**
|
|
19068
19444
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19069
19445
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19550,7 +19926,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
19550
19926
|
latestVersion: string().nullable(),
|
|
19551
19927
|
hasUpdate: boolean(),
|
|
19552
19928
|
/** Optional manifest description for the row tooltip. */
|
|
19553
|
-
description: string().optional()
|
|
19929
|
+
description: string().optional(),
|
|
19930
|
+
/**
|
|
19931
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
19932
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
19933
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
19934
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
19935
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
19936
|
+
*/
|
|
19937
|
+
buildId: string().nullable()
|
|
19554
19938
|
});
|
|
19555
19939
|
var LogStreamEntrySchema = object({
|
|
19556
19940
|
timestamp: string(),
|
|
@@ -19786,7 +20170,17 @@ var FaceInfoSchema = object({
|
|
|
19786
20170
|
recognizedIdentityId: string().optional(),
|
|
19787
20171
|
identityName: string().optional(),
|
|
19788
20172
|
assigned: boolean(),
|
|
19789
|
-
base64: string().optional()
|
|
20173
|
+
base64: string().optional(),
|
|
20174
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20175
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20176
|
+
* legacy rows written before design B. */
|
|
20177
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20178
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20179
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20180
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20181
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20182
|
+
* back to the inline `base64` face crop. */
|
|
20183
|
+
keyFrameMediaKey: string().optional()
|
|
19790
20184
|
});
|
|
19791
20185
|
var FaceFilterEnum = _enum([
|
|
19792
20186
|
"unassigned",
|
|
@@ -20483,6 +20877,16 @@ var TopologyCategorySchema = object({
|
|
|
20483
20877
|
healthy: number(),
|
|
20484
20878
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20485
20879
|
});
|
|
20880
|
+
/**
|
|
20881
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20882
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20883
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20884
|
+
* rows and pre-phase-2 nodes report none.
|
|
20885
|
+
*/
|
|
20886
|
+
var TopologyRootPackageSchema = object({
|
|
20887
|
+
name: string(),
|
|
20888
|
+
version: string()
|
|
20889
|
+
});
|
|
20486
20890
|
var TopologyNodeSchema = object({
|
|
20487
20891
|
id: string(),
|
|
20488
20892
|
name: string(),
|
|
@@ -20506,7 +20910,8 @@ var TopologyNodeSchema = object({
|
|
|
20506
20910
|
status: string()
|
|
20507
20911
|
})).readonly(),
|
|
20508
20912
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20509
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20913
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20914
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20510
20915
|
});
|
|
20511
20916
|
var CapUsageEdgeSchema = object({
|
|
20512
20917
|
callerAddonId: string(),
|
|
@@ -23306,6 +23711,12 @@ Object.freeze({
|
|
|
23306
23711
|
addonId: null,
|
|
23307
23712
|
access: "create"
|
|
23308
23713
|
},
|
|
23714
|
+
"loginMethod.getLoginMethods": {
|
|
23715
|
+
capName: "login-method",
|
|
23716
|
+
capScope: "system",
|
|
23717
|
+
addonId: null,
|
|
23718
|
+
access: "view"
|
|
23719
|
+
},
|
|
23309
23720
|
"mediaPlayer.next": {
|
|
23310
23721
|
capName: "media-player",
|
|
23311
23722
|
capScope: "device",
|
|
@@ -23888,6 +24299,12 @@ Object.freeze({
|
|
|
23888
24299
|
addonId: null,
|
|
23889
24300
|
access: "view"
|
|
23890
24301
|
},
|
|
24302
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24303
|
+
capName: "pipeline-analytics",
|
|
24304
|
+
capScope: "device",
|
|
24305
|
+
addonId: null,
|
|
24306
|
+
access: "view"
|
|
24307
|
+
},
|
|
23891
24308
|
"pipelineAnalytics.getMotionEvents": {
|
|
23892
24309
|
capName: "pipeline-analytics",
|
|
23893
24310
|
capScope: "device",
|
|
@@ -23936,23 +24353,23 @@ Object.freeze({
|
|
|
23936
24353
|
addonId: null,
|
|
23937
24354
|
access: "create"
|
|
23938
24355
|
},
|
|
23939
|
-
"pipelineExecutor.
|
|
24356
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
23940
24357
|
capName: "pipeline-executor",
|
|
23941
24358
|
capScope: "system",
|
|
23942
24359
|
addonId: null,
|
|
23943
24360
|
access: "delete"
|
|
23944
24361
|
},
|
|
23945
|
-
"pipelineExecutor.
|
|
24362
|
+
"pipelineExecutor.deleteModel": {
|
|
23946
24363
|
capName: "pipeline-executor",
|
|
23947
24364
|
capScope: "system",
|
|
23948
24365
|
addonId: null,
|
|
23949
24366
|
access: "delete"
|
|
23950
24367
|
},
|
|
23951
|
-
"pipelineExecutor.
|
|
24368
|
+
"pipelineExecutor.deleteTemplate": {
|
|
23952
24369
|
capName: "pipeline-executor",
|
|
23953
24370
|
capScope: "system",
|
|
23954
24371
|
addonId: null,
|
|
23955
|
-
access: "
|
|
24372
|
+
access: "delete"
|
|
23956
24373
|
},
|
|
23957
24374
|
"pipelineExecutor.downloadModel": {
|
|
23958
24375
|
capName: "pipeline-executor",
|
|
@@ -24146,13 +24563,13 @@ Object.freeze({
|
|
|
24146
24563
|
addonId: null,
|
|
24147
24564
|
access: "create"
|
|
24148
24565
|
},
|
|
24149
|
-
"
|
|
24150
|
-
capName: "pipeline-
|
|
24566
|
+
"pipelineExecutor.validatePipeline": {
|
|
24567
|
+
capName: "pipeline-executor",
|
|
24151
24568
|
capScope: "system",
|
|
24152
24569
|
addonId: null,
|
|
24153
|
-
access: "
|
|
24570
|
+
access: "view"
|
|
24154
24571
|
},
|
|
24155
|
-
"pipelineOrchestrator.
|
|
24572
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24156
24573
|
capName: "pipeline-orchestrator",
|
|
24157
24574
|
capScope: "system",
|
|
24158
24575
|
addonId: null,
|
|
@@ -24236,19 +24653,13 @@ Object.freeze({
|
|
|
24236
24653
|
addonId: null,
|
|
24237
24654
|
access: "view"
|
|
24238
24655
|
},
|
|
24239
|
-
"pipelineOrchestrator.
|
|
24240
|
-
capName: "pipeline-orchestrator",
|
|
24241
|
-
capScope: "system",
|
|
24242
|
-
addonId: null,
|
|
24243
|
-
access: "view"
|
|
24244
|
-
},
|
|
24245
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24656
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24246
24657
|
capName: "pipeline-orchestrator",
|
|
24247
24658
|
capScope: "system",
|
|
24248
24659
|
addonId: null,
|
|
24249
24660
|
access: "view"
|
|
24250
24661
|
},
|
|
24251
|
-
"pipelineOrchestrator.
|
|
24662
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24252
24663
|
capName: "pipeline-orchestrator",
|
|
24253
24664
|
capScope: "system",
|
|
24254
24665
|
addonId: null,
|
|
@@ -24290,6 +24701,12 @@ Object.freeze({
|
|
|
24290
24701
|
addonId: null,
|
|
24291
24702
|
access: "delete"
|
|
24292
24703
|
},
|
|
24704
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24705
|
+
capName: "pipeline-orchestrator",
|
|
24706
|
+
capScope: "system",
|
|
24707
|
+
addonId: null,
|
|
24708
|
+
access: "delete"
|
|
24709
|
+
},
|
|
24293
24710
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24294
24711
|
capName: "pipeline-orchestrator",
|
|
24295
24712
|
capScope: "system",
|
|
@@ -24326,37 +24743,37 @@ Object.freeze({
|
|
|
24326
24743
|
addonId: null,
|
|
24327
24744
|
access: "create"
|
|
24328
24745
|
},
|
|
24329
|
-
"pipelineOrchestrator.
|
|
24746
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24330
24747
|
capName: "pipeline-orchestrator",
|
|
24331
24748
|
capScope: "system",
|
|
24332
24749
|
addonId: null,
|
|
24333
24750
|
access: "create"
|
|
24334
24751
|
},
|
|
24335
|
-
"pipelineOrchestrator.
|
|
24752
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24336
24753
|
capName: "pipeline-orchestrator",
|
|
24337
24754
|
capScope: "system",
|
|
24338
24755
|
addonId: null,
|
|
24339
24756
|
access: "create"
|
|
24340
24757
|
},
|
|
24341
|
-
"pipelineOrchestrator.
|
|
24758
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24342
24759
|
capName: "pipeline-orchestrator",
|
|
24343
24760
|
capScope: "system",
|
|
24344
24761
|
addonId: null,
|
|
24345
24762
|
access: "create"
|
|
24346
24763
|
},
|
|
24347
|
-
"pipelineOrchestrator.
|
|
24764
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24348
24765
|
capName: "pipeline-orchestrator",
|
|
24349
24766
|
capScope: "system",
|
|
24350
24767
|
addonId: null,
|
|
24351
24768
|
access: "create"
|
|
24352
24769
|
},
|
|
24353
|
-
"pipelineOrchestrator.
|
|
24770
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24354
24771
|
capName: "pipeline-orchestrator",
|
|
24355
24772
|
capScope: "system",
|
|
24356
24773
|
addonId: null,
|
|
24357
24774
|
access: "create"
|
|
24358
24775
|
},
|
|
24359
|
-
"pipelineOrchestrator.
|
|
24776
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24360
24777
|
capName: "pipeline-orchestrator",
|
|
24361
24778
|
capScope: "system",
|
|
24362
24779
|
addonId: null,
|
|
@@ -24416,6 +24833,12 @@ Object.freeze({
|
|
|
24416
24833
|
addonId: null,
|
|
24417
24834
|
access: "view"
|
|
24418
24835
|
},
|
|
24836
|
+
"pipelineRunner.getNativeCrop": {
|
|
24837
|
+
capName: "pipeline-runner",
|
|
24838
|
+
capScope: "system",
|
|
24839
|
+
addonId: null,
|
|
24840
|
+
access: "view"
|
|
24841
|
+
},
|
|
24419
24842
|
"pipelineRunner.reportMotion": {
|
|
24420
24843
|
capName: "pipeline-runner",
|
|
24421
24844
|
capScope: "system",
|
|
@@ -24656,33 +25079,45 @@ Object.freeze({
|
|
|
24656
25079
|
addonId: null,
|
|
24657
25080
|
access: "create"
|
|
24658
25081
|
},
|
|
24659
|
-
"
|
|
24660
|
-
capName: "
|
|
25082
|
+
"scriptRunner.run": {
|
|
25083
|
+
capName: "script-runner",
|
|
25084
|
+
capScope: "device",
|
|
25085
|
+
addonId: null,
|
|
25086
|
+
access: "create"
|
|
25087
|
+
},
|
|
25088
|
+
"scriptRunner.stop": {
|
|
25089
|
+
capName: "script-runner",
|
|
25090
|
+
capScope: "device",
|
|
25091
|
+
addonId: null,
|
|
25092
|
+
access: "create"
|
|
25093
|
+
},
|
|
25094
|
+
"serverManagement.applyServerUpdate": {
|
|
25095
|
+
capName: "server-management",
|
|
24661
25096
|
capScope: "system",
|
|
24662
25097
|
addonId: null,
|
|
24663
|
-
access: "
|
|
25098
|
+
access: "create"
|
|
24664
25099
|
},
|
|
24665
|
-
"
|
|
24666
|
-
capName: "
|
|
25100
|
+
"serverManagement.checkServerUpdate": {
|
|
25101
|
+
capName: "server-management",
|
|
24667
25102
|
capScope: "system",
|
|
24668
25103
|
addonId: null,
|
|
24669
25104
|
access: "create"
|
|
24670
25105
|
},
|
|
24671
|
-
"
|
|
24672
|
-
capName: "
|
|
25106
|
+
"serverManagement.getServerPackageStatus": {
|
|
25107
|
+
capName: "server-management",
|
|
24673
25108
|
capScope: "system",
|
|
24674
25109
|
addonId: null,
|
|
24675
|
-
access: "
|
|
25110
|
+
access: "view"
|
|
24676
25111
|
},
|
|
24677
|
-
"
|
|
24678
|
-
capName: "
|
|
24679
|
-
capScope: "
|
|
25112
|
+
"serverManagement.restartServer": {
|
|
25113
|
+
capName: "server-management",
|
|
25114
|
+
capScope: "system",
|
|
24680
25115
|
addonId: null,
|
|
24681
25116
|
access: "create"
|
|
24682
25117
|
},
|
|
24683
|
-
"
|
|
24684
|
-
capName: "
|
|
24685
|
-
capScope: "
|
|
25118
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25119
|
+
capName: "server-management",
|
|
25120
|
+
capScope: "system",
|
|
24686
25121
|
addonId: null,
|
|
24687
25122
|
access: "create"
|
|
24688
25123
|
},
|
|
@@ -24770,23 +25205,17 @@ Object.freeze({
|
|
|
24770
25205
|
addonId: null,
|
|
24771
25206
|
access: "view"
|
|
24772
25207
|
},
|
|
24773
|
-
"snapshot.
|
|
25208
|
+
"snapshot.getSnapshotOverview": {
|
|
24774
25209
|
capName: "snapshot",
|
|
24775
25210
|
capScope: "device",
|
|
24776
25211
|
addonId: null,
|
|
24777
|
-
access: "create"
|
|
24778
|
-
},
|
|
24779
|
-
"snapshotProvider.getSnapshot": {
|
|
24780
|
-
capName: "snapshot-provider",
|
|
24781
|
-
capScope: "system",
|
|
24782
|
-
addonId: null,
|
|
24783
25212
|
access: "view"
|
|
24784
25213
|
},
|
|
24785
|
-
"
|
|
24786
|
-
capName: "snapshot
|
|
24787
|
-
capScope: "
|
|
25214
|
+
"snapshot.invalidateCache": {
|
|
25215
|
+
capName: "snapshot",
|
|
25216
|
+
capScope: "device",
|
|
24788
25217
|
addonId: null,
|
|
24789
|
-
access: "
|
|
25218
|
+
access: "create"
|
|
24790
25219
|
},
|
|
24791
25220
|
"ssoBridge.signBridgeToken": {
|
|
24792
25221
|
capName: "sso-bridge",
|
|
@@ -25214,30 +25643,6 @@ Object.freeze({
|
|
|
25214
25643
|
addonId: null,
|
|
25215
25644
|
access: "view"
|
|
25216
25645
|
},
|
|
25217
|
-
"streamingEngine.getStreamUrl": {
|
|
25218
|
-
capName: "streaming-engine",
|
|
25219
|
-
capScope: "system",
|
|
25220
|
-
addonId: null,
|
|
25221
|
-
access: "view"
|
|
25222
|
-
},
|
|
25223
|
-
"streamingEngine.listStreams": {
|
|
25224
|
-
capName: "streaming-engine",
|
|
25225
|
-
capScope: "system",
|
|
25226
|
-
addonId: null,
|
|
25227
|
-
access: "view"
|
|
25228
|
-
},
|
|
25229
|
-
"streamingEngine.registerStream": {
|
|
25230
|
-
capName: "streaming-engine",
|
|
25231
|
-
capScope: "system",
|
|
25232
|
-
addonId: null,
|
|
25233
|
-
access: "create"
|
|
25234
|
-
},
|
|
25235
|
-
"streamingEngine.unregisterStream": {
|
|
25236
|
-
capName: "streaming-engine",
|
|
25237
|
-
capScope: "system",
|
|
25238
|
-
addonId: null,
|
|
25239
|
-
access: "delete"
|
|
25240
|
-
},
|
|
25241
25646
|
"streamParams.getConfigSchema": {
|
|
25242
25647
|
capName: "stream-params",
|
|
25243
25648
|
capScope: "device",
|
|
@@ -25484,6 +25889,12 @@ Object.freeze({
|
|
|
25484
25889
|
addonId: null,
|
|
25485
25890
|
access: "view"
|
|
25486
25891
|
},
|
|
25892
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25893
|
+
capName: "user-passkeys",
|
|
25894
|
+
capScope: "system",
|
|
25895
|
+
addonId: null,
|
|
25896
|
+
access: "view"
|
|
25897
|
+
},
|
|
25487
25898
|
"userPasskeys.beginRegistration": {
|
|
25488
25899
|
capName: "user-passkeys",
|
|
25489
25900
|
capScope: "system",
|
|
@@ -25496,12 +25907,24 @@ Object.freeze({
|
|
|
25496
25907
|
addonId: null,
|
|
25497
25908
|
access: "view"
|
|
25498
25909
|
},
|
|
25910
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25911
|
+
capName: "user-passkeys",
|
|
25912
|
+
capScope: "system",
|
|
25913
|
+
addonId: null,
|
|
25914
|
+
access: "view"
|
|
25915
|
+
},
|
|
25499
25916
|
"userPasskeys.finishRegistration": {
|
|
25500
25917
|
capName: "user-passkeys",
|
|
25501
25918
|
capScope: "system",
|
|
25502
25919
|
addonId: null,
|
|
25503
25920
|
access: "create"
|
|
25504
25921
|
},
|
|
25922
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25923
|
+
capName: "user-passkeys",
|
|
25924
|
+
capScope: "system",
|
|
25925
|
+
addonId: null,
|
|
25926
|
+
access: "view"
|
|
25927
|
+
},
|
|
25505
25928
|
"userPasskeys.listPasskeys": {
|
|
25506
25929
|
capName: "user-passkeys",
|
|
25507
25930
|
capScope: "system",
|
|
@@ -25514,6 +25937,12 @@ Object.freeze({
|
|
|
25514
25937
|
addonId: null,
|
|
25515
25938
|
access: "delete"
|
|
25516
25939
|
},
|
|
25940
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
25941
|
+
capName: "user-passkeys",
|
|
25942
|
+
capScope: "system",
|
|
25943
|
+
addonId: null,
|
|
25944
|
+
access: "create"
|
|
25945
|
+
},
|
|
25517
25946
|
"vacuumControl.locate": {
|
|
25518
25947
|
capName: "vacuum-control",
|
|
25519
25948
|
capScope: "device",
|
|
@@ -25586,6 +26015,18 @@ Object.freeze({
|
|
|
25586
26015
|
addonId: null,
|
|
25587
26016
|
access: "view"
|
|
25588
26017
|
},
|
|
26018
|
+
"viewerUi.getStaticDir": {
|
|
26019
|
+
capName: "viewer-ui",
|
|
26020
|
+
capScope: "system",
|
|
26021
|
+
addonId: null,
|
|
26022
|
+
access: "view"
|
|
26023
|
+
},
|
|
26024
|
+
"viewerUi.getVersion": {
|
|
26025
|
+
capName: "viewer-ui",
|
|
26026
|
+
capScope: "system",
|
|
26027
|
+
addonId: null,
|
|
26028
|
+
access: "view"
|
|
26029
|
+
},
|
|
25589
26030
|
"waterHeater.setAway": {
|
|
25590
26031
|
capName: "water-heater",
|
|
25591
26032
|
capScope: "device",
|
|
@@ -25604,54 +26045,6 @@ Object.freeze({
|
|
|
25604
26045
|
addonId: null,
|
|
25605
26046
|
access: "create"
|
|
25606
26047
|
},
|
|
25607
|
-
"webrtc.closeSession": {
|
|
25608
|
-
capName: "webrtc",
|
|
25609
|
-
capScope: "system",
|
|
25610
|
-
addonId: null,
|
|
25611
|
-
access: "create"
|
|
25612
|
-
},
|
|
25613
|
-
"webrtc.createSession": {
|
|
25614
|
-
capName: "webrtc",
|
|
25615
|
-
capScope: "system",
|
|
25616
|
-
addonId: null,
|
|
25617
|
-
access: "create"
|
|
25618
|
-
},
|
|
25619
|
-
"webrtc.handleAnswer": {
|
|
25620
|
-
capName: "webrtc",
|
|
25621
|
-
capScope: "system",
|
|
25622
|
-
addonId: null,
|
|
25623
|
-
access: "create"
|
|
25624
|
-
},
|
|
25625
|
-
"webrtc.handleOffer": {
|
|
25626
|
-
capName: "webrtc",
|
|
25627
|
-
capScope: "system",
|
|
25628
|
-
addonId: null,
|
|
25629
|
-
access: "create"
|
|
25630
|
-
},
|
|
25631
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25632
|
-
capName: "webrtc",
|
|
25633
|
-
capScope: "system",
|
|
25634
|
-
addonId: null,
|
|
25635
|
-
access: "view"
|
|
25636
|
-
},
|
|
25637
|
-
"webrtc.registerStream": {
|
|
25638
|
-
capName: "webrtc",
|
|
25639
|
-
capScope: "system",
|
|
25640
|
-
addonId: null,
|
|
25641
|
-
access: "create"
|
|
25642
|
-
},
|
|
25643
|
-
"webrtc.supportsStream": {
|
|
25644
|
-
capName: "webrtc",
|
|
25645
|
-
capScope: "system",
|
|
25646
|
-
addonId: null,
|
|
25647
|
-
access: "view"
|
|
25648
|
-
},
|
|
25649
|
-
"webrtc.unregisterStream": {
|
|
25650
|
-
capName: "webrtc",
|
|
25651
|
-
capScope: "system",
|
|
25652
|
-
addonId: null,
|
|
25653
|
-
access: "delete"
|
|
25654
|
-
},
|
|
25655
26048
|
"webrtcSession.addIceCandidate": {
|
|
25656
26049
|
capName: "webrtc-session",
|
|
25657
26050
|
capScope: "device",
|