@camstack/addon-provider-unraid 0.1.6 → 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 +672 -287
- package/dist/addon.mjs +672 -287
- 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;
|
|
@@ -19811,7 +20187,17 @@ var FaceInfoSchema = object({
|
|
|
19811
20187
|
recognizedIdentityId: string().optional(),
|
|
19812
20188
|
identityName: string().optional(),
|
|
19813
20189
|
assigned: boolean(),
|
|
19814
|
-
base64: string().optional()
|
|
20190
|
+
base64: string().optional(),
|
|
20191
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20192
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20193
|
+
* legacy rows written before design B. */
|
|
20194
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20195
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20196
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20197
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20198
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20199
|
+
* back to the inline `base64` face crop. */
|
|
20200
|
+
keyFrameMediaKey: string().optional()
|
|
19815
20201
|
});
|
|
19816
20202
|
var FaceFilterEnum = _enum([
|
|
19817
20203
|
"unassigned",
|
|
@@ -20508,6 +20894,16 @@ var TopologyCategorySchema = object({
|
|
|
20508
20894
|
healthy: number(),
|
|
20509
20895
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20510
20896
|
});
|
|
20897
|
+
/**
|
|
20898
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20899
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20900
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20901
|
+
* rows and pre-phase-2 nodes report none.
|
|
20902
|
+
*/
|
|
20903
|
+
var TopologyRootPackageSchema = object({
|
|
20904
|
+
name: string(),
|
|
20905
|
+
version: string()
|
|
20906
|
+
});
|
|
20511
20907
|
var TopologyNodeSchema = object({
|
|
20512
20908
|
id: string(),
|
|
20513
20909
|
name: string(),
|
|
@@ -20531,7 +20927,8 @@ var TopologyNodeSchema = object({
|
|
|
20531
20927
|
status: string()
|
|
20532
20928
|
})).readonly(),
|
|
20533
20929
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20534
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20930
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20931
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20535
20932
|
});
|
|
20536
20933
|
var CapUsageEdgeSchema = object({
|
|
20537
20934
|
callerAddonId: string(),
|
|
@@ -23331,6 +23728,12 @@ Object.freeze({
|
|
|
23331
23728
|
addonId: null,
|
|
23332
23729
|
access: "create"
|
|
23333
23730
|
},
|
|
23731
|
+
"loginMethod.getLoginMethods": {
|
|
23732
|
+
capName: "login-method",
|
|
23733
|
+
capScope: "system",
|
|
23734
|
+
addonId: null,
|
|
23735
|
+
access: "view"
|
|
23736
|
+
},
|
|
23334
23737
|
"mediaPlayer.next": {
|
|
23335
23738
|
capName: "media-player",
|
|
23336
23739
|
capScope: "device",
|
|
@@ -23913,6 +24316,12 @@ Object.freeze({
|
|
|
23913
24316
|
addonId: null,
|
|
23914
24317
|
access: "view"
|
|
23915
24318
|
},
|
|
24319
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24320
|
+
capName: "pipeline-analytics",
|
|
24321
|
+
capScope: "device",
|
|
24322
|
+
addonId: null,
|
|
24323
|
+
access: "view"
|
|
24324
|
+
},
|
|
23916
24325
|
"pipelineAnalytics.getMotionEvents": {
|
|
23917
24326
|
capName: "pipeline-analytics",
|
|
23918
24327
|
capScope: "device",
|
|
@@ -23961,23 +24370,23 @@ Object.freeze({
|
|
|
23961
24370
|
addonId: null,
|
|
23962
24371
|
access: "create"
|
|
23963
24372
|
},
|
|
23964
|
-
"pipelineExecutor.
|
|
24373
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
23965
24374
|
capName: "pipeline-executor",
|
|
23966
24375
|
capScope: "system",
|
|
23967
24376
|
addonId: null,
|
|
23968
24377
|
access: "delete"
|
|
23969
24378
|
},
|
|
23970
|
-
"pipelineExecutor.
|
|
24379
|
+
"pipelineExecutor.deleteModel": {
|
|
23971
24380
|
capName: "pipeline-executor",
|
|
23972
24381
|
capScope: "system",
|
|
23973
24382
|
addonId: null,
|
|
23974
24383
|
access: "delete"
|
|
23975
24384
|
},
|
|
23976
|
-
"pipelineExecutor.
|
|
24385
|
+
"pipelineExecutor.deleteTemplate": {
|
|
23977
24386
|
capName: "pipeline-executor",
|
|
23978
24387
|
capScope: "system",
|
|
23979
24388
|
addonId: null,
|
|
23980
|
-
access: "
|
|
24389
|
+
access: "delete"
|
|
23981
24390
|
},
|
|
23982
24391
|
"pipelineExecutor.downloadModel": {
|
|
23983
24392
|
capName: "pipeline-executor",
|
|
@@ -24171,13 +24580,13 @@ Object.freeze({
|
|
|
24171
24580
|
addonId: null,
|
|
24172
24581
|
access: "create"
|
|
24173
24582
|
},
|
|
24174
|
-
"
|
|
24175
|
-
capName: "pipeline-
|
|
24583
|
+
"pipelineExecutor.validatePipeline": {
|
|
24584
|
+
capName: "pipeline-executor",
|
|
24176
24585
|
capScope: "system",
|
|
24177
24586
|
addonId: null,
|
|
24178
|
-
access: "
|
|
24587
|
+
access: "view"
|
|
24179
24588
|
},
|
|
24180
|
-
"pipelineOrchestrator.
|
|
24589
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24181
24590
|
capName: "pipeline-orchestrator",
|
|
24182
24591
|
capScope: "system",
|
|
24183
24592
|
addonId: null,
|
|
@@ -24261,19 +24670,13 @@ Object.freeze({
|
|
|
24261
24670
|
addonId: null,
|
|
24262
24671
|
access: "view"
|
|
24263
24672
|
},
|
|
24264
|
-
"pipelineOrchestrator.
|
|
24265
|
-
capName: "pipeline-orchestrator",
|
|
24266
|
-
capScope: "system",
|
|
24267
|
-
addonId: null,
|
|
24268
|
-
access: "view"
|
|
24269
|
-
},
|
|
24270
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24673
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24271
24674
|
capName: "pipeline-orchestrator",
|
|
24272
24675
|
capScope: "system",
|
|
24273
24676
|
addonId: null,
|
|
24274
24677
|
access: "view"
|
|
24275
24678
|
},
|
|
24276
|
-
"pipelineOrchestrator.
|
|
24679
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24277
24680
|
capName: "pipeline-orchestrator",
|
|
24278
24681
|
capScope: "system",
|
|
24279
24682
|
addonId: null,
|
|
@@ -24315,6 +24718,12 @@ Object.freeze({
|
|
|
24315
24718
|
addonId: null,
|
|
24316
24719
|
access: "delete"
|
|
24317
24720
|
},
|
|
24721
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24722
|
+
capName: "pipeline-orchestrator",
|
|
24723
|
+
capScope: "system",
|
|
24724
|
+
addonId: null,
|
|
24725
|
+
access: "delete"
|
|
24726
|
+
},
|
|
24318
24727
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24319
24728
|
capName: "pipeline-orchestrator",
|
|
24320
24729
|
capScope: "system",
|
|
@@ -24351,37 +24760,37 @@ Object.freeze({
|
|
|
24351
24760
|
addonId: null,
|
|
24352
24761
|
access: "create"
|
|
24353
24762
|
},
|
|
24354
|
-
"pipelineOrchestrator.
|
|
24763
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24355
24764
|
capName: "pipeline-orchestrator",
|
|
24356
24765
|
capScope: "system",
|
|
24357
24766
|
addonId: null,
|
|
24358
24767
|
access: "create"
|
|
24359
24768
|
},
|
|
24360
|
-
"pipelineOrchestrator.
|
|
24769
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24361
24770
|
capName: "pipeline-orchestrator",
|
|
24362
24771
|
capScope: "system",
|
|
24363
24772
|
addonId: null,
|
|
24364
24773
|
access: "create"
|
|
24365
24774
|
},
|
|
24366
|
-
"pipelineOrchestrator.
|
|
24775
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24367
24776
|
capName: "pipeline-orchestrator",
|
|
24368
24777
|
capScope: "system",
|
|
24369
24778
|
addonId: null,
|
|
24370
24779
|
access: "create"
|
|
24371
24780
|
},
|
|
24372
|
-
"pipelineOrchestrator.
|
|
24781
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24373
24782
|
capName: "pipeline-orchestrator",
|
|
24374
24783
|
capScope: "system",
|
|
24375
24784
|
addonId: null,
|
|
24376
24785
|
access: "create"
|
|
24377
24786
|
},
|
|
24378
|
-
"pipelineOrchestrator.
|
|
24787
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24379
24788
|
capName: "pipeline-orchestrator",
|
|
24380
24789
|
capScope: "system",
|
|
24381
24790
|
addonId: null,
|
|
24382
24791
|
access: "create"
|
|
24383
24792
|
},
|
|
24384
|
-
"pipelineOrchestrator.
|
|
24793
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24385
24794
|
capName: "pipeline-orchestrator",
|
|
24386
24795
|
capScope: "system",
|
|
24387
24796
|
addonId: null,
|
|
@@ -24441,6 +24850,12 @@ Object.freeze({
|
|
|
24441
24850
|
addonId: null,
|
|
24442
24851
|
access: "view"
|
|
24443
24852
|
},
|
|
24853
|
+
"pipelineRunner.getNativeCrop": {
|
|
24854
|
+
capName: "pipeline-runner",
|
|
24855
|
+
capScope: "system",
|
|
24856
|
+
addonId: null,
|
|
24857
|
+
access: "view"
|
|
24858
|
+
},
|
|
24444
24859
|
"pipelineRunner.reportMotion": {
|
|
24445
24860
|
capName: "pipeline-runner",
|
|
24446
24861
|
capScope: "system",
|
|
@@ -24681,33 +25096,45 @@ Object.freeze({
|
|
|
24681
25096
|
addonId: null,
|
|
24682
25097
|
access: "create"
|
|
24683
25098
|
},
|
|
24684
|
-
"
|
|
24685
|
-
capName: "
|
|
25099
|
+
"scriptRunner.run": {
|
|
25100
|
+
capName: "script-runner",
|
|
25101
|
+
capScope: "device",
|
|
25102
|
+
addonId: null,
|
|
25103
|
+
access: "create"
|
|
25104
|
+
},
|
|
25105
|
+
"scriptRunner.stop": {
|
|
25106
|
+
capName: "script-runner",
|
|
25107
|
+
capScope: "device",
|
|
25108
|
+
addonId: null,
|
|
25109
|
+
access: "create"
|
|
25110
|
+
},
|
|
25111
|
+
"serverManagement.applyServerUpdate": {
|
|
25112
|
+
capName: "server-management",
|
|
24686
25113
|
capScope: "system",
|
|
24687
25114
|
addonId: null,
|
|
24688
|
-
access: "
|
|
25115
|
+
access: "create"
|
|
24689
25116
|
},
|
|
24690
|
-
"
|
|
24691
|
-
capName: "
|
|
25117
|
+
"serverManagement.checkServerUpdate": {
|
|
25118
|
+
capName: "server-management",
|
|
24692
25119
|
capScope: "system",
|
|
24693
25120
|
addonId: null,
|
|
24694
25121
|
access: "create"
|
|
24695
25122
|
},
|
|
24696
|
-
"
|
|
24697
|
-
capName: "
|
|
25123
|
+
"serverManagement.getServerPackageStatus": {
|
|
25124
|
+
capName: "server-management",
|
|
24698
25125
|
capScope: "system",
|
|
24699
25126
|
addonId: null,
|
|
24700
|
-
access: "
|
|
25127
|
+
access: "view"
|
|
24701
25128
|
},
|
|
24702
|
-
"
|
|
24703
|
-
capName: "
|
|
24704
|
-
capScope: "
|
|
25129
|
+
"serverManagement.restartServer": {
|
|
25130
|
+
capName: "server-management",
|
|
25131
|
+
capScope: "system",
|
|
24705
25132
|
addonId: null,
|
|
24706
25133
|
access: "create"
|
|
24707
25134
|
},
|
|
24708
|
-
"
|
|
24709
|
-
capName: "
|
|
24710
|
-
capScope: "
|
|
25135
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25136
|
+
capName: "server-management",
|
|
25137
|
+
capScope: "system",
|
|
24711
25138
|
addonId: null,
|
|
24712
25139
|
access: "create"
|
|
24713
25140
|
},
|
|
@@ -24795,23 +25222,17 @@ Object.freeze({
|
|
|
24795
25222
|
addonId: null,
|
|
24796
25223
|
access: "view"
|
|
24797
25224
|
},
|
|
24798
|
-
"snapshot.
|
|
25225
|
+
"snapshot.getSnapshotOverview": {
|
|
24799
25226
|
capName: "snapshot",
|
|
24800
25227
|
capScope: "device",
|
|
24801
25228
|
addonId: null,
|
|
24802
|
-
access: "create"
|
|
24803
|
-
},
|
|
24804
|
-
"snapshotProvider.getSnapshot": {
|
|
24805
|
-
capName: "snapshot-provider",
|
|
24806
|
-
capScope: "system",
|
|
24807
|
-
addonId: null,
|
|
24808
25229
|
access: "view"
|
|
24809
25230
|
},
|
|
24810
|
-
"
|
|
24811
|
-
capName: "snapshot
|
|
24812
|
-
capScope: "
|
|
25231
|
+
"snapshot.invalidateCache": {
|
|
25232
|
+
capName: "snapshot",
|
|
25233
|
+
capScope: "device",
|
|
24813
25234
|
addonId: null,
|
|
24814
|
-
access: "
|
|
25235
|
+
access: "create"
|
|
24815
25236
|
},
|
|
24816
25237
|
"ssoBridge.signBridgeToken": {
|
|
24817
25238
|
capName: "sso-bridge",
|
|
@@ -25239,30 +25660,6 @@ Object.freeze({
|
|
|
25239
25660
|
addonId: null,
|
|
25240
25661
|
access: "view"
|
|
25241
25662
|
},
|
|
25242
|
-
"streamingEngine.getStreamUrl": {
|
|
25243
|
-
capName: "streaming-engine",
|
|
25244
|
-
capScope: "system",
|
|
25245
|
-
addonId: null,
|
|
25246
|
-
access: "view"
|
|
25247
|
-
},
|
|
25248
|
-
"streamingEngine.listStreams": {
|
|
25249
|
-
capName: "streaming-engine",
|
|
25250
|
-
capScope: "system",
|
|
25251
|
-
addonId: null,
|
|
25252
|
-
access: "view"
|
|
25253
|
-
},
|
|
25254
|
-
"streamingEngine.registerStream": {
|
|
25255
|
-
capName: "streaming-engine",
|
|
25256
|
-
capScope: "system",
|
|
25257
|
-
addonId: null,
|
|
25258
|
-
access: "create"
|
|
25259
|
-
},
|
|
25260
|
-
"streamingEngine.unregisterStream": {
|
|
25261
|
-
capName: "streaming-engine",
|
|
25262
|
-
capScope: "system",
|
|
25263
|
-
addonId: null,
|
|
25264
|
-
access: "delete"
|
|
25265
|
-
},
|
|
25266
25663
|
"streamParams.getConfigSchema": {
|
|
25267
25664
|
capName: "stream-params",
|
|
25268
25665
|
capScope: "device",
|
|
@@ -25509,6 +25906,12 @@ Object.freeze({
|
|
|
25509
25906
|
addonId: null,
|
|
25510
25907
|
access: "view"
|
|
25511
25908
|
},
|
|
25909
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25910
|
+
capName: "user-passkeys",
|
|
25911
|
+
capScope: "system",
|
|
25912
|
+
addonId: null,
|
|
25913
|
+
access: "view"
|
|
25914
|
+
},
|
|
25512
25915
|
"userPasskeys.beginRegistration": {
|
|
25513
25916
|
capName: "user-passkeys",
|
|
25514
25917
|
capScope: "system",
|
|
@@ -25521,12 +25924,24 @@ Object.freeze({
|
|
|
25521
25924
|
addonId: null,
|
|
25522
25925
|
access: "view"
|
|
25523
25926
|
},
|
|
25927
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25928
|
+
capName: "user-passkeys",
|
|
25929
|
+
capScope: "system",
|
|
25930
|
+
addonId: null,
|
|
25931
|
+
access: "view"
|
|
25932
|
+
},
|
|
25524
25933
|
"userPasskeys.finishRegistration": {
|
|
25525
25934
|
capName: "user-passkeys",
|
|
25526
25935
|
capScope: "system",
|
|
25527
25936
|
addonId: null,
|
|
25528
25937
|
access: "create"
|
|
25529
25938
|
},
|
|
25939
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25940
|
+
capName: "user-passkeys",
|
|
25941
|
+
capScope: "system",
|
|
25942
|
+
addonId: null,
|
|
25943
|
+
access: "view"
|
|
25944
|
+
},
|
|
25530
25945
|
"userPasskeys.listPasskeys": {
|
|
25531
25946
|
capName: "user-passkeys",
|
|
25532
25947
|
capScope: "system",
|
|
@@ -25539,6 +25954,12 @@ Object.freeze({
|
|
|
25539
25954
|
addonId: null,
|
|
25540
25955
|
access: "delete"
|
|
25541
25956
|
},
|
|
25957
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
25958
|
+
capName: "user-passkeys",
|
|
25959
|
+
capScope: "system",
|
|
25960
|
+
addonId: null,
|
|
25961
|
+
access: "create"
|
|
25962
|
+
},
|
|
25542
25963
|
"vacuumControl.locate": {
|
|
25543
25964
|
capName: "vacuum-control",
|
|
25544
25965
|
capScope: "device",
|
|
@@ -25611,6 +26032,18 @@ Object.freeze({
|
|
|
25611
26032
|
addonId: null,
|
|
25612
26033
|
access: "view"
|
|
25613
26034
|
},
|
|
26035
|
+
"viewerUi.getStaticDir": {
|
|
26036
|
+
capName: "viewer-ui",
|
|
26037
|
+
capScope: "system",
|
|
26038
|
+
addonId: null,
|
|
26039
|
+
access: "view"
|
|
26040
|
+
},
|
|
26041
|
+
"viewerUi.getVersion": {
|
|
26042
|
+
capName: "viewer-ui",
|
|
26043
|
+
capScope: "system",
|
|
26044
|
+
addonId: null,
|
|
26045
|
+
access: "view"
|
|
26046
|
+
},
|
|
25614
26047
|
"waterHeater.setAway": {
|
|
25615
26048
|
capName: "water-heater",
|
|
25616
26049
|
capScope: "device",
|
|
@@ -25629,54 +26062,6 @@ Object.freeze({
|
|
|
25629
26062
|
addonId: null,
|
|
25630
26063
|
access: "create"
|
|
25631
26064
|
},
|
|
25632
|
-
"webrtc.closeSession": {
|
|
25633
|
-
capName: "webrtc",
|
|
25634
|
-
capScope: "system",
|
|
25635
|
-
addonId: null,
|
|
25636
|
-
access: "create"
|
|
25637
|
-
},
|
|
25638
|
-
"webrtc.createSession": {
|
|
25639
|
-
capName: "webrtc",
|
|
25640
|
-
capScope: "system",
|
|
25641
|
-
addonId: null,
|
|
25642
|
-
access: "create"
|
|
25643
|
-
},
|
|
25644
|
-
"webrtc.handleAnswer": {
|
|
25645
|
-
capName: "webrtc",
|
|
25646
|
-
capScope: "system",
|
|
25647
|
-
addonId: null,
|
|
25648
|
-
access: "create"
|
|
25649
|
-
},
|
|
25650
|
-
"webrtc.handleOffer": {
|
|
25651
|
-
capName: "webrtc",
|
|
25652
|
-
capScope: "system",
|
|
25653
|
-
addonId: null,
|
|
25654
|
-
access: "create"
|
|
25655
|
-
},
|
|
25656
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25657
|
-
capName: "webrtc",
|
|
25658
|
-
capScope: "system",
|
|
25659
|
-
addonId: null,
|
|
25660
|
-
access: "view"
|
|
25661
|
-
},
|
|
25662
|
-
"webrtc.registerStream": {
|
|
25663
|
-
capName: "webrtc",
|
|
25664
|
-
capScope: "system",
|
|
25665
|
-
addonId: null,
|
|
25666
|
-
access: "create"
|
|
25667
|
-
},
|
|
25668
|
-
"webrtc.supportsStream": {
|
|
25669
|
-
capName: "webrtc",
|
|
25670
|
-
capScope: "system",
|
|
25671
|
-
addonId: null,
|
|
25672
|
-
access: "view"
|
|
25673
|
-
},
|
|
25674
|
-
"webrtc.unregisterStream": {
|
|
25675
|
-
capName: "webrtc",
|
|
25676
|
-
capScope: "system",
|
|
25677
|
-
addonId: null,
|
|
25678
|
-
access: "delete"
|
|
25679
|
-
},
|
|
25680
26065
|
"webrtcSession.addIceCandidate": {
|
|
25681
26066
|
capName: "webrtc-session",
|
|
25682
26067
|
capScope: "device",
|