@camstack/addon-advanced-notifier 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +681 -258
- package/dist/addon.mjs +681 -258
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -4632,7 +4632,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4632
4632
|
return inst;
|
|
4633
4633
|
}
|
|
4634
4634
|
//#endregion
|
|
4635
|
-
//#region ../types/dist/sleep-
|
|
4635
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4636
4636
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4637
4637
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4638
4638
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4818,6 +4818,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4818
4818
|
*/
|
|
4819
4819
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4820
4820
|
/**
|
|
4821
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4822
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4823
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4824
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4825
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4826
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4827
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4828
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4829
|
+
* broker's long backstop reconcile query).
|
|
4830
|
+
*/
|
|
4831
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4832
|
+
/**
|
|
4821
4833
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4822
4834
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4823
4835
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5341,10 +5353,6 @@ function hydrateField(field, values) {
|
|
|
5341
5353
|
};
|
|
5342
5354
|
}
|
|
5343
5355
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5344
|
-
if (field.type === "password") return {
|
|
5345
|
-
...field,
|
|
5346
|
-
value: ""
|
|
5347
|
-
};
|
|
5348
5356
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5349
5357
|
return {
|
|
5350
5358
|
...field,
|
|
@@ -6728,6 +6736,21 @@ function method(input, output, options) {
|
|
|
6728
6736
|
timeoutMs: options?.timeoutMs
|
|
6729
6737
|
};
|
|
6730
6738
|
}
|
|
6739
|
+
/**
|
|
6740
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6741
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6742
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6743
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6744
|
+
*/
|
|
6745
|
+
function systemMethod(input, output, options) {
|
|
6746
|
+
return {
|
|
6747
|
+
...method(input, output, options),
|
|
6748
|
+
systemOnly: true
|
|
6749
|
+
};
|
|
6750
|
+
}
|
|
6751
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6752
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6753
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6731
6754
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6732
6755
|
var VersionOutputSchema = object({ version: string() });
|
|
6733
6756
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6897,6 +6920,36 @@ var ModelFormatsSchema = object({
|
|
|
6897
6920
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6898
6921
|
pt: ModelFormatEntrySchema.optional()
|
|
6899
6922
|
});
|
|
6923
|
+
/**
|
|
6924
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6925
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6926
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6927
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6928
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6929
|
+
* to an `id`.
|
|
6930
|
+
*/
|
|
6931
|
+
var ModelVariantGroupSchema = object({
|
|
6932
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6933
|
+
family: string(),
|
|
6934
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6935
|
+
tier: string(),
|
|
6936
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6937
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6938
|
+
/**
|
|
6939
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6940
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6941
|
+
* future performance variants plug into.
|
|
6942
|
+
*/
|
|
6943
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6944
|
+
/**
|
|
6945
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6946
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6947
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6948
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6949
|
+
* the group so the selector can offer it as a variant axis.
|
|
6950
|
+
*/
|
|
6951
|
+
resolution: number().int().positive().optional()
|
|
6952
|
+
});
|
|
6900
6953
|
var ModelCatalogEntrySchema = object({
|
|
6901
6954
|
id: string(),
|
|
6902
6955
|
name: string(),
|
|
@@ -6926,7 +6979,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6926
6979
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6927
6980
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6928
6981
|
*/
|
|
6929
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
6982
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
6983
|
+
/**
|
|
6984
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
6985
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
6986
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
6987
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
6988
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
6989
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
6990
|
+
* an explicit legacy id that has a build for the node's format.
|
|
6991
|
+
*/
|
|
6992
|
+
legacy: boolean().optional(),
|
|
6993
|
+
/**
|
|
6994
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
6995
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
6996
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
6997
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
6998
|
+
*/
|
|
6999
|
+
metrics: object({
|
|
7000
|
+
map50: number().optional(),
|
|
7001
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7002
|
+
}).optional(),
|
|
7003
|
+
/**
|
|
7004
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7005
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7006
|
+
* the retraining addon and any future commercial distribution.
|
|
7007
|
+
*/
|
|
7008
|
+
license: string().optional(),
|
|
7009
|
+
/**
|
|
7010
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7011
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7012
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7013
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7014
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7015
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7016
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7017
|
+
*/
|
|
7018
|
+
group: ModelVariantGroupSchema.optional()
|
|
6930
7019
|
});
|
|
6931
7020
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6932
7021
|
format: literal("openvino"),
|
|
@@ -6987,8 +7076,8 @@ var RecordingModeSchema = _enum([
|
|
|
6987
7076
|
"onAudioThreshold"
|
|
6988
7077
|
]);
|
|
6989
7078
|
/**
|
|
6990
|
-
* First-class, authoritative per-camera storage mode — the
|
|
6991
|
-
* reads directly (never inferred from `rules`):
|
|
7079
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7080
|
+
* UI reads directly (never inferred from `rules`):
|
|
6992
7081
|
* - `off` — not recording.
|
|
6993
7082
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
6994
7083
|
* with pre/post-buffer.
|
|
@@ -8650,26 +8739,13 @@ DeviceType.Light, method(object({
|
|
|
8650
8739
|
percentage: number().min(0).max(100),
|
|
8651
8740
|
lastChangedAt: number()
|
|
8652
8741
|
});
|
|
8742
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8653
8743
|
var StreamFormatSchema = _enum([
|
|
8654
8744
|
"webrtc",
|
|
8655
8745
|
"hls",
|
|
8656
8746
|
"mjpeg",
|
|
8657
8747
|
"rtsp"
|
|
8658
8748
|
]);
|
|
8659
|
-
var StreamInfoSchema = object({
|
|
8660
|
-
streamId: string(),
|
|
8661
|
-
format: StreamFormatSchema,
|
|
8662
|
-
url: string().nullable(),
|
|
8663
|
-
active: boolean()
|
|
8664
|
-
});
|
|
8665
|
-
method(object({
|
|
8666
|
-
streamId: string(),
|
|
8667
|
-
sourceUrl: string(),
|
|
8668
|
-
codec: string().optional()
|
|
8669
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8670
|
-
streamId: string(),
|
|
8671
|
-
format: StreamFormatSchema
|
|
8672
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8673
8749
|
var RtspRestreamEntrySchema = object({
|
|
8674
8750
|
brokerId: string(),
|
|
8675
8751
|
url: string(),
|
|
@@ -9334,7 +9410,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9334
9410
|
})),
|
|
9335
9411
|
lastChangedAt: number()
|
|
9336
9412
|
});
|
|
9337
|
-
|
|
9413
|
+
Object.values(DeviceType), method(object({
|
|
9338
9414
|
deviceId: number().int().nonnegative(),
|
|
9339
9415
|
key: string().min(1)
|
|
9340
9416
|
}), _void(), {
|
|
@@ -10249,7 +10325,7 @@ var BoundingBoxSchema = object({
|
|
|
10249
10325
|
w: number(),
|
|
10250
10326
|
h: number()
|
|
10251
10327
|
});
|
|
10252
|
-
|
|
10328
|
+
object({
|
|
10253
10329
|
class: string(),
|
|
10254
10330
|
originalClass: string(),
|
|
10255
10331
|
score: number(),
|
|
@@ -10384,7 +10460,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10384
10460
|
enabled: boolean(),
|
|
10385
10461
|
modelId: string(),
|
|
10386
10462
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10387
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10388
10463
|
group: string().optional(),
|
|
10389
10464
|
settings: record(string(), unknown()).optional()
|
|
10390
10465
|
}));
|
|
@@ -10409,7 +10484,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10409
10484
|
formats: record(string(), object({
|
|
10410
10485
|
downloaded: boolean(),
|
|
10411
10486
|
sizeMB: number()
|
|
10412
|
-
}))
|
|
10487
|
+
})),
|
|
10488
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10489
|
+
legacy: boolean().optional()
|
|
10413
10490
|
});
|
|
10414
10491
|
var ConfigFieldBridge = custom();
|
|
10415
10492
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10423,6 +10500,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10423
10500
|
defaultModelId: string(),
|
|
10424
10501
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10425
10502
|
enabledByDefault: boolean().optional(),
|
|
10503
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10426
10504
|
defaultConfidence: number(),
|
|
10427
10505
|
group: string().optional(),
|
|
10428
10506
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10439,11 +10517,6 @@ var PipelineSchemaSchema = object({
|
|
|
10439
10517
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10440
10518
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10441
10519
|
});
|
|
10442
|
-
var DetectorOutputSchema = object({
|
|
10443
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10444
|
-
inferenceMs: number(),
|
|
10445
|
-
modelId: string()
|
|
10446
|
-
});
|
|
10447
10520
|
var EngineProvisioningSchema = object({
|
|
10448
10521
|
runtimeId: _enum([
|
|
10449
10522
|
"onnx",
|
|
@@ -10460,15 +10533,42 @@ var EngineProvisioningSchema = object({
|
|
|
10460
10533
|
]),
|
|
10461
10534
|
progress: number().optional(),
|
|
10462
10535
|
error: string().optional(),
|
|
10463
|
-
nextRetryAt: number().optional()
|
|
10536
|
+
nextRetryAt: number().optional(),
|
|
10537
|
+
/**
|
|
10538
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10539
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10540
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10541
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10542
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10543
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10544
|
+
*/
|
|
10545
|
+
configIssues: array(string()).optional()
|
|
10464
10546
|
});
|
|
10465
10547
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10466
10548
|
addonId: string(),
|
|
10467
|
-
modelId: string(),
|
|
10549
|
+
modelId: string().optional(),
|
|
10468
10550
|
enabled: boolean().default(true),
|
|
10469
10551
|
children: array(PipelineStepInputSchema).optional(),
|
|
10470
10552
|
settings: record(string(), unknown()).optional()
|
|
10471
10553
|
}));
|
|
10554
|
+
var ModelSubstitutionSchema = object({
|
|
10555
|
+
addonId: string(),
|
|
10556
|
+
chosen: string(),
|
|
10557
|
+
running: string(),
|
|
10558
|
+
format: string()
|
|
10559
|
+
});
|
|
10560
|
+
var PipelineValidationIssueSchema = object({
|
|
10561
|
+
addonId: string(),
|
|
10562
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10563
|
+
detail: string()
|
|
10564
|
+
});
|
|
10565
|
+
var PipelineValidationResultSchema = object({
|
|
10566
|
+
ok: boolean(),
|
|
10567
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10568
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10569
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10570
|
+
format: string()
|
|
10571
|
+
});
|
|
10472
10572
|
var ReferenceImageEntrySchema = object({
|
|
10473
10573
|
filename: string(),
|
|
10474
10574
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10539,7 +10639,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10539
10639
|
})) }), object({ success: literal(true) }), {
|
|
10540
10640
|
kind: "mutation",
|
|
10541
10641
|
auth: "admin"
|
|
10542
|
-
}), method(
|
|
10642
|
+
}), method(object({ nodeId: string() }), object({
|
|
10643
|
+
success: literal(true),
|
|
10644
|
+
clearedDevices: number()
|
|
10645
|
+
}), {
|
|
10646
|
+
kind: "mutation",
|
|
10647
|
+
auth: "admin"
|
|
10648
|
+
}), 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({
|
|
10543
10649
|
name: string(),
|
|
10544
10650
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10545
10651
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10556,10 +10662,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10556
10662
|
modelId: string(),
|
|
10557
10663
|
format: ModelFormatSchema$1
|
|
10558
10664
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10559
|
-
addonId: string(),
|
|
10560
|
-
frame: FrameInputSchema,
|
|
10561
|
-
config: record(string(), unknown()).optional()
|
|
10562
|
-
}), DetectorOutputSchema), method(object({
|
|
10563
10665
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10564
10666
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10565
10667
|
frame: FrameInputSchema.optional(),
|
|
@@ -10705,6 +10807,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10705
10807
|
auth: "admin"
|
|
10706
10808
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10707
10809
|
/**
|
|
10810
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10811
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10812
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10813
|
+
* dims — no native resolution to plumb.
|
|
10814
|
+
*/
|
|
10815
|
+
var NativeCropBboxSchema = object({
|
|
10816
|
+
x: number(),
|
|
10817
|
+
y: number(),
|
|
10818
|
+
w: number(),
|
|
10819
|
+
h: number()
|
|
10820
|
+
});
|
|
10821
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10822
|
+
var NativeCropResultSchema = object({
|
|
10823
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10824
|
+
bytes: _instanceof(Uint8Array),
|
|
10825
|
+
width: number().int().positive(),
|
|
10826
|
+
height: number().int().positive()
|
|
10827
|
+
});
|
|
10828
|
+
/**
|
|
10708
10829
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10709
10830
|
* by both the Zod data schema (validation + default fallback) and
|
|
10710
10831
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10799,6 +10920,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10799
10920
|
kind: literal("remote-restream"),
|
|
10800
10921
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10801
10922
|
ownerNodeId: string(),
|
|
10923
|
+
/**
|
|
10924
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10925
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10926
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10927
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10928
|
+
*/
|
|
10929
|
+
ownerReachableHost: string().optional(),
|
|
10802
10930
|
/** Operator override for the owner host the runner dials. */
|
|
10803
10931
|
hubHostnameOverride: string().optional()
|
|
10804
10932
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10807,13 +10935,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10807
10935
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10808
10936
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10809
10937
|
*
|
|
10810
|
-
* Stateless-pipeline model: the
|
|
10811
|
-
*
|
|
10812
|
-
*
|
|
10813
|
-
*
|
|
10814
|
-
*
|
|
10815
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10816
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10938
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10939
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10940
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10941
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10942
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10817
10943
|
*/
|
|
10818
10944
|
var RunnerCameraConfigSchema = object({
|
|
10819
10945
|
deviceId: number(),
|
|
@@ -10864,14 +10990,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10864
10990
|
*/
|
|
10865
10991
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10866
10992
|
pipelineEnabled: boolean().default(true),
|
|
10867
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10868
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10869
10993
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10870
10994
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10871
10995
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10872
10996
|
audio: object({
|
|
10873
|
-
|
|
10874
|
-
modelId: string(),
|
|
10997
|
+
modelId: string().optional(),
|
|
10875
10998
|
enabled: boolean()
|
|
10876
10999
|
}).nullable().optional(),
|
|
10877
11000
|
/**
|
|
@@ -10958,7 +11081,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10958
11081
|
avgInferenceTimeMs: number(),
|
|
10959
11082
|
queueDepth: number()
|
|
10960
11083
|
});
|
|
10961
|
-
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())
|
|
11084
|
+
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({
|
|
11085
|
+
handle: FrameHandleSchema,
|
|
11086
|
+
bbox: NativeCropBboxSchema,
|
|
11087
|
+
maxWidth: number().int().positive().optional()
|
|
11088
|
+
}), NativeCropResultSchema.nullable());
|
|
10962
11089
|
object({
|
|
10963
11090
|
detected: boolean(),
|
|
10964
11091
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12252,7 +12379,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12252
12379
|
icon: string(),
|
|
12253
12380
|
path: string(),
|
|
12254
12381
|
remoteName: string(),
|
|
12255
|
-
bundle: string()
|
|
12382
|
+
bundle: string(),
|
|
12383
|
+
section: string().optional(),
|
|
12384
|
+
sectionLabel: string().optional()
|
|
12256
12385
|
});
|
|
12257
12386
|
var AddonPageInfoSchema = object({
|
|
12258
12387
|
addonId: string(),
|
|
@@ -12292,7 +12421,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12292
12421
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12293
12422
|
* without a separate filesystem stat.
|
|
12294
12423
|
*/
|
|
12295
|
-
bundle: string()
|
|
12424
|
+
bundle: string(),
|
|
12425
|
+
/**
|
|
12426
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12427
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12428
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12429
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12430
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12431
|
+
* "Addon Pages" group.
|
|
12432
|
+
*/
|
|
12433
|
+
section: string().optional(),
|
|
12434
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12435
|
+
sectionLabel: string().optional()
|
|
12296
12436
|
});
|
|
12297
12437
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12298
12438
|
var AddonHttpRouteSchema = object({
|
|
@@ -12508,6 +12648,17 @@ var WidgetMetadataSchema = object({
|
|
|
12508
12648
|
deviceContext: boolean().default(false),
|
|
12509
12649
|
integrationContext: boolean().default(false)
|
|
12510
12650
|
}),
|
|
12651
|
+
/**
|
|
12652
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12653
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12654
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12655
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12656
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12657
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12658
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12659
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12660
|
+
*/
|
|
12661
|
+
preAuth: boolean().optional().default(false),
|
|
12511
12662
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12512
12663
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12513
12664
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12821,6 +12972,66 @@ method(object({
|
|
|
12821
12972
|
password: string()
|
|
12822
12973
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12823
12974
|
/**
|
|
12975
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12976
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12977
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12978
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12979
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12980
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12981
|
+
*
|
|
12982
|
+
* A contribution is a discriminated union on `kind`:
|
|
12983
|
+
*
|
|
12984
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12985
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12986
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12987
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12988
|
+
* login page needs NO change.
|
|
12989
|
+
*
|
|
12990
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12991
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12992
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12993
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12994
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
12995
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
12996
|
+
*
|
|
12997
|
+
* Every contribution carries a `stage`:
|
|
12998
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
12999
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13000
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13001
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13002
|
+
*
|
|
13003
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13004
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13005
|
+
* tRPC router.
|
|
13006
|
+
*/
|
|
13007
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13008
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13009
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13010
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13011
|
+
kind: literal("redirect"),
|
|
13012
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13013
|
+
id: string(),
|
|
13014
|
+
/** Operator-facing button label. */
|
|
13015
|
+
label: string(),
|
|
13016
|
+
/** lucide-react icon name. */
|
|
13017
|
+
icon: string().optional(),
|
|
13018
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13019
|
+
startUrl: string(),
|
|
13020
|
+
stage: LoginStageEnum
|
|
13021
|
+
}), object({
|
|
13022
|
+
kind: literal("widget"),
|
|
13023
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13024
|
+
id: string(),
|
|
13025
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13026
|
+
addonId: string(),
|
|
13027
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13028
|
+
bundle: string(),
|
|
13029
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13030
|
+
remote: WidgetRemoteSchema,
|
|
13031
|
+
stage: LoginStageEnum
|
|
13032
|
+
})]);
|
|
13033
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13034
|
+
/**
|
|
12824
13035
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12825
13036
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12826
13037
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14938,7 +15149,17 @@ var TrackSchema = object({
|
|
|
14938
15149
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14939
15150
|
totalDistance: number(),
|
|
14940
15151
|
state: TrackStateSchema,
|
|
14941
|
-
active: boolean()
|
|
15152
|
+
active: boolean(),
|
|
15153
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15154
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15155
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15156
|
+
importance: number().optional(),
|
|
15157
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15158
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15159
|
+
bestEventId: string().optional(),
|
|
15160
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15161
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15162
|
+
importanceReason: string().optional()
|
|
14942
15163
|
});
|
|
14943
15164
|
var BaseEventFields = {
|
|
14944
15165
|
id: string(),
|
|
@@ -15003,8 +15224,18 @@ var ObjectEventSchema = object({
|
|
|
15003
15224
|
frameHeight: number().optional(),
|
|
15004
15225
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15005
15226
|
mediaKey: string().optional(),
|
|
15227
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15228
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15229
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15230
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15231
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15232
|
+
keyFrameMediaKey: string().optional(),
|
|
15006
15233
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15007
|
-
mediaUrl: string().optional()
|
|
15234
|
+
mediaUrl: string().optional(),
|
|
15235
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15236
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15237
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15238
|
+
importance: number().optional()
|
|
15008
15239
|
});
|
|
15009
15240
|
var AudioEventSchema = object({
|
|
15010
15241
|
...BaseEventFields,
|
|
@@ -15028,7 +15259,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15028
15259
|
"fullFrame",
|
|
15029
15260
|
"fullFrameBoxed",
|
|
15030
15261
|
"faceCrop",
|
|
15031
|
-
"plateCrop"
|
|
15262
|
+
"plateCrop",
|
|
15263
|
+
"keyFrame"
|
|
15032
15264
|
]);
|
|
15033
15265
|
var MediaFileSchema = object({
|
|
15034
15266
|
key: string(),
|
|
@@ -15049,6 +15281,32 @@ var DeviceEventQueryInput = object({
|
|
|
15049
15281
|
projection: _enum(["full", "slim"]).optional()
|
|
15050
15282
|
});
|
|
15051
15283
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15284
|
+
var KeyEventQueryInput = object({
|
|
15285
|
+
deviceId: number(),
|
|
15286
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15287
|
+
since: number(),
|
|
15288
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15289
|
+
until: number(),
|
|
15290
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15291
|
+
/** Drop tracks scoring below this importance. */
|
|
15292
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15293
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15294
|
+
classFilter: string().optional()
|
|
15295
|
+
});
|
|
15296
|
+
var KeyEventSchema = object({
|
|
15297
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15298
|
+
id: string(),
|
|
15299
|
+
trackId: string(),
|
|
15300
|
+
/** Track start time (firstSeen). */
|
|
15301
|
+
timestamp: number(),
|
|
15302
|
+
className: string(),
|
|
15303
|
+
label: string().optional(),
|
|
15304
|
+
importance: number(),
|
|
15305
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15306
|
+
bestEventId: string(),
|
|
15307
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15308
|
+
windowMs: number().optional()
|
|
15309
|
+
});
|
|
15052
15310
|
var TrackedDetectionSchema = object({
|
|
15053
15311
|
trackId: string(),
|
|
15054
15312
|
className: string(),
|
|
@@ -15078,7 +15336,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15078
15336
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15079
15337
|
kind: "mutation",
|
|
15080
15338
|
auth: "admin"
|
|
15081
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15339
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15082
15340
|
deviceId: number(),
|
|
15083
15341
|
since: number(),
|
|
15084
15342
|
until: number(),
|
|
@@ -15123,11 +15381,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15123
15381
|
timestamp: number()
|
|
15124
15382
|
});
|
|
15125
15383
|
var CameraPipelineConfigSchema = object({
|
|
15126
|
-
engine: PipelineEngineChoiceSchema,
|
|
15384
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15127
15385
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15128
15386
|
audio: object({
|
|
15129
|
-
engine: PipelineEngineChoiceSchema,
|
|
15130
|
-
modelId: string(),
|
|
15387
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15388
|
+
modelId: string().optional(),
|
|
15131
15389
|
enabled: boolean(),
|
|
15132
15390
|
settings: record(string(), unknown()).readonly().optional()
|
|
15133
15391
|
}).nullable().optional()
|
|
@@ -15142,7 +15400,7 @@ var PipelineTemplateSchema = object({
|
|
|
15142
15400
|
});
|
|
15143
15401
|
var AgentAddonConfigSchema = object({
|
|
15144
15402
|
enabled: boolean(),
|
|
15145
|
-
modelId: string(),
|
|
15403
|
+
modelId: string().optional(),
|
|
15146
15404
|
settings: record(string(), unknown()).readonly()
|
|
15147
15405
|
});
|
|
15148
15406
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15152,12 +15410,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15152
15410
|
detectWeight: number().positive().optional(),
|
|
15153
15411
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15154
15412
|
detect: boolean().optional(),
|
|
15155
|
-
/**
|
|
15413
|
+
/**
|
|
15414
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15415
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15416
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15417
|
+
* parse — no code reads it and no write path emits it.
|
|
15418
|
+
*/
|
|
15156
15419
|
decode: boolean().optional(),
|
|
15157
15420
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15158
15421
|
audio: boolean().optional(),
|
|
15159
15422
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15160
|
-
ingest: boolean().optional()
|
|
15423
|
+
ingest: boolean().optional(),
|
|
15424
|
+
/**
|
|
15425
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15426
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15427
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15428
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15429
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15430
|
+
*/
|
|
15431
|
+
reachableHost: string().optional()
|
|
15161
15432
|
});
|
|
15162
15433
|
var CameraPipelineForAgentSchema = object({
|
|
15163
15434
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15205,25 +15476,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15205
15476
|
assignedAt: number()
|
|
15206
15477
|
});
|
|
15207
15478
|
/**
|
|
15208
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15209
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15210
|
-
* → co-located with pipeline → capacity).
|
|
15211
|
-
*/
|
|
15212
|
-
var DecoderAssignmentSchema = object({
|
|
15213
|
-
deviceId: number(),
|
|
15214
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15215
|
-
decoderNodeId: string(),
|
|
15216
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15217
|
-
pinned: boolean(),
|
|
15218
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15219
|
-
reason: _enum([
|
|
15220
|
-
"manual",
|
|
15221
|
-
"co-located",
|
|
15222
|
-
"capacity",
|
|
15223
|
-
"hardware-affinity"
|
|
15224
|
-
])
|
|
15225
|
-
});
|
|
15226
|
-
/**
|
|
15227
15479
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15228
15480
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15229
15481
|
*/
|
|
@@ -15263,6 +15515,15 @@ var GlobalMetricsSchema = object({
|
|
|
15263
15515
|
* capability providers.
|
|
15264
15516
|
*/
|
|
15265
15517
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15518
|
+
/**
|
|
15519
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15520
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15521
|
+
*/
|
|
15522
|
+
var IngestOwnerSchema = object({
|
|
15523
|
+
ownerNodeId: string(),
|
|
15524
|
+
reachableHost: string().optional(),
|
|
15525
|
+
configIssue: string().optional()
|
|
15526
|
+
});
|
|
15266
15527
|
/** Source block — always present; derives from the stream catalog. */
|
|
15267
15528
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15268
15529
|
camStreamId: string(),
|
|
@@ -15277,6 +15538,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15277
15538
|
detectionNodeId: string().nullable(),
|
|
15278
15539
|
decoderNodeId: string().nullable(),
|
|
15279
15540
|
audioNodeId: string().nullable(),
|
|
15541
|
+
/**
|
|
15542
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15543
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15544
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15545
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15546
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15547
|
+
*/
|
|
15548
|
+
sourceNodeId: string().nullable(),
|
|
15280
15549
|
pinned: object({
|
|
15281
15550
|
detection: boolean(),
|
|
15282
15551
|
decoder: boolean(),
|
|
@@ -15409,16 +15678,7 @@ method(object({
|
|
|
15409
15678
|
}), object({ success: literal(true) }), {
|
|
15410
15679
|
kind: "mutation",
|
|
15411
15680
|
auth: "admin"
|
|
15412
|
-
}), method(object({
|
|
15413
|
-
deviceId: number(),
|
|
15414
|
-
nodeId: string()
|
|
15415
|
-
}), _void(), {
|
|
15416
|
-
kind: "mutation",
|
|
15417
|
-
auth: "admin"
|
|
15418
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15419
|
-
kind: "mutation",
|
|
15420
|
-
auth: "admin"
|
|
15421
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15681
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15422
15682
|
deviceId: number(),
|
|
15423
15683
|
nodeId: string()
|
|
15424
15684
|
}), object({ success: literal(true) }), {
|
|
@@ -15439,10 +15699,7 @@ method(object({
|
|
|
15439
15699
|
nodeId: string(),
|
|
15440
15700
|
pinned: boolean(),
|
|
15441
15701
|
assignedAt: number()
|
|
15442
|
-
}))), method(object({
|
|
15443
|
-
deviceId: number(),
|
|
15444
|
-
pipelineNodeId: string().optional()
|
|
15445
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15702
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15446
15703
|
nodeId: string(),
|
|
15447
15704
|
settings: AgentPipelineSettingsSchema
|
|
15448
15705
|
})).readonly()), method(object({
|
|
@@ -15472,12 +15729,26 @@ method(object({
|
|
|
15472
15729
|
}), method(object({
|
|
15473
15730
|
agentNodeId: string(),
|
|
15474
15731
|
detect: boolean().nullable().optional(),
|
|
15475
|
-
decode: boolean().nullable().optional(),
|
|
15476
15732
|
audio: boolean().nullable().optional(),
|
|
15477
15733
|
ingest: boolean().nullable().optional()
|
|
15478
15734
|
}), object({ success: literal(true) }), {
|
|
15479
15735
|
kind: "mutation",
|
|
15480
15736
|
auth: "admin"
|
|
15737
|
+
}), method(object({
|
|
15738
|
+
agentNodeId: string(),
|
|
15739
|
+
reachableHost: string().nullable()
|
|
15740
|
+
}), object({ success: literal(true) }), {
|
|
15741
|
+
kind: "mutation",
|
|
15742
|
+
auth: "admin"
|
|
15743
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15744
|
+
success: literal(true),
|
|
15745
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15746
|
+
effectiveModelId: string().nullable(),
|
|
15747
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15748
|
+
clearedCameraOverrides: number()
|
|
15749
|
+
}), {
|
|
15750
|
+
kind: "mutation",
|
|
15751
|
+
auth: "admin"
|
|
15481
15752
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15482
15753
|
deviceId: number(),
|
|
15483
15754
|
addonId: string(),
|
|
@@ -15522,22 +15793,131 @@ method(object({
|
|
|
15522
15793
|
kind: "mutation",
|
|
15523
15794
|
auth: "admin"
|
|
15524
15795
|
});
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
|
|
15796
|
+
/**
|
|
15797
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15798
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15799
|
+
* agents).
|
|
15800
|
+
*
|
|
15801
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15802
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15803
|
+
* version describes the node. Updates install into
|
|
15804
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15805
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15806
|
+
*
|
|
15807
|
+
* Providers:
|
|
15808
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15809
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15810
|
+
* unpinned calls.
|
|
15811
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15812
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15813
|
+
* `$hub.registerNode` manifest.
|
|
15814
|
+
*
|
|
15815
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15816
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15817
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15818
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15819
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15820
|
+
*
|
|
15821
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15822
|
+
*/
|
|
15823
|
+
/**
|
|
15824
|
+
* Where the running hub's code was loaded from:
|
|
15825
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15826
|
+
* plain resolution and runtime updates are refused.
|
|
15827
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15828
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15829
|
+
*/
|
|
15830
|
+
var ServerBootModeSchema = _enum([
|
|
15831
|
+
"workspace",
|
|
15832
|
+
"baked",
|
|
15833
|
+
"data-root"
|
|
15834
|
+
]);
|
|
15835
|
+
/**
|
|
15836
|
+
* Update lifecycle state:
|
|
15837
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15838
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15839
|
+
* restarted onto it (still running the OLD version).
|
|
15840
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15841
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15842
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15843
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15844
|
+
*/
|
|
15845
|
+
var ServerUpdateStateSchema = _enum([
|
|
15846
|
+
"idle",
|
|
15847
|
+
"checking",
|
|
15848
|
+
"staging",
|
|
15849
|
+
"pending-restart",
|
|
15850
|
+
"awaiting-confirmation"
|
|
15851
|
+
]);
|
|
15852
|
+
var ServerRollbackInfoSchema = object({
|
|
15853
|
+
/** The version that failed (or was manually rolled back). */
|
|
15854
|
+
fromVersion: string(),
|
|
15855
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15856
|
+
toVersion: string().nullable(),
|
|
15857
|
+
atMs: number(),
|
|
15858
|
+
reason: string()
|
|
15531
15859
|
});
|
|
15532
|
-
var
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15860
|
+
var ServerPackageStatusSchema = object({
|
|
15861
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15862
|
+
packageName: string(),
|
|
15863
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15864
|
+
runningVersion: string().nullable(),
|
|
15865
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15866
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15867
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15868
|
+
activeVersion: string().nullable(),
|
|
15869
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15870
|
+
previousVersion: string().nullable(),
|
|
15871
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15872
|
+
seedVersion: string().nullable(),
|
|
15873
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15874
|
+
latestVersion: string().nullable(),
|
|
15875
|
+
updateAvailable: boolean(),
|
|
15876
|
+
bootMode: ServerBootModeSchema,
|
|
15877
|
+
updateState: ServerUpdateStateSchema,
|
|
15878
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15879
|
+
pendingVersion: string().nullable(),
|
|
15880
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15881
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15882
|
+
/**
|
|
15883
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15884
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15885
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15886
|
+
*/
|
|
15887
|
+
stateFileCorrupt: boolean(),
|
|
15888
|
+
lastCheckedAtMs: number().nullable()
|
|
15889
|
+
});
|
|
15890
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15891
|
+
packageName: string(),
|
|
15892
|
+
runningVersion: string().nullable(),
|
|
15893
|
+
latestVersion: string().nullable(),
|
|
15894
|
+
updateAvailable: boolean(),
|
|
15895
|
+
checkedAtMs: number(),
|
|
15896
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15897
|
+
error: string().nullable()
|
|
15898
|
+
});
|
|
15899
|
+
var ServerUpdateActionResultSchema = object({
|
|
15900
|
+
accepted: boolean(),
|
|
15901
|
+
targetVersion: string().nullable(),
|
|
15902
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15903
|
+
restarting: boolean(),
|
|
15904
|
+
message: string()
|
|
15905
|
+
});
|
|
15906
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15907
|
+
kind: "mutation",
|
|
15908
|
+
auth: "admin"
|
|
15909
|
+
}), method(object({
|
|
15910
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15911
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15912
|
+
kind: "mutation",
|
|
15913
|
+
auth: "admin"
|
|
15914
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15915
|
+
kind: "mutation",
|
|
15916
|
+
auth: "admin"
|
|
15917
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15918
|
+
kind: "mutation",
|
|
15919
|
+
auth: "admin"
|
|
15536
15920
|
});
|
|
15537
|
-
method(object({
|
|
15538
|
-
deviceId: number(),
|
|
15539
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15540
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15541
15921
|
/**
|
|
15542
15922
|
* Query filter for settings-store collections.
|
|
15543
15923
|
*/
|
|
@@ -15690,9 +16070,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15690
16070
|
/**
|
|
15691
16071
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15692
16072
|
*
|
|
15693
|
-
*
|
|
15694
|
-
*
|
|
15695
|
-
*
|
|
16073
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16074
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16075
|
+
* prebuffer fallback.
|
|
15696
16076
|
*/
|
|
15697
16077
|
var SnapshotImageSchema = object({
|
|
15698
16078
|
base64: string(),
|
|
@@ -15723,11 +16103,12 @@ DeviceType.Camera, method(object({
|
|
|
15723
16103
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15724
16104
|
kind: "mutation",
|
|
15725
16105
|
auth: "admin"
|
|
15726
|
-
})
|
|
15727
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16106
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15728
16107
|
deviceId: number(),
|
|
15729
|
-
|
|
15730
|
-
|
|
16108
|
+
lastCapturedAt: number().nullable(),
|
|
16109
|
+
cacheAgeMs: number().nullable(),
|
|
16110
|
+
etag: string().nullable()
|
|
16111
|
+
})));
|
|
15731
16112
|
/**
|
|
15732
16113
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15733
16114
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -15978,10 +16359,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
15978
16359
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
15979
16360
|
* the assertion, bumps the credential counter, returns ok.
|
|
15980
16361
|
*
|
|
16362
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16363
|
+
* passkey IS the primary factor, no password leg:
|
|
16364
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16365
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16366
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16367
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16368
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16369
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16370
|
+
* resolves the credential by the response's credential id,
|
|
16371
|
+
* verifies the assertion against the stored challenge + that
|
|
16372
|
+
* credential's public key/counter, and returns the OWNING
|
|
16373
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16374
|
+
*
|
|
15981
16375
|
* 3. Management:
|
|
15982
16376
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
15983
16377
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
15984
16378
|
*
|
|
16379
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16380
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16381
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16382
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16383
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16384
|
+
* row ⇒ `enabled: false`).
|
|
16385
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16386
|
+
* the providing addon beside its credentials.
|
|
16387
|
+
*
|
|
15985
16388
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
15986
16389
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
15987
16390
|
* the cap to non-admins.
|
|
@@ -16024,6 +16427,17 @@ method(object({
|
|
|
16024
16427
|
}), object({ verified: boolean() }), {
|
|
16025
16428
|
kind: "mutation",
|
|
16026
16429
|
access: "view"
|
|
16430
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16431
|
+
kind: "mutation",
|
|
16432
|
+
access: "view"
|
|
16433
|
+
}), method(object({
|
|
16434
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16435
|
+
response: record(string(), unknown()) }), object({
|
|
16436
|
+
verified: boolean(),
|
|
16437
|
+
userId: string().nullable()
|
|
16438
|
+
}), {
|
|
16439
|
+
kind: "mutation",
|
|
16440
|
+
access: "view"
|
|
16027
16441
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16028
16442
|
userId: string(),
|
|
16029
16443
|
credentialId: string()
|
|
@@ -16031,6 +16445,13 @@ method(object({
|
|
|
16031
16445
|
kind: "mutation",
|
|
16032
16446
|
auth: "admin",
|
|
16033
16447
|
access: "delete"
|
|
16448
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16449
|
+
userId: string(),
|
|
16450
|
+
enabled: boolean()
|
|
16451
|
+
}), object({ success: literal(true) }), {
|
|
16452
|
+
kind: "mutation",
|
|
16453
|
+
auth: "admin",
|
|
16454
|
+
access: "create"
|
|
16034
16455
|
});
|
|
16035
16456
|
/**
|
|
16036
16457
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16088,9 +16509,10 @@ method(object({
|
|
|
16088
16509
|
auth: "admin"
|
|
16089
16510
|
});
|
|
16090
16511
|
/**
|
|
16091
|
-
* Optional client-side hints sent at session creation to help the
|
|
16092
|
-
*
|
|
16093
|
-
*
|
|
16512
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16513
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16514
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16515
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16094
16516
|
*/
|
|
16095
16517
|
var webrtcClientHintsSchema = object({
|
|
16096
16518
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16101,22 +16523,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16101
16523
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16102
16524
|
prefersTier: string().optional()
|
|
16103
16525
|
}).partial();
|
|
16104
|
-
method(object({
|
|
16105
|
-
streamId: string(),
|
|
16106
|
-
sdpOffer: string()
|
|
16107
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16108
|
-
streamId: string(),
|
|
16109
|
-
codec: string()
|
|
16110
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16111
|
-
streamId: string(),
|
|
16112
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16113
|
-
}), object({
|
|
16114
|
-
sessionId: string(),
|
|
16115
|
-
sdpOffer: string()
|
|
16116
|
-
}), { kind: "mutation" }), method(object({
|
|
16117
|
-
sessionId: string(),
|
|
16118
|
-
sdpAnswer: string()
|
|
16119
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16120
16526
|
/**
|
|
16121
16527
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16122
16528
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16603,7 +17009,15 @@ var FrameworkPackageStatusSchema = object({
|
|
|
16603
17009
|
latestVersion: string().nullable(),
|
|
16604
17010
|
hasUpdate: boolean(),
|
|
16605
17011
|
/** Optional manifest description for the row tooltip. */
|
|
16606
|
-
description: string().optional()
|
|
17012
|
+
description: string().optional(),
|
|
17013
|
+
/**
|
|
17014
|
+
* Content build-id (md5 of the resolved `dist/` tree) of the code the hub
|
|
17015
|
+
* ACTUALLY loaded. Framework packages ship code changes without always
|
|
17016
|
+
* bumping `currentVersion`, so semver alone hides "same version, new code".
|
|
17017
|
+
* `null` when the dist can't be hashed (not installed / empty). The admin-UI
|
|
17018
|
+
* surfaces this so a stale-code hub is visible even at an unchanged version.
|
|
17019
|
+
*/
|
|
17020
|
+
buildId: string().nullable()
|
|
16607
17021
|
});
|
|
16608
17022
|
var LogStreamEntrySchema = object({
|
|
16609
17023
|
timestamp: string(),
|
|
@@ -16839,7 +17253,17 @@ var FaceInfoSchema = object({
|
|
|
16839
17253
|
recognizedIdentityId: string().optional(),
|
|
16840
17254
|
identityName: string().optional(),
|
|
16841
17255
|
assigned: boolean(),
|
|
16842
|
-
base64: string().optional()
|
|
17256
|
+
base64: string().optional(),
|
|
17257
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17258
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17259
|
+
* legacy rows written before design B. */
|
|
17260
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17261
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17262
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17263
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17264
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17265
|
+
* back to the inline `base64` face crop. */
|
|
17266
|
+
keyFrameMediaKey: string().optional()
|
|
16843
17267
|
});
|
|
16844
17268
|
var FaceFilterEnum = _enum([
|
|
16845
17269
|
"unassigned",
|
|
@@ -17536,6 +17960,16 @@ var TopologyCategorySchema = object({
|
|
|
17536
17960
|
healthy: number(),
|
|
17537
17961
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17538
17962
|
});
|
|
17963
|
+
/**
|
|
17964
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17965
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17966
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17967
|
+
* rows and pre-phase-2 nodes report none.
|
|
17968
|
+
*/
|
|
17969
|
+
var TopologyRootPackageSchema = object({
|
|
17970
|
+
name: string(),
|
|
17971
|
+
version: string()
|
|
17972
|
+
});
|
|
17539
17973
|
var TopologyNodeSchema = object({
|
|
17540
17974
|
id: string(),
|
|
17541
17975
|
name: string(),
|
|
@@ -17559,7 +17993,8 @@ var TopologyNodeSchema = object({
|
|
|
17559
17993
|
status: string()
|
|
17560
17994
|
})).readonly(),
|
|
17561
17995
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17562
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
17996
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
17997
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17563
17998
|
});
|
|
17564
17999
|
var CapUsageEdgeSchema = object({
|
|
17565
18000
|
callerAddonId: string(),
|
|
@@ -20359,6 +20794,12 @@ Object.freeze({
|
|
|
20359
20794
|
addonId: null,
|
|
20360
20795
|
access: "create"
|
|
20361
20796
|
},
|
|
20797
|
+
"loginMethod.getLoginMethods": {
|
|
20798
|
+
capName: "login-method",
|
|
20799
|
+
capScope: "system",
|
|
20800
|
+
addonId: null,
|
|
20801
|
+
access: "view"
|
|
20802
|
+
},
|
|
20362
20803
|
"mediaPlayer.next": {
|
|
20363
20804
|
capName: "media-player",
|
|
20364
20805
|
capScope: "device",
|
|
@@ -20941,6 +21382,12 @@ Object.freeze({
|
|
|
20941
21382
|
addonId: null,
|
|
20942
21383
|
access: "view"
|
|
20943
21384
|
},
|
|
21385
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21386
|
+
capName: "pipeline-analytics",
|
|
21387
|
+
capScope: "device",
|
|
21388
|
+
addonId: null,
|
|
21389
|
+
access: "view"
|
|
21390
|
+
},
|
|
20944
21391
|
"pipelineAnalytics.getMotionEvents": {
|
|
20945
21392
|
capName: "pipeline-analytics",
|
|
20946
21393
|
capScope: "device",
|
|
@@ -20989,23 +21436,23 @@ Object.freeze({
|
|
|
20989
21436
|
addonId: null,
|
|
20990
21437
|
access: "create"
|
|
20991
21438
|
},
|
|
20992
|
-
"pipelineExecutor.
|
|
21439
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
20993
21440
|
capName: "pipeline-executor",
|
|
20994
21441
|
capScope: "system",
|
|
20995
21442
|
addonId: null,
|
|
20996
21443
|
access: "delete"
|
|
20997
21444
|
},
|
|
20998
|
-
"pipelineExecutor.
|
|
21445
|
+
"pipelineExecutor.deleteModel": {
|
|
20999
21446
|
capName: "pipeline-executor",
|
|
21000
21447
|
capScope: "system",
|
|
21001
21448
|
addonId: null,
|
|
21002
21449
|
access: "delete"
|
|
21003
21450
|
},
|
|
21004
|
-
"pipelineExecutor.
|
|
21451
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21005
21452
|
capName: "pipeline-executor",
|
|
21006
21453
|
capScope: "system",
|
|
21007
21454
|
addonId: null,
|
|
21008
|
-
access: "
|
|
21455
|
+
access: "delete"
|
|
21009
21456
|
},
|
|
21010
21457
|
"pipelineExecutor.downloadModel": {
|
|
21011
21458
|
capName: "pipeline-executor",
|
|
@@ -21199,13 +21646,13 @@ Object.freeze({
|
|
|
21199
21646
|
addonId: null,
|
|
21200
21647
|
access: "create"
|
|
21201
21648
|
},
|
|
21202
|
-
"
|
|
21203
|
-
capName: "pipeline-
|
|
21649
|
+
"pipelineExecutor.validatePipeline": {
|
|
21650
|
+
capName: "pipeline-executor",
|
|
21204
21651
|
capScope: "system",
|
|
21205
21652
|
addonId: null,
|
|
21206
|
-
access: "
|
|
21653
|
+
access: "view"
|
|
21207
21654
|
},
|
|
21208
|
-
"pipelineOrchestrator.
|
|
21655
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21209
21656
|
capName: "pipeline-orchestrator",
|
|
21210
21657
|
capScope: "system",
|
|
21211
21658
|
addonId: null,
|
|
@@ -21289,19 +21736,13 @@ Object.freeze({
|
|
|
21289
21736
|
addonId: null,
|
|
21290
21737
|
access: "view"
|
|
21291
21738
|
},
|
|
21292
|
-
"pipelineOrchestrator.
|
|
21293
|
-
capName: "pipeline-orchestrator",
|
|
21294
|
-
capScope: "system",
|
|
21295
|
-
addonId: null,
|
|
21296
|
-
access: "view"
|
|
21297
|
-
},
|
|
21298
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21739
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21299
21740
|
capName: "pipeline-orchestrator",
|
|
21300
21741
|
capScope: "system",
|
|
21301
21742
|
addonId: null,
|
|
21302
21743
|
access: "view"
|
|
21303
21744
|
},
|
|
21304
|
-
"pipelineOrchestrator.
|
|
21745
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21305
21746
|
capName: "pipeline-orchestrator",
|
|
21306
21747
|
capScope: "system",
|
|
21307
21748
|
addonId: null,
|
|
@@ -21343,6 +21784,12 @@ Object.freeze({
|
|
|
21343
21784
|
addonId: null,
|
|
21344
21785
|
access: "delete"
|
|
21345
21786
|
},
|
|
21787
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21788
|
+
capName: "pipeline-orchestrator",
|
|
21789
|
+
capScope: "system",
|
|
21790
|
+
addonId: null,
|
|
21791
|
+
access: "delete"
|
|
21792
|
+
},
|
|
21346
21793
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21347
21794
|
capName: "pipeline-orchestrator",
|
|
21348
21795
|
capScope: "system",
|
|
@@ -21379,37 +21826,37 @@ Object.freeze({
|
|
|
21379
21826
|
addonId: null,
|
|
21380
21827
|
access: "create"
|
|
21381
21828
|
},
|
|
21382
|
-
"pipelineOrchestrator.
|
|
21829
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21383
21830
|
capName: "pipeline-orchestrator",
|
|
21384
21831
|
capScope: "system",
|
|
21385
21832
|
addonId: null,
|
|
21386
21833
|
access: "create"
|
|
21387
21834
|
},
|
|
21388
|
-
"pipelineOrchestrator.
|
|
21835
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21389
21836
|
capName: "pipeline-orchestrator",
|
|
21390
21837
|
capScope: "system",
|
|
21391
21838
|
addonId: null,
|
|
21392
21839
|
access: "create"
|
|
21393
21840
|
},
|
|
21394
|
-
"pipelineOrchestrator.
|
|
21841
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21395
21842
|
capName: "pipeline-orchestrator",
|
|
21396
21843
|
capScope: "system",
|
|
21397
21844
|
addonId: null,
|
|
21398
21845
|
access: "create"
|
|
21399
21846
|
},
|
|
21400
|
-
"pipelineOrchestrator.
|
|
21847
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21401
21848
|
capName: "pipeline-orchestrator",
|
|
21402
21849
|
capScope: "system",
|
|
21403
21850
|
addonId: null,
|
|
21404
21851
|
access: "create"
|
|
21405
21852
|
},
|
|
21406
|
-
"pipelineOrchestrator.
|
|
21853
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21407
21854
|
capName: "pipeline-orchestrator",
|
|
21408
21855
|
capScope: "system",
|
|
21409
21856
|
addonId: null,
|
|
21410
21857
|
access: "create"
|
|
21411
21858
|
},
|
|
21412
|
-
"pipelineOrchestrator.
|
|
21859
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21413
21860
|
capName: "pipeline-orchestrator",
|
|
21414
21861
|
capScope: "system",
|
|
21415
21862
|
addonId: null,
|
|
@@ -21469,6 +21916,12 @@ Object.freeze({
|
|
|
21469
21916
|
addonId: null,
|
|
21470
21917
|
access: "view"
|
|
21471
21918
|
},
|
|
21919
|
+
"pipelineRunner.getNativeCrop": {
|
|
21920
|
+
capName: "pipeline-runner",
|
|
21921
|
+
capScope: "system",
|
|
21922
|
+
addonId: null,
|
|
21923
|
+
access: "view"
|
|
21924
|
+
},
|
|
21472
21925
|
"pipelineRunner.reportMotion": {
|
|
21473
21926
|
capName: "pipeline-runner",
|
|
21474
21927
|
capScope: "system",
|
|
@@ -21709,33 +22162,45 @@ Object.freeze({
|
|
|
21709
22162
|
addonId: null,
|
|
21710
22163
|
access: "create"
|
|
21711
22164
|
},
|
|
21712
|
-
"
|
|
21713
|
-
capName: "
|
|
22165
|
+
"scriptRunner.run": {
|
|
22166
|
+
capName: "script-runner",
|
|
22167
|
+
capScope: "device",
|
|
22168
|
+
addonId: null,
|
|
22169
|
+
access: "create"
|
|
22170
|
+
},
|
|
22171
|
+
"scriptRunner.stop": {
|
|
22172
|
+
capName: "script-runner",
|
|
22173
|
+
capScope: "device",
|
|
22174
|
+
addonId: null,
|
|
22175
|
+
access: "create"
|
|
22176
|
+
},
|
|
22177
|
+
"serverManagement.applyServerUpdate": {
|
|
22178
|
+
capName: "server-management",
|
|
21714
22179
|
capScope: "system",
|
|
21715
22180
|
addonId: null,
|
|
21716
|
-
access: "
|
|
22181
|
+
access: "create"
|
|
21717
22182
|
},
|
|
21718
|
-
"
|
|
21719
|
-
capName: "
|
|
22183
|
+
"serverManagement.checkServerUpdate": {
|
|
22184
|
+
capName: "server-management",
|
|
21720
22185
|
capScope: "system",
|
|
21721
22186
|
addonId: null,
|
|
21722
22187
|
access: "create"
|
|
21723
22188
|
},
|
|
21724
|
-
"
|
|
21725
|
-
capName: "
|
|
22189
|
+
"serverManagement.getServerPackageStatus": {
|
|
22190
|
+
capName: "server-management",
|
|
21726
22191
|
capScope: "system",
|
|
21727
22192
|
addonId: null,
|
|
21728
|
-
access: "
|
|
22193
|
+
access: "view"
|
|
21729
22194
|
},
|
|
21730
|
-
"
|
|
21731
|
-
capName: "
|
|
21732
|
-
capScope: "
|
|
22195
|
+
"serverManagement.restartServer": {
|
|
22196
|
+
capName: "server-management",
|
|
22197
|
+
capScope: "system",
|
|
21733
22198
|
addonId: null,
|
|
21734
22199
|
access: "create"
|
|
21735
22200
|
},
|
|
21736
|
-
"
|
|
21737
|
-
capName: "
|
|
21738
|
-
capScope: "
|
|
22201
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22202
|
+
capName: "server-management",
|
|
22203
|
+
capScope: "system",
|
|
21739
22204
|
addonId: null,
|
|
21740
22205
|
access: "create"
|
|
21741
22206
|
},
|
|
@@ -21823,23 +22288,17 @@ Object.freeze({
|
|
|
21823
22288
|
addonId: null,
|
|
21824
22289
|
access: "view"
|
|
21825
22290
|
},
|
|
21826
|
-
"snapshot.
|
|
22291
|
+
"snapshot.getSnapshotOverview": {
|
|
21827
22292
|
capName: "snapshot",
|
|
21828
22293
|
capScope: "device",
|
|
21829
22294
|
addonId: null,
|
|
21830
|
-
access: "create"
|
|
21831
|
-
},
|
|
21832
|
-
"snapshotProvider.getSnapshot": {
|
|
21833
|
-
capName: "snapshot-provider",
|
|
21834
|
-
capScope: "system",
|
|
21835
|
-
addonId: null,
|
|
21836
22295
|
access: "view"
|
|
21837
22296
|
},
|
|
21838
|
-
"
|
|
21839
|
-
capName: "snapshot
|
|
21840
|
-
capScope: "
|
|
22297
|
+
"snapshot.invalidateCache": {
|
|
22298
|
+
capName: "snapshot",
|
|
22299
|
+
capScope: "device",
|
|
21841
22300
|
addonId: null,
|
|
21842
|
-
access: "
|
|
22301
|
+
access: "create"
|
|
21843
22302
|
},
|
|
21844
22303
|
"ssoBridge.signBridgeToken": {
|
|
21845
22304
|
capName: "sso-bridge",
|
|
@@ -22267,30 +22726,6 @@ Object.freeze({
|
|
|
22267
22726
|
addonId: null,
|
|
22268
22727
|
access: "view"
|
|
22269
22728
|
},
|
|
22270
|
-
"streamingEngine.getStreamUrl": {
|
|
22271
|
-
capName: "streaming-engine",
|
|
22272
|
-
capScope: "system",
|
|
22273
|
-
addonId: null,
|
|
22274
|
-
access: "view"
|
|
22275
|
-
},
|
|
22276
|
-
"streamingEngine.listStreams": {
|
|
22277
|
-
capName: "streaming-engine",
|
|
22278
|
-
capScope: "system",
|
|
22279
|
-
addonId: null,
|
|
22280
|
-
access: "view"
|
|
22281
|
-
},
|
|
22282
|
-
"streamingEngine.registerStream": {
|
|
22283
|
-
capName: "streaming-engine",
|
|
22284
|
-
capScope: "system",
|
|
22285
|
-
addonId: null,
|
|
22286
|
-
access: "create"
|
|
22287
|
-
},
|
|
22288
|
-
"streamingEngine.unregisterStream": {
|
|
22289
|
-
capName: "streaming-engine",
|
|
22290
|
-
capScope: "system",
|
|
22291
|
-
addonId: null,
|
|
22292
|
-
access: "delete"
|
|
22293
|
-
},
|
|
22294
22729
|
"streamParams.getConfigSchema": {
|
|
22295
22730
|
capName: "stream-params",
|
|
22296
22731
|
capScope: "device",
|
|
@@ -22537,6 +22972,12 @@ Object.freeze({
|
|
|
22537
22972
|
addonId: null,
|
|
22538
22973
|
access: "view"
|
|
22539
22974
|
},
|
|
22975
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
22976
|
+
capName: "user-passkeys",
|
|
22977
|
+
capScope: "system",
|
|
22978
|
+
addonId: null,
|
|
22979
|
+
access: "view"
|
|
22980
|
+
},
|
|
22540
22981
|
"userPasskeys.beginRegistration": {
|
|
22541
22982
|
capName: "user-passkeys",
|
|
22542
22983
|
capScope: "system",
|
|
@@ -22549,12 +22990,24 @@ Object.freeze({
|
|
|
22549
22990
|
addonId: null,
|
|
22550
22991
|
access: "view"
|
|
22551
22992
|
},
|
|
22993
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
22994
|
+
capName: "user-passkeys",
|
|
22995
|
+
capScope: "system",
|
|
22996
|
+
addonId: null,
|
|
22997
|
+
access: "view"
|
|
22998
|
+
},
|
|
22552
22999
|
"userPasskeys.finishRegistration": {
|
|
22553
23000
|
capName: "user-passkeys",
|
|
22554
23001
|
capScope: "system",
|
|
22555
23002
|
addonId: null,
|
|
22556
23003
|
access: "create"
|
|
22557
23004
|
},
|
|
23005
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23006
|
+
capName: "user-passkeys",
|
|
23007
|
+
capScope: "system",
|
|
23008
|
+
addonId: null,
|
|
23009
|
+
access: "view"
|
|
23010
|
+
},
|
|
22558
23011
|
"userPasskeys.listPasskeys": {
|
|
22559
23012
|
capName: "user-passkeys",
|
|
22560
23013
|
capScope: "system",
|
|
@@ -22567,6 +23020,12 @@ Object.freeze({
|
|
|
22567
23020
|
addonId: null,
|
|
22568
23021
|
access: "delete"
|
|
22569
23022
|
},
|
|
23023
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23024
|
+
capName: "user-passkeys",
|
|
23025
|
+
capScope: "system",
|
|
23026
|
+
addonId: null,
|
|
23027
|
+
access: "create"
|
|
23028
|
+
},
|
|
22570
23029
|
"vacuumControl.locate": {
|
|
22571
23030
|
capName: "vacuum-control",
|
|
22572
23031
|
capScope: "device",
|
|
@@ -22639,6 +23098,18 @@ Object.freeze({
|
|
|
22639
23098
|
addonId: null,
|
|
22640
23099
|
access: "view"
|
|
22641
23100
|
},
|
|
23101
|
+
"viewerUi.getStaticDir": {
|
|
23102
|
+
capName: "viewer-ui",
|
|
23103
|
+
capScope: "system",
|
|
23104
|
+
addonId: null,
|
|
23105
|
+
access: "view"
|
|
23106
|
+
},
|
|
23107
|
+
"viewerUi.getVersion": {
|
|
23108
|
+
capName: "viewer-ui",
|
|
23109
|
+
capScope: "system",
|
|
23110
|
+
addonId: null,
|
|
23111
|
+
access: "view"
|
|
23112
|
+
},
|
|
22642
23113
|
"waterHeater.setAway": {
|
|
22643
23114
|
capName: "water-heater",
|
|
22644
23115
|
capScope: "device",
|
|
@@ -22657,54 +23128,6 @@ Object.freeze({
|
|
|
22657
23128
|
addonId: null,
|
|
22658
23129
|
access: "create"
|
|
22659
23130
|
},
|
|
22660
|
-
"webrtc.closeSession": {
|
|
22661
|
-
capName: "webrtc",
|
|
22662
|
-
capScope: "system",
|
|
22663
|
-
addonId: null,
|
|
22664
|
-
access: "create"
|
|
22665
|
-
},
|
|
22666
|
-
"webrtc.createSession": {
|
|
22667
|
-
capName: "webrtc",
|
|
22668
|
-
capScope: "system",
|
|
22669
|
-
addonId: null,
|
|
22670
|
-
access: "create"
|
|
22671
|
-
},
|
|
22672
|
-
"webrtc.handleAnswer": {
|
|
22673
|
-
capName: "webrtc",
|
|
22674
|
-
capScope: "system",
|
|
22675
|
-
addonId: null,
|
|
22676
|
-
access: "create"
|
|
22677
|
-
},
|
|
22678
|
-
"webrtc.handleOffer": {
|
|
22679
|
-
capName: "webrtc",
|
|
22680
|
-
capScope: "system",
|
|
22681
|
-
addonId: null,
|
|
22682
|
-
access: "create"
|
|
22683
|
-
},
|
|
22684
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22685
|
-
capName: "webrtc",
|
|
22686
|
-
capScope: "system",
|
|
22687
|
-
addonId: null,
|
|
22688
|
-
access: "view"
|
|
22689
|
-
},
|
|
22690
|
-
"webrtc.registerStream": {
|
|
22691
|
-
capName: "webrtc",
|
|
22692
|
-
capScope: "system",
|
|
22693
|
-
addonId: null,
|
|
22694
|
-
access: "create"
|
|
22695
|
-
},
|
|
22696
|
-
"webrtc.supportsStream": {
|
|
22697
|
-
capName: "webrtc",
|
|
22698
|
-
capScope: "system",
|
|
22699
|
-
addonId: null,
|
|
22700
|
-
access: "view"
|
|
22701
|
-
},
|
|
22702
|
-
"webrtc.unregisterStream": {
|
|
22703
|
-
capName: "webrtc",
|
|
22704
|
-
capScope: "system",
|
|
22705
|
-
addonId: null,
|
|
22706
|
-
access: "delete"
|
|
22707
|
-
},
|
|
22708
23131
|
"webrtcSession.addIceCandidate": {
|
|
22709
23132
|
capName: "webrtc-session",
|
|
22710
23133
|
capScope: "device",
|