@camstack/addon-provider-homematic 1.1.18 → 1.1.20
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
|
@@ -4651,7 +4651,7 @@ function preprocess(fn, schema) {
|
|
|
4651
4651
|
});
|
|
4652
4652
|
}
|
|
4653
4653
|
//#endregion
|
|
4654
|
-
//#region ../types/dist/sleep-
|
|
4654
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4655
4655
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4656
4656
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4657
4657
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4837,6 +4837,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4837
4837
|
*/
|
|
4838
4838
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4839
4839
|
/**
|
|
4840
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4841
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4842
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4843
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4844
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4845
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4846
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4847
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4848
|
+
* broker's long backstop reconcile query).
|
|
4849
|
+
*/
|
|
4850
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4851
|
+
/**
|
|
4840
4852
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4841
4853
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4842
4854
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5360,10 +5372,6 @@ function hydrateField(field, values) {
|
|
|
5360
5372
|
};
|
|
5361
5373
|
}
|
|
5362
5374
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5363
|
-
if (field.type === "password") return {
|
|
5364
|
-
...field,
|
|
5365
|
-
value: ""
|
|
5366
|
-
};
|
|
5367
5375
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5368
5376
|
return {
|
|
5369
5377
|
...field,
|
|
@@ -6747,10 +6755,25 @@ function method(input, output, options) {
|
|
|
6747
6755
|
timeoutMs: options?.timeoutMs
|
|
6748
6756
|
};
|
|
6749
6757
|
}
|
|
6758
|
+
/**
|
|
6759
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6760
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6761
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6762
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6763
|
+
*/
|
|
6764
|
+
function systemMethod(input, output, options) {
|
|
6765
|
+
return {
|
|
6766
|
+
...method(input, output, options),
|
|
6767
|
+
systemOnly: true
|
|
6768
|
+
};
|
|
6769
|
+
}
|
|
6750
6770
|
/** Shorthand to define an event schema */
|
|
6751
6771
|
function event(data) {
|
|
6752
6772
|
return { data };
|
|
6753
6773
|
}
|
|
6774
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6775
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6776
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6754
6777
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6755
6778
|
var VersionOutputSchema = object({ version: string() });
|
|
6756
6779
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6932,6 +6955,36 @@ var ModelFormatsSchema = object({
|
|
|
6932
6955
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6933
6956
|
pt: ModelFormatEntrySchema.optional()
|
|
6934
6957
|
});
|
|
6958
|
+
/**
|
|
6959
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6960
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6961
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6962
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6963
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6964
|
+
* to an `id`.
|
|
6965
|
+
*/
|
|
6966
|
+
var ModelVariantGroupSchema = object({
|
|
6967
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6968
|
+
family: string(),
|
|
6969
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6970
|
+
tier: string(),
|
|
6971
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6972
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6973
|
+
/**
|
|
6974
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6975
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6976
|
+
* future performance variants plug into.
|
|
6977
|
+
*/
|
|
6978
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6979
|
+
/**
|
|
6980
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6981
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6982
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6983
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6984
|
+
* the group so the selector can offer it as a variant axis.
|
|
6985
|
+
*/
|
|
6986
|
+
resolution: number().int().positive().optional()
|
|
6987
|
+
});
|
|
6935
6988
|
var ModelCatalogEntrySchema = object({
|
|
6936
6989
|
id: string(),
|
|
6937
6990
|
name: string(),
|
|
@@ -6961,7 +7014,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6961
7014
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6962
7015
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6963
7016
|
*/
|
|
6964
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7017
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7018
|
+
/**
|
|
7019
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7020
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7021
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7022
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7023
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7024
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7025
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7026
|
+
*/
|
|
7027
|
+
legacy: boolean().optional(),
|
|
7028
|
+
/**
|
|
7029
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7030
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7031
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7032
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7033
|
+
*/
|
|
7034
|
+
metrics: object({
|
|
7035
|
+
map50: number().optional(),
|
|
7036
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7037
|
+
}).optional(),
|
|
7038
|
+
/**
|
|
7039
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7040
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7041
|
+
* the retraining addon and any future commercial distribution.
|
|
7042
|
+
*/
|
|
7043
|
+
license: string().optional(),
|
|
7044
|
+
/**
|
|
7045
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7046
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7047
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7048
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7049
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7050
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7051
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7052
|
+
*/
|
|
7053
|
+
group: ModelVariantGroupSchema.optional()
|
|
6965
7054
|
});
|
|
6966
7055
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6967
7056
|
format: literal("openvino"),
|
|
@@ -7022,8 +7111,8 @@ var RecordingModeSchema = _enum([
|
|
|
7022
7111
|
"onAudioThreshold"
|
|
7023
7112
|
]);
|
|
7024
7113
|
/**
|
|
7025
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7026
|
-
* reads directly (never inferred from `rules`):
|
|
7114
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7115
|
+
* UI reads directly (never inferred from `rules`):
|
|
7027
7116
|
* - `off` — not recording.
|
|
7028
7117
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7029
7118
|
* with pre/post-buffer.
|
|
@@ -9186,26 +9275,13 @@ onBrightnessChanged: { data: object({
|
|
|
9186
9275
|
*/
|
|
9187
9276
|
runtimeState: BrightnessStatusSchema
|
|
9188
9277
|
};
|
|
9278
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9189
9279
|
var StreamFormatSchema = _enum([
|
|
9190
9280
|
"webrtc",
|
|
9191
9281
|
"hls",
|
|
9192
9282
|
"mjpeg",
|
|
9193
9283
|
"rtsp"
|
|
9194
9284
|
]);
|
|
9195
|
-
var StreamInfoSchema = object({
|
|
9196
|
-
streamId: string(),
|
|
9197
|
-
format: StreamFormatSchema,
|
|
9198
|
-
url: string().nullable(),
|
|
9199
|
-
active: boolean()
|
|
9200
|
-
});
|
|
9201
|
-
method(object({
|
|
9202
|
-
streamId: string(),
|
|
9203
|
-
sourceUrl: string(),
|
|
9204
|
-
codec: string().optional()
|
|
9205
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9206
|
-
streamId: string(),
|
|
9207
|
-
format: StreamFormatSchema
|
|
9208
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9209
9285
|
var RtspRestreamEntrySchema = object({
|
|
9210
9286
|
brokerId: string(),
|
|
9211
9287
|
url: string(),
|
|
@@ -10073,37 +10149,7 @@ var consumablesCapability = {
|
|
|
10073
10149
|
scope: "device",
|
|
10074
10150
|
deviceNative: true,
|
|
10075
10151
|
mode: "singleton",
|
|
10076
|
-
deviceTypes:
|
|
10077
|
-
DeviceType.Camera,
|
|
10078
|
-
DeviceType.Hub,
|
|
10079
|
-
DeviceType.Light,
|
|
10080
|
-
DeviceType.Siren,
|
|
10081
|
-
DeviceType.Switch,
|
|
10082
|
-
DeviceType.Sensor,
|
|
10083
|
-
DeviceType.Thermostat,
|
|
10084
|
-
DeviceType.Button,
|
|
10085
|
-
DeviceType.EventEmitter,
|
|
10086
|
-
DeviceType.Update,
|
|
10087
|
-
DeviceType.Generic,
|
|
10088
|
-
DeviceType.Notifier,
|
|
10089
|
-
DeviceType.Script,
|
|
10090
|
-
DeviceType.Automation,
|
|
10091
|
-
DeviceType.Lock,
|
|
10092
|
-
DeviceType.Cover,
|
|
10093
|
-
DeviceType.Valve,
|
|
10094
|
-
DeviceType.Humidifier,
|
|
10095
|
-
DeviceType.WaterHeater,
|
|
10096
|
-
DeviceType.Fan,
|
|
10097
|
-
DeviceType.MediaPlayer,
|
|
10098
|
-
DeviceType.AlarmPanel,
|
|
10099
|
-
DeviceType.Control,
|
|
10100
|
-
DeviceType.Presence,
|
|
10101
|
-
DeviceType.Weather,
|
|
10102
|
-
DeviceType.Vacuum,
|
|
10103
|
-
DeviceType.LawnMower,
|
|
10104
|
-
DeviceType.Container,
|
|
10105
|
-
DeviceType.Image
|
|
10106
|
-
],
|
|
10152
|
+
deviceTypes: Object.values(DeviceType),
|
|
10107
10153
|
deviceConfig: { ui: {
|
|
10108
10154
|
kind: "widget",
|
|
10109
10155
|
widgetId: "host/consumables-panel",
|
|
@@ -11561,7 +11607,7 @@ var BoundingBoxSchema = object({
|
|
|
11561
11607
|
w: number(),
|
|
11562
11608
|
h: number()
|
|
11563
11609
|
});
|
|
11564
|
-
|
|
11610
|
+
object({
|
|
11565
11611
|
class: string(),
|
|
11566
11612
|
originalClass: string(),
|
|
11567
11613
|
score: number(),
|
|
@@ -11696,7 +11742,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11696
11742
|
enabled: boolean(),
|
|
11697
11743
|
modelId: string(),
|
|
11698
11744
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11699
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11700
11745
|
group: string().optional(),
|
|
11701
11746
|
settings: record(string(), unknown()).optional()
|
|
11702
11747
|
}));
|
|
@@ -11721,7 +11766,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11721
11766
|
formats: record(string(), object({
|
|
11722
11767
|
downloaded: boolean(),
|
|
11723
11768
|
sizeMB: number()
|
|
11724
|
-
}))
|
|
11769
|
+
})),
|
|
11770
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11771
|
+
legacy: boolean().optional()
|
|
11725
11772
|
});
|
|
11726
11773
|
var ConfigFieldBridge = custom();
|
|
11727
11774
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11735,6 +11782,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11735
11782
|
defaultModelId: string(),
|
|
11736
11783
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11737
11784
|
enabledByDefault: boolean().optional(),
|
|
11785
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11738
11786
|
defaultConfidence: number(),
|
|
11739
11787
|
group: string().optional(),
|
|
11740
11788
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11751,11 +11799,6 @@ var PipelineSchemaSchema = object({
|
|
|
11751
11799
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11752
11800
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11753
11801
|
});
|
|
11754
|
-
var DetectorOutputSchema = object({
|
|
11755
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11756
|
-
inferenceMs: number(),
|
|
11757
|
-
modelId: string()
|
|
11758
|
-
});
|
|
11759
11802
|
var EngineProvisioningSchema = object({
|
|
11760
11803
|
runtimeId: _enum([
|
|
11761
11804
|
"onnx",
|
|
@@ -11772,15 +11815,42 @@ var EngineProvisioningSchema = object({
|
|
|
11772
11815
|
]),
|
|
11773
11816
|
progress: number().optional(),
|
|
11774
11817
|
error: string().optional(),
|
|
11775
|
-
nextRetryAt: number().optional()
|
|
11818
|
+
nextRetryAt: number().optional(),
|
|
11819
|
+
/**
|
|
11820
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11821
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11822
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11823
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11824
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11825
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11826
|
+
*/
|
|
11827
|
+
configIssues: array(string()).optional()
|
|
11776
11828
|
});
|
|
11777
11829
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11778
11830
|
addonId: string(),
|
|
11779
|
-
modelId: string(),
|
|
11831
|
+
modelId: string().optional(),
|
|
11780
11832
|
enabled: boolean().default(true),
|
|
11781
11833
|
children: array(PipelineStepInputSchema).optional(),
|
|
11782
11834
|
settings: record(string(), unknown()).optional()
|
|
11783
11835
|
}));
|
|
11836
|
+
var ModelSubstitutionSchema = object({
|
|
11837
|
+
addonId: string(),
|
|
11838
|
+
chosen: string(),
|
|
11839
|
+
running: string(),
|
|
11840
|
+
format: string()
|
|
11841
|
+
});
|
|
11842
|
+
var PipelineValidationIssueSchema = object({
|
|
11843
|
+
addonId: string(),
|
|
11844
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11845
|
+
detail: string()
|
|
11846
|
+
});
|
|
11847
|
+
var PipelineValidationResultSchema = object({
|
|
11848
|
+
ok: boolean(),
|
|
11849
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11850
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11851
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11852
|
+
format: string()
|
|
11853
|
+
});
|
|
11784
11854
|
var ReferenceImageEntrySchema = object({
|
|
11785
11855
|
filename: string(),
|
|
11786
11856
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11851,7 +11921,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11851
11921
|
})) }), object({ success: literal(true) }), {
|
|
11852
11922
|
kind: "mutation",
|
|
11853
11923
|
auth: "admin"
|
|
11854
|
-
}), method(
|
|
11924
|
+
}), method(object({ nodeId: string() }), object({
|
|
11925
|
+
success: literal(true),
|
|
11926
|
+
clearedDevices: number()
|
|
11927
|
+
}), {
|
|
11928
|
+
kind: "mutation",
|
|
11929
|
+
auth: "admin"
|
|
11930
|
+
}), 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({
|
|
11855
11931
|
name: string(),
|
|
11856
11932
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11857
11933
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11868,10 +11944,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11868
11944
|
modelId: string(),
|
|
11869
11945
|
format: ModelFormatSchema$1
|
|
11870
11946
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11871
|
-
addonId: string(),
|
|
11872
|
-
frame: FrameInputSchema,
|
|
11873
|
-
config: record(string(), unknown()).optional()
|
|
11874
|
-
}), DetectorOutputSchema), method(object({
|
|
11875
11947
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11876
11948
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11877
11949
|
frame: FrameInputSchema.optional(),
|
|
@@ -12050,6 +12122,25 @@ var zonesCapability = {
|
|
|
12050
12122
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12051
12123
|
};
|
|
12052
12124
|
/**
|
|
12125
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12126
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12127
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12128
|
+
* dims — no native resolution to plumb.
|
|
12129
|
+
*/
|
|
12130
|
+
var NativeCropBboxSchema = object({
|
|
12131
|
+
x: number(),
|
|
12132
|
+
y: number(),
|
|
12133
|
+
w: number(),
|
|
12134
|
+
h: number()
|
|
12135
|
+
});
|
|
12136
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12137
|
+
var NativeCropResultSchema = object({
|
|
12138
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12139
|
+
bytes: _instanceof(Uint8Array),
|
|
12140
|
+
width: number().int().positive(),
|
|
12141
|
+
height: number().int().positive()
|
|
12142
|
+
});
|
|
12143
|
+
/**
|
|
12053
12144
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12054
12145
|
* by both the Zod data schema (validation + default fallback) and
|
|
12055
12146
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12144,6 +12235,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12144
12235
|
kind: literal("remote-restream"),
|
|
12145
12236
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12146
12237
|
ownerNodeId: string(),
|
|
12238
|
+
/**
|
|
12239
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12240
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12241
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12242
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12243
|
+
*/
|
|
12244
|
+
ownerReachableHost: string().optional(),
|
|
12147
12245
|
/** Operator override for the owner host the runner dials. */
|
|
12148
12246
|
hubHostnameOverride: string().optional()
|
|
12149
12247
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12152,13 +12250,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12152
12250
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12153
12251
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12154
12252
|
*
|
|
12155
|
-
* Stateless-pipeline model: the
|
|
12156
|
-
*
|
|
12157
|
-
*
|
|
12158
|
-
*
|
|
12159
|
-
*
|
|
12160
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12161
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12253
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12254
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12255
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12256
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12257
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12162
12258
|
*/
|
|
12163
12259
|
var RunnerCameraConfigSchema = object({
|
|
12164
12260
|
deviceId: number(),
|
|
@@ -12209,14 +12305,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12209
12305
|
*/
|
|
12210
12306
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12211
12307
|
pipelineEnabled: boolean().default(true),
|
|
12212
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12213
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12214
12308
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12215
12309
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12216
12310
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12217
12311
|
audio: object({
|
|
12218
|
-
|
|
12219
|
-
modelId: string(),
|
|
12312
|
+
modelId: string().optional(),
|
|
12220
12313
|
enabled: boolean()
|
|
12221
12314
|
}).nullable().optional(),
|
|
12222
12315
|
/**
|
|
@@ -12303,7 +12396,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12303
12396
|
avgInferenceTimeMs: number(),
|
|
12304
12397
|
queueDepth: number()
|
|
12305
12398
|
});
|
|
12306
|
-
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())
|
|
12399
|
+
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({
|
|
12400
|
+
handle: FrameHandleSchema,
|
|
12401
|
+
bbox: NativeCropBboxSchema,
|
|
12402
|
+
maxWidth: number().int().positive().optional()
|
|
12403
|
+
}), NativeCropResultSchema.nullable());
|
|
12307
12404
|
/**
|
|
12308
12405
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12309
12406
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15234,7 +15331,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15234
15331
|
icon: string(),
|
|
15235
15332
|
path: string(),
|
|
15236
15333
|
remoteName: string(),
|
|
15237
|
-
bundle: string()
|
|
15334
|
+
bundle: string(),
|
|
15335
|
+
section: string().optional(),
|
|
15336
|
+
sectionLabel: string().optional()
|
|
15238
15337
|
});
|
|
15239
15338
|
var AddonPageInfoSchema = object({
|
|
15240
15339
|
addonId: string(),
|
|
@@ -15274,7 +15373,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15274
15373
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15275
15374
|
* without a separate filesystem stat.
|
|
15276
15375
|
*/
|
|
15277
|
-
bundle: string()
|
|
15376
|
+
bundle: string(),
|
|
15377
|
+
/**
|
|
15378
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15379
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15380
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15381
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15382
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15383
|
+
* "Addon Pages" group.
|
|
15384
|
+
*/
|
|
15385
|
+
section: string().optional(),
|
|
15386
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15387
|
+
sectionLabel: string().optional()
|
|
15278
15388
|
});
|
|
15279
15389
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15280
15390
|
var AddonHttpRouteSchema = object({
|
|
@@ -15490,6 +15600,17 @@ var WidgetMetadataSchema = object({
|
|
|
15490
15600
|
deviceContext: boolean().default(false),
|
|
15491
15601
|
integrationContext: boolean().default(false)
|
|
15492
15602
|
}),
|
|
15603
|
+
/**
|
|
15604
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15605
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15606
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15607
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15608
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15609
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15610
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15611
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15612
|
+
*/
|
|
15613
|
+
preAuth: boolean().optional().default(false),
|
|
15493
15614
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15494
15615
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15495
15616
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15791,6 +15912,66 @@ method(object({
|
|
|
15791
15912
|
password: string()
|
|
15792
15913
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15793
15914
|
/**
|
|
15915
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15916
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15917
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15918
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15919
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15920
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15921
|
+
*
|
|
15922
|
+
* A contribution is a discriminated union on `kind`:
|
|
15923
|
+
*
|
|
15924
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15925
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15926
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15927
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15928
|
+
* login page needs NO change.
|
|
15929
|
+
*
|
|
15930
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15931
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15932
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15933
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15934
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15935
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15936
|
+
*
|
|
15937
|
+
* Every contribution carries a `stage`:
|
|
15938
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15939
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15940
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15941
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15942
|
+
*
|
|
15943
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15944
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15945
|
+
* tRPC router.
|
|
15946
|
+
*/
|
|
15947
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15948
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15949
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15950
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15951
|
+
kind: literal("redirect"),
|
|
15952
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15953
|
+
id: string(),
|
|
15954
|
+
/** Operator-facing button label. */
|
|
15955
|
+
label: string(),
|
|
15956
|
+
/** lucide-react icon name. */
|
|
15957
|
+
icon: string().optional(),
|
|
15958
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15959
|
+
startUrl: string(),
|
|
15960
|
+
stage: LoginStageEnum
|
|
15961
|
+
}), object({
|
|
15962
|
+
kind: literal("widget"),
|
|
15963
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15964
|
+
id: string(),
|
|
15965
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15966
|
+
addonId: string(),
|
|
15967
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15968
|
+
bundle: string(),
|
|
15969
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15970
|
+
remote: WidgetRemoteSchema,
|
|
15971
|
+
stage: LoginStageEnum
|
|
15972
|
+
})]);
|
|
15973
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
15974
|
+
/**
|
|
15794
15975
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15795
15976
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15796
15977
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17960,7 +18141,17 @@ var TrackSchema = object({
|
|
|
17960
18141
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17961
18142
|
totalDistance: number(),
|
|
17962
18143
|
state: TrackStateSchema,
|
|
17963
|
-
active: boolean()
|
|
18144
|
+
active: boolean(),
|
|
18145
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18146
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18147
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18148
|
+
importance: number().optional(),
|
|
18149
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18150
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18151
|
+
bestEventId: string().optional(),
|
|
18152
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18153
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18154
|
+
importanceReason: string().optional()
|
|
17964
18155
|
});
|
|
17965
18156
|
var BaseEventFields = {
|
|
17966
18157
|
id: string(),
|
|
@@ -18025,8 +18216,18 @@ var ObjectEventSchema = object({
|
|
|
18025
18216
|
frameHeight: number().optional(),
|
|
18026
18217
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
18027
18218
|
mediaKey: string().optional(),
|
|
18219
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18220
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18221
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18222
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18223
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18224
|
+
keyFrameMediaKey: string().optional(),
|
|
18028
18225
|
/** Populated by B5 (recording playback URL for this event). */
|
|
18029
|
-
mediaUrl: string().optional()
|
|
18226
|
+
mediaUrl: string().optional(),
|
|
18227
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18228
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18229
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18230
|
+
importance: number().optional()
|
|
18030
18231
|
});
|
|
18031
18232
|
var AudioEventSchema = object({
|
|
18032
18233
|
...BaseEventFields,
|
|
@@ -18050,7 +18251,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18050
18251
|
"fullFrame",
|
|
18051
18252
|
"fullFrameBoxed",
|
|
18052
18253
|
"faceCrop",
|
|
18053
|
-
"plateCrop"
|
|
18254
|
+
"plateCrop",
|
|
18255
|
+
"keyFrame"
|
|
18054
18256
|
]);
|
|
18055
18257
|
var MediaFileSchema = object({
|
|
18056
18258
|
key: string(),
|
|
@@ -18071,6 +18273,32 @@ var DeviceEventQueryInput = object({
|
|
|
18071
18273
|
projection: _enum(["full", "slim"]).optional()
|
|
18072
18274
|
});
|
|
18073
18275
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18276
|
+
var KeyEventQueryInput = object({
|
|
18277
|
+
deviceId: number(),
|
|
18278
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18279
|
+
since: number(),
|
|
18280
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18281
|
+
until: number(),
|
|
18282
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18283
|
+
/** Drop tracks scoring below this importance. */
|
|
18284
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18285
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18286
|
+
classFilter: string().optional()
|
|
18287
|
+
});
|
|
18288
|
+
var KeyEventSchema = object({
|
|
18289
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18290
|
+
id: string(),
|
|
18291
|
+
trackId: string(),
|
|
18292
|
+
/** Track start time (firstSeen). */
|
|
18293
|
+
timestamp: number(),
|
|
18294
|
+
className: string(),
|
|
18295
|
+
label: string().optional(),
|
|
18296
|
+
importance: number(),
|
|
18297
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18298
|
+
bestEventId: string(),
|
|
18299
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18300
|
+
windowMs: number().optional()
|
|
18301
|
+
});
|
|
18074
18302
|
var TrackedDetectionSchema = object({
|
|
18075
18303
|
trackId: string(),
|
|
18076
18304
|
className: string(),
|
|
@@ -18100,7 +18328,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18100
18328
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18101
18329
|
kind: "mutation",
|
|
18102
18330
|
auth: "admin"
|
|
18103
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18331
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18104
18332
|
deviceId: number(),
|
|
18105
18333
|
since: number(),
|
|
18106
18334
|
until: number(),
|
|
@@ -18145,11 +18373,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18145
18373
|
timestamp: number()
|
|
18146
18374
|
});
|
|
18147
18375
|
var CameraPipelineConfigSchema = object({
|
|
18148
|
-
engine: PipelineEngineChoiceSchema,
|
|
18376
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18149
18377
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18150
18378
|
audio: object({
|
|
18151
|
-
engine: PipelineEngineChoiceSchema,
|
|
18152
|
-
modelId: string(),
|
|
18379
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18380
|
+
modelId: string().optional(),
|
|
18153
18381
|
enabled: boolean(),
|
|
18154
18382
|
settings: record(string(), unknown()).readonly().optional()
|
|
18155
18383
|
}).nullable().optional()
|
|
@@ -18164,7 +18392,7 @@ var PipelineTemplateSchema = object({
|
|
|
18164
18392
|
});
|
|
18165
18393
|
var AgentAddonConfigSchema = object({
|
|
18166
18394
|
enabled: boolean(),
|
|
18167
|
-
modelId: string(),
|
|
18395
|
+
modelId: string().optional(),
|
|
18168
18396
|
settings: record(string(), unknown()).readonly()
|
|
18169
18397
|
});
|
|
18170
18398
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18174,12 +18402,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18174
18402
|
detectWeight: number().positive().optional(),
|
|
18175
18403
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18176
18404
|
detect: boolean().optional(),
|
|
18177
|
-
/**
|
|
18405
|
+
/**
|
|
18406
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18407
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18408
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18409
|
+
* parse — no code reads it and no write path emits it.
|
|
18410
|
+
*/
|
|
18178
18411
|
decode: boolean().optional(),
|
|
18179
18412
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18180
18413
|
audio: boolean().optional(),
|
|
18181
18414
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18182
|
-
ingest: boolean().optional()
|
|
18415
|
+
ingest: boolean().optional(),
|
|
18416
|
+
/**
|
|
18417
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18418
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18419
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18420
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18421
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18422
|
+
*/
|
|
18423
|
+
reachableHost: string().optional()
|
|
18183
18424
|
});
|
|
18184
18425
|
var CameraPipelineForAgentSchema = object({
|
|
18185
18426
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18227,25 +18468,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18227
18468
|
assignedAt: number()
|
|
18228
18469
|
});
|
|
18229
18470
|
/**
|
|
18230
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18231
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18232
|
-
* → co-located with pipeline → capacity).
|
|
18233
|
-
*/
|
|
18234
|
-
var DecoderAssignmentSchema = object({
|
|
18235
|
-
deviceId: number(),
|
|
18236
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18237
|
-
decoderNodeId: string(),
|
|
18238
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18239
|
-
pinned: boolean(),
|
|
18240
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18241
|
-
reason: _enum([
|
|
18242
|
-
"manual",
|
|
18243
|
-
"co-located",
|
|
18244
|
-
"capacity",
|
|
18245
|
-
"hardware-affinity"
|
|
18246
|
-
])
|
|
18247
|
-
});
|
|
18248
|
-
/**
|
|
18249
18471
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18250
18472
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18251
18473
|
*/
|
|
@@ -18285,6 +18507,15 @@ var GlobalMetricsSchema = object({
|
|
|
18285
18507
|
* capability providers.
|
|
18286
18508
|
*/
|
|
18287
18509
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18510
|
+
/**
|
|
18511
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18512
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18513
|
+
*/
|
|
18514
|
+
var IngestOwnerSchema = object({
|
|
18515
|
+
ownerNodeId: string(),
|
|
18516
|
+
reachableHost: string().optional(),
|
|
18517
|
+
configIssue: string().optional()
|
|
18518
|
+
});
|
|
18288
18519
|
/** Source block — always present; derives from the stream catalog. */
|
|
18289
18520
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18290
18521
|
camStreamId: string(),
|
|
@@ -18299,6 +18530,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18299
18530
|
detectionNodeId: string().nullable(),
|
|
18300
18531
|
decoderNodeId: string().nullable(),
|
|
18301
18532
|
audioNodeId: string().nullable(),
|
|
18533
|
+
/**
|
|
18534
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18535
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18536
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18537
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18538
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18539
|
+
*/
|
|
18540
|
+
sourceNodeId: string().nullable(),
|
|
18302
18541
|
pinned: object({
|
|
18303
18542
|
detection: boolean(),
|
|
18304
18543
|
decoder: boolean(),
|
|
@@ -18431,16 +18670,7 @@ method(object({
|
|
|
18431
18670
|
}), object({ success: literal(true) }), {
|
|
18432
18671
|
kind: "mutation",
|
|
18433
18672
|
auth: "admin"
|
|
18434
|
-
}), method(object({
|
|
18435
|
-
deviceId: number(),
|
|
18436
|
-
nodeId: string()
|
|
18437
|
-
}), _void(), {
|
|
18438
|
-
kind: "mutation",
|
|
18439
|
-
auth: "admin"
|
|
18440
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18441
|
-
kind: "mutation",
|
|
18442
|
-
auth: "admin"
|
|
18443
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18673
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18444
18674
|
deviceId: number(),
|
|
18445
18675
|
nodeId: string()
|
|
18446
18676
|
}), object({ success: literal(true) }), {
|
|
@@ -18461,10 +18691,7 @@ method(object({
|
|
|
18461
18691
|
nodeId: string(),
|
|
18462
18692
|
pinned: boolean(),
|
|
18463
18693
|
assignedAt: number()
|
|
18464
|
-
}))), method(object({
|
|
18465
|
-
deviceId: number(),
|
|
18466
|
-
pipelineNodeId: string().optional()
|
|
18467
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18694
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18468
18695
|
nodeId: string(),
|
|
18469
18696
|
settings: AgentPipelineSettingsSchema
|
|
18470
18697
|
})).readonly()), method(object({
|
|
@@ -18494,12 +18721,26 @@ method(object({
|
|
|
18494
18721
|
}), method(object({
|
|
18495
18722
|
agentNodeId: string(),
|
|
18496
18723
|
detect: boolean().nullable().optional(),
|
|
18497
|
-
decode: boolean().nullable().optional(),
|
|
18498
18724
|
audio: boolean().nullable().optional(),
|
|
18499
18725
|
ingest: boolean().nullable().optional()
|
|
18500
18726
|
}), object({ success: literal(true) }), {
|
|
18501
18727
|
kind: "mutation",
|
|
18502
18728
|
auth: "admin"
|
|
18729
|
+
}), method(object({
|
|
18730
|
+
agentNodeId: string(),
|
|
18731
|
+
reachableHost: string().nullable()
|
|
18732
|
+
}), object({ success: literal(true) }), {
|
|
18733
|
+
kind: "mutation",
|
|
18734
|
+
auth: "admin"
|
|
18735
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18736
|
+
success: literal(true),
|
|
18737
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18738
|
+
effectiveModelId: string().nullable(),
|
|
18739
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18740
|
+
clearedCameraOverrides: number()
|
|
18741
|
+
}), {
|
|
18742
|
+
kind: "mutation",
|
|
18743
|
+
auth: "admin"
|
|
18503
18744
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18504
18745
|
deviceId: number(),
|
|
18505
18746
|
addonId: string(),
|
|
@@ -18544,22 +18785,131 @@ method(object({
|
|
|
18544
18785
|
kind: "mutation",
|
|
18545
18786
|
auth: "admin"
|
|
18546
18787
|
});
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18788
|
+
/**
|
|
18789
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18790
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18791
|
+
* agents).
|
|
18792
|
+
*
|
|
18793
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18794
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18795
|
+
* version describes the node. Updates install into
|
|
18796
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18797
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18798
|
+
*
|
|
18799
|
+
* Providers:
|
|
18800
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18801
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18802
|
+
* unpinned calls.
|
|
18803
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18804
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18805
|
+
* `$hub.registerNode` manifest.
|
|
18806
|
+
*
|
|
18807
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18808
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18809
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18810
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18811
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18812
|
+
*
|
|
18813
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18814
|
+
*/
|
|
18815
|
+
/**
|
|
18816
|
+
* Where the running hub's code was loaded from:
|
|
18817
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18818
|
+
* plain resolution and runtime updates are refused.
|
|
18819
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18820
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18821
|
+
*/
|
|
18822
|
+
var ServerBootModeSchema = _enum([
|
|
18823
|
+
"workspace",
|
|
18824
|
+
"baked",
|
|
18825
|
+
"data-root"
|
|
18826
|
+
]);
|
|
18827
|
+
/**
|
|
18828
|
+
* Update lifecycle state:
|
|
18829
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18830
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18831
|
+
* restarted onto it (still running the OLD version).
|
|
18832
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18833
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18834
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18835
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18836
|
+
*/
|
|
18837
|
+
var ServerUpdateStateSchema = _enum([
|
|
18838
|
+
"idle",
|
|
18839
|
+
"checking",
|
|
18840
|
+
"staging",
|
|
18841
|
+
"pending-restart",
|
|
18842
|
+
"awaiting-confirmation"
|
|
18843
|
+
]);
|
|
18844
|
+
var ServerRollbackInfoSchema = object({
|
|
18845
|
+
/** The version that failed (or was manually rolled back). */
|
|
18846
|
+
fromVersion: string(),
|
|
18847
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18848
|
+
toVersion: string().nullable(),
|
|
18849
|
+
atMs: number(),
|
|
18850
|
+
reason: string()
|
|
18553
18851
|
});
|
|
18554
|
-
var
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18852
|
+
var ServerPackageStatusSchema = object({
|
|
18853
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18854
|
+
packageName: string(),
|
|
18855
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18856
|
+
runningVersion: string().nullable(),
|
|
18857
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18858
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18859
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18860
|
+
activeVersion: string().nullable(),
|
|
18861
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18862
|
+
previousVersion: string().nullable(),
|
|
18863
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18864
|
+
seedVersion: string().nullable(),
|
|
18865
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18866
|
+
latestVersion: string().nullable(),
|
|
18867
|
+
updateAvailable: boolean(),
|
|
18868
|
+
bootMode: ServerBootModeSchema,
|
|
18869
|
+
updateState: ServerUpdateStateSchema,
|
|
18870
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18871
|
+
pendingVersion: string().nullable(),
|
|
18872
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18873
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18874
|
+
/**
|
|
18875
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18876
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18877
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18878
|
+
*/
|
|
18879
|
+
stateFileCorrupt: boolean(),
|
|
18880
|
+
lastCheckedAtMs: number().nullable()
|
|
18881
|
+
});
|
|
18882
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18883
|
+
packageName: string(),
|
|
18884
|
+
runningVersion: string().nullable(),
|
|
18885
|
+
latestVersion: string().nullable(),
|
|
18886
|
+
updateAvailable: boolean(),
|
|
18887
|
+
checkedAtMs: number(),
|
|
18888
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18889
|
+
error: string().nullable()
|
|
18890
|
+
});
|
|
18891
|
+
var ServerUpdateActionResultSchema = object({
|
|
18892
|
+
accepted: boolean(),
|
|
18893
|
+
targetVersion: string().nullable(),
|
|
18894
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18895
|
+
restarting: boolean(),
|
|
18896
|
+
message: string()
|
|
18897
|
+
});
|
|
18898
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18899
|
+
kind: "mutation",
|
|
18900
|
+
auth: "admin"
|
|
18901
|
+
}), method(object({
|
|
18902
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18903
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18904
|
+
kind: "mutation",
|
|
18905
|
+
auth: "admin"
|
|
18906
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18907
|
+
kind: "mutation",
|
|
18908
|
+
auth: "admin"
|
|
18909
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18910
|
+
kind: "mutation",
|
|
18911
|
+
auth: "admin"
|
|
18558
18912
|
});
|
|
18559
|
-
method(object({
|
|
18560
|
-
deviceId: number(),
|
|
18561
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18562
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18563
18913
|
/**
|
|
18564
18914
|
* Query filter for settings-store collections.
|
|
18565
18915
|
*/
|
|
@@ -18712,9 +19062,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18712
19062
|
/**
|
|
18713
19063
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18714
19064
|
*
|
|
18715
|
-
*
|
|
18716
|
-
*
|
|
18717
|
-
*
|
|
19065
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19066
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19067
|
+
* prebuffer fallback.
|
|
18718
19068
|
*/
|
|
18719
19069
|
var SnapshotImageSchema = object({
|
|
18720
19070
|
base64: string(),
|
|
@@ -18745,11 +19095,12 @@ DeviceType.Camera, method(object({
|
|
|
18745
19095
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18746
19096
|
kind: "mutation",
|
|
18747
19097
|
auth: "admin"
|
|
18748
|
-
})
|
|
18749
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19098
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18750
19099
|
deviceId: number(),
|
|
18751
|
-
|
|
18752
|
-
|
|
19100
|
+
lastCapturedAt: number().nullable(),
|
|
19101
|
+
cacheAgeMs: number().nullable(),
|
|
19102
|
+
etag: string().nullable()
|
|
19103
|
+
})));
|
|
18753
19104
|
/**
|
|
18754
19105
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18755
19106
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -19000,10 +19351,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
19000
19351
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
19001
19352
|
* the assertion, bumps the credential counter, returns ok.
|
|
19002
19353
|
*
|
|
19354
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19355
|
+
* passkey IS the primary factor, no password leg:
|
|
19356
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19357
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19358
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19359
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19360
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19361
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19362
|
+
* resolves the credential by the response's credential id,
|
|
19363
|
+
* verifies the assertion against the stored challenge + that
|
|
19364
|
+
* credential's public key/counter, and returns the OWNING
|
|
19365
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19366
|
+
*
|
|
19003
19367
|
* 3. Management:
|
|
19004
19368
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
19005
19369
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
19006
19370
|
*
|
|
19371
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19372
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19373
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19374
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19375
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19376
|
+
* row ⇒ `enabled: false`).
|
|
19377
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19378
|
+
* the providing addon beside its credentials.
|
|
19379
|
+
*
|
|
19007
19380
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
19008
19381
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
19009
19382
|
* the cap to non-admins.
|
|
@@ -19046,6 +19419,17 @@ method(object({
|
|
|
19046
19419
|
}), object({ verified: boolean() }), {
|
|
19047
19420
|
kind: "mutation",
|
|
19048
19421
|
access: "view"
|
|
19422
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19423
|
+
kind: "mutation",
|
|
19424
|
+
access: "view"
|
|
19425
|
+
}), method(object({
|
|
19426
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19427
|
+
response: record(string(), unknown()) }), object({
|
|
19428
|
+
verified: boolean(),
|
|
19429
|
+
userId: string().nullable()
|
|
19430
|
+
}), {
|
|
19431
|
+
kind: "mutation",
|
|
19432
|
+
access: "view"
|
|
19049
19433
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19050
19434
|
userId: string(),
|
|
19051
19435
|
credentialId: string()
|
|
@@ -19053,6 +19437,13 @@ method(object({
|
|
|
19053
19437
|
kind: "mutation",
|
|
19054
19438
|
auth: "admin",
|
|
19055
19439
|
access: "delete"
|
|
19440
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19441
|
+
userId: string(),
|
|
19442
|
+
enabled: boolean()
|
|
19443
|
+
}), object({ success: literal(true) }), {
|
|
19444
|
+
kind: "mutation",
|
|
19445
|
+
auth: "admin",
|
|
19446
|
+
access: "create"
|
|
19056
19447
|
});
|
|
19057
19448
|
/**
|
|
19058
19449
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19110,9 +19501,10 @@ method(object({
|
|
|
19110
19501
|
auth: "admin"
|
|
19111
19502
|
});
|
|
19112
19503
|
/**
|
|
19113
|
-
* Optional client-side hints sent at session creation to help the
|
|
19114
|
-
*
|
|
19115
|
-
*
|
|
19504
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19505
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19506
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19507
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19116
19508
|
*/
|
|
19117
19509
|
var webrtcClientHintsSchema = object({
|
|
19118
19510
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19123,22 +19515,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19123
19515
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19124
19516
|
prefersTier: string().optional()
|
|
19125
19517
|
}).partial();
|
|
19126
|
-
method(object({
|
|
19127
|
-
streamId: string(),
|
|
19128
|
-
sdpOffer: string()
|
|
19129
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19130
|
-
streamId: string(),
|
|
19131
|
-
codec: string()
|
|
19132
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19133
|
-
streamId: string(),
|
|
19134
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19135
|
-
}), object({
|
|
19136
|
-
sessionId: string(),
|
|
19137
|
-
sdpOffer: string()
|
|
19138
|
-
}), { kind: "mutation" }), method(object({
|
|
19139
|
-
sessionId: string(),
|
|
19140
|
-
sdpAnswer: string()
|
|
19141
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19142
19518
|
/**
|
|
19143
19519
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19144
19520
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19625,7 +20001,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
19625
20001
|
latestVersion: string().nullable(),
|
|
19626
20002
|
hasUpdate: boolean(),
|
|
19627
20003
|
/** Optional manifest description for the row tooltip. */
|
|
19628
|
-
description: string().optional()
|
|
20004
|
+
description: string().optional(),
|
|
20005
|
+
/**
|
|
20006
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
20007
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
20008
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
20009
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
20010
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
20011
|
+
*/
|
|
20012
|
+
buildId: string().nullable()
|
|
19629
20013
|
});
|
|
19630
20014
|
var LogStreamEntrySchema = object({
|
|
19631
20015
|
timestamp: string(),
|
|
@@ -19861,7 +20245,17 @@ var FaceInfoSchema = object({
|
|
|
19861
20245
|
recognizedIdentityId: string().optional(),
|
|
19862
20246
|
identityName: string().optional(),
|
|
19863
20247
|
assigned: boolean(),
|
|
19864
|
-
base64: string().optional()
|
|
20248
|
+
base64: string().optional(),
|
|
20249
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20250
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20251
|
+
* legacy rows written before design B. */
|
|
20252
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20253
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20254
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20255
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20256
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20257
|
+
* back to the inline `base64` face crop. */
|
|
20258
|
+
keyFrameMediaKey: string().optional()
|
|
19865
20259
|
});
|
|
19866
20260
|
var FaceFilterEnum = _enum([
|
|
19867
20261
|
"unassigned",
|
|
@@ -20558,6 +20952,16 @@ var TopologyCategorySchema = object({
|
|
|
20558
20952
|
healthy: number(),
|
|
20559
20953
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20560
20954
|
});
|
|
20955
|
+
/**
|
|
20956
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20957
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20958
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20959
|
+
* rows and pre-phase-2 nodes report none.
|
|
20960
|
+
*/
|
|
20961
|
+
var TopologyRootPackageSchema = object({
|
|
20962
|
+
name: string(),
|
|
20963
|
+
version: string()
|
|
20964
|
+
});
|
|
20561
20965
|
var TopologyNodeSchema = object({
|
|
20562
20966
|
id: string(),
|
|
20563
20967
|
name: string(),
|
|
@@ -20581,7 +20985,8 @@ var TopologyNodeSchema = object({
|
|
|
20581
20985
|
status: string()
|
|
20582
20986
|
})).readonly(),
|
|
20583
20987
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20584
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20988
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20989
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20585
20990
|
});
|
|
20586
20991
|
var CapUsageEdgeSchema = object({
|
|
20587
20992
|
callerAddonId: string(),
|
|
@@ -23381,6 +23786,12 @@ Object.freeze({
|
|
|
23381
23786
|
addonId: null,
|
|
23382
23787
|
access: "create"
|
|
23383
23788
|
},
|
|
23789
|
+
"loginMethod.getLoginMethods": {
|
|
23790
|
+
capName: "login-method",
|
|
23791
|
+
capScope: "system",
|
|
23792
|
+
addonId: null,
|
|
23793
|
+
access: "view"
|
|
23794
|
+
},
|
|
23384
23795
|
"mediaPlayer.next": {
|
|
23385
23796
|
capName: "media-player",
|
|
23386
23797
|
capScope: "device",
|
|
@@ -23963,6 +24374,12 @@ Object.freeze({
|
|
|
23963
24374
|
addonId: null,
|
|
23964
24375
|
access: "view"
|
|
23965
24376
|
},
|
|
24377
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24378
|
+
capName: "pipeline-analytics",
|
|
24379
|
+
capScope: "device",
|
|
24380
|
+
addonId: null,
|
|
24381
|
+
access: "view"
|
|
24382
|
+
},
|
|
23966
24383
|
"pipelineAnalytics.getMotionEvents": {
|
|
23967
24384
|
capName: "pipeline-analytics",
|
|
23968
24385
|
capScope: "device",
|
|
@@ -24011,23 +24428,23 @@ Object.freeze({
|
|
|
24011
24428
|
addonId: null,
|
|
24012
24429
|
access: "create"
|
|
24013
24430
|
},
|
|
24014
|
-
"pipelineExecutor.
|
|
24431
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24015
24432
|
capName: "pipeline-executor",
|
|
24016
24433
|
capScope: "system",
|
|
24017
24434
|
addonId: null,
|
|
24018
24435
|
access: "delete"
|
|
24019
24436
|
},
|
|
24020
|
-
"pipelineExecutor.
|
|
24437
|
+
"pipelineExecutor.deleteModel": {
|
|
24021
24438
|
capName: "pipeline-executor",
|
|
24022
24439
|
capScope: "system",
|
|
24023
24440
|
addonId: null,
|
|
24024
24441
|
access: "delete"
|
|
24025
24442
|
},
|
|
24026
|
-
"pipelineExecutor.
|
|
24443
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24027
24444
|
capName: "pipeline-executor",
|
|
24028
24445
|
capScope: "system",
|
|
24029
24446
|
addonId: null,
|
|
24030
|
-
access: "
|
|
24447
|
+
access: "delete"
|
|
24031
24448
|
},
|
|
24032
24449
|
"pipelineExecutor.downloadModel": {
|
|
24033
24450
|
capName: "pipeline-executor",
|
|
@@ -24221,13 +24638,13 @@ Object.freeze({
|
|
|
24221
24638
|
addonId: null,
|
|
24222
24639
|
access: "create"
|
|
24223
24640
|
},
|
|
24224
|
-
"
|
|
24225
|
-
capName: "pipeline-
|
|
24641
|
+
"pipelineExecutor.validatePipeline": {
|
|
24642
|
+
capName: "pipeline-executor",
|
|
24226
24643
|
capScope: "system",
|
|
24227
24644
|
addonId: null,
|
|
24228
|
-
access: "
|
|
24645
|
+
access: "view"
|
|
24229
24646
|
},
|
|
24230
|
-
"pipelineOrchestrator.
|
|
24647
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24231
24648
|
capName: "pipeline-orchestrator",
|
|
24232
24649
|
capScope: "system",
|
|
24233
24650
|
addonId: null,
|
|
@@ -24311,19 +24728,13 @@ Object.freeze({
|
|
|
24311
24728
|
addonId: null,
|
|
24312
24729
|
access: "view"
|
|
24313
24730
|
},
|
|
24314
|
-
"pipelineOrchestrator.
|
|
24315
|
-
capName: "pipeline-orchestrator",
|
|
24316
|
-
capScope: "system",
|
|
24317
|
-
addonId: null,
|
|
24318
|
-
access: "view"
|
|
24319
|
-
},
|
|
24320
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24731
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24321
24732
|
capName: "pipeline-orchestrator",
|
|
24322
24733
|
capScope: "system",
|
|
24323
24734
|
addonId: null,
|
|
24324
24735
|
access: "view"
|
|
24325
24736
|
},
|
|
24326
|
-
"pipelineOrchestrator.
|
|
24737
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24327
24738
|
capName: "pipeline-orchestrator",
|
|
24328
24739
|
capScope: "system",
|
|
24329
24740
|
addonId: null,
|
|
@@ -24365,6 +24776,12 @@ Object.freeze({
|
|
|
24365
24776
|
addonId: null,
|
|
24366
24777
|
access: "delete"
|
|
24367
24778
|
},
|
|
24779
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24780
|
+
capName: "pipeline-orchestrator",
|
|
24781
|
+
capScope: "system",
|
|
24782
|
+
addonId: null,
|
|
24783
|
+
access: "delete"
|
|
24784
|
+
},
|
|
24368
24785
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24369
24786
|
capName: "pipeline-orchestrator",
|
|
24370
24787
|
capScope: "system",
|
|
@@ -24401,37 +24818,37 @@ Object.freeze({
|
|
|
24401
24818
|
addonId: null,
|
|
24402
24819
|
access: "create"
|
|
24403
24820
|
},
|
|
24404
|
-
"pipelineOrchestrator.
|
|
24821
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24405
24822
|
capName: "pipeline-orchestrator",
|
|
24406
24823
|
capScope: "system",
|
|
24407
24824
|
addonId: null,
|
|
24408
24825
|
access: "create"
|
|
24409
24826
|
},
|
|
24410
|
-
"pipelineOrchestrator.
|
|
24827
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24411
24828
|
capName: "pipeline-orchestrator",
|
|
24412
24829
|
capScope: "system",
|
|
24413
24830
|
addonId: null,
|
|
24414
24831
|
access: "create"
|
|
24415
24832
|
},
|
|
24416
|
-
"pipelineOrchestrator.
|
|
24833
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24417
24834
|
capName: "pipeline-orchestrator",
|
|
24418
24835
|
capScope: "system",
|
|
24419
24836
|
addonId: null,
|
|
24420
24837
|
access: "create"
|
|
24421
24838
|
},
|
|
24422
|
-
"pipelineOrchestrator.
|
|
24839
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24423
24840
|
capName: "pipeline-orchestrator",
|
|
24424
24841
|
capScope: "system",
|
|
24425
24842
|
addonId: null,
|
|
24426
24843
|
access: "create"
|
|
24427
24844
|
},
|
|
24428
|
-
"pipelineOrchestrator.
|
|
24845
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24429
24846
|
capName: "pipeline-orchestrator",
|
|
24430
24847
|
capScope: "system",
|
|
24431
24848
|
addonId: null,
|
|
24432
24849
|
access: "create"
|
|
24433
24850
|
},
|
|
24434
|
-
"pipelineOrchestrator.
|
|
24851
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24435
24852
|
capName: "pipeline-orchestrator",
|
|
24436
24853
|
capScope: "system",
|
|
24437
24854
|
addonId: null,
|
|
@@ -24491,6 +24908,12 @@ Object.freeze({
|
|
|
24491
24908
|
addonId: null,
|
|
24492
24909
|
access: "view"
|
|
24493
24910
|
},
|
|
24911
|
+
"pipelineRunner.getNativeCrop": {
|
|
24912
|
+
capName: "pipeline-runner",
|
|
24913
|
+
capScope: "system",
|
|
24914
|
+
addonId: null,
|
|
24915
|
+
access: "view"
|
|
24916
|
+
},
|
|
24494
24917
|
"pipelineRunner.reportMotion": {
|
|
24495
24918
|
capName: "pipeline-runner",
|
|
24496
24919
|
capScope: "system",
|
|
@@ -24731,33 +25154,45 @@ Object.freeze({
|
|
|
24731
25154
|
addonId: null,
|
|
24732
25155
|
access: "create"
|
|
24733
25156
|
},
|
|
24734
|
-
"
|
|
24735
|
-
capName: "
|
|
25157
|
+
"scriptRunner.run": {
|
|
25158
|
+
capName: "script-runner",
|
|
25159
|
+
capScope: "device",
|
|
25160
|
+
addonId: null,
|
|
25161
|
+
access: "create"
|
|
25162
|
+
},
|
|
25163
|
+
"scriptRunner.stop": {
|
|
25164
|
+
capName: "script-runner",
|
|
25165
|
+
capScope: "device",
|
|
25166
|
+
addonId: null,
|
|
25167
|
+
access: "create"
|
|
25168
|
+
},
|
|
25169
|
+
"serverManagement.applyServerUpdate": {
|
|
25170
|
+
capName: "server-management",
|
|
24736
25171
|
capScope: "system",
|
|
24737
25172
|
addonId: null,
|
|
24738
|
-
access: "
|
|
25173
|
+
access: "create"
|
|
24739
25174
|
},
|
|
24740
|
-
"
|
|
24741
|
-
capName: "
|
|
25175
|
+
"serverManagement.checkServerUpdate": {
|
|
25176
|
+
capName: "server-management",
|
|
24742
25177
|
capScope: "system",
|
|
24743
25178
|
addonId: null,
|
|
24744
25179
|
access: "create"
|
|
24745
25180
|
},
|
|
24746
|
-
"
|
|
24747
|
-
capName: "
|
|
25181
|
+
"serverManagement.getServerPackageStatus": {
|
|
25182
|
+
capName: "server-management",
|
|
24748
25183
|
capScope: "system",
|
|
24749
25184
|
addonId: null,
|
|
24750
|
-
access: "
|
|
25185
|
+
access: "view"
|
|
24751
25186
|
},
|
|
24752
|
-
"
|
|
24753
|
-
capName: "
|
|
24754
|
-
capScope: "
|
|
25187
|
+
"serverManagement.restartServer": {
|
|
25188
|
+
capName: "server-management",
|
|
25189
|
+
capScope: "system",
|
|
24755
25190
|
addonId: null,
|
|
24756
25191
|
access: "create"
|
|
24757
25192
|
},
|
|
24758
|
-
"
|
|
24759
|
-
capName: "
|
|
24760
|
-
capScope: "
|
|
25193
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25194
|
+
capName: "server-management",
|
|
25195
|
+
capScope: "system",
|
|
24761
25196
|
addonId: null,
|
|
24762
25197
|
access: "create"
|
|
24763
25198
|
},
|
|
@@ -24845,23 +25280,17 @@ Object.freeze({
|
|
|
24845
25280
|
addonId: null,
|
|
24846
25281
|
access: "view"
|
|
24847
25282
|
},
|
|
24848
|
-
"snapshot.
|
|
25283
|
+
"snapshot.getSnapshotOverview": {
|
|
24849
25284
|
capName: "snapshot",
|
|
24850
25285
|
capScope: "device",
|
|
24851
25286
|
addonId: null,
|
|
24852
|
-
access: "create"
|
|
24853
|
-
},
|
|
24854
|
-
"snapshotProvider.getSnapshot": {
|
|
24855
|
-
capName: "snapshot-provider",
|
|
24856
|
-
capScope: "system",
|
|
24857
|
-
addonId: null,
|
|
24858
25287
|
access: "view"
|
|
24859
25288
|
},
|
|
24860
|
-
"
|
|
24861
|
-
capName: "snapshot
|
|
24862
|
-
capScope: "
|
|
25289
|
+
"snapshot.invalidateCache": {
|
|
25290
|
+
capName: "snapshot",
|
|
25291
|
+
capScope: "device",
|
|
24863
25292
|
addonId: null,
|
|
24864
|
-
access: "
|
|
25293
|
+
access: "create"
|
|
24865
25294
|
},
|
|
24866
25295
|
"ssoBridge.signBridgeToken": {
|
|
24867
25296
|
capName: "sso-bridge",
|
|
@@ -25289,30 +25718,6 @@ Object.freeze({
|
|
|
25289
25718
|
addonId: null,
|
|
25290
25719
|
access: "view"
|
|
25291
25720
|
},
|
|
25292
|
-
"streamingEngine.getStreamUrl": {
|
|
25293
|
-
capName: "streaming-engine",
|
|
25294
|
-
capScope: "system",
|
|
25295
|
-
addonId: null,
|
|
25296
|
-
access: "view"
|
|
25297
|
-
},
|
|
25298
|
-
"streamingEngine.listStreams": {
|
|
25299
|
-
capName: "streaming-engine",
|
|
25300
|
-
capScope: "system",
|
|
25301
|
-
addonId: null,
|
|
25302
|
-
access: "view"
|
|
25303
|
-
},
|
|
25304
|
-
"streamingEngine.registerStream": {
|
|
25305
|
-
capName: "streaming-engine",
|
|
25306
|
-
capScope: "system",
|
|
25307
|
-
addonId: null,
|
|
25308
|
-
access: "create"
|
|
25309
|
-
},
|
|
25310
|
-
"streamingEngine.unregisterStream": {
|
|
25311
|
-
capName: "streaming-engine",
|
|
25312
|
-
capScope: "system",
|
|
25313
|
-
addonId: null,
|
|
25314
|
-
access: "delete"
|
|
25315
|
-
},
|
|
25316
25721
|
"streamParams.getConfigSchema": {
|
|
25317
25722
|
capName: "stream-params",
|
|
25318
25723
|
capScope: "device",
|
|
@@ -25559,6 +25964,12 @@ Object.freeze({
|
|
|
25559
25964
|
addonId: null,
|
|
25560
25965
|
access: "view"
|
|
25561
25966
|
},
|
|
25967
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25968
|
+
capName: "user-passkeys",
|
|
25969
|
+
capScope: "system",
|
|
25970
|
+
addonId: null,
|
|
25971
|
+
access: "view"
|
|
25972
|
+
},
|
|
25562
25973
|
"userPasskeys.beginRegistration": {
|
|
25563
25974
|
capName: "user-passkeys",
|
|
25564
25975
|
capScope: "system",
|
|
@@ -25571,12 +25982,24 @@ Object.freeze({
|
|
|
25571
25982
|
addonId: null,
|
|
25572
25983
|
access: "view"
|
|
25573
25984
|
},
|
|
25985
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25986
|
+
capName: "user-passkeys",
|
|
25987
|
+
capScope: "system",
|
|
25988
|
+
addonId: null,
|
|
25989
|
+
access: "view"
|
|
25990
|
+
},
|
|
25574
25991
|
"userPasskeys.finishRegistration": {
|
|
25575
25992
|
capName: "user-passkeys",
|
|
25576
25993
|
capScope: "system",
|
|
25577
25994
|
addonId: null,
|
|
25578
25995
|
access: "create"
|
|
25579
25996
|
},
|
|
25997
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25998
|
+
capName: "user-passkeys",
|
|
25999
|
+
capScope: "system",
|
|
26000
|
+
addonId: null,
|
|
26001
|
+
access: "view"
|
|
26002
|
+
},
|
|
25580
26003
|
"userPasskeys.listPasskeys": {
|
|
25581
26004
|
capName: "user-passkeys",
|
|
25582
26005
|
capScope: "system",
|
|
@@ -25589,6 +26012,12 @@ Object.freeze({
|
|
|
25589
26012
|
addonId: null,
|
|
25590
26013
|
access: "delete"
|
|
25591
26014
|
},
|
|
26015
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26016
|
+
capName: "user-passkeys",
|
|
26017
|
+
capScope: "system",
|
|
26018
|
+
addonId: null,
|
|
26019
|
+
access: "create"
|
|
26020
|
+
},
|
|
25592
26021
|
"vacuumControl.locate": {
|
|
25593
26022
|
capName: "vacuum-control",
|
|
25594
26023
|
capScope: "device",
|
|
@@ -25661,6 +26090,18 @@ Object.freeze({
|
|
|
25661
26090
|
addonId: null,
|
|
25662
26091
|
access: "view"
|
|
25663
26092
|
},
|
|
26093
|
+
"viewerUi.getStaticDir": {
|
|
26094
|
+
capName: "viewer-ui",
|
|
26095
|
+
capScope: "system",
|
|
26096
|
+
addonId: null,
|
|
26097
|
+
access: "view"
|
|
26098
|
+
},
|
|
26099
|
+
"viewerUi.getVersion": {
|
|
26100
|
+
capName: "viewer-ui",
|
|
26101
|
+
capScope: "system",
|
|
26102
|
+
addonId: null,
|
|
26103
|
+
access: "view"
|
|
26104
|
+
},
|
|
25664
26105
|
"waterHeater.setAway": {
|
|
25665
26106
|
capName: "water-heater",
|
|
25666
26107
|
capScope: "device",
|
|
@@ -25679,54 +26120,6 @@ Object.freeze({
|
|
|
25679
26120
|
addonId: null,
|
|
25680
26121
|
access: "create"
|
|
25681
26122
|
},
|
|
25682
|
-
"webrtc.closeSession": {
|
|
25683
|
-
capName: "webrtc",
|
|
25684
|
-
capScope: "system",
|
|
25685
|
-
addonId: null,
|
|
25686
|
-
access: "create"
|
|
25687
|
-
},
|
|
25688
|
-
"webrtc.createSession": {
|
|
25689
|
-
capName: "webrtc",
|
|
25690
|
-
capScope: "system",
|
|
25691
|
-
addonId: null,
|
|
25692
|
-
access: "create"
|
|
25693
|
-
},
|
|
25694
|
-
"webrtc.handleAnswer": {
|
|
25695
|
-
capName: "webrtc",
|
|
25696
|
-
capScope: "system",
|
|
25697
|
-
addonId: null,
|
|
25698
|
-
access: "create"
|
|
25699
|
-
},
|
|
25700
|
-
"webrtc.handleOffer": {
|
|
25701
|
-
capName: "webrtc",
|
|
25702
|
-
capScope: "system",
|
|
25703
|
-
addonId: null,
|
|
25704
|
-
access: "create"
|
|
25705
|
-
},
|
|
25706
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25707
|
-
capName: "webrtc",
|
|
25708
|
-
capScope: "system",
|
|
25709
|
-
addonId: null,
|
|
25710
|
-
access: "view"
|
|
25711
|
-
},
|
|
25712
|
-
"webrtc.registerStream": {
|
|
25713
|
-
capName: "webrtc",
|
|
25714
|
-
capScope: "system",
|
|
25715
|
-
addonId: null,
|
|
25716
|
-
access: "create"
|
|
25717
|
-
},
|
|
25718
|
-
"webrtc.supportsStream": {
|
|
25719
|
-
capName: "webrtc",
|
|
25720
|
-
capScope: "system",
|
|
25721
|
-
addonId: null,
|
|
25722
|
-
access: "view"
|
|
25723
|
-
},
|
|
25724
|
-
"webrtc.unregisterStream": {
|
|
25725
|
-
capName: "webrtc",
|
|
25726
|
-
capScope: "system",
|
|
25727
|
-
addonId: null,
|
|
25728
|
-
access: "delete"
|
|
25729
|
-
},
|
|
25730
26123
|
"webrtcSession.addIceCandidate": {
|
|
25731
26124
|
capName: "webrtc-session",
|
|
25732
26125
|
capScope: "device",
|