@camstack/addon-provider-dreame 0.1.26 → 0.1.27
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
|
@@ -4680,7 +4680,7 @@ function preprocess(fn, schema) {
|
|
|
4680
4680
|
});
|
|
4681
4681
|
}
|
|
4682
4682
|
//#endregion
|
|
4683
|
-
//#region ../types/dist/sleep-
|
|
4683
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4684
4684
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4685
4685
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4686
4686
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4866,6 +4866,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4866
4866
|
*/
|
|
4867
4867
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4868
4868
|
/**
|
|
4869
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4870
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4871
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4872
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4873
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4874
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4875
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4876
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4877
|
+
* broker's long backstop reconcile query).
|
|
4878
|
+
*/
|
|
4879
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4880
|
+
/**
|
|
4869
4881
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4870
4882
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4871
4883
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5389,10 +5401,6 @@ function hydrateField(field, values) {
|
|
|
5389
5401
|
};
|
|
5390
5402
|
}
|
|
5391
5403
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5392
|
-
if (field.type === "password") return {
|
|
5393
|
-
...field,
|
|
5394
|
-
value: ""
|
|
5395
|
-
};
|
|
5396
5404
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5397
5405
|
return {
|
|
5398
5406
|
...field,
|
|
@@ -6776,10 +6784,25 @@ function method(input, output, options) {
|
|
|
6776
6784
|
timeoutMs: options?.timeoutMs
|
|
6777
6785
|
};
|
|
6778
6786
|
}
|
|
6787
|
+
/**
|
|
6788
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6789
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6790
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6791
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6792
|
+
*/
|
|
6793
|
+
function systemMethod(input, output, options) {
|
|
6794
|
+
return {
|
|
6795
|
+
...method(input, output, options),
|
|
6796
|
+
systemOnly: true
|
|
6797
|
+
};
|
|
6798
|
+
}
|
|
6779
6799
|
/** Shorthand to define an event schema */
|
|
6780
6800
|
function event(data) {
|
|
6781
6801
|
return { data };
|
|
6782
6802
|
}
|
|
6803
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6804
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6805
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6783
6806
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6784
6807
|
var VersionOutputSchema = object({ version: string() });
|
|
6785
6808
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6961,6 +6984,36 @@ var ModelFormatsSchema = object({
|
|
|
6961
6984
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6962
6985
|
pt: ModelFormatEntrySchema.optional()
|
|
6963
6986
|
});
|
|
6987
|
+
/**
|
|
6988
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6989
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6990
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6991
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6992
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6993
|
+
* to an `id`.
|
|
6994
|
+
*/
|
|
6995
|
+
var ModelVariantGroupSchema = object({
|
|
6996
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6997
|
+
family: string(),
|
|
6998
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6999
|
+
tier: string(),
|
|
7000
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
7001
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
7002
|
+
/**
|
|
7003
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
7004
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
7005
|
+
* future performance variants plug into.
|
|
7006
|
+
*/
|
|
7007
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
7008
|
+
/**
|
|
7009
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
7010
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
7011
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
7012
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
7013
|
+
* the group so the selector can offer it as a variant axis.
|
|
7014
|
+
*/
|
|
7015
|
+
resolution: number().int().positive().optional()
|
|
7016
|
+
});
|
|
6964
7017
|
var ModelCatalogEntrySchema = object({
|
|
6965
7018
|
id: string(),
|
|
6966
7019
|
name: string(),
|
|
@@ -6990,7 +7043,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6990
7043
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6991
7044
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6992
7045
|
*/
|
|
6993
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7046
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7047
|
+
/**
|
|
7048
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7049
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7050
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7051
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7052
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7053
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7054
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7055
|
+
*/
|
|
7056
|
+
legacy: boolean().optional(),
|
|
7057
|
+
/**
|
|
7058
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7059
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7060
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7061
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7062
|
+
*/
|
|
7063
|
+
metrics: object({
|
|
7064
|
+
map50: number().optional(),
|
|
7065
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7066
|
+
}).optional(),
|
|
7067
|
+
/**
|
|
7068
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7069
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7070
|
+
* the retraining addon and any future commercial distribution.
|
|
7071
|
+
*/
|
|
7072
|
+
license: string().optional(),
|
|
7073
|
+
/**
|
|
7074
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7075
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7076
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7077
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7078
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7079
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7080
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7081
|
+
*/
|
|
7082
|
+
group: ModelVariantGroupSchema.optional()
|
|
6994
7083
|
});
|
|
6995
7084
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6996
7085
|
format: literal("openvino"),
|
|
@@ -7051,8 +7140,8 @@ var RecordingModeSchema = _enum([
|
|
|
7051
7140
|
"onAudioThreshold"
|
|
7052
7141
|
]);
|
|
7053
7142
|
/**
|
|
7054
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7055
|
-
* reads directly (never inferred from `rules`):
|
|
7143
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7144
|
+
* UI reads directly (never inferred from `rules`):
|
|
7056
7145
|
* - `off` — not recording.
|
|
7057
7146
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7058
7147
|
* with pre/post-buffer.
|
|
@@ -9215,26 +9304,13 @@ onBrightnessChanged: { data: object({
|
|
|
9215
9304
|
*/
|
|
9216
9305
|
runtimeState: BrightnessStatusSchema
|
|
9217
9306
|
};
|
|
9307
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
9218
9308
|
var StreamFormatSchema = _enum([
|
|
9219
9309
|
"webrtc",
|
|
9220
9310
|
"hls",
|
|
9221
9311
|
"mjpeg",
|
|
9222
9312
|
"rtsp"
|
|
9223
9313
|
]);
|
|
9224
|
-
var StreamInfoSchema = object({
|
|
9225
|
-
streamId: string(),
|
|
9226
|
-
format: StreamFormatSchema,
|
|
9227
|
-
url: string().nullable(),
|
|
9228
|
-
active: boolean()
|
|
9229
|
-
});
|
|
9230
|
-
method(object({
|
|
9231
|
-
streamId: string(),
|
|
9232
|
-
sourceUrl: string(),
|
|
9233
|
-
codec: string().optional()
|
|
9234
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
9235
|
-
streamId: string(),
|
|
9236
|
-
format: StreamFormatSchema
|
|
9237
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
9238
9314
|
var RtspRestreamEntrySchema = object({
|
|
9239
9315
|
brokerId: string(),
|
|
9240
9316
|
url: string(),
|
|
@@ -10102,37 +10178,7 @@ var consumablesCapability = {
|
|
|
10102
10178
|
scope: "device",
|
|
10103
10179
|
deviceNative: true,
|
|
10104
10180
|
mode: "singleton",
|
|
10105
|
-
deviceTypes:
|
|
10106
|
-
DeviceType.Camera,
|
|
10107
|
-
DeviceType.Hub,
|
|
10108
|
-
DeviceType.Light,
|
|
10109
|
-
DeviceType.Siren,
|
|
10110
|
-
DeviceType.Switch,
|
|
10111
|
-
DeviceType.Sensor,
|
|
10112
|
-
DeviceType.Thermostat,
|
|
10113
|
-
DeviceType.Button,
|
|
10114
|
-
DeviceType.EventEmitter,
|
|
10115
|
-
DeviceType.Update,
|
|
10116
|
-
DeviceType.Generic,
|
|
10117
|
-
DeviceType.Notifier,
|
|
10118
|
-
DeviceType.Script,
|
|
10119
|
-
DeviceType.Automation,
|
|
10120
|
-
DeviceType.Lock,
|
|
10121
|
-
DeviceType.Cover,
|
|
10122
|
-
DeviceType.Valve,
|
|
10123
|
-
DeviceType.Humidifier,
|
|
10124
|
-
DeviceType.WaterHeater,
|
|
10125
|
-
DeviceType.Fan,
|
|
10126
|
-
DeviceType.MediaPlayer,
|
|
10127
|
-
DeviceType.AlarmPanel,
|
|
10128
|
-
DeviceType.Control,
|
|
10129
|
-
DeviceType.Presence,
|
|
10130
|
-
DeviceType.Weather,
|
|
10131
|
-
DeviceType.Vacuum,
|
|
10132
|
-
DeviceType.LawnMower,
|
|
10133
|
-
DeviceType.Container,
|
|
10134
|
-
DeviceType.Image
|
|
10135
|
-
],
|
|
10181
|
+
deviceTypes: Object.values(DeviceType),
|
|
10136
10182
|
deviceConfig: { ui: {
|
|
10137
10183
|
kind: "widget",
|
|
10138
10184
|
widgetId: "host/consumables-panel",
|
|
@@ -11590,7 +11636,7 @@ var BoundingBoxSchema = object({
|
|
|
11590
11636
|
w: number(),
|
|
11591
11637
|
h: number()
|
|
11592
11638
|
});
|
|
11593
|
-
|
|
11639
|
+
object({
|
|
11594
11640
|
class: string(),
|
|
11595
11641
|
originalClass: string(),
|
|
11596
11642
|
score: number(),
|
|
@@ -11725,7 +11771,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
11725
11771
|
enabled: boolean(),
|
|
11726
11772
|
modelId: string(),
|
|
11727
11773
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
11728
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
11729
11774
|
group: string().optional(),
|
|
11730
11775
|
settings: record(string(), unknown()).optional()
|
|
11731
11776
|
}));
|
|
@@ -11750,7 +11795,9 @@ var PipelineModelOptionSchema = object({
|
|
|
11750
11795
|
formats: record(string(), object({
|
|
11751
11796
|
downloaded: boolean(),
|
|
11752
11797
|
sizeMB: number()
|
|
11753
|
-
}))
|
|
11798
|
+
})),
|
|
11799
|
+
group: ModelVariantGroupSchema.optional(),
|
|
11800
|
+
legacy: boolean().optional()
|
|
11754
11801
|
});
|
|
11755
11802
|
var ConfigFieldBridge = custom();
|
|
11756
11803
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -11764,6 +11811,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
11764
11811
|
defaultModelId: string(),
|
|
11765
11812
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
11766
11813
|
enabledByDefault: boolean().optional(),
|
|
11814
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
11767
11815
|
defaultConfidence: number(),
|
|
11768
11816
|
group: string().optional(),
|
|
11769
11817
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -11780,11 +11828,6 @@ var PipelineSchemaSchema = object({
|
|
|
11780
11828
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
11781
11829
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
11782
11830
|
});
|
|
11783
|
-
var DetectorOutputSchema = object({
|
|
11784
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
11785
|
-
inferenceMs: number(),
|
|
11786
|
-
modelId: string()
|
|
11787
|
-
});
|
|
11788
11831
|
var EngineProvisioningSchema = object({
|
|
11789
11832
|
runtimeId: _enum([
|
|
11790
11833
|
"onnx",
|
|
@@ -11801,15 +11844,42 @@ var EngineProvisioningSchema = object({
|
|
|
11801
11844
|
]),
|
|
11802
11845
|
progress: number().optional(),
|
|
11803
11846
|
error: string().optional(),
|
|
11804
|
-
nextRetryAt: number().optional()
|
|
11847
|
+
nextRetryAt: number().optional(),
|
|
11848
|
+
/**
|
|
11849
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
11850
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
11851
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
11852
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
11853
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
11854
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
11855
|
+
*/
|
|
11856
|
+
configIssues: array(string()).optional()
|
|
11805
11857
|
});
|
|
11806
11858
|
var PipelineStepInputSchema = lazy(() => object({
|
|
11807
11859
|
addonId: string(),
|
|
11808
|
-
modelId: string(),
|
|
11860
|
+
modelId: string().optional(),
|
|
11809
11861
|
enabled: boolean().default(true),
|
|
11810
11862
|
children: array(PipelineStepInputSchema).optional(),
|
|
11811
11863
|
settings: record(string(), unknown()).optional()
|
|
11812
11864
|
}));
|
|
11865
|
+
var ModelSubstitutionSchema = object({
|
|
11866
|
+
addonId: string(),
|
|
11867
|
+
chosen: string(),
|
|
11868
|
+
running: string(),
|
|
11869
|
+
format: string()
|
|
11870
|
+
});
|
|
11871
|
+
var PipelineValidationIssueSchema = object({
|
|
11872
|
+
addonId: string(),
|
|
11873
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
11874
|
+
detail: string()
|
|
11875
|
+
});
|
|
11876
|
+
var PipelineValidationResultSchema = object({
|
|
11877
|
+
ok: boolean(),
|
|
11878
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
11879
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
11880
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
11881
|
+
format: string()
|
|
11882
|
+
});
|
|
11813
11883
|
var ReferenceImageEntrySchema = object({
|
|
11814
11884
|
filename: string(),
|
|
11815
11885
|
stepIds: array(string()).readonly().optional()
|
|
@@ -11880,7 +11950,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11880
11950
|
})) }), object({ success: literal(true) }), {
|
|
11881
11951
|
kind: "mutation",
|
|
11882
11952
|
auth: "admin"
|
|
11883
|
-
}), method(
|
|
11953
|
+
}), method(object({ nodeId: string() }), object({
|
|
11954
|
+
success: literal(true),
|
|
11955
|
+
clearedDevices: number()
|
|
11956
|
+
}), {
|
|
11957
|
+
kind: "mutation",
|
|
11958
|
+
auth: "admin"
|
|
11959
|
+
}), 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({
|
|
11884
11960
|
name: string(),
|
|
11885
11961
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
11886
11962
|
engine: PipelineEngineChoiceSchema
|
|
@@ -11897,10 +11973,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
11897
11973
|
modelId: string(),
|
|
11898
11974
|
format: ModelFormatSchema$1
|
|
11899
11975
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
11900
|
-
addonId: string(),
|
|
11901
|
-
frame: FrameInputSchema,
|
|
11902
|
-
config: record(string(), unknown()).optional()
|
|
11903
|
-
}), DetectorOutputSchema), method(object({
|
|
11904
11976
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
11905
11977
|
steps: array(PipelineStepInputSchema).min(1),
|
|
11906
11978
|
frame: FrameInputSchema.optional(),
|
|
@@ -12079,6 +12151,25 @@ var zonesCapability = {
|
|
|
12079
12151
|
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
12080
12152
|
};
|
|
12081
12153
|
/**
|
|
12154
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
12155
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
12156
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
12157
|
+
* dims — no native resolution to plumb.
|
|
12158
|
+
*/
|
|
12159
|
+
var NativeCropBboxSchema = object({
|
|
12160
|
+
x: number(),
|
|
12161
|
+
y: number(),
|
|
12162
|
+
w: number(),
|
|
12163
|
+
h: number()
|
|
12164
|
+
});
|
|
12165
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12166
|
+
var NativeCropResultSchema = object({
|
|
12167
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
12168
|
+
bytes: _instanceof(Uint8Array),
|
|
12169
|
+
width: number().int().positive(),
|
|
12170
|
+
height: number().int().positive()
|
|
12171
|
+
});
|
|
12172
|
+
/**
|
|
12082
12173
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
12083
12174
|
* by both the Zod data schema (validation + default fallback) and
|
|
12084
12175
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -12173,6 +12264,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12173
12264
|
kind: literal("remote-restream"),
|
|
12174
12265
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
12175
12266
|
ownerNodeId: string(),
|
|
12267
|
+
/**
|
|
12268
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
12269
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
12270
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
12271
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
12272
|
+
*/
|
|
12273
|
+
ownerReachableHost: string().optional(),
|
|
12176
12274
|
/** Operator override for the owner host the runner dials. */
|
|
12177
12275
|
hubHostnameOverride: string().optional()
|
|
12178
12276
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -12181,13 +12279,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12181
12279
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12182
12280
|
* runner needs to subscribe to the local broker and execute inference.
|
|
12183
12281
|
*
|
|
12184
|
-
* Stateless-pipeline model: the
|
|
12185
|
-
*
|
|
12186
|
-
*
|
|
12187
|
-
*
|
|
12188
|
-
*
|
|
12189
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
12190
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
12282
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
12283
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
12284
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
12285
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
12286
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
12191
12287
|
*/
|
|
12192
12288
|
var RunnerCameraConfigSchema = object({
|
|
12193
12289
|
deviceId: number(),
|
|
@@ -12238,14 +12334,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
12238
12334
|
*/
|
|
12239
12335
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
12240
12336
|
pipelineEnabled: boolean().default(true),
|
|
12241
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
12242
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
12243
12337
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
12244
12338
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
12245
12339
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
12246
12340
|
audio: object({
|
|
12247
|
-
|
|
12248
|
-
modelId: string(),
|
|
12341
|
+
modelId: string().optional(),
|
|
12249
12342
|
enabled: boolean()
|
|
12250
12343
|
}).nullable().optional(),
|
|
12251
12344
|
/**
|
|
@@ -12332,7 +12425,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12332
12425
|
avgInferenceTimeMs: number(),
|
|
12333
12426
|
queueDepth: number()
|
|
12334
12427
|
});
|
|
12335
|
-
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())
|
|
12428
|
+
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({
|
|
12429
|
+
handle: FrameHandleSchema,
|
|
12430
|
+
bbox: NativeCropBboxSchema,
|
|
12431
|
+
maxWidth: number().int().positive().optional()
|
|
12432
|
+
}), NativeCropResultSchema.nullable());
|
|
12336
12433
|
/**
|
|
12337
12434
|
* Hardware / firmware motion sensor cap — binary detected state plus
|
|
12338
12435
|
* a timestamp of the last observation. Distinct from
|
|
@@ -15263,7 +15360,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
15263
15360
|
icon: string(),
|
|
15264
15361
|
path: string(),
|
|
15265
15362
|
remoteName: string(),
|
|
15266
|
-
bundle: string()
|
|
15363
|
+
bundle: string(),
|
|
15364
|
+
section: string().optional(),
|
|
15365
|
+
sectionLabel: string().optional()
|
|
15267
15366
|
});
|
|
15268
15367
|
var AddonPageInfoSchema = object({
|
|
15269
15368
|
addonId: string(),
|
|
@@ -15303,7 +15402,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
15303
15402
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
15304
15403
|
* without a separate filesystem stat.
|
|
15305
15404
|
*/
|
|
15306
|
-
bundle: string()
|
|
15405
|
+
bundle: string(),
|
|
15406
|
+
/**
|
|
15407
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
15408
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
15409
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
15410
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
15411
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
15412
|
+
* "Addon Pages" group.
|
|
15413
|
+
*/
|
|
15414
|
+
section: string().optional(),
|
|
15415
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
15416
|
+
sectionLabel: string().optional()
|
|
15307
15417
|
});
|
|
15308
15418
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
15309
15419
|
var AddonHttpRouteSchema = object({
|
|
@@ -15519,6 +15629,17 @@ var WidgetMetadataSchema = object({
|
|
|
15519
15629
|
deviceContext: boolean().default(false),
|
|
15520
15630
|
integrationContext: boolean().default(false)
|
|
15521
15631
|
}),
|
|
15632
|
+
/**
|
|
15633
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
15634
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
15635
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
15636
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
15637
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
15638
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
15639
|
+
* than the authenticated registry, and its bundle is served by the
|
|
15640
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
15641
|
+
*/
|
|
15642
|
+
preAuth: boolean().optional().default(false),
|
|
15522
15643
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
15523
15644
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
15524
15645
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -15820,6 +15941,66 @@ method(object({
|
|
|
15820
15941
|
password: string()
|
|
15821
15942
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
15822
15943
|
/**
|
|
15944
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
15945
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15946
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15947
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15948
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15949
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
15950
|
+
*
|
|
15951
|
+
* A contribution is a discriminated union on `kind`:
|
|
15952
|
+
*
|
|
15953
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
15954
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15955
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15956
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15957
|
+
* login page needs NO change.
|
|
15958
|
+
*
|
|
15959
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15960
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
15961
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
15962
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
15963
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
15964
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
15965
|
+
*
|
|
15966
|
+
* Every contribution carries a `stage`:
|
|
15967
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15968
|
+
* magic-link buttons; a future usernameless passkey).
|
|
15969
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15970
|
+
* returned `factors` (passkey-as-2FA today).
|
|
15971
|
+
*
|
|
15972
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15973
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15974
|
+
* tRPC router.
|
|
15975
|
+
*/
|
|
15976
|
+
/** When a login method renders in the two-phase login flow. */
|
|
15977
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
15978
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
15979
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
15980
|
+
kind: literal("redirect"),
|
|
15981
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15982
|
+
id: string(),
|
|
15983
|
+
/** Operator-facing button label. */
|
|
15984
|
+
label: string(),
|
|
15985
|
+
/** lucide-react icon name. */
|
|
15986
|
+
icon: string().optional(),
|
|
15987
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15988
|
+
startUrl: string(),
|
|
15989
|
+
stage: LoginStageEnum
|
|
15990
|
+
}), object({
|
|
15991
|
+
kind: literal("widget"),
|
|
15992
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15993
|
+
id: string(),
|
|
15994
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15995
|
+
addonId: string(),
|
|
15996
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15997
|
+
bundle: string(),
|
|
15998
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15999
|
+
remote: WidgetRemoteSchema,
|
|
16000
|
+
stage: LoginStageEnum
|
|
16001
|
+
})]);
|
|
16002
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
16003
|
+
/**
|
|
15823
16004
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15824
16005
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
15825
16006
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -17940,7 +18121,17 @@ var TrackSchema = object({
|
|
|
17940
18121
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
17941
18122
|
totalDistance: number(),
|
|
17942
18123
|
state: TrackStateSchema,
|
|
17943
|
-
active: boolean()
|
|
18124
|
+
active: boolean(),
|
|
18125
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
18126
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
18127
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
18128
|
+
importance: number().optional(),
|
|
18129
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
18130
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
18131
|
+
bestEventId: string().optional(),
|
|
18132
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
18133
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
18134
|
+
importanceReason: string().optional()
|
|
17944
18135
|
});
|
|
17945
18136
|
var BaseEventFields = {
|
|
17946
18137
|
id: string(),
|
|
@@ -18005,8 +18196,18 @@ var ObjectEventSchema = object({
|
|
|
18005
18196
|
frameHeight: number().optional(),
|
|
18006
18197
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
18007
18198
|
mediaKey: string().optional(),
|
|
18199
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
18200
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
18201
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
18202
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
18203
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
18204
|
+
keyFrameMediaKey: string().optional(),
|
|
18008
18205
|
/** Populated by B5 (recording playback URL for this event). */
|
|
18009
|
-
mediaUrl: string().optional()
|
|
18206
|
+
mediaUrl: string().optional(),
|
|
18207
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
18208
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
18209
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
18210
|
+
importance: number().optional()
|
|
18010
18211
|
});
|
|
18011
18212
|
var AudioEventSchema = object({
|
|
18012
18213
|
...BaseEventFields,
|
|
@@ -18030,7 +18231,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18030
18231
|
"fullFrame",
|
|
18031
18232
|
"fullFrameBoxed",
|
|
18032
18233
|
"faceCrop",
|
|
18033
|
-
"plateCrop"
|
|
18234
|
+
"plateCrop",
|
|
18235
|
+
"keyFrame"
|
|
18034
18236
|
]);
|
|
18035
18237
|
var MediaFileSchema = object({
|
|
18036
18238
|
key: string(),
|
|
@@ -18051,6 +18253,32 @@ var DeviceEventQueryInput = object({
|
|
|
18051
18253
|
projection: _enum(["full", "slim"]).optional()
|
|
18052
18254
|
});
|
|
18053
18255
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
18256
|
+
var KeyEventQueryInput = object({
|
|
18257
|
+
deviceId: number(),
|
|
18258
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
18259
|
+
since: number(),
|
|
18260
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
18261
|
+
until: number(),
|
|
18262
|
+
limit: number().int().min(1).max(200).default(50),
|
|
18263
|
+
/** Drop tracks scoring below this importance. */
|
|
18264
|
+
minImportance: number().min(0).max(1).optional(),
|
|
18265
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
18266
|
+
classFilter: string().optional()
|
|
18267
|
+
});
|
|
18268
|
+
var KeyEventSchema = object({
|
|
18269
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
18270
|
+
id: string(),
|
|
18271
|
+
trackId: string(),
|
|
18272
|
+
/** Track start time (firstSeen). */
|
|
18273
|
+
timestamp: number(),
|
|
18274
|
+
className: string(),
|
|
18275
|
+
label: string().optional(),
|
|
18276
|
+
importance: number(),
|
|
18277
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
18278
|
+
bestEventId: string(),
|
|
18279
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
18280
|
+
windowMs: number().optional()
|
|
18281
|
+
});
|
|
18054
18282
|
var TrackedDetectionSchema = object({
|
|
18055
18283
|
trackId: string(),
|
|
18056
18284
|
className: string(),
|
|
@@ -18080,7 +18308,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18080
18308
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
18081
18309
|
kind: "mutation",
|
|
18082
18310
|
auth: "admin"
|
|
18083
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
18311
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
18084
18312
|
deviceId: number(),
|
|
18085
18313
|
since: number(),
|
|
18086
18314
|
until: number(),
|
|
@@ -18125,11 +18353,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18125
18353
|
timestamp: number()
|
|
18126
18354
|
});
|
|
18127
18355
|
var CameraPipelineConfigSchema = object({
|
|
18128
|
-
engine: PipelineEngineChoiceSchema,
|
|
18356
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18129
18357
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
18130
18358
|
audio: object({
|
|
18131
|
-
engine: PipelineEngineChoiceSchema,
|
|
18132
|
-
modelId: string(),
|
|
18359
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
18360
|
+
modelId: string().optional(),
|
|
18133
18361
|
enabled: boolean(),
|
|
18134
18362
|
settings: record(string(), unknown()).readonly().optional()
|
|
18135
18363
|
}).nullable().optional()
|
|
@@ -18144,7 +18372,7 @@ var PipelineTemplateSchema = object({
|
|
|
18144
18372
|
});
|
|
18145
18373
|
var AgentAddonConfigSchema = object({
|
|
18146
18374
|
enabled: boolean(),
|
|
18147
|
-
modelId: string(),
|
|
18375
|
+
modelId: string().optional(),
|
|
18148
18376
|
settings: record(string(), unknown()).readonly()
|
|
18149
18377
|
});
|
|
18150
18378
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -18154,12 +18382,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
18154
18382
|
detectWeight: number().positive().optional(),
|
|
18155
18383
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18156
18384
|
detect: boolean().optional(),
|
|
18157
|
-
/**
|
|
18385
|
+
/**
|
|
18386
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
18387
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
18388
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
18389
|
+
* parse — no code reads it and no write path emits it.
|
|
18390
|
+
*/
|
|
18158
18391
|
decode: boolean().optional(),
|
|
18159
18392
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
18160
18393
|
audio: boolean().optional(),
|
|
18161
18394
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18162
|
-
ingest: boolean().optional()
|
|
18395
|
+
ingest: boolean().optional(),
|
|
18396
|
+
/**
|
|
18397
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
18398
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
18399
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
18400
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
18401
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
18402
|
+
*/
|
|
18403
|
+
reachableHost: string().optional()
|
|
18163
18404
|
});
|
|
18164
18405
|
var CameraPipelineForAgentSchema = object({
|
|
18165
18406
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18207,25 +18448,6 @@ var PipelineAssignmentSchema = object({
|
|
|
18207
18448
|
assignedAt: number()
|
|
18208
18449
|
});
|
|
18209
18450
|
/**
|
|
18210
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
18211
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
18212
|
-
* → co-located with pipeline → capacity).
|
|
18213
|
-
*/
|
|
18214
|
-
var DecoderAssignmentSchema = object({
|
|
18215
|
-
deviceId: number(),
|
|
18216
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
18217
|
-
decoderNodeId: string(),
|
|
18218
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
18219
|
-
pinned: boolean(),
|
|
18220
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
18221
|
-
reason: _enum([
|
|
18222
|
-
"manual",
|
|
18223
|
-
"co-located",
|
|
18224
|
-
"capacity",
|
|
18225
|
-
"hardware-affinity"
|
|
18226
|
-
])
|
|
18227
|
-
});
|
|
18228
|
-
/**
|
|
18229
18451
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
18230
18452
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
18231
18453
|
*/
|
|
@@ -18265,6 +18487,15 @@ var GlobalMetricsSchema = object({
|
|
|
18265
18487
|
* capability providers.
|
|
18266
18488
|
*/
|
|
18267
18489
|
var CapabilityBindingsSchema = record(string(), string());
|
|
18490
|
+
/**
|
|
18491
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
18492
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
18493
|
+
*/
|
|
18494
|
+
var IngestOwnerSchema = object({
|
|
18495
|
+
ownerNodeId: string(),
|
|
18496
|
+
reachableHost: string().optional(),
|
|
18497
|
+
configIssue: string().optional()
|
|
18498
|
+
});
|
|
18268
18499
|
/** Source block — always present; derives from the stream catalog. */
|
|
18269
18500
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
18270
18501
|
camStreamId: string(),
|
|
@@ -18279,6 +18510,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
18279
18510
|
detectionNodeId: string().nullable(),
|
|
18280
18511
|
decoderNodeId: string().nullable(),
|
|
18281
18512
|
audioNodeId: string().nullable(),
|
|
18513
|
+
/**
|
|
18514
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
18515
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
18516
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
18517
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
18518
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
18519
|
+
*/
|
|
18520
|
+
sourceNodeId: string().nullable(),
|
|
18282
18521
|
pinned: object({
|
|
18283
18522
|
detection: boolean(),
|
|
18284
18523
|
decoder: boolean(),
|
|
@@ -18411,16 +18650,7 @@ method(object({
|
|
|
18411
18650
|
}), object({ success: literal(true) }), {
|
|
18412
18651
|
kind: "mutation",
|
|
18413
18652
|
auth: "admin"
|
|
18414
|
-
}), method(object({
|
|
18415
|
-
deviceId: number(),
|
|
18416
|
-
nodeId: string()
|
|
18417
|
-
}), _void(), {
|
|
18418
|
-
kind: "mutation",
|
|
18419
|
-
auth: "admin"
|
|
18420
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
18421
|
-
kind: "mutation",
|
|
18422
|
-
auth: "admin"
|
|
18423
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
18653
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
18424
18654
|
deviceId: number(),
|
|
18425
18655
|
nodeId: string()
|
|
18426
18656
|
}), object({ success: literal(true) }), {
|
|
@@ -18441,10 +18671,7 @@ method(object({
|
|
|
18441
18671
|
nodeId: string(),
|
|
18442
18672
|
pinned: boolean(),
|
|
18443
18673
|
assignedAt: number()
|
|
18444
|
-
}))), method(object({
|
|
18445
|
-
deviceId: number(),
|
|
18446
|
-
pipelineNodeId: string().optional()
|
|
18447
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18674
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
18448
18675
|
nodeId: string(),
|
|
18449
18676
|
settings: AgentPipelineSettingsSchema
|
|
18450
18677
|
})).readonly()), method(object({
|
|
@@ -18474,12 +18701,26 @@ method(object({
|
|
|
18474
18701
|
}), method(object({
|
|
18475
18702
|
agentNodeId: string(),
|
|
18476
18703
|
detect: boolean().nullable().optional(),
|
|
18477
|
-
decode: boolean().nullable().optional(),
|
|
18478
18704
|
audio: boolean().nullable().optional(),
|
|
18479
18705
|
ingest: boolean().nullable().optional()
|
|
18480
18706
|
}), object({ success: literal(true) }), {
|
|
18481
18707
|
kind: "mutation",
|
|
18482
18708
|
auth: "admin"
|
|
18709
|
+
}), method(object({
|
|
18710
|
+
agentNodeId: string(),
|
|
18711
|
+
reachableHost: string().nullable()
|
|
18712
|
+
}), object({ success: literal(true) }), {
|
|
18713
|
+
kind: "mutation",
|
|
18714
|
+
auth: "admin"
|
|
18715
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
18716
|
+
success: literal(true),
|
|
18717
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
18718
|
+
effectiveModelId: string().nullable(),
|
|
18719
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
18720
|
+
clearedCameraOverrides: number()
|
|
18721
|
+
}), {
|
|
18722
|
+
kind: "mutation",
|
|
18723
|
+
auth: "admin"
|
|
18483
18724
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18484
18725
|
deviceId: number(),
|
|
18485
18726
|
addonId: string(),
|
|
@@ -18524,22 +18765,131 @@ method(object({
|
|
|
18524
18765
|
kind: "mutation",
|
|
18525
18766
|
auth: "admin"
|
|
18526
18767
|
});
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18768
|
+
/**
|
|
18769
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
18770
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
18771
|
+
* agents).
|
|
18772
|
+
*
|
|
18773
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
18774
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
18775
|
+
* version describes the node. Updates install into
|
|
18776
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
18777
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
18778
|
+
*
|
|
18779
|
+
* Providers:
|
|
18780
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
18781
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
18782
|
+
* unpinned calls.
|
|
18783
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
18784
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
18785
|
+
* `$hub.registerNode` manifest.
|
|
18786
|
+
*
|
|
18787
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
18788
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
18789
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
18790
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
18791
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
18792
|
+
*
|
|
18793
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
18794
|
+
*/
|
|
18795
|
+
/**
|
|
18796
|
+
* Where the running hub's code was loaded from:
|
|
18797
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
18798
|
+
* plain resolution and runtime updates are refused.
|
|
18799
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
18800
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
18801
|
+
*/
|
|
18802
|
+
var ServerBootModeSchema = _enum([
|
|
18803
|
+
"workspace",
|
|
18804
|
+
"baked",
|
|
18805
|
+
"data-root"
|
|
18806
|
+
]);
|
|
18807
|
+
/**
|
|
18808
|
+
* Update lifecycle state:
|
|
18809
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
18810
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
18811
|
+
* restarted onto it (still running the OLD version).
|
|
18812
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
18813
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
18814
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
18815
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
18816
|
+
*/
|
|
18817
|
+
var ServerUpdateStateSchema = _enum([
|
|
18818
|
+
"idle",
|
|
18819
|
+
"checking",
|
|
18820
|
+
"staging",
|
|
18821
|
+
"pending-restart",
|
|
18822
|
+
"awaiting-confirmation"
|
|
18823
|
+
]);
|
|
18824
|
+
var ServerRollbackInfoSchema = object({
|
|
18825
|
+
/** The version that failed (or was manually rolled back). */
|
|
18826
|
+
fromVersion: string(),
|
|
18827
|
+
/** The version rolled back to; null = the baked seed. */
|
|
18828
|
+
toVersion: string().nullable(),
|
|
18829
|
+
atMs: number(),
|
|
18830
|
+
reason: string()
|
|
18533
18831
|
});
|
|
18534
|
-
var
|
|
18535
|
-
|
|
18536
|
-
|
|
18537
|
-
|
|
18832
|
+
var ServerPackageStatusSchema = object({
|
|
18833
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
18834
|
+
packageName: string(),
|
|
18835
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
18836
|
+
runningVersion: string().nullable(),
|
|
18837
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
18838
|
+
nodeRuntimeVersion: string().nullable(),
|
|
18839
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
18840
|
+
activeVersion: string().nullable(),
|
|
18841
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
18842
|
+
previousVersion: string().nullable(),
|
|
18843
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
18844
|
+
seedVersion: string().nullable(),
|
|
18845
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
18846
|
+
latestVersion: string().nullable(),
|
|
18847
|
+
updateAvailable: boolean(),
|
|
18848
|
+
bootMode: ServerBootModeSchema,
|
|
18849
|
+
updateState: ServerUpdateStateSchema,
|
|
18850
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
18851
|
+
pendingVersion: string().nullable(),
|
|
18852
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
18853
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
18854
|
+
/**
|
|
18855
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
18856
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
18857
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
18858
|
+
*/
|
|
18859
|
+
stateFileCorrupt: boolean(),
|
|
18860
|
+
lastCheckedAtMs: number().nullable()
|
|
18861
|
+
});
|
|
18862
|
+
var ServerUpdateCheckResultSchema = object({
|
|
18863
|
+
packageName: string(),
|
|
18864
|
+
runningVersion: string().nullable(),
|
|
18865
|
+
latestVersion: string().nullable(),
|
|
18866
|
+
updateAvailable: boolean(),
|
|
18867
|
+
checkedAtMs: number(),
|
|
18868
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
18869
|
+
error: string().nullable()
|
|
18870
|
+
});
|
|
18871
|
+
var ServerUpdateActionResultSchema = object({
|
|
18872
|
+
accepted: boolean(),
|
|
18873
|
+
targetVersion: string().nullable(),
|
|
18874
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
18875
|
+
restarting: boolean(),
|
|
18876
|
+
message: string()
|
|
18877
|
+
});
|
|
18878
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
18879
|
+
kind: "mutation",
|
|
18880
|
+
auth: "admin"
|
|
18881
|
+
}), method(object({
|
|
18882
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
18883
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
18884
|
+
kind: "mutation",
|
|
18885
|
+
auth: "admin"
|
|
18886
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18887
|
+
kind: "mutation",
|
|
18888
|
+
auth: "admin"
|
|
18889
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
18890
|
+
kind: "mutation",
|
|
18891
|
+
auth: "admin"
|
|
18538
18892
|
});
|
|
18539
|
-
method(object({
|
|
18540
|
-
deviceId: number(),
|
|
18541
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
18542
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
18543
18893
|
/**
|
|
18544
18894
|
* Query filter for settings-store collections.
|
|
18545
18895
|
*/
|
|
@@ -18692,9 +19042,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
18692
19042
|
/**
|
|
18693
19043
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
18694
19044
|
*
|
|
18695
|
-
*
|
|
18696
|
-
*
|
|
18697
|
-
*
|
|
19045
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
19046
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
19047
|
+
* prebuffer fallback.
|
|
18698
19048
|
*/
|
|
18699
19049
|
var SnapshotImageSchema = object({
|
|
18700
19050
|
base64: string(),
|
|
@@ -18725,11 +19075,12 @@ DeviceType.Camera, method(object({
|
|
|
18725
19075
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18726
19076
|
kind: "mutation",
|
|
18727
19077
|
auth: "admin"
|
|
18728
|
-
})
|
|
18729
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
19078
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
18730
19079
|
deviceId: number(),
|
|
18731
|
-
|
|
18732
|
-
|
|
19080
|
+
lastCapturedAt: number().nullable(),
|
|
19081
|
+
cacheAgeMs: number().nullable(),
|
|
19082
|
+
etag: string().nullable()
|
|
19083
|
+
})));
|
|
18733
19084
|
/**
|
|
18734
19085
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
18735
19086
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -18980,10 +19331,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
18980
19331
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
18981
19332
|
* the assertion, bumps the credential counter, returns ok.
|
|
18982
19333
|
*
|
|
19334
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
19335
|
+
* passkey IS the primary factor, no password leg:
|
|
19336
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
19337
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
19338
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
19339
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
19340
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
19341
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
19342
|
+
* resolves the credential by the response's credential id,
|
|
19343
|
+
* verifies the assertion against the stored challenge + that
|
|
19344
|
+
* credential's public key/counter, and returns the OWNING
|
|
19345
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
19346
|
+
*
|
|
18983
19347
|
* 3. Management:
|
|
18984
19348
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
18985
19349
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
18986
19350
|
*
|
|
19351
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
19352
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
19353
|
+
* demanded as a second factor after a password login ONLY when the
|
|
19354
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
19355
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
19356
|
+
* row ⇒ `enabled: false`).
|
|
19357
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
19358
|
+
* the providing addon beside its credentials.
|
|
19359
|
+
*
|
|
18987
19360
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
18988
19361
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
18989
19362
|
* the cap to non-admins.
|
|
@@ -19026,6 +19399,17 @@ method(object({
|
|
|
19026
19399
|
}), object({ verified: boolean() }), {
|
|
19027
19400
|
kind: "mutation",
|
|
19028
19401
|
access: "view"
|
|
19402
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
19403
|
+
kind: "mutation",
|
|
19404
|
+
access: "view"
|
|
19405
|
+
}), method(object({
|
|
19406
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
19407
|
+
response: record(string(), unknown()) }), object({
|
|
19408
|
+
verified: boolean(),
|
|
19409
|
+
userId: string().nullable()
|
|
19410
|
+
}), {
|
|
19411
|
+
kind: "mutation",
|
|
19412
|
+
access: "view"
|
|
19029
19413
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
19030
19414
|
userId: string(),
|
|
19031
19415
|
credentialId: string()
|
|
@@ -19033,6 +19417,13 @@ method(object({
|
|
|
19033
19417
|
kind: "mutation",
|
|
19034
19418
|
auth: "admin",
|
|
19035
19419
|
access: "delete"
|
|
19420
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
19421
|
+
userId: string(),
|
|
19422
|
+
enabled: boolean()
|
|
19423
|
+
}), object({ success: literal(true) }), {
|
|
19424
|
+
kind: "mutation",
|
|
19425
|
+
auth: "admin",
|
|
19426
|
+
access: "create"
|
|
19036
19427
|
});
|
|
19037
19428
|
/**
|
|
19038
19429
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -19090,9 +19481,10 @@ method(object({
|
|
|
19090
19481
|
auth: "admin"
|
|
19091
19482
|
});
|
|
19092
19483
|
/**
|
|
19093
|
-
* Optional client-side hints sent at session creation to help the
|
|
19094
|
-
*
|
|
19095
|
-
*
|
|
19484
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
19485
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
19486
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
19487
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
19096
19488
|
*/
|
|
19097
19489
|
var webrtcClientHintsSchema = object({
|
|
19098
19490
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -19103,22 +19495,6 @@ var webrtcClientHintsSchema = object({
|
|
|
19103
19495
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
19104
19496
|
prefersTier: string().optional()
|
|
19105
19497
|
}).partial();
|
|
19106
|
-
method(object({
|
|
19107
|
-
streamId: string(),
|
|
19108
|
-
sdpOffer: string()
|
|
19109
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
19110
|
-
streamId: string(),
|
|
19111
|
-
codec: string()
|
|
19112
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
19113
|
-
streamId: string(),
|
|
19114
|
-
hints: webrtcClientHintsSchema.optional()
|
|
19115
|
-
}), object({
|
|
19116
|
-
sessionId: string(),
|
|
19117
|
-
sdpOffer: string()
|
|
19118
|
-
}), { kind: "mutation" }), method(object({
|
|
19119
|
-
sessionId: string(),
|
|
19120
|
-
sdpAnswer: string()
|
|
19121
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
19122
19498
|
/**
|
|
19123
19499
|
* Discriminated target for a WebRTC session. The client sends this
|
|
19124
19500
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -19866,7 +20242,17 @@ var FaceInfoSchema = object({
|
|
|
19866
20242
|
recognizedIdentityId: string().optional(),
|
|
19867
20243
|
identityName: string().optional(),
|
|
19868
20244
|
assigned: boolean(),
|
|
19869
|
-
base64: string().optional()
|
|
20245
|
+
base64: string().optional(),
|
|
20246
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
20247
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
20248
|
+
* legacy rows written before design B. */
|
|
20249
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
20250
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
20251
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
20252
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
20253
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
20254
|
+
* back to the inline `base64` face crop. */
|
|
20255
|
+
keyFrameMediaKey: string().optional()
|
|
19870
20256
|
});
|
|
19871
20257
|
var FaceFilterEnum = _enum([
|
|
19872
20258
|
"unassigned",
|
|
@@ -20563,6 +20949,16 @@ var TopologyCategorySchema = object({
|
|
|
20563
20949
|
healthy: number(),
|
|
20564
20950
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
20565
20951
|
});
|
|
20952
|
+
/**
|
|
20953
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
20954
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
20955
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
20956
|
+
* rows and pre-phase-2 nodes report none.
|
|
20957
|
+
*/
|
|
20958
|
+
var TopologyRootPackageSchema = object({
|
|
20959
|
+
name: string(),
|
|
20960
|
+
version: string()
|
|
20961
|
+
});
|
|
20566
20962
|
var TopologyNodeSchema = object({
|
|
20567
20963
|
id: string(),
|
|
20568
20964
|
name: string(),
|
|
@@ -20586,7 +20982,8 @@ var TopologyNodeSchema = object({
|
|
|
20586
20982
|
status: string()
|
|
20587
20983
|
})).readonly(),
|
|
20588
20984
|
processes: array(TopologyProcessSchema).readonly(),
|
|
20589
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
20985
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
20986
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
20590
20987
|
});
|
|
20591
20988
|
var CapUsageEdgeSchema = object({
|
|
20592
20989
|
callerAddonId: string(),
|
|
@@ -23386,6 +23783,12 @@ Object.freeze({
|
|
|
23386
23783
|
addonId: null,
|
|
23387
23784
|
access: "create"
|
|
23388
23785
|
},
|
|
23786
|
+
"loginMethod.getLoginMethods": {
|
|
23787
|
+
capName: "login-method",
|
|
23788
|
+
capScope: "system",
|
|
23789
|
+
addonId: null,
|
|
23790
|
+
access: "view"
|
|
23791
|
+
},
|
|
23389
23792
|
"mediaPlayer.next": {
|
|
23390
23793
|
capName: "media-player",
|
|
23391
23794
|
capScope: "device",
|
|
@@ -23968,6 +24371,12 @@ Object.freeze({
|
|
|
23968
24371
|
addonId: null,
|
|
23969
24372
|
access: "view"
|
|
23970
24373
|
},
|
|
24374
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
24375
|
+
capName: "pipeline-analytics",
|
|
24376
|
+
capScope: "device",
|
|
24377
|
+
addonId: null,
|
|
24378
|
+
access: "view"
|
|
24379
|
+
},
|
|
23971
24380
|
"pipelineAnalytics.getMotionEvents": {
|
|
23972
24381
|
capName: "pipeline-analytics",
|
|
23973
24382
|
capScope: "device",
|
|
@@ -24016,23 +24425,23 @@ Object.freeze({
|
|
|
24016
24425
|
addonId: null,
|
|
24017
24426
|
access: "create"
|
|
24018
24427
|
},
|
|
24019
|
-
"pipelineExecutor.
|
|
24428
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
24020
24429
|
capName: "pipeline-executor",
|
|
24021
24430
|
capScope: "system",
|
|
24022
24431
|
addonId: null,
|
|
24023
24432
|
access: "delete"
|
|
24024
24433
|
},
|
|
24025
|
-
"pipelineExecutor.
|
|
24434
|
+
"pipelineExecutor.deleteModel": {
|
|
24026
24435
|
capName: "pipeline-executor",
|
|
24027
24436
|
capScope: "system",
|
|
24028
24437
|
addonId: null,
|
|
24029
24438
|
access: "delete"
|
|
24030
24439
|
},
|
|
24031
|
-
"pipelineExecutor.
|
|
24440
|
+
"pipelineExecutor.deleteTemplate": {
|
|
24032
24441
|
capName: "pipeline-executor",
|
|
24033
24442
|
capScope: "system",
|
|
24034
24443
|
addonId: null,
|
|
24035
|
-
access: "
|
|
24444
|
+
access: "delete"
|
|
24036
24445
|
},
|
|
24037
24446
|
"pipelineExecutor.downloadModel": {
|
|
24038
24447
|
capName: "pipeline-executor",
|
|
@@ -24226,13 +24635,13 @@ Object.freeze({
|
|
|
24226
24635
|
addonId: null,
|
|
24227
24636
|
access: "create"
|
|
24228
24637
|
},
|
|
24229
|
-
"
|
|
24230
|
-
capName: "pipeline-
|
|
24638
|
+
"pipelineExecutor.validatePipeline": {
|
|
24639
|
+
capName: "pipeline-executor",
|
|
24231
24640
|
capScope: "system",
|
|
24232
24641
|
addonId: null,
|
|
24233
|
-
access: "
|
|
24642
|
+
access: "view"
|
|
24234
24643
|
},
|
|
24235
|
-
"pipelineOrchestrator.
|
|
24644
|
+
"pipelineOrchestrator.assignAudio": {
|
|
24236
24645
|
capName: "pipeline-orchestrator",
|
|
24237
24646
|
capScope: "system",
|
|
24238
24647
|
addonId: null,
|
|
@@ -24316,19 +24725,13 @@ Object.freeze({
|
|
|
24316
24725
|
addonId: null,
|
|
24317
24726
|
access: "view"
|
|
24318
24727
|
},
|
|
24319
|
-
"pipelineOrchestrator.
|
|
24320
|
-
capName: "pipeline-orchestrator",
|
|
24321
|
-
capScope: "system",
|
|
24322
|
-
addonId: null,
|
|
24323
|
-
access: "view"
|
|
24324
|
-
},
|
|
24325
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
24728
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
24326
24729
|
capName: "pipeline-orchestrator",
|
|
24327
24730
|
capScope: "system",
|
|
24328
24731
|
addonId: null,
|
|
24329
24732
|
access: "view"
|
|
24330
24733
|
},
|
|
24331
|
-
"pipelineOrchestrator.
|
|
24734
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
24332
24735
|
capName: "pipeline-orchestrator",
|
|
24333
24736
|
capScope: "system",
|
|
24334
24737
|
addonId: null,
|
|
@@ -24370,6 +24773,12 @@ Object.freeze({
|
|
|
24370
24773
|
addonId: null,
|
|
24371
24774
|
access: "delete"
|
|
24372
24775
|
},
|
|
24776
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
24777
|
+
capName: "pipeline-orchestrator",
|
|
24778
|
+
capScope: "system",
|
|
24779
|
+
addonId: null,
|
|
24780
|
+
access: "delete"
|
|
24781
|
+
},
|
|
24373
24782
|
"pipelineOrchestrator.resolvePipeline": {
|
|
24374
24783
|
capName: "pipeline-orchestrator",
|
|
24375
24784
|
capScope: "system",
|
|
@@ -24406,37 +24815,37 @@ Object.freeze({
|
|
|
24406
24815
|
addonId: null,
|
|
24407
24816
|
access: "create"
|
|
24408
24817
|
},
|
|
24409
|
-
"pipelineOrchestrator.
|
|
24818
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
24410
24819
|
capName: "pipeline-orchestrator",
|
|
24411
24820
|
capScope: "system",
|
|
24412
24821
|
addonId: null,
|
|
24413
24822
|
access: "create"
|
|
24414
24823
|
},
|
|
24415
|
-
"pipelineOrchestrator.
|
|
24824
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
24416
24825
|
capName: "pipeline-orchestrator",
|
|
24417
24826
|
capScope: "system",
|
|
24418
24827
|
addonId: null,
|
|
24419
24828
|
access: "create"
|
|
24420
24829
|
},
|
|
24421
|
-
"pipelineOrchestrator.
|
|
24830
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
24422
24831
|
capName: "pipeline-orchestrator",
|
|
24423
24832
|
capScope: "system",
|
|
24424
24833
|
addonId: null,
|
|
24425
24834
|
access: "create"
|
|
24426
24835
|
},
|
|
24427
|
-
"pipelineOrchestrator.
|
|
24836
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
24428
24837
|
capName: "pipeline-orchestrator",
|
|
24429
24838
|
capScope: "system",
|
|
24430
24839
|
addonId: null,
|
|
24431
24840
|
access: "create"
|
|
24432
24841
|
},
|
|
24433
|
-
"pipelineOrchestrator.
|
|
24842
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
24434
24843
|
capName: "pipeline-orchestrator",
|
|
24435
24844
|
capScope: "system",
|
|
24436
24845
|
addonId: null,
|
|
24437
24846
|
access: "create"
|
|
24438
24847
|
},
|
|
24439
|
-
"pipelineOrchestrator.
|
|
24848
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
24440
24849
|
capName: "pipeline-orchestrator",
|
|
24441
24850
|
capScope: "system",
|
|
24442
24851
|
addonId: null,
|
|
@@ -24496,6 +24905,12 @@ Object.freeze({
|
|
|
24496
24905
|
addonId: null,
|
|
24497
24906
|
access: "view"
|
|
24498
24907
|
},
|
|
24908
|
+
"pipelineRunner.getNativeCrop": {
|
|
24909
|
+
capName: "pipeline-runner",
|
|
24910
|
+
capScope: "system",
|
|
24911
|
+
addonId: null,
|
|
24912
|
+
access: "view"
|
|
24913
|
+
},
|
|
24499
24914
|
"pipelineRunner.reportMotion": {
|
|
24500
24915
|
capName: "pipeline-runner",
|
|
24501
24916
|
capScope: "system",
|
|
@@ -24736,33 +25151,45 @@ Object.freeze({
|
|
|
24736
25151
|
addonId: null,
|
|
24737
25152
|
access: "create"
|
|
24738
25153
|
},
|
|
24739
|
-
"
|
|
24740
|
-
capName: "
|
|
25154
|
+
"scriptRunner.run": {
|
|
25155
|
+
capName: "script-runner",
|
|
25156
|
+
capScope: "device",
|
|
25157
|
+
addonId: null,
|
|
25158
|
+
access: "create"
|
|
25159
|
+
},
|
|
25160
|
+
"scriptRunner.stop": {
|
|
25161
|
+
capName: "script-runner",
|
|
25162
|
+
capScope: "device",
|
|
25163
|
+
addonId: null,
|
|
25164
|
+
access: "create"
|
|
25165
|
+
},
|
|
25166
|
+
"serverManagement.applyServerUpdate": {
|
|
25167
|
+
capName: "server-management",
|
|
24741
25168
|
capScope: "system",
|
|
24742
25169
|
addonId: null,
|
|
24743
|
-
access: "
|
|
25170
|
+
access: "create"
|
|
24744
25171
|
},
|
|
24745
|
-
"
|
|
24746
|
-
capName: "
|
|
25172
|
+
"serverManagement.checkServerUpdate": {
|
|
25173
|
+
capName: "server-management",
|
|
24747
25174
|
capScope: "system",
|
|
24748
25175
|
addonId: null,
|
|
24749
25176
|
access: "create"
|
|
24750
25177
|
},
|
|
24751
|
-
"
|
|
24752
|
-
capName: "
|
|
25178
|
+
"serverManagement.getServerPackageStatus": {
|
|
25179
|
+
capName: "server-management",
|
|
24753
25180
|
capScope: "system",
|
|
24754
25181
|
addonId: null,
|
|
24755
|
-
access: "
|
|
25182
|
+
access: "view"
|
|
24756
25183
|
},
|
|
24757
|
-
"
|
|
24758
|
-
capName: "
|
|
24759
|
-
capScope: "
|
|
25184
|
+
"serverManagement.restartServer": {
|
|
25185
|
+
capName: "server-management",
|
|
25186
|
+
capScope: "system",
|
|
24760
25187
|
addonId: null,
|
|
24761
25188
|
access: "create"
|
|
24762
25189
|
},
|
|
24763
|
-
"
|
|
24764
|
-
capName: "
|
|
24765
|
-
capScope: "
|
|
25190
|
+
"serverManagement.rollbackServerUpdate": {
|
|
25191
|
+
capName: "server-management",
|
|
25192
|
+
capScope: "system",
|
|
24766
25193
|
addonId: null,
|
|
24767
25194
|
access: "create"
|
|
24768
25195
|
},
|
|
@@ -24850,23 +25277,17 @@ Object.freeze({
|
|
|
24850
25277
|
addonId: null,
|
|
24851
25278
|
access: "view"
|
|
24852
25279
|
},
|
|
24853
|
-
"snapshot.
|
|
25280
|
+
"snapshot.getSnapshotOverview": {
|
|
24854
25281
|
capName: "snapshot",
|
|
24855
25282
|
capScope: "device",
|
|
24856
25283
|
addonId: null,
|
|
24857
|
-
access: "create"
|
|
24858
|
-
},
|
|
24859
|
-
"snapshotProvider.getSnapshot": {
|
|
24860
|
-
capName: "snapshot-provider",
|
|
24861
|
-
capScope: "system",
|
|
24862
|
-
addonId: null,
|
|
24863
25284
|
access: "view"
|
|
24864
25285
|
},
|
|
24865
|
-
"
|
|
24866
|
-
capName: "snapshot
|
|
24867
|
-
capScope: "
|
|
25286
|
+
"snapshot.invalidateCache": {
|
|
25287
|
+
capName: "snapshot",
|
|
25288
|
+
capScope: "device",
|
|
24868
25289
|
addonId: null,
|
|
24869
|
-
access: "
|
|
25290
|
+
access: "create"
|
|
24870
25291
|
},
|
|
24871
25292
|
"ssoBridge.signBridgeToken": {
|
|
24872
25293
|
capName: "sso-bridge",
|
|
@@ -25294,30 +25715,6 @@ Object.freeze({
|
|
|
25294
25715
|
addonId: null,
|
|
25295
25716
|
access: "view"
|
|
25296
25717
|
},
|
|
25297
|
-
"streamingEngine.getStreamUrl": {
|
|
25298
|
-
capName: "streaming-engine",
|
|
25299
|
-
capScope: "system",
|
|
25300
|
-
addonId: null,
|
|
25301
|
-
access: "view"
|
|
25302
|
-
},
|
|
25303
|
-
"streamingEngine.listStreams": {
|
|
25304
|
-
capName: "streaming-engine",
|
|
25305
|
-
capScope: "system",
|
|
25306
|
-
addonId: null,
|
|
25307
|
-
access: "view"
|
|
25308
|
-
},
|
|
25309
|
-
"streamingEngine.registerStream": {
|
|
25310
|
-
capName: "streaming-engine",
|
|
25311
|
-
capScope: "system",
|
|
25312
|
-
addonId: null,
|
|
25313
|
-
access: "create"
|
|
25314
|
-
},
|
|
25315
|
-
"streamingEngine.unregisterStream": {
|
|
25316
|
-
capName: "streaming-engine",
|
|
25317
|
-
capScope: "system",
|
|
25318
|
-
addonId: null,
|
|
25319
|
-
access: "delete"
|
|
25320
|
-
},
|
|
25321
25718
|
"streamParams.getConfigSchema": {
|
|
25322
25719
|
capName: "stream-params",
|
|
25323
25720
|
capScope: "device",
|
|
@@ -25564,6 +25961,12 @@ Object.freeze({
|
|
|
25564
25961
|
addonId: null,
|
|
25565
25962
|
access: "view"
|
|
25566
25963
|
},
|
|
25964
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
25965
|
+
capName: "user-passkeys",
|
|
25966
|
+
capScope: "system",
|
|
25967
|
+
addonId: null,
|
|
25968
|
+
access: "view"
|
|
25969
|
+
},
|
|
25567
25970
|
"userPasskeys.beginRegistration": {
|
|
25568
25971
|
capName: "user-passkeys",
|
|
25569
25972
|
capScope: "system",
|
|
@@ -25576,12 +25979,24 @@ Object.freeze({
|
|
|
25576
25979
|
addonId: null,
|
|
25577
25980
|
access: "view"
|
|
25578
25981
|
},
|
|
25982
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
25983
|
+
capName: "user-passkeys",
|
|
25984
|
+
capScope: "system",
|
|
25985
|
+
addonId: null,
|
|
25986
|
+
access: "view"
|
|
25987
|
+
},
|
|
25579
25988
|
"userPasskeys.finishRegistration": {
|
|
25580
25989
|
capName: "user-passkeys",
|
|
25581
25990
|
capScope: "system",
|
|
25582
25991
|
addonId: null,
|
|
25583
25992
|
access: "create"
|
|
25584
25993
|
},
|
|
25994
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
25995
|
+
capName: "user-passkeys",
|
|
25996
|
+
capScope: "system",
|
|
25997
|
+
addonId: null,
|
|
25998
|
+
access: "view"
|
|
25999
|
+
},
|
|
25585
26000
|
"userPasskeys.listPasskeys": {
|
|
25586
26001
|
capName: "user-passkeys",
|
|
25587
26002
|
capScope: "system",
|
|
@@ -25594,6 +26009,12 @@ Object.freeze({
|
|
|
25594
26009
|
addonId: null,
|
|
25595
26010
|
access: "delete"
|
|
25596
26011
|
},
|
|
26012
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
26013
|
+
capName: "user-passkeys",
|
|
26014
|
+
capScope: "system",
|
|
26015
|
+
addonId: null,
|
|
26016
|
+
access: "create"
|
|
26017
|
+
},
|
|
25597
26018
|
"vacuumControl.locate": {
|
|
25598
26019
|
capName: "vacuum-control",
|
|
25599
26020
|
capScope: "device",
|
|
@@ -25666,6 +26087,18 @@ Object.freeze({
|
|
|
25666
26087
|
addonId: null,
|
|
25667
26088
|
access: "view"
|
|
25668
26089
|
},
|
|
26090
|
+
"viewerUi.getStaticDir": {
|
|
26091
|
+
capName: "viewer-ui",
|
|
26092
|
+
capScope: "system",
|
|
26093
|
+
addonId: null,
|
|
26094
|
+
access: "view"
|
|
26095
|
+
},
|
|
26096
|
+
"viewerUi.getVersion": {
|
|
26097
|
+
capName: "viewer-ui",
|
|
26098
|
+
capScope: "system",
|
|
26099
|
+
addonId: null,
|
|
26100
|
+
access: "view"
|
|
26101
|
+
},
|
|
25669
26102
|
"waterHeater.setAway": {
|
|
25670
26103
|
capName: "water-heater",
|
|
25671
26104
|
capScope: "device",
|
|
@@ -25684,54 +26117,6 @@ Object.freeze({
|
|
|
25684
26117
|
addonId: null,
|
|
25685
26118
|
access: "create"
|
|
25686
26119
|
},
|
|
25687
|
-
"webrtc.closeSession": {
|
|
25688
|
-
capName: "webrtc",
|
|
25689
|
-
capScope: "system",
|
|
25690
|
-
addonId: null,
|
|
25691
|
-
access: "create"
|
|
25692
|
-
},
|
|
25693
|
-
"webrtc.createSession": {
|
|
25694
|
-
capName: "webrtc",
|
|
25695
|
-
capScope: "system",
|
|
25696
|
-
addonId: null,
|
|
25697
|
-
access: "create"
|
|
25698
|
-
},
|
|
25699
|
-
"webrtc.handleAnswer": {
|
|
25700
|
-
capName: "webrtc",
|
|
25701
|
-
capScope: "system",
|
|
25702
|
-
addonId: null,
|
|
25703
|
-
access: "create"
|
|
25704
|
-
},
|
|
25705
|
-
"webrtc.handleOffer": {
|
|
25706
|
-
capName: "webrtc",
|
|
25707
|
-
capScope: "system",
|
|
25708
|
-
addonId: null,
|
|
25709
|
-
access: "create"
|
|
25710
|
-
},
|
|
25711
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
25712
|
-
capName: "webrtc",
|
|
25713
|
-
capScope: "system",
|
|
25714
|
-
addonId: null,
|
|
25715
|
-
access: "view"
|
|
25716
|
-
},
|
|
25717
|
-
"webrtc.registerStream": {
|
|
25718
|
-
capName: "webrtc",
|
|
25719
|
-
capScope: "system",
|
|
25720
|
-
addonId: null,
|
|
25721
|
-
access: "create"
|
|
25722
|
-
},
|
|
25723
|
-
"webrtc.supportsStream": {
|
|
25724
|
-
capName: "webrtc",
|
|
25725
|
-
capScope: "system",
|
|
25726
|
-
addonId: null,
|
|
25727
|
-
access: "view"
|
|
25728
|
-
},
|
|
25729
|
-
"webrtc.unregisterStream": {
|
|
25730
|
-
capName: "webrtc",
|
|
25731
|
-
capScope: "system",
|
|
25732
|
-
addonId: null,
|
|
25733
|
-
access: "delete"
|
|
25734
|
-
},
|
|
25735
26120
|
"webrtcSession.addIceCandidate": {
|
|
25736
26121
|
capName: "webrtc-session",
|
|
25737
26122
|
capScope: "device",
|