@camstack/addon-model-studio 1.0.19 → 1.0.21
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/{MotionZonesSettings-E024aAUS.mjs → MotionZonesSettings-xXTYDtIM.mjs} +1 -1
- package/dist/{PrivacyMaskSettings-Mrl6QwuT.mjs → PrivacyMaskSettings-CUB3plKT.mjs} +2 -2
- package/dist/_stub.js +7 -7
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Ce876HR9.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BZHMr_NM.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DGeSi8Rf.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-ss31pW3c.mjs → hostInit-B0Kz_Xao.mjs} +3 -3
- package/dist/model-studio.addon.js +674 -258
- package/dist/model-studio.addon.mjs +674 -258
- package/dist/{player-overlays-DHoKoGsu.mjs → player-overlays-6JCUcHzw.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{trash-2-3H9YXi7g.mjs → trash-2-CH1_KJWF.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-wweMS5Su.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BeSSIZvy.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BzCPF55l.mjs +0 -26
|
@@ -4661,7 +4661,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4661
4661
|
return inst;
|
|
4662
4662
|
}
|
|
4663
4663
|
//#endregion
|
|
4664
|
-
//#region ../types/dist/sleep-
|
|
4664
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4665
4665
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4666
4666
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4667
4667
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4847,6 +4847,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4847
4847
|
*/
|
|
4848
4848
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4849
4849
|
/**
|
|
4850
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4851
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4852
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4853
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4854
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4855
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4856
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4857
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4858
|
+
* broker's long backstop reconcile query).
|
|
4859
|
+
*/
|
|
4860
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4861
|
+
/**
|
|
4850
4862
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4851
4863
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4852
4864
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5370,10 +5382,6 @@ function hydrateField(field, values) {
|
|
|
5370
5382
|
};
|
|
5371
5383
|
}
|
|
5372
5384
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5373
|
-
if (field.type === "password") return {
|
|
5374
|
-
...field,
|
|
5375
|
-
value: ""
|
|
5376
|
-
};
|
|
5377
5385
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5378
5386
|
return {
|
|
5379
5387
|
...field,
|
|
@@ -6757,6 +6765,21 @@ function method(input, output, options) {
|
|
|
6757
6765
|
timeoutMs: options?.timeoutMs
|
|
6758
6766
|
};
|
|
6759
6767
|
}
|
|
6768
|
+
/**
|
|
6769
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6770
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6771
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6772
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6773
|
+
*/
|
|
6774
|
+
function systemMethod(input, output, options) {
|
|
6775
|
+
return {
|
|
6776
|
+
...method(input, output, options),
|
|
6777
|
+
systemOnly: true
|
|
6778
|
+
};
|
|
6779
|
+
}
|
|
6780
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6781
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6782
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6760
6783
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6761
6784
|
var VersionOutputSchema = object({ version: string() });
|
|
6762
6785
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6926,6 +6949,36 @@ var ModelFormatsSchema = object({
|
|
|
6926
6949
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6927
6950
|
pt: ModelFormatEntrySchema.optional()
|
|
6928
6951
|
});
|
|
6952
|
+
/**
|
|
6953
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6954
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6955
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6956
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6957
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6958
|
+
* to an `id`.
|
|
6959
|
+
*/
|
|
6960
|
+
var ModelVariantGroupSchema = object({
|
|
6961
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6962
|
+
family: string(),
|
|
6963
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6964
|
+
tier: string(),
|
|
6965
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6966
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6967
|
+
/**
|
|
6968
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6969
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6970
|
+
* future performance variants plug into.
|
|
6971
|
+
*/
|
|
6972
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6973
|
+
/**
|
|
6974
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6975
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6976
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6977
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6978
|
+
* the group so the selector can offer it as a variant axis.
|
|
6979
|
+
*/
|
|
6980
|
+
resolution: number().int().positive().optional()
|
|
6981
|
+
});
|
|
6929
6982
|
var ModelCatalogEntrySchema = object({
|
|
6930
6983
|
id: string(),
|
|
6931
6984
|
name: string(),
|
|
@@ -6955,7 +7008,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6955
7008
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6956
7009
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6957
7010
|
*/
|
|
6958
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7011
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7012
|
+
/**
|
|
7013
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7014
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7015
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7016
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7017
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7018
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7019
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7020
|
+
*/
|
|
7021
|
+
legacy: boolean().optional(),
|
|
7022
|
+
/**
|
|
7023
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7024
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7025
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7026
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7027
|
+
*/
|
|
7028
|
+
metrics: object({
|
|
7029
|
+
map50: number().optional(),
|
|
7030
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7031
|
+
}).optional(),
|
|
7032
|
+
/**
|
|
7033
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7034
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7035
|
+
* the retraining addon and any future commercial distribution.
|
|
7036
|
+
*/
|
|
7037
|
+
license: string().optional(),
|
|
7038
|
+
/**
|
|
7039
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7040
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7041
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7042
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7043
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7044
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7045
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7046
|
+
*/
|
|
7047
|
+
group: ModelVariantGroupSchema.optional()
|
|
6959
7048
|
});
|
|
6960
7049
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6961
7050
|
format: literal("openvino"),
|
|
@@ -7017,8 +7106,8 @@ var RecordingModeSchema = _enum([
|
|
|
7017
7106
|
"onAudioThreshold"
|
|
7018
7107
|
]);
|
|
7019
7108
|
/**
|
|
7020
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7021
|
-
* reads directly (never inferred from `rules`):
|
|
7109
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7110
|
+
* UI reads directly (never inferred from `rules`):
|
|
7022
7111
|
* - `off` — not recording.
|
|
7023
7112
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7024
7113
|
* with pre/post-buffer.
|
|
@@ -8696,26 +8785,13 @@ DeviceType.Light, method(object({
|
|
|
8696
8785
|
percentage: number().min(0).max(100),
|
|
8697
8786
|
lastChangedAt: number()
|
|
8698
8787
|
});
|
|
8788
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8699
8789
|
var StreamFormatSchema = _enum([
|
|
8700
8790
|
"webrtc",
|
|
8701
8791
|
"hls",
|
|
8702
8792
|
"mjpeg",
|
|
8703
8793
|
"rtsp"
|
|
8704
8794
|
]);
|
|
8705
|
-
var StreamInfoSchema = object({
|
|
8706
|
-
streamId: string(),
|
|
8707
|
-
format: StreamFormatSchema,
|
|
8708
|
-
url: string().nullable(),
|
|
8709
|
-
active: boolean()
|
|
8710
|
-
});
|
|
8711
|
-
method(object({
|
|
8712
|
-
streamId: string(),
|
|
8713
|
-
sourceUrl: string(),
|
|
8714
|
-
codec: string().optional()
|
|
8715
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8716
|
-
streamId: string(),
|
|
8717
|
-
format: StreamFormatSchema
|
|
8718
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8719
8795
|
var RtspRestreamEntrySchema = object({
|
|
8720
8796
|
brokerId: string(),
|
|
8721
8797
|
url: string(),
|
|
@@ -9380,7 +9456,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9380
9456
|
})),
|
|
9381
9457
|
lastChangedAt: number()
|
|
9382
9458
|
});
|
|
9383
|
-
|
|
9459
|
+
Object.values(DeviceType), method(object({
|
|
9384
9460
|
deviceId: number().int().nonnegative(),
|
|
9385
9461
|
key: string().min(1)
|
|
9386
9462
|
}), _void(), {
|
|
@@ -10295,7 +10371,7 @@ var BoundingBoxSchema = object({
|
|
|
10295
10371
|
w: number(),
|
|
10296
10372
|
h: number()
|
|
10297
10373
|
});
|
|
10298
|
-
|
|
10374
|
+
object({
|
|
10299
10375
|
class: string(),
|
|
10300
10376
|
originalClass: string(),
|
|
10301
10377
|
score: number(),
|
|
@@ -10430,7 +10506,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10430
10506
|
enabled: boolean(),
|
|
10431
10507
|
modelId: string(),
|
|
10432
10508
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10433
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10434
10509
|
group: string().optional(),
|
|
10435
10510
|
settings: record(string(), unknown()).optional()
|
|
10436
10511
|
}));
|
|
@@ -10455,7 +10530,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10455
10530
|
formats: record(string(), object({
|
|
10456
10531
|
downloaded: boolean(),
|
|
10457
10532
|
sizeMB: number()
|
|
10458
|
-
}))
|
|
10533
|
+
})),
|
|
10534
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10535
|
+
legacy: boolean().optional()
|
|
10459
10536
|
});
|
|
10460
10537
|
var ConfigFieldBridge = custom();
|
|
10461
10538
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10469,6 +10546,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10469
10546
|
defaultModelId: string(),
|
|
10470
10547
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10471
10548
|
enabledByDefault: boolean().optional(),
|
|
10549
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10472
10550
|
defaultConfidence: number(),
|
|
10473
10551
|
group: string().optional(),
|
|
10474
10552
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10485,11 +10563,6 @@ var PipelineSchemaSchema = object({
|
|
|
10485
10563
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10486
10564
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10487
10565
|
});
|
|
10488
|
-
var DetectorOutputSchema = object({
|
|
10489
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10490
|
-
inferenceMs: number(),
|
|
10491
|
-
modelId: string()
|
|
10492
|
-
});
|
|
10493
10566
|
var EngineProvisioningSchema = object({
|
|
10494
10567
|
runtimeId: _enum([
|
|
10495
10568
|
"onnx",
|
|
@@ -10506,15 +10579,42 @@ var EngineProvisioningSchema = object({
|
|
|
10506
10579
|
]),
|
|
10507
10580
|
progress: number().optional(),
|
|
10508
10581
|
error: string().optional(),
|
|
10509
|
-
nextRetryAt: number().optional()
|
|
10582
|
+
nextRetryAt: number().optional(),
|
|
10583
|
+
/**
|
|
10584
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10585
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10586
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10587
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10588
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10589
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10590
|
+
*/
|
|
10591
|
+
configIssues: array(string()).optional()
|
|
10510
10592
|
});
|
|
10511
10593
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10512
10594
|
addonId: string(),
|
|
10513
|
-
modelId: string(),
|
|
10595
|
+
modelId: string().optional(),
|
|
10514
10596
|
enabled: boolean().default(true),
|
|
10515
10597
|
children: array(PipelineStepInputSchema).optional(),
|
|
10516
10598
|
settings: record(string(), unknown()).optional()
|
|
10517
10599
|
}));
|
|
10600
|
+
var ModelSubstitutionSchema = object({
|
|
10601
|
+
addonId: string(),
|
|
10602
|
+
chosen: string(),
|
|
10603
|
+
running: string(),
|
|
10604
|
+
format: string()
|
|
10605
|
+
});
|
|
10606
|
+
var PipelineValidationIssueSchema = object({
|
|
10607
|
+
addonId: string(),
|
|
10608
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10609
|
+
detail: string()
|
|
10610
|
+
});
|
|
10611
|
+
var PipelineValidationResultSchema = object({
|
|
10612
|
+
ok: boolean(),
|
|
10613
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10614
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10615
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10616
|
+
format: string()
|
|
10617
|
+
});
|
|
10518
10618
|
var ReferenceImageEntrySchema = object({
|
|
10519
10619
|
filename: string(),
|
|
10520
10620
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10585,7 +10685,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10585
10685
|
})) }), object({ success: literal(true) }), {
|
|
10586
10686
|
kind: "mutation",
|
|
10587
10687
|
auth: "admin"
|
|
10588
|
-
}), method(
|
|
10688
|
+
}), method(object({ nodeId: string() }), object({
|
|
10689
|
+
success: literal(true),
|
|
10690
|
+
clearedDevices: number()
|
|
10691
|
+
}), {
|
|
10692
|
+
kind: "mutation",
|
|
10693
|
+
auth: "admin"
|
|
10694
|
+
}), 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({
|
|
10589
10695
|
name: string(),
|
|
10590
10696
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10591
10697
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10602,10 +10708,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10602
10708
|
modelId: string(),
|
|
10603
10709
|
format: ModelFormatSchema$1
|
|
10604
10710
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10605
|
-
addonId: string(),
|
|
10606
|
-
frame: FrameInputSchema,
|
|
10607
|
-
config: record(string(), unknown()).optional()
|
|
10608
|
-
}), DetectorOutputSchema), method(object({
|
|
10609
10711
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10610
10712
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10611
10713
|
frame: FrameInputSchema.optional(),
|
|
@@ -10751,6 +10853,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10751
10853
|
auth: "admin"
|
|
10752
10854
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10753
10855
|
/**
|
|
10856
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10857
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10858
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10859
|
+
* dims — no native resolution to plumb.
|
|
10860
|
+
*/
|
|
10861
|
+
var NativeCropBboxSchema = object({
|
|
10862
|
+
x: number(),
|
|
10863
|
+
y: number(),
|
|
10864
|
+
w: number(),
|
|
10865
|
+
h: number()
|
|
10866
|
+
});
|
|
10867
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10868
|
+
var NativeCropResultSchema = object({
|
|
10869
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10870
|
+
bytes: _instanceof(Uint8Array),
|
|
10871
|
+
width: number().int().positive(),
|
|
10872
|
+
height: number().int().positive()
|
|
10873
|
+
});
|
|
10874
|
+
/**
|
|
10754
10875
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10755
10876
|
* by both the Zod data schema (validation + default fallback) and
|
|
10756
10877
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10845,6 +10966,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10845
10966
|
kind: literal("remote-restream"),
|
|
10846
10967
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10847
10968
|
ownerNodeId: string(),
|
|
10969
|
+
/**
|
|
10970
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10971
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10972
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10973
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10974
|
+
*/
|
|
10975
|
+
ownerReachableHost: string().optional(),
|
|
10848
10976
|
/** Operator override for the owner host the runner dials. */
|
|
10849
10977
|
hubHostnameOverride: string().optional()
|
|
10850
10978
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10853,13 +10981,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10853
10981
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10854
10982
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10855
10983
|
*
|
|
10856
|
-
* Stateless-pipeline model: the
|
|
10857
|
-
*
|
|
10858
|
-
*
|
|
10859
|
-
*
|
|
10860
|
-
*
|
|
10861
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10862
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10984
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10985
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10986
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10987
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10988
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10863
10989
|
*/
|
|
10864
10990
|
var RunnerCameraConfigSchema = object({
|
|
10865
10991
|
deviceId: number(),
|
|
@@ -10910,14 +11036,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10910
11036
|
*/
|
|
10911
11037
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10912
11038
|
pipelineEnabled: boolean().default(true),
|
|
10913
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10914
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10915
11039
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10916
11040
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10917
11041
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10918
11042
|
audio: object({
|
|
10919
|
-
|
|
10920
|
-
modelId: string(),
|
|
11043
|
+
modelId: string().optional(),
|
|
10921
11044
|
enabled: boolean()
|
|
10922
11045
|
}).nullable().optional(),
|
|
10923
11046
|
/**
|
|
@@ -11004,7 +11127,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11004
11127
|
avgInferenceTimeMs: number(),
|
|
11005
11128
|
queueDepth: number()
|
|
11006
11129
|
});
|
|
11007
|
-
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())
|
|
11130
|
+
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({
|
|
11131
|
+
handle: FrameHandleSchema,
|
|
11132
|
+
bbox: NativeCropBboxSchema,
|
|
11133
|
+
maxWidth: number().int().positive().optional()
|
|
11134
|
+
}), NativeCropResultSchema.nullable());
|
|
11008
11135
|
object({
|
|
11009
11136
|
detected: boolean(),
|
|
11010
11137
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12298,7 +12425,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12298
12425
|
icon: string(),
|
|
12299
12426
|
path: string(),
|
|
12300
12427
|
remoteName: string(),
|
|
12301
|
-
bundle: string()
|
|
12428
|
+
bundle: string(),
|
|
12429
|
+
section: string().optional(),
|
|
12430
|
+
sectionLabel: string().optional()
|
|
12302
12431
|
});
|
|
12303
12432
|
var AddonPageInfoSchema = object({
|
|
12304
12433
|
addonId: string(),
|
|
@@ -12338,7 +12467,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12338
12467
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12339
12468
|
* without a separate filesystem stat.
|
|
12340
12469
|
*/
|
|
12341
|
-
bundle: string()
|
|
12470
|
+
bundle: string(),
|
|
12471
|
+
/**
|
|
12472
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12473
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12474
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12475
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12476
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12477
|
+
* "Addon Pages" group.
|
|
12478
|
+
*/
|
|
12479
|
+
section: string().optional(),
|
|
12480
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12481
|
+
sectionLabel: string().optional()
|
|
12342
12482
|
});
|
|
12343
12483
|
var addonPagesSourceCapability = {
|
|
12344
12484
|
name: "addon-pages-source",
|
|
@@ -12560,6 +12700,17 @@ var WidgetMetadataSchema = object({
|
|
|
12560
12700
|
deviceContext: boolean().default(false),
|
|
12561
12701
|
integrationContext: boolean().default(false)
|
|
12562
12702
|
}),
|
|
12703
|
+
/**
|
|
12704
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12705
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12706
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12707
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12708
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12709
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12710
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12711
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12712
|
+
*/
|
|
12713
|
+
preAuth: boolean().optional().default(false),
|
|
12563
12714
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12564
12715
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12565
12716
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12861,6 +13012,66 @@ method(object({
|
|
|
12861
13012
|
password: string()
|
|
12862
13013
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12863
13014
|
/**
|
|
13015
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
13016
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
13017
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
13018
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
13019
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
13020
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
13021
|
+
*
|
|
13022
|
+
* A contribution is a discriminated union on `kind`:
|
|
13023
|
+
*
|
|
13024
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13025
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13026
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13027
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13028
|
+
* login page needs NO change.
|
|
13029
|
+
*
|
|
13030
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13031
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13032
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13033
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13034
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13035
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13036
|
+
*
|
|
13037
|
+
* Every contribution carries a `stage`:
|
|
13038
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13039
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13040
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13041
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13042
|
+
*
|
|
13043
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13044
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13045
|
+
* tRPC router.
|
|
13046
|
+
*/
|
|
13047
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13048
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13049
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13050
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13051
|
+
kind: literal("redirect"),
|
|
13052
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13053
|
+
id: string(),
|
|
13054
|
+
/** Operator-facing button label. */
|
|
13055
|
+
label: string(),
|
|
13056
|
+
/** lucide-react icon name. */
|
|
13057
|
+
icon: string().optional(),
|
|
13058
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13059
|
+
startUrl: string(),
|
|
13060
|
+
stage: LoginStageEnum
|
|
13061
|
+
}), object({
|
|
13062
|
+
kind: literal("widget"),
|
|
13063
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13064
|
+
id: string(),
|
|
13065
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13066
|
+
addonId: string(),
|
|
13067
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13068
|
+
bundle: string(),
|
|
13069
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13070
|
+
remote: WidgetRemoteSchema,
|
|
13071
|
+
stage: LoginStageEnum
|
|
13072
|
+
})]);
|
|
13073
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13074
|
+
/**
|
|
12864
13075
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12865
13076
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12866
13077
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14997,7 +15208,17 @@ var TrackSchema = object({
|
|
|
14997
15208
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14998
15209
|
totalDistance: number(),
|
|
14999
15210
|
state: TrackStateSchema,
|
|
15000
|
-
active: boolean()
|
|
15211
|
+
active: boolean(),
|
|
15212
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15213
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15214
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15215
|
+
importance: number().optional(),
|
|
15216
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15217
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15218
|
+
bestEventId: string().optional(),
|
|
15219
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15220
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15221
|
+
importanceReason: string().optional()
|
|
15001
15222
|
});
|
|
15002
15223
|
var BaseEventFields = {
|
|
15003
15224
|
id: string(),
|
|
@@ -15062,8 +15283,18 @@ var ObjectEventSchema = object({
|
|
|
15062
15283
|
frameHeight: number().optional(),
|
|
15063
15284
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15064
15285
|
mediaKey: string().optional(),
|
|
15286
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15287
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15288
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15289
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15290
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15291
|
+
keyFrameMediaKey: string().optional(),
|
|
15065
15292
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15066
|
-
mediaUrl: string().optional()
|
|
15293
|
+
mediaUrl: string().optional(),
|
|
15294
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15295
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15296
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15297
|
+
importance: number().optional()
|
|
15067
15298
|
});
|
|
15068
15299
|
var AudioEventSchema = object({
|
|
15069
15300
|
...BaseEventFields,
|
|
@@ -15087,7 +15318,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15087
15318
|
"fullFrame",
|
|
15088
15319
|
"fullFrameBoxed",
|
|
15089
15320
|
"faceCrop",
|
|
15090
|
-
"plateCrop"
|
|
15321
|
+
"plateCrop",
|
|
15322
|
+
"keyFrame"
|
|
15091
15323
|
]);
|
|
15092
15324
|
var MediaFileSchema = object({
|
|
15093
15325
|
key: string(),
|
|
@@ -15108,6 +15340,32 @@ var DeviceEventQueryInput = object({
|
|
|
15108
15340
|
projection: _enum(["full", "slim"]).optional()
|
|
15109
15341
|
});
|
|
15110
15342
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15343
|
+
var KeyEventQueryInput = object({
|
|
15344
|
+
deviceId: number(),
|
|
15345
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15346
|
+
since: number(),
|
|
15347
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15348
|
+
until: number(),
|
|
15349
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15350
|
+
/** Drop tracks scoring below this importance. */
|
|
15351
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15352
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15353
|
+
classFilter: string().optional()
|
|
15354
|
+
});
|
|
15355
|
+
var KeyEventSchema = object({
|
|
15356
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15357
|
+
id: string(),
|
|
15358
|
+
trackId: string(),
|
|
15359
|
+
/** Track start time (firstSeen). */
|
|
15360
|
+
timestamp: number(),
|
|
15361
|
+
className: string(),
|
|
15362
|
+
label: string().optional(),
|
|
15363
|
+
importance: number(),
|
|
15364
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15365
|
+
bestEventId: string(),
|
|
15366
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15367
|
+
windowMs: number().optional()
|
|
15368
|
+
});
|
|
15111
15369
|
var TrackedDetectionSchema = object({
|
|
15112
15370
|
trackId: string(),
|
|
15113
15371
|
className: string(),
|
|
@@ -15137,7 +15395,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15137
15395
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15138
15396
|
kind: "mutation",
|
|
15139
15397
|
auth: "admin"
|
|
15140
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15398
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15141
15399
|
deviceId: number(),
|
|
15142
15400
|
since: number(),
|
|
15143
15401
|
until: number(),
|
|
@@ -15182,11 +15440,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15182
15440
|
timestamp: number()
|
|
15183
15441
|
});
|
|
15184
15442
|
var CameraPipelineConfigSchema = object({
|
|
15185
|
-
engine: PipelineEngineChoiceSchema,
|
|
15443
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15186
15444
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15187
15445
|
audio: object({
|
|
15188
|
-
engine: PipelineEngineChoiceSchema,
|
|
15189
|
-
modelId: string(),
|
|
15446
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15447
|
+
modelId: string().optional(),
|
|
15190
15448
|
enabled: boolean(),
|
|
15191
15449
|
settings: record(string(), unknown()).readonly().optional()
|
|
15192
15450
|
}).nullable().optional()
|
|
@@ -15201,7 +15459,7 @@ var PipelineTemplateSchema = object({
|
|
|
15201
15459
|
});
|
|
15202
15460
|
var AgentAddonConfigSchema = object({
|
|
15203
15461
|
enabled: boolean(),
|
|
15204
|
-
modelId: string(),
|
|
15462
|
+
modelId: string().optional(),
|
|
15205
15463
|
settings: record(string(), unknown()).readonly()
|
|
15206
15464
|
});
|
|
15207
15465
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15211,12 +15469,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15211
15469
|
detectWeight: number().positive().optional(),
|
|
15212
15470
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15213
15471
|
detect: boolean().optional(),
|
|
15214
|
-
/**
|
|
15472
|
+
/**
|
|
15473
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15474
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15475
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15476
|
+
* parse — no code reads it and no write path emits it.
|
|
15477
|
+
*/
|
|
15215
15478
|
decode: boolean().optional(),
|
|
15216
15479
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15217
15480
|
audio: boolean().optional(),
|
|
15218
15481
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15219
|
-
ingest: boolean().optional()
|
|
15482
|
+
ingest: boolean().optional(),
|
|
15483
|
+
/**
|
|
15484
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15485
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15486
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15487
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15488
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15489
|
+
*/
|
|
15490
|
+
reachableHost: string().optional()
|
|
15220
15491
|
});
|
|
15221
15492
|
var CameraPipelineForAgentSchema = object({
|
|
15222
15493
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15264,25 +15535,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15264
15535
|
assignedAt: number()
|
|
15265
15536
|
});
|
|
15266
15537
|
/**
|
|
15267
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15268
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15269
|
-
* → co-located with pipeline → capacity).
|
|
15270
|
-
*/
|
|
15271
|
-
var DecoderAssignmentSchema = object({
|
|
15272
|
-
deviceId: number(),
|
|
15273
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15274
|
-
decoderNodeId: string(),
|
|
15275
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15276
|
-
pinned: boolean(),
|
|
15277
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15278
|
-
reason: _enum([
|
|
15279
|
-
"manual",
|
|
15280
|
-
"co-located",
|
|
15281
|
-
"capacity",
|
|
15282
|
-
"hardware-affinity"
|
|
15283
|
-
])
|
|
15284
|
-
});
|
|
15285
|
-
/**
|
|
15286
15538
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15287
15539
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15288
15540
|
*/
|
|
@@ -15322,6 +15574,15 @@ var GlobalMetricsSchema = object({
|
|
|
15322
15574
|
* capability providers.
|
|
15323
15575
|
*/
|
|
15324
15576
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15577
|
+
/**
|
|
15578
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15579
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15580
|
+
*/
|
|
15581
|
+
var IngestOwnerSchema = object({
|
|
15582
|
+
ownerNodeId: string(),
|
|
15583
|
+
reachableHost: string().optional(),
|
|
15584
|
+
configIssue: string().optional()
|
|
15585
|
+
});
|
|
15325
15586
|
/** Source block — always present; derives from the stream catalog. */
|
|
15326
15587
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15327
15588
|
camStreamId: string(),
|
|
@@ -15336,6 +15597,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15336
15597
|
detectionNodeId: string().nullable(),
|
|
15337
15598
|
decoderNodeId: string().nullable(),
|
|
15338
15599
|
audioNodeId: string().nullable(),
|
|
15600
|
+
/**
|
|
15601
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15602
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15603
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15604
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15605
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15606
|
+
*/
|
|
15607
|
+
sourceNodeId: string().nullable(),
|
|
15339
15608
|
pinned: object({
|
|
15340
15609
|
detection: boolean(),
|
|
15341
15610
|
decoder: boolean(),
|
|
@@ -15468,16 +15737,7 @@ method(object({
|
|
|
15468
15737
|
}), object({ success: literal(true) }), {
|
|
15469
15738
|
kind: "mutation",
|
|
15470
15739
|
auth: "admin"
|
|
15471
|
-
}), method(object({
|
|
15472
|
-
deviceId: number(),
|
|
15473
|
-
nodeId: string()
|
|
15474
|
-
}), _void(), {
|
|
15475
|
-
kind: "mutation",
|
|
15476
|
-
auth: "admin"
|
|
15477
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15478
|
-
kind: "mutation",
|
|
15479
|
-
auth: "admin"
|
|
15480
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15740
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15481
15741
|
deviceId: number(),
|
|
15482
15742
|
nodeId: string()
|
|
15483
15743
|
}), object({ success: literal(true) }), {
|
|
@@ -15498,10 +15758,7 @@ method(object({
|
|
|
15498
15758
|
nodeId: string(),
|
|
15499
15759
|
pinned: boolean(),
|
|
15500
15760
|
assignedAt: number()
|
|
15501
|
-
}))), method(object({
|
|
15502
|
-
deviceId: number(),
|
|
15503
|
-
pipelineNodeId: string().optional()
|
|
15504
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15761
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15505
15762
|
nodeId: string(),
|
|
15506
15763
|
settings: AgentPipelineSettingsSchema
|
|
15507
15764
|
})).readonly()), method(object({
|
|
@@ -15531,12 +15788,26 @@ method(object({
|
|
|
15531
15788
|
}), method(object({
|
|
15532
15789
|
agentNodeId: string(),
|
|
15533
15790
|
detect: boolean().nullable().optional(),
|
|
15534
|
-
decode: boolean().nullable().optional(),
|
|
15535
15791
|
audio: boolean().nullable().optional(),
|
|
15536
15792
|
ingest: boolean().nullable().optional()
|
|
15537
15793
|
}), object({ success: literal(true) }), {
|
|
15538
15794
|
kind: "mutation",
|
|
15539
15795
|
auth: "admin"
|
|
15796
|
+
}), method(object({
|
|
15797
|
+
agentNodeId: string(),
|
|
15798
|
+
reachableHost: string().nullable()
|
|
15799
|
+
}), object({ success: literal(true) }), {
|
|
15800
|
+
kind: "mutation",
|
|
15801
|
+
auth: "admin"
|
|
15802
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15803
|
+
success: literal(true),
|
|
15804
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15805
|
+
effectiveModelId: string().nullable(),
|
|
15806
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15807
|
+
clearedCameraOverrides: number()
|
|
15808
|
+
}), {
|
|
15809
|
+
kind: "mutation",
|
|
15810
|
+
auth: "admin"
|
|
15540
15811
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15541
15812
|
deviceId: number(),
|
|
15542
15813
|
addonId: string(),
|
|
@@ -15581,22 +15852,131 @@ method(object({
|
|
|
15581
15852
|
kind: "mutation",
|
|
15582
15853
|
auth: "admin"
|
|
15583
15854
|
});
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15855
|
+
/**
|
|
15856
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15857
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15858
|
+
* agents).
|
|
15859
|
+
*
|
|
15860
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15861
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15862
|
+
* version describes the node. Updates install into
|
|
15863
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15864
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15865
|
+
*
|
|
15866
|
+
* Providers:
|
|
15867
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15868
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15869
|
+
* unpinned calls.
|
|
15870
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15871
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15872
|
+
* `$hub.registerNode` manifest.
|
|
15873
|
+
*
|
|
15874
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15875
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15876
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15877
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15878
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15879
|
+
*
|
|
15880
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15881
|
+
*/
|
|
15882
|
+
/**
|
|
15883
|
+
* Where the running hub's code was loaded from:
|
|
15884
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15885
|
+
* plain resolution and runtime updates are refused.
|
|
15886
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15887
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15888
|
+
*/
|
|
15889
|
+
var ServerBootModeSchema = _enum([
|
|
15890
|
+
"workspace",
|
|
15891
|
+
"baked",
|
|
15892
|
+
"data-root"
|
|
15893
|
+
]);
|
|
15894
|
+
/**
|
|
15895
|
+
* Update lifecycle state:
|
|
15896
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15897
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15898
|
+
* restarted onto it (still running the OLD version).
|
|
15899
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15900
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15901
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15902
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15903
|
+
*/
|
|
15904
|
+
var ServerUpdateStateSchema = _enum([
|
|
15905
|
+
"idle",
|
|
15906
|
+
"checking",
|
|
15907
|
+
"staging",
|
|
15908
|
+
"pending-restart",
|
|
15909
|
+
"awaiting-confirmation"
|
|
15910
|
+
]);
|
|
15911
|
+
var ServerRollbackInfoSchema = object({
|
|
15912
|
+
/** The version that failed (or was manually rolled back). */
|
|
15913
|
+
fromVersion: string(),
|
|
15914
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15915
|
+
toVersion: string().nullable(),
|
|
15916
|
+
atMs: number(),
|
|
15917
|
+
reason: string()
|
|
15590
15918
|
});
|
|
15591
|
-
var
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15919
|
+
var ServerPackageStatusSchema = object({
|
|
15920
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15921
|
+
packageName: string(),
|
|
15922
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15923
|
+
runningVersion: string().nullable(),
|
|
15924
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15925
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15926
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15927
|
+
activeVersion: string().nullable(),
|
|
15928
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15929
|
+
previousVersion: string().nullable(),
|
|
15930
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15931
|
+
seedVersion: string().nullable(),
|
|
15932
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15933
|
+
latestVersion: string().nullable(),
|
|
15934
|
+
updateAvailable: boolean(),
|
|
15935
|
+
bootMode: ServerBootModeSchema,
|
|
15936
|
+
updateState: ServerUpdateStateSchema,
|
|
15937
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15938
|
+
pendingVersion: string().nullable(),
|
|
15939
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15940
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15941
|
+
/**
|
|
15942
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15943
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15944
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15945
|
+
*/
|
|
15946
|
+
stateFileCorrupt: boolean(),
|
|
15947
|
+
lastCheckedAtMs: number().nullable()
|
|
15948
|
+
});
|
|
15949
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15950
|
+
packageName: string(),
|
|
15951
|
+
runningVersion: string().nullable(),
|
|
15952
|
+
latestVersion: string().nullable(),
|
|
15953
|
+
updateAvailable: boolean(),
|
|
15954
|
+
checkedAtMs: number(),
|
|
15955
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15956
|
+
error: string().nullable()
|
|
15957
|
+
});
|
|
15958
|
+
var ServerUpdateActionResultSchema = object({
|
|
15959
|
+
accepted: boolean(),
|
|
15960
|
+
targetVersion: string().nullable(),
|
|
15961
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15962
|
+
restarting: boolean(),
|
|
15963
|
+
message: string()
|
|
15964
|
+
});
|
|
15965
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15966
|
+
kind: "mutation",
|
|
15967
|
+
auth: "admin"
|
|
15968
|
+
}), method(object({
|
|
15969
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15970
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15971
|
+
kind: "mutation",
|
|
15972
|
+
auth: "admin"
|
|
15973
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15974
|
+
kind: "mutation",
|
|
15975
|
+
auth: "admin"
|
|
15976
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15977
|
+
kind: "mutation",
|
|
15978
|
+
auth: "admin"
|
|
15595
15979
|
});
|
|
15596
|
-
method(object({
|
|
15597
|
-
deviceId: number(),
|
|
15598
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15599
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15600
15980
|
/**
|
|
15601
15981
|
* Query filter for settings-store collections.
|
|
15602
15982
|
*/
|
|
@@ -15749,9 +16129,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15749
16129
|
/**
|
|
15750
16130
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15751
16131
|
*
|
|
15752
|
-
*
|
|
15753
|
-
*
|
|
15754
|
-
*
|
|
16132
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16133
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16134
|
+
* prebuffer fallback.
|
|
15755
16135
|
*/
|
|
15756
16136
|
var SnapshotImageSchema = object({
|
|
15757
16137
|
base64: string(),
|
|
@@ -15782,11 +16162,12 @@ DeviceType.Camera, method(object({
|
|
|
15782
16162
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15783
16163
|
kind: "mutation",
|
|
15784
16164
|
auth: "admin"
|
|
15785
|
-
})
|
|
15786
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16165
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15787
16166
|
deviceId: number(),
|
|
15788
|
-
|
|
15789
|
-
|
|
16167
|
+
lastCapturedAt: number().nullable(),
|
|
16168
|
+
cacheAgeMs: number().nullable(),
|
|
16169
|
+
etag: string().nullable()
|
|
16170
|
+
})));
|
|
15790
16171
|
/**
|
|
15791
16172
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15792
16173
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16037,10 +16418,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16037
16418
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16038
16419
|
* the assertion, bumps the credential counter, returns ok.
|
|
16039
16420
|
*
|
|
16421
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16422
|
+
* passkey IS the primary factor, no password leg:
|
|
16423
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16424
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16425
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16426
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16427
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16428
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16429
|
+
* resolves the credential by the response's credential id,
|
|
16430
|
+
* verifies the assertion against the stored challenge + that
|
|
16431
|
+
* credential's public key/counter, and returns the OWNING
|
|
16432
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16433
|
+
*
|
|
16040
16434
|
* 3. Management:
|
|
16041
16435
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16042
16436
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16043
16437
|
*
|
|
16438
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16439
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16440
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16441
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16442
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16443
|
+
* row ⇒ `enabled: false`).
|
|
16444
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16445
|
+
* the providing addon beside its credentials.
|
|
16446
|
+
*
|
|
16044
16447
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16045
16448
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16046
16449
|
* the cap to non-admins.
|
|
@@ -16083,6 +16486,17 @@ method(object({
|
|
|
16083
16486
|
}), object({ verified: boolean() }), {
|
|
16084
16487
|
kind: "mutation",
|
|
16085
16488
|
access: "view"
|
|
16489
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16490
|
+
kind: "mutation",
|
|
16491
|
+
access: "view"
|
|
16492
|
+
}), method(object({
|
|
16493
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16494
|
+
response: record(string(), unknown()) }), object({
|
|
16495
|
+
verified: boolean(),
|
|
16496
|
+
userId: string().nullable()
|
|
16497
|
+
}), {
|
|
16498
|
+
kind: "mutation",
|
|
16499
|
+
access: "view"
|
|
16086
16500
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16087
16501
|
userId: string(),
|
|
16088
16502
|
credentialId: string()
|
|
@@ -16090,6 +16504,13 @@ method(object({
|
|
|
16090
16504
|
kind: "mutation",
|
|
16091
16505
|
auth: "admin",
|
|
16092
16506
|
access: "delete"
|
|
16507
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16508
|
+
userId: string(),
|
|
16509
|
+
enabled: boolean()
|
|
16510
|
+
}), object({ success: literal(true) }), {
|
|
16511
|
+
kind: "mutation",
|
|
16512
|
+
auth: "admin",
|
|
16513
|
+
access: "create"
|
|
16093
16514
|
});
|
|
16094
16515
|
/**
|
|
16095
16516
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16147,9 +16568,10 @@ method(object({
|
|
|
16147
16568
|
auth: "admin"
|
|
16148
16569
|
});
|
|
16149
16570
|
/**
|
|
16150
|
-
* Optional client-side hints sent at session creation to help the
|
|
16151
|
-
*
|
|
16152
|
-
*
|
|
16571
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16572
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16573
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16574
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16153
16575
|
*/
|
|
16154
16576
|
var webrtcClientHintsSchema = object({
|
|
16155
16577
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16160,22 +16582,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16160
16582
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16161
16583
|
prefersTier: string().optional()
|
|
16162
16584
|
}).partial();
|
|
16163
|
-
method(object({
|
|
16164
|
-
streamId: string(),
|
|
16165
|
-
sdpOffer: string()
|
|
16166
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16167
|
-
streamId: string(),
|
|
16168
|
-
codec: string()
|
|
16169
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16170
|
-
streamId: string(),
|
|
16171
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16172
|
-
}), object({
|
|
16173
|
-
sessionId: string(),
|
|
16174
|
-
sdpOffer: string()
|
|
16175
|
-
}), { kind: "mutation" }), method(object({
|
|
16176
|
-
sessionId: string(),
|
|
16177
|
-
sdpAnswer: string()
|
|
16178
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16179
16585
|
/**
|
|
16180
16586
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16181
16587
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16906,7 +17312,17 @@ var FaceInfoSchema = object({
|
|
|
16906
17312
|
recognizedIdentityId: string().optional(),
|
|
16907
17313
|
identityName: string().optional(),
|
|
16908
17314
|
assigned: boolean(),
|
|
16909
|
-
base64: string().optional()
|
|
17315
|
+
base64: string().optional(),
|
|
17316
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17317
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17318
|
+
* legacy rows written before design B. */
|
|
17319
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17320
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17321
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17322
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17323
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17324
|
+
* back to the inline `base64` face crop. */
|
|
17325
|
+
keyFrameMediaKey: string().optional()
|
|
16910
17326
|
});
|
|
16911
17327
|
var FaceFilterEnum = _enum([
|
|
16912
17328
|
"unassigned",
|
|
@@ -17603,6 +18019,16 @@ var TopologyCategorySchema = object({
|
|
|
17603
18019
|
healthy: number(),
|
|
17604
18020
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17605
18021
|
});
|
|
18022
|
+
/**
|
|
18023
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18024
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18025
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18026
|
+
* rows and pre-phase-2 nodes report none.
|
|
18027
|
+
*/
|
|
18028
|
+
var TopologyRootPackageSchema = object({
|
|
18029
|
+
name: string(),
|
|
18030
|
+
version: string()
|
|
18031
|
+
});
|
|
17606
18032
|
var TopologyNodeSchema = object({
|
|
17607
18033
|
id: string(),
|
|
17608
18034
|
name: string(),
|
|
@@ -17626,7 +18052,8 @@ var TopologyNodeSchema = object({
|
|
|
17626
18052
|
status: string()
|
|
17627
18053
|
})).readonly(),
|
|
17628
18054
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17629
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18055
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18056
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17630
18057
|
});
|
|
17631
18058
|
var CapUsageEdgeSchema = object({
|
|
17632
18059
|
callerAddonId: string(),
|
|
@@ -20426,6 +20853,12 @@ Object.freeze({
|
|
|
20426
20853
|
addonId: null,
|
|
20427
20854
|
access: "create"
|
|
20428
20855
|
},
|
|
20856
|
+
"loginMethod.getLoginMethods": {
|
|
20857
|
+
capName: "login-method",
|
|
20858
|
+
capScope: "system",
|
|
20859
|
+
addonId: null,
|
|
20860
|
+
access: "view"
|
|
20861
|
+
},
|
|
20429
20862
|
"mediaPlayer.next": {
|
|
20430
20863
|
capName: "media-player",
|
|
20431
20864
|
capScope: "device",
|
|
@@ -21008,6 +21441,12 @@ Object.freeze({
|
|
|
21008
21441
|
addonId: null,
|
|
21009
21442
|
access: "view"
|
|
21010
21443
|
},
|
|
21444
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21445
|
+
capName: "pipeline-analytics",
|
|
21446
|
+
capScope: "device",
|
|
21447
|
+
addonId: null,
|
|
21448
|
+
access: "view"
|
|
21449
|
+
},
|
|
21011
21450
|
"pipelineAnalytics.getMotionEvents": {
|
|
21012
21451
|
capName: "pipeline-analytics",
|
|
21013
21452
|
capScope: "device",
|
|
@@ -21056,23 +21495,23 @@ Object.freeze({
|
|
|
21056
21495
|
addonId: null,
|
|
21057
21496
|
access: "create"
|
|
21058
21497
|
},
|
|
21059
|
-
"pipelineExecutor.
|
|
21498
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21060
21499
|
capName: "pipeline-executor",
|
|
21061
21500
|
capScope: "system",
|
|
21062
21501
|
addonId: null,
|
|
21063
21502
|
access: "delete"
|
|
21064
21503
|
},
|
|
21065
|
-
"pipelineExecutor.
|
|
21504
|
+
"pipelineExecutor.deleteModel": {
|
|
21066
21505
|
capName: "pipeline-executor",
|
|
21067
21506
|
capScope: "system",
|
|
21068
21507
|
addonId: null,
|
|
21069
21508
|
access: "delete"
|
|
21070
21509
|
},
|
|
21071
|
-
"pipelineExecutor.
|
|
21510
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21072
21511
|
capName: "pipeline-executor",
|
|
21073
21512
|
capScope: "system",
|
|
21074
21513
|
addonId: null,
|
|
21075
|
-
access: "
|
|
21514
|
+
access: "delete"
|
|
21076
21515
|
},
|
|
21077
21516
|
"pipelineExecutor.downloadModel": {
|
|
21078
21517
|
capName: "pipeline-executor",
|
|
@@ -21266,13 +21705,13 @@ Object.freeze({
|
|
|
21266
21705
|
addonId: null,
|
|
21267
21706
|
access: "create"
|
|
21268
21707
|
},
|
|
21269
|
-
"
|
|
21270
|
-
capName: "pipeline-
|
|
21708
|
+
"pipelineExecutor.validatePipeline": {
|
|
21709
|
+
capName: "pipeline-executor",
|
|
21271
21710
|
capScope: "system",
|
|
21272
21711
|
addonId: null,
|
|
21273
|
-
access: "
|
|
21712
|
+
access: "view"
|
|
21274
21713
|
},
|
|
21275
|
-
"pipelineOrchestrator.
|
|
21714
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21276
21715
|
capName: "pipeline-orchestrator",
|
|
21277
21716
|
capScope: "system",
|
|
21278
21717
|
addonId: null,
|
|
@@ -21356,19 +21795,13 @@ Object.freeze({
|
|
|
21356
21795
|
addonId: null,
|
|
21357
21796
|
access: "view"
|
|
21358
21797
|
},
|
|
21359
|
-
"pipelineOrchestrator.
|
|
21360
|
-
capName: "pipeline-orchestrator",
|
|
21361
|
-
capScope: "system",
|
|
21362
|
-
addonId: null,
|
|
21363
|
-
access: "view"
|
|
21364
|
-
},
|
|
21365
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21798
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21366
21799
|
capName: "pipeline-orchestrator",
|
|
21367
21800
|
capScope: "system",
|
|
21368
21801
|
addonId: null,
|
|
21369
21802
|
access: "view"
|
|
21370
21803
|
},
|
|
21371
|
-
"pipelineOrchestrator.
|
|
21804
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21372
21805
|
capName: "pipeline-orchestrator",
|
|
21373
21806
|
capScope: "system",
|
|
21374
21807
|
addonId: null,
|
|
@@ -21410,6 +21843,12 @@ Object.freeze({
|
|
|
21410
21843
|
addonId: null,
|
|
21411
21844
|
access: "delete"
|
|
21412
21845
|
},
|
|
21846
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21847
|
+
capName: "pipeline-orchestrator",
|
|
21848
|
+
capScope: "system",
|
|
21849
|
+
addonId: null,
|
|
21850
|
+
access: "delete"
|
|
21851
|
+
},
|
|
21413
21852
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21414
21853
|
capName: "pipeline-orchestrator",
|
|
21415
21854
|
capScope: "system",
|
|
@@ -21446,37 +21885,37 @@ Object.freeze({
|
|
|
21446
21885
|
addonId: null,
|
|
21447
21886
|
access: "create"
|
|
21448
21887
|
},
|
|
21449
|
-
"pipelineOrchestrator.
|
|
21888
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21450
21889
|
capName: "pipeline-orchestrator",
|
|
21451
21890
|
capScope: "system",
|
|
21452
21891
|
addonId: null,
|
|
21453
21892
|
access: "create"
|
|
21454
21893
|
},
|
|
21455
|
-
"pipelineOrchestrator.
|
|
21894
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21456
21895
|
capName: "pipeline-orchestrator",
|
|
21457
21896
|
capScope: "system",
|
|
21458
21897
|
addonId: null,
|
|
21459
21898
|
access: "create"
|
|
21460
21899
|
},
|
|
21461
|
-
"pipelineOrchestrator.
|
|
21900
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21462
21901
|
capName: "pipeline-orchestrator",
|
|
21463
21902
|
capScope: "system",
|
|
21464
21903
|
addonId: null,
|
|
21465
21904
|
access: "create"
|
|
21466
21905
|
},
|
|
21467
|
-
"pipelineOrchestrator.
|
|
21906
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21468
21907
|
capName: "pipeline-orchestrator",
|
|
21469
21908
|
capScope: "system",
|
|
21470
21909
|
addonId: null,
|
|
21471
21910
|
access: "create"
|
|
21472
21911
|
},
|
|
21473
|
-
"pipelineOrchestrator.
|
|
21912
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21474
21913
|
capName: "pipeline-orchestrator",
|
|
21475
21914
|
capScope: "system",
|
|
21476
21915
|
addonId: null,
|
|
21477
21916
|
access: "create"
|
|
21478
21917
|
},
|
|
21479
|
-
"pipelineOrchestrator.
|
|
21918
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21480
21919
|
capName: "pipeline-orchestrator",
|
|
21481
21920
|
capScope: "system",
|
|
21482
21921
|
addonId: null,
|
|
@@ -21536,6 +21975,12 @@ Object.freeze({
|
|
|
21536
21975
|
addonId: null,
|
|
21537
21976
|
access: "view"
|
|
21538
21977
|
},
|
|
21978
|
+
"pipelineRunner.getNativeCrop": {
|
|
21979
|
+
capName: "pipeline-runner",
|
|
21980
|
+
capScope: "system",
|
|
21981
|
+
addonId: null,
|
|
21982
|
+
access: "view"
|
|
21983
|
+
},
|
|
21539
21984
|
"pipelineRunner.reportMotion": {
|
|
21540
21985
|
capName: "pipeline-runner",
|
|
21541
21986
|
capScope: "system",
|
|
@@ -21776,33 +22221,45 @@ Object.freeze({
|
|
|
21776
22221
|
addonId: null,
|
|
21777
22222
|
access: "create"
|
|
21778
22223
|
},
|
|
21779
|
-
"
|
|
21780
|
-
capName: "
|
|
22224
|
+
"scriptRunner.run": {
|
|
22225
|
+
capName: "script-runner",
|
|
22226
|
+
capScope: "device",
|
|
22227
|
+
addonId: null,
|
|
22228
|
+
access: "create"
|
|
22229
|
+
},
|
|
22230
|
+
"scriptRunner.stop": {
|
|
22231
|
+
capName: "script-runner",
|
|
22232
|
+
capScope: "device",
|
|
22233
|
+
addonId: null,
|
|
22234
|
+
access: "create"
|
|
22235
|
+
},
|
|
22236
|
+
"serverManagement.applyServerUpdate": {
|
|
22237
|
+
capName: "server-management",
|
|
21781
22238
|
capScope: "system",
|
|
21782
22239
|
addonId: null,
|
|
21783
|
-
access: "
|
|
22240
|
+
access: "create"
|
|
21784
22241
|
},
|
|
21785
|
-
"
|
|
21786
|
-
capName: "
|
|
22242
|
+
"serverManagement.checkServerUpdate": {
|
|
22243
|
+
capName: "server-management",
|
|
21787
22244
|
capScope: "system",
|
|
21788
22245
|
addonId: null,
|
|
21789
22246
|
access: "create"
|
|
21790
22247
|
},
|
|
21791
|
-
"
|
|
21792
|
-
capName: "
|
|
22248
|
+
"serverManagement.getServerPackageStatus": {
|
|
22249
|
+
capName: "server-management",
|
|
21793
22250
|
capScope: "system",
|
|
21794
22251
|
addonId: null,
|
|
21795
|
-
access: "
|
|
22252
|
+
access: "view"
|
|
21796
22253
|
},
|
|
21797
|
-
"
|
|
21798
|
-
capName: "
|
|
21799
|
-
capScope: "
|
|
22254
|
+
"serverManagement.restartServer": {
|
|
22255
|
+
capName: "server-management",
|
|
22256
|
+
capScope: "system",
|
|
21800
22257
|
addonId: null,
|
|
21801
22258
|
access: "create"
|
|
21802
22259
|
},
|
|
21803
|
-
"
|
|
21804
|
-
capName: "
|
|
21805
|
-
capScope: "
|
|
22260
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22261
|
+
capName: "server-management",
|
|
22262
|
+
capScope: "system",
|
|
21806
22263
|
addonId: null,
|
|
21807
22264
|
access: "create"
|
|
21808
22265
|
},
|
|
@@ -21890,23 +22347,17 @@ Object.freeze({
|
|
|
21890
22347
|
addonId: null,
|
|
21891
22348
|
access: "view"
|
|
21892
22349
|
},
|
|
21893
|
-
"snapshot.
|
|
22350
|
+
"snapshot.getSnapshotOverview": {
|
|
21894
22351
|
capName: "snapshot",
|
|
21895
22352
|
capScope: "device",
|
|
21896
22353
|
addonId: null,
|
|
21897
|
-
access: "create"
|
|
21898
|
-
},
|
|
21899
|
-
"snapshotProvider.getSnapshot": {
|
|
21900
|
-
capName: "snapshot-provider",
|
|
21901
|
-
capScope: "system",
|
|
21902
|
-
addonId: null,
|
|
21903
22354
|
access: "view"
|
|
21904
22355
|
},
|
|
21905
|
-
"
|
|
21906
|
-
capName: "snapshot
|
|
21907
|
-
capScope: "
|
|
22356
|
+
"snapshot.invalidateCache": {
|
|
22357
|
+
capName: "snapshot",
|
|
22358
|
+
capScope: "device",
|
|
21908
22359
|
addonId: null,
|
|
21909
|
-
access: "
|
|
22360
|
+
access: "create"
|
|
21910
22361
|
},
|
|
21911
22362
|
"ssoBridge.signBridgeToken": {
|
|
21912
22363
|
capName: "sso-bridge",
|
|
@@ -22334,30 +22785,6 @@ Object.freeze({
|
|
|
22334
22785
|
addonId: null,
|
|
22335
22786
|
access: "view"
|
|
22336
22787
|
},
|
|
22337
|
-
"streamingEngine.getStreamUrl": {
|
|
22338
|
-
capName: "streaming-engine",
|
|
22339
|
-
capScope: "system",
|
|
22340
|
-
addonId: null,
|
|
22341
|
-
access: "view"
|
|
22342
|
-
},
|
|
22343
|
-
"streamingEngine.listStreams": {
|
|
22344
|
-
capName: "streaming-engine",
|
|
22345
|
-
capScope: "system",
|
|
22346
|
-
addonId: null,
|
|
22347
|
-
access: "view"
|
|
22348
|
-
},
|
|
22349
|
-
"streamingEngine.registerStream": {
|
|
22350
|
-
capName: "streaming-engine",
|
|
22351
|
-
capScope: "system",
|
|
22352
|
-
addonId: null,
|
|
22353
|
-
access: "create"
|
|
22354
|
-
},
|
|
22355
|
-
"streamingEngine.unregisterStream": {
|
|
22356
|
-
capName: "streaming-engine",
|
|
22357
|
-
capScope: "system",
|
|
22358
|
-
addonId: null,
|
|
22359
|
-
access: "delete"
|
|
22360
|
-
},
|
|
22361
22788
|
"streamParams.getConfigSchema": {
|
|
22362
22789
|
capName: "stream-params",
|
|
22363
22790
|
capScope: "device",
|
|
@@ -22604,6 +23031,12 @@ Object.freeze({
|
|
|
22604
23031
|
addonId: null,
|
|
22605
23032
|
access: "view"
|
|
22606
23033
|
},
|
|
23034
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23035
|
+
capName: "user-passkeys",
|
|
23036
|
+
capScope: "system",
|
|
23037
|
+
addonId: null,
|
|
23038
|
+
access: "view"
|
|
23039
|
+
},
|
|
22607
23040
|
"userPasskeys.beginRegistration": {
|
|
22608
23041
|
capName: "user-passkeys",
|
|
22609
23042
|
capScope: "system",
|
|
@@ -22616,12 +23049,24 @@ Object.freeze({
|
|
|
22616
23049
|
addonId: null,
|
|
22617
23050
|
access: "view"
|
|
22618
23051
|
},
|
|
23052
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23053
|
+
capName: "user-passkeys",
|
|
23054
|
+
capScope: "system",
|
|
23055
|
+
addonId: null,
|
|
23056
|
+
access: "view"
|
|
23057
|
+
},
|
|
22619
23058
|
"userPasskeys.finishRegistration": {
|
|
22620
23059
|
capName: "user-passkeys",
|
|
22621
23060
|
capScope: "system",
|
|
22622
23061
|
addonId: null,
|
|
22623
23062
|
access: "create"
|
|
22624
23063
|
},
|
|
23064
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23065
|
+
capName: "user-passkeys",
|
|
23066
|
+
capScope: "system",
|
|
23067
|
+
addonId: null,
|
|
23068
|
+
access: "view"
|
|
23069
|
+
},
|
|
22625
23070
|
"userPasskeys.listPasskeys": {
|
|
22626
23071
|
capName: "user-passkeys",
|
|
22627
23072
|
capScope: "system",
|
|
@@ -22634,6 +23079,12 @@ Object.freeze({
|
|
|
22634
23079
|
addonId: null,
|
|
22635
23080
|
access: "delete"
|
|
22636
23081
|
},
|
|
23082
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23083
|
+
capName: "user-passkeys",
|
|
23084
|
+
capScope: "system",
|
|
23085
|
+
addonId: null,
|
|
23086
|
+
access: "create"
|
|
23087
|
+
},
|
|
22637
23088
|
"vacuumControl.locate": {
|
|
22638
23089
|
capName: "vacuum-control",
|
|
22639
23090
|
capScope: "device",
|
|
@@ -22706,6 +23157,18 @@ Object.freeze({
|
|
|
22706
23157
|
addonId: null,
|
|
22707
23158
|
access: "view"
|
|
22708
23159
|
},
|
|
23160
|
+
"viewerUi.getStaticDir": {
|
|
23161
|
+
capName: "viewer-ui",
|
|
23162
|
+
capScope: "system",
|
|
23163
|
+
addonId: null,
|
|
23164
|
+
access: "view"
|
|
23165
|
+
},
|
|
23166
|
+
"viewerUi.getVersion": {
|
|
23167
|
+
capName: "viewer-ui",
|
|
23168
|
+
capScope: "system",
|
|
23169
|
+
addonId: null,
|
|
23170
|
+
access: "view"
|
|
23171
|
+
},
|
|
22709
23172
|
"waterHeater.setAway": {
|
|
22710
23173
|
capName: "water-heater",
|
|
22711
23174
|
capScope: "device",
|
|
@@ -22724,54 +23187,6 @@ Object.freeze({
|
|
|
22724
23187
|
addonId: null,
|
|
22725
23188
|
access: "create"
|
|
22726
23189
|
},
|
|
22727
|
-
"webrtc.closeSession": {
|
|
22728
|
-
capName: "webrtc",
|
|
22729
|
-
capScope: "system",
|
|
22730
|
-
addonId: null,
|
|
22731
|
-
access: "create"
|
|
22732
|
-
},
|
|
22733
|
-
"webrtc.createSession": {
|
|
22734
|
-
capName: "webrtc",
|
|
22735
|
-
capScope: "system",
|
|
22736
|
-
addonId: null,
|
|
22737
|
-
access: "create"
|
|
22738
|
-
},
|
|
22739
|
-
"webrtc.handleAnswer": {
|
|
22740
|
-
capName: "webrtc",
|
|
22741
|
-
capScope: "system",
|
|
22742
|
-
addonId: null,
|
|
22743
|
-
access: "create"
|
|
22744
|
-
},
|
|
22745
|
-
"webrtc.handleOffer": {
|
|
22746
|
-
capName: "webrtc",
|
|
22747
|
-
capScope: "system",
|
|
22748
|
-
addonId: null,
|
|
22749
|
-
access: "create"
|
|
22750
|
-
},
|
|
22751
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22752
|
-
capName: "webrtc",
|
|
22753
|
-
capScope: "system",
|
|
22754
|
-
addonId: null,
|
|
22755
|
-
access: "view"
|
|
22756
|
-
},
|
|
22757
|
-
"webrtc.registerStream": {
|
|
22758
|
-
capName: "webrtc",
|
|
22759
|
-
capScope: "system",
|
|
22760
|
-
addonId: null,
|
|
22761
|
-
access: "create"
|
|
22762
|
-
},
|
|
22763
|
-
"webrtc.supportsStream": {
|
|
22764
|
-
capName: "webrtc",
|
|
22765
|
-
capScope: "system",
|
|
22766
|
-
addonId: null,
|
|
22767
|
-
access: "view"
|
|
22768
|
-
},
|
|
22769
|
-
"webrtc.unregisterStream": {
|
|
22770
|
-
capName: "webrtc",
|
|
22771
|
-
capScope: "system",
|
|
22772
|
-
addonId: null,
|
|
22773
|
-
access: "delete"
|
|
22774
|
-
},
|
|
22775
23190
|
"webrtcSession.addIceCandidate": {
|
|
22776
23191
|
capName: "webrtc-session",
|
|
22777
23192
|
capScope: "device",
|
|
@@ -23285,7 +23700,8 @@ var ModelStudioAddon = class extends BaseAddon {
|
|
|
23285
23700
|
icon: "boxes",
|
|
23286
23701
|
path: "/addon/model-studio",
|
|
23287
23702
|
remoteName: "addon_model_studio_page",
|
|
23288
|
-
bundle: "remoteEntry.js"
|
|
23703
|
+
bundle: "remoteEntry.js",
|
|
23704
|
+
section: "detection"
|
|
23289
23705
|
}];
|
|
23290
23706
|
constructor() {
|
|
23291
23707
|
super({});
|