@camstack/addon-remote-storage 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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-gYBVqgWs.js → shared-BS3ZpipR.js} +672 -257
- package/dist/{shared-yF8x2k1W.mjs → shared-DQjNIB1f.mjs} +672 -257
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +6 -1
|
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4629
4629
|
return inst;
|
|
4630
4630
|
}
|
|
4631
4631
|
//#endregion
|
|
4632
|
-
//#region ../types/dist/sleep-
|
|
4632
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4633
4633
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4634
4634
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4635
4635
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4815,6 +4815,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4815
4815
|
*/
|
|
4816
4816
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4817
4817
|
/**
|
|
4818
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4819
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4820
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4821
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4822
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4823
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4824
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4825
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4826
|
+
* broker's long backstop reconcile query).
|
|
4827
|
+
*/
|
|
4828
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4829
|
+
/**
|
|
4818
4830
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4819
4831
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4820
4832
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5338,10 +5350,6 @@ function hydrateField(field, values) {
|
|
|
5338
5350
|
};
|
|
5339
5351
|
}
|
|
5340
5352
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5341
|
-
if (field.type === "password") return {
|
|
5342
|
-
...field,
|
|
5343
|
-
value: ""
|
|
5344
|
-
};
|
|
5345
5353
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5346
5354
|
return {
|
|
5347
5355
|
...field,
|
|
@@ -6725,6 +6733,21 @@ function method(input, output, options) {
|
|
|
6725
6733
|
timeoutMs: options?.timeoutMs
|
|
6726
6734
|
};
|
|
6727
6735
|
}
|
|
6736
|
+
/**
|
|
6737
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6738
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6739
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6740
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6741
|
+
*/
|
|
6742
|
+
function systemMethod(input, output, options) {
|
|
6743
|
+
return {
|
|
6744
|
+
...method(input, output, options),
|
|
6745
|
+
systemOnly: true
|
|
6746
|
+
};
|
|
6747
|
+
}
|
|
6748
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6749
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6750
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6728
6751
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6729
6752
|
var VersionOutputSchema = object({ version: string() });
|
|
6730
6753
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6894,6 +6917,36 @@ var ModelFormatsSchema = object({
|
|
|
6894
6917
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6895
6918
|
pt: ModelFormatEntrySchema.optional()
|
|
6896
6919
|
});
|
|
6920
|
+
/**
|
|
6921
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6922
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6923
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6924
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6925
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6926
|
+
* to an `id`.
|
|
6927
|
+
*/
|
|
6928
|
+
var ModelVariantGroupSchema = object({
|
|
6929
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6930
|
+
family: string(),
|
|
6931
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6932
|
+
tier: string(),
|
|
6933
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6934
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6935
|
+
/**
|
|
6936
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6937
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6938
|
+
* future performance variants plug into.
|
|
6939
|
+
*/
|
|
6940
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6941
|
+
/**
|
|
6942
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6943
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6944
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6945
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6946
|
+
* the group so the selector can offer it as a variant axis.
|
|
6947
|
+
*/
|
|
6948
|
+
resolution: number().int().positive().optional()
|
|
6949
|
+
});
|
|
6897
6950
|
var ModelCatalogEntrySchema = object({
|
|
6898
6951
|
id: string(),
|
|
6899
6952
|
name: string(),
|
|
@@ -6923,7 +6976,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6923
6976
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6924
6977
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6925
6978
|
*/
|
|
6926
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
6979
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
6980
|
+
/**
|
|
6981
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
6982
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
6983
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
6984
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
6985
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
6986
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
6987
|
+
* an explicit legacy id that has a build for the node's format.
|
|
6988
|
+
*/
|
|
6989
|
+
legacy: boolean().optional(),
|
|
6990
|
+
/**
|
|
6991
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
6992
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
6993
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
6994
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
6995
|
+
*/
|
|
6996
|
+
metrics: object({
|
|
6997
|
+
map50: number().optional(),
|
|
6998
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
6999
|
+
}).optional(),
|
|
7000
|
+
/**
|
|
7001
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7002
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7003
|
+
* the retraining addon and any future commercial distribution.
|
|
7004
|
+
*/
|
|
7005
|
+
license: string().optional(),
|
|
7006
|
+
/**
|
|
7007
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7008
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7009
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7010
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7011
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7012
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7013
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7014
|
+
*/
|
|
7015
|
+
group: ModelVariantGroupSchema.optional()
|
|
6927
7016
|
});
|
|
6928
7017
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6929
7018
|
format: literal("openvino"),
|
|
@@ -6984,8 +7073,8 @@ var RecordingModeSchema = _enum([
|
|
|
6984
7073
|
"onAudioThreshold"
|
|
6985
7074
|
]);
|
|
6986
7075
|
/**
|
|
6987
|
-
* First-class, authoritative per-camera storage mode — the
|
|
6988
|
-
* reads directly (never inferred from `rules`):
|
|
7076
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7077
|
+
* UI reads directly (never inferred from `rules`):
|
|
6989
7078
|
* - `off` — not recording.
|
|
6990
7079
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
6991
7080
|
* with pre/post-buffer.
|
|
@@ -8633,26 +8722,13 @@ DeviceType.Light, method(object({
|
|
|
8633
8722
|
percentage: number().min(0).max(100),
|
|
8634
8723
|
lastChangedAt: number()
|
|
8635
8724
|
});
|
|
8725
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8636
8726
|
var StreamFormatSchema = _enum([
|
|
8637
8727
|
"webrtc",
|
|
8638
8728
|
"hls",
|
|
8639
8729
|
"mjpeg",
|
|
8640
8730
|
"rtsp"
|
|
8641
8731
|
]);
|
|
8642
|
-
var StreamInfoSchema = object({
|
|
8643
|
-
streamId: string(),
|
|
8644
|
-
format: StreamFormatSchema,
|
|
8645
|
-
url: string().nullable(),
|
|
8646
|
-
active: boolean()
|
|
8647
|
-
});
|
|
8648
|
-
method(object({
|
|
8649
|
-
streamId: string(),
|
|
8650
|
-
sourceUrl: string(),
|
|
8651
|
-
codec: string().optional()
|
|
8652
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8653
|
-
streamId: string(),
|
|
8654
|
-
format: StreamFormatSchema
|
|
8655
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8656
8732
|
var RtspRestreamEntrySchema = object({
|
|
8657
8733
|
brokerId: string(),
|
|
8658
8734
|
url: string(),
|
|
@@ -9317,7 +9393,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9317
9393
|
})),
|
|
9318
9394
|
lastChangedAt: number()
|
|
9319
9395
|
});
|
|
9320
|
-
|
|
9396
|
+
Object.values(DeviceType), method(object({
|
|
9321
9397
|
deviceId: number().int().nonnegative(),
|
|
9322
9398
|
key: string().min(1)
|
|
9323
9399
|
}), _void(), {
|
|
@@ -10232,7 +10308,7 @@ var BoundingBoxSchema = object({
|
|
|
10232
10308
|
w: number(),
|
|
10233
10309
|
h: number()
|
|
10234
10310
|
});
|
|
10235
|
-
|
|
10311
|
+
object({
|
|
10236
10312
|
class: string(),
|
|
10237
10313
|
originalClass: string(),
|
|
10238
10314
|
score: number(),
|
|
@@ -10367,7 +10443,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10367
10443
|
enabled: boolean(),
|
|
10368
10444
|
modelId: string(),
|
|
10369
10445
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10370
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10371
10446
|
group: string().optional(),
|
|
10372
10447
|
settings: record(string(), unknown()).optional()
|
|
10373
10448
|
}));
|
|
@@ -10392,7 +10467,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10392
10467
|
formats: record(string(), object({
|
|
10393
10468
|
downloaded: boolean(),
|
|
10394
10469
|
sizeMB: number()
|
|
10395
|
-
}))
|
|
10470
|
+
})),
|
|
10471
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10472
|
+
legacy: boolean().optional()
|
|
10396
10473
|
});
|
|
10397
10474
|
var ConfigFieldBridge = custom();
|
|
10398
10475
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10406,6 +10483,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10406
10483
|
defaultModelId: string(),
|
|
10407
10484
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10408
10485
|
enabledByDefault: boolean().optional(),
|
|
10486
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10409
10487
|
defaultConfidence: number(),
|
|
10410
10488
|
group: string().optional(),
|
|
10411
10489
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10422,11 +10500,6 @@ var PipelineSchemaSchema = object({
|
|
|
10422
10500
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10423
10501
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10424
10502
|
});
|
|
10425
|
-
var DetectorOutputSchema = object({
|
|
10426
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10427
|
-
inferenceMs: number(),
|
|
10428
|
-
modelId: string()
|
|
10429
|
-
});
|
|
10430
10503
|
var EngineProvisioningSchema = object({
|
|
10431
10504
|
runtimeId: _enum([
|
|
10432
10505
|
"onnx",
|
|
@@ -10443,15 +10516,42 @@ var EngineProvisioningSchema = object({
|
|
|
10443
10516
|
]),
|
|
10444
10517
|
progress: number().optional(),
|
|
10445
10518
|
error: string().optional(),
|
|
10446
|
-
nextRetryAt: number().optional()
|
|
10519
|
+
nextRetryAt: number().optional(),
|
|
10520
|
+
/**
|
|
10521
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10522
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10523
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10524
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10525
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10526
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10527
|
+
*/
|
|
10528
|
+
configIssues: array(string()).optional()
|
|
10447
10529
|
});
|
|
10448
10530
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10449
10531
|
addonId: string(),
|
|
10450
|
-
modelId: string(),
|
|
10532
|
+
modelId: string().optional(),
|
|
10451
10533
|
enabled: boolean().default(true),
|
|
10452
10534
|
children: array(PipelineStepInputSchema).optional(),
|
|
10453
10535
|
settings: record(string(), unknown()).optional()
|
|
10454
10536
|
}));
|
|
10537
|
+
var ModelSubstitutionSchema = object({
|
|
10538
|
+
addonId: string(),
|
|
10539
|
+
chosen: string(),
|
|
10540
|
+
running: string(),
|
|
10541
|
+
format: string()
|
|
10542
|
+
});
|
|
10543
|
+
var PipelineValidationIssueSchema = object({
|
|
10544
|
+
addonId: string(),
|
|
10545
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10546
|
+
detail: string()
|
|
10547
|
+
});
|
|
10548
|
+
var PipelineValidationResultSchema = object({
|
|
10549
|
+
ok: boolean(),
|
|
10550
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10551
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10552
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10553
|
+
format: string()
|
|
10554
|
+
});
|
|
10455
10555
|
var ReferenceImageEntrySchema = object({
|
|
10456
10556
|
filename: string(),
|
|
10457
10557
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10522,7 +10622,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10522
10622
|
})) }), object({ success: literal(true) }), {
|
|
10523
10623
|
kind: "mutation",
|
|
10524
10624
|
auth: "admin"
|
|
10525
|
-
}), method(
|
|
10625
|
+
}), method(object({ nodeId: string() }), object({
|
|
10626
|
+
success: literal(true),
|
|
10627
|
+
clearedDevices: number()
|
|
10628
|
+
}), {
|
|
10629
|
+
kind: "mutation",
|
|
10630
|
+
auth: "admin"
|
|
10631
|
+
}), 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({
|
|
10526
10632
|
name: string(),
|
|
10527
10633
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10528
10634
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10539,10 +10645,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10539
10645
|
modelId: string(),
|
|
10540
10646
|
format: ModelFormatSchema$1
|
|
10541
10647
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10542
|
-
addonId: string(),
|
|
10543
|
-
frame: FrameInputSchema,
|
|
10544
|
-
config: record(string(), unknown()).optional()
|
|
10545
|
-
}), DetectorOutputSchema), method(object({
|
|
10546
10648
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10547
10649
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10548
10650
|
frame: FrameInputSchema.optional(),
|
|
@@ -10688,6 +10790,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10688
10790
|
auth: "admin"
|
|
10689
10791
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10690
10792
|
/**
|
|
10793
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10794
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10795
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10796
|
+
* dims — no native resolution to plumb.
|
|
10797
|
+
*/
|
|
10798
|
+
var NativeCropBboxSchema = object({
|
|
10799
|
+
x: number(),
|
|
10800
|
+
y: number(),
|
|
10801
|
+
w: number(),
|
|
10802
|
+
h: number()
|
|
10803
|
+
});
|
|
10804
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10805
|
+
var NativeCropResultSchema = object({
|
|
10806
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10807
|
+
bytes: _instanceof(Uint8Array),
|
|
10808
|
+
width: number().int().positive(),
|
|
10809
|
+
height: number().int().positive()
|
|
10810
|
+
});
|
|
10811
|
+
/**
|
|
10691
10812
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10692
10813
|
* by both the Zod data schema (validation + default fallback) and
|
|
10693
10814
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10782,6 +10903,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10782
10903
|
kind: literal("remote-restream"),
|
|
10783
10904
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10784
10905
|
ownerNodeId: string(),
|
|
10906
|
+
/**
|
|
10907
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10908
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10909
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10910
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10911
|
+
*/
|
|
10912
|
+
ownerReachableHost: string().optional(),
|
|
10785
10913
|
/** Operator override for the owner host the runner dials. */
|
|
10786
10914
|
hubHostnameOverride: string().optional()
|
|
10787
10915
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10790,13 +10918,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10790
10918
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10791
10919
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10792
10920
|
*
|
|
10793
|
-
* Stateless-pipeline model: the
|
|
10794
|
-
*
|
|
10795
|
-
*
|
|
10796
|
-
*
|
|
10797
|
-
*
|
|
10798
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10799
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10921
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10922
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10923
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10924
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10925
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10800
10926
|
*/
|
|
10801
10927
|
var RunnerCameraConfigSchema = object({
|
|
10802
10928
|
deviceId: number(),
|
|
@@ -10847,14 +10973,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10847
10973
|
*/
|
|
10848
10974
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10849
10975
|
pipelineEnabled: boolean().default(true),
|
|
10850
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10851
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10852
10976
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10853
10977
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10854
10978
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10855
10979
|
audio: object({
|
|
10856
|
-
|
|
10857
|
-
modelId: string(),
|
|
10980
|
+
modelId: string().optional(),
|
|
10858
10981
|
enabled: boolean()
|
|
10859
10982
|
}).nullable().optional(),
|
|
10860
10983
|
/**
|
|
@@ -10941,7 +11064,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10941
11064
|
avgInferenceTimeMs: number(),
|
|
10942
11065
|
queueDepth: number()
|
|
10943
11066
|
});
|
|
10944
|
-
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())
|
|
11067
|
+
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({
|
|
11068
|
+
handle: FrameHandleSchema,
|
|
11069
|
+
bbox: NativeCropBboxSchema,
|
|
11070
|
+
maxWidth: number().int().positive().optional()
|
|
11071
|
+
}), NativeCropResultSchema.nullable());
|
|
10945
11072
|
object({
|
|
10946
11073
|
detected: boolean(),
|
|
10947
11074
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12235,7 +12362,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12235
12362
|
icon: string(),
|
|
12236
12363
|
path: string(),
|
|
12237
12364
|
remoteName: string(),
|
|
12238
|
-
bundle: string()
|
|
12365
|
+
bundle: string(),
|
|
12366
|
+
section: string().optional(),
|
|
12367
|
+
sectionLabel: string().optional()
|
|
12239
12368
|
});
|
|
12240
12369
|
var AddonPageInfoSchema = object({
|
|
12241
12370
|
addonId: string(),
|
|
@@ -12275,7 +12404,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12275
12404
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12276
12405
|
* without a separate filesystem stat.
|
|
12277
12406
|
*/
|
|
12278
|
-
bundle: string()
|
|
12407
|
+
bundle: string(),
|
|
12408
|
+
/**
|
|
12409
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12410
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12411
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12412
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12413
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12414
|
+
* "Addon Pages" group.
|
|
12415
|
+
*/
|
|
12416
|
+
section: string().optional(),
|
|
12417
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12418
|
+
sectionLabel: string().optional()
|
|
12279
12419
|
});
|
|
12280
12420
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12281
12421
|
var AddonHttpRouteSchema = object({
|
|
@@ -12491,6 +12631,17 @@ var WidgetMetadataSchema = object({
|
|
|
12491
12631
|
deviceContext: boolean().default(false),
|
|
12492
12632
|
integrationContext: boolean().default(false)
|
|
12493
12633
|
}),
|
|
12634
|
+
/**
|
|
12635
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12636
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12637
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12638
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12639
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12640
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12641
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12642
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12643
|
+
*/
|
|
12644
|
+
preAuth: boolean().optional().default(false),
|
|
12494
12645
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12495
12646
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12496
12647
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12792,6 +12943,66 @@ method(object({
|
|
|
12792
12943
|
password: string()
|
|
12793
12944
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12794
12945
|
/**
|
|
12946
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12947
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12948
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12949
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12950
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12951
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12952
|
+
*
|
|
12953
|
+
* A contribution is a discriminated union on `kind`:
|
|
12954
|
+
*
|
|
12955
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12956
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12957
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12958
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12959
|
+
* login page needs NO change.
|
|
12960
|
+
*
|
|
12961
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12962
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12963
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12964
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12965
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
12966
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
12967
|
+
*
|
|
12968
|
+
* Every contribution carries a `stage`:
|
|
12969
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
12970
|
+
* magic-link buttons; a future usernameless passkey).
|
|
12971
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
12972
|
+
* returned `factors` (passkey-as-2FA today).
|
|
12973
|
+
*
|
|
12974
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
12975
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
12976
|
+
* tRPC router.
|
|
12977
|
+
*/
|
|
12978
|
+
/** When a login method renders in the two-phase login flow. */
|
|
12979
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
12980
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
12981
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
12982
|
+
kind: literal("redirect"),
|
|
12983
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
12984
|
+
id: string(),
|
|
12985
|
+
/** Operator-facing button label. */
|
|
12986
|
+
label: string(),
|
|
12987
|
+
/** lucide-react icon name. */
|
|
12988
|
+
icon: string().optional(),
|
|
12989
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
12990
|
+
startUrl: string(),
|
|
12991
|
+
stage: LoginStageEnum
|
|
12992
|
+
}), object({
|
|
12993
|
+
kind: literal("widget"),
|
|
12994
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
12995
|
+
id: string(),
|
|
12996
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
12997
|
+
addonId: string(),
|
|
12998
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
12999
|
+
bundle: string(),
|
|
13000
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13001
|
+
remote: WidgetRemoteSchema,
|
|
13002
|
+
stage: LoginStageEnum
|
|
13003
|
+
})]);
|
|
13004
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13005
|
+
/**
|
|
12795
13006
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12796
13007
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12797
13008
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14895,7 +15106,17 @@ var TrackSchema = object({
|
|
|
14895
15106
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14896
15107
|
totalDistance: number(),
|
|
14897
15108
|
state: TrackStateSchema,
|
|
14898
|
-
active: boolean()
|
|
15109
|
+
active: boolean(),
|
|
15110
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15111
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15112
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15113
|
+
importance: number().optional(),
|
|
15114
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15115
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15116
|
+
bestEventId: string().optional(),
|
|
15117
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15118
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15119
|
+
importanceReason: string().optional()
|
|
14899
15120
|
});
|
|
14900
15121
|
var BaseEventFields = {
|
|
14901
15122
|
id: string(),
|
|
@@ -14960,8 +15181,18 @@ var ObjectEventSchema = object({
|
|
|
14960
15181
|
frameHeight: number().optional(),
|
|
14961
15182
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
14962
15183
|
mediaKey: string().optional(),
|
|
15184
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15185
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15186
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15187
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15188
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15189
|
+
keyFrameMediaKey: string().optional(),
|
|
14963
15190
|
/** Populated by B5 (recording playback URL for this event). */
|
|
14964
|
-
mediaUrl: string().optional()
|
|
15191
|
+
mediaUrl: string().optional(),
|
|
15192
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15193
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15194
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15195
|
+
importance: number().optional()
|
|
14965
15196
|
});
|
|
14966
15197
|
var AudioEventSchema = object({
|
|
14967
15198
|
...BaseEventFields,
|
|
@@ -14985,7 +15216,8 @@ var MediaFileKindEnum = _enum([
|
|
|
14985
15216
|
"fullFrame",
|
|
14986
15217
|
"fullFrameBoxed",
|
|
14987
15218
|
"faceCrop",
|
|
14988
|
-
"plateCrop"
|
|
15219
|
+
"plateCrop",
|
|
15220
|
+
"keyFrame"
|
|
14989
15221
|
]);
|
|
14990
15222
|
var MediaFileSchema = object({
|
|
14991
15223
|
key: string(),
|
|
@@ -15006,6 +15238,32 @@ var DeviceEventQueryInput = object({
|
|
|
15006
15238
|
projection: _enum(["full", "slim"]).optional()
|
|
15007
15239
|
});
|
|
15008
15240
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15241
|
+
var KeyEventQueryInput = object({
|
|
15242
|
+
deviceId: number(),
|
|
15243
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15244
|
+
since: number(),
|
|
15245
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15246
|
+
until: number(),
|
|
15247
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15248
|
+
/** Drop tracks scoring below this importance. */
|
|
15249
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15250
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15251
|
+
classFilter: string().optional()
|
|
15252
|
+
});
|
|
15253
|
+
var KeyEventSchema = object({
|
|
15254
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15255
|
+
id: string(),
|
|
15256
|
+
trackId: string(),
|
|
15257
|
+
/** Track start time (firstSeen). */
|
|
15258
|
+
timestamp: number(),
|
|
15259
|
+
className: string(),
|
|
15260
|
+
label: string().optional(),
|
|
15261
|
+
importance: number(),
|
|
15262
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15263
|
+
bestEventId: string(),
|
|
15264
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15265
|
+
windowMs: number().optional()
|
|
15266
|
+
});
|
|
15009
15267
|
var TrackedDetectionSchema = object({
|
|
15010
15268
|
trackId: string(),
|
|
15011
15269
|
className: string(),
|
|
@@ -15035,7 +15293,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15035
15293
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15036
15294
|
kind: "mutation",
|
|
15037
15295
|
auth: "admin"
|
|
15038
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15296
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15039
15297
|
deviceId: number(),
|
|
15040
15298
|
since: number(),
|
|
15041
15299
|
until: number(),
|
|
@@ -15080,11 +15338,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15080
15338
|
timestamp: number()
|
|
15081
15339
|
});
|
|
15082
15340
|
var CameraPipelineConfigSchema = object({
|
|
15083
|
-
engine: PipelineEngineChoiceSchema,
|
|
15341
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15084
15342
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15085
15343
|
audio: object({
|
|
15086
|
-
engine: PipelineEngineChoiceSchema,
|
|
15087
|
-
modelId: string(),
|
|
15344
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15345
|
+
modelId: string().optional(),
|
|
15088
15346
|
enabled: boolean(),
|
|
15089
15347
|
settings: record(string(), unknown()).readonly().optional()
|
|
15090
15348
|
}).nullable().optional()
|
|
@@ -15099,7 +15357,7 @@ var PipelineTemplateSchema = object({
|
|
|
15099
15357
|
});
|
|
15100
15358
|
var AgentAddonConfigSchema = object({
|
|
15101
15359
|
enabled: boolean(),
|
|
15102
|
-
modelId: string(),
|
|
15360
|
+
modelId: string().optional(),
|
|
15103
15361
|
settings: record(string(), unknown()).readonly()
|
|
15104
15362
|
});
|
|
15105
15363
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15109,12 +15367,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15109
15367
|
detectWeight: number().positive().optional(),
|
|
15110
15368
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15111
15369
|
detect: boolean().optional(),
|
|
15112
|
-
/**
|
|
15370
|
+
/**
|
|
15371
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15372
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15373
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15374
|
+
* parse — no code reads it and no write path emits it.
|
|
15375
|
+
*/
|
|
15113
15376
|
decode: boolean().optional(),
|
|
15114
15377
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15115
15378
|
audio: boolean().optional(),
|
|
15116
15379
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15117
|
-
ingest: boolean().optional()
|
|
15380
|
+
ingest: boolean().optional(),
|
|
15381
|
+
/**
|
|
15382
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15383
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15384
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15385
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15386
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15387
|
+
*/
|
|
15388
|
+
reachableHost: string().optional()
|
|
15118
15389
|
});
|
|
15119
15390
|
var CameraPipelineForAgentSchema = object({
|
|
15120
15391
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15162,25 +15433,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15162
15433
|
assignedAt: number()
|
|
15163
15434
|
});
|
|
15164
15435
|
/**
|
|
15165
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15166
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15167
|
-
* → co-located with pipeline → capacity).
|
|
15168
|
-
*/
|
|
15169
|
-
var DecoderAssignmentSchema = object({
|
|
15170
|
-
deviceId: number(),
|
|
15171
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15172
|
-
decoderNodeId: string(),
|
|
15173
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15174
|
-
pinned: boolean(),
|
|
15175
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15176
|
-
reason: _enum([
|
|
15177
|
-
"manual",
|
|
15178
|
-
"co-located",
|
|
15179
|
-
"capacity",
|
|
15180
|
-
"hardware-affinity"
|
|
15181
|
-
])
|
|
15182
|
-
});
|
|
15183
|
-
/**
|
|
15184
15436
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15185
15437
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15186
15438
|
*/
|
|
@@ -15220,6 +15472,15 @@ var GlobalMetricsSchema = object({
|
|
|
15220
15472
|
* capability providers.
|
|
15221
15473
|
*/
|
|
15222
15474
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15475
|
+
/**
|
|
15476
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15477
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15478
|
+
*/
|
|
15479
|
+
var IngestOwnerSchema = object({
|
|
15480
|
+
ownerNodeId: string(),
|
|
15481
|
+
reachableHost: string().optional(),
|
|
15482
|
+
configIssue: string().optional()
|
|
15483
|
+
});
|
|
15223
15484
|
/** Source block — always present; derives from the stream catalog. */
|
|
15224
15485
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15225
15486
|
camStreamId: string(),
|
|
@@ -15234,6 +15495,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15234
15495
|
detectionNodeId: string().nullable(),
|
|
15235
15496
|
decoderNodeId: string().nullable(),
|
|
15236
15497
|
audioNodeId: string().nullable(),
|
|
15498
|
+
/**
|
|
15499
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15500
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15501
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15502
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15503
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15504
|
+
*/
|
|
15505
|
+
sourceNodeId: string().nullable(),
|
|
15237
15506
|
pinned: object({
|
|
15238
15507
|
detection: boolean(),
|
|
15239
15508
|
decoder: boolean(),
|
|
@@ -15366,16 +15635,7 @@ method(object({
|
|
|
15366
15635
|
}), object({ success: literal(true) }), {
|
|
15367
15636
|
kind: "mutation",
|
|
15368
15637
|
auth: "admin"
|
|
15369
|
-
}), method(object({
|
|
15370
|
-
deviceId: number(),
|
|
15371
|
-
nodeId: string()
|
|
15372
|
-
}), _void(), {
|
|
15373
|
-
kind: "mutation",
|
|
15374
|
-
auth: "admin"
|
|
15375
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15376
|
-
kind: "mutation",
|
|
15377
|
-
auth: "admin"
|
|
15378
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15638
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15379
15639
|
deviceId: number(),
|
|
15380
15640
|
nodeId: string()
|
|
15381
15641
|
}), object({ success: literal(true) }), {
|
|
@@ -15396,10 +15656,7 @@ method(object({
|
|
|
15396
15656
|
nodeId: string(),
|
|
15397
15657
|
pinned: boolean(),
|
|
15398
15658
|
assignedAt: number()
|
|
15399
|
-
}))), method(object({
|
|
15400
|
-
deviceId: number(),
|
|
15401
|
-
pipelineNodeId: string().optional()
|
|
15402
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15659
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15403
15660
|
nodeId: string(),
|
|
15404
15661
|
settings: AgentPipelineSettingsSchema
|
|
15405
15662
|
})).readonly()), method(object({
|
|
@@ -15429,12 +15686,26 @@ method(object({
|
|
|
15429
15686
|
}), method(object({
|
|
15430
15687
|
agentNodeId: string(),
|
|
15431
15688
|
detect: boolean().nullable().optional(),
|
|
15432
|
-
decode: boolean().nullable().optional(),
|
|
15433
15689
|
audio: boolean().nullable().optional(),
|
|
15434
15690
|
ingest: boolean().nullable().optional()
|
|
15435
15691
|
}), object({ success: literal(true) }), {
|
|
15436
15692
|
kind: "mutation",
|
|
15437
15693
|
auth: "admin"
|
|
15694
|
+
}), method(object({
|
|
15695
|
+
agentNodeId: string(),
|
|
15696
|
+
reachableHost: string().nullable()
|
|
15697
|
+
}), object({ success: literal(true) }), {
|
|
15698
|
+
kind: "mutation",
|
|
15699
|
+
auth: "admin"
|
|
15700
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15701
|
+
success: literal(true),
|
|
15702
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15703
|
+
effectiveModelId: string().nullable(),
|
|
15704
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15705
|
+
clearedCameraOverrides: number()
|
|
15706
|
+
}), {
|
|
15707
|
+
kind: "mutation",
|
|
15708
|
+
auth: "admin"
|
|
15438
15709
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15439
15710
|
deviceId: number(),
|
|
15440
15711
|
addonId: string(),
|
|
@@ -15479,22 +15750,131 @@ method(object({
|
|
|
15479
15750
|
kind: "mutation",
|
|
15480
15751
|
auth: "admin"
|
|
15481
15752
|
});
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15753
|
+
/**
|
|
15754
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15755
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15756
|
+
* agents).
|
|
15757
|
+
*
|
|
15758
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15759
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15760
|
+
* version describes the node. Updates install into
|
|
15761
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15762
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15763
|
+
*
|
|
15764
|
+
* Providers:
|
|
15765
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15766
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15767
|
+
* unpinned calls.
|
|
15768
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15769
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15770
|
+
* `$hub.registerNode` manifest.
|
|
15771
|
+
*
|
|
15772
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15773
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15774
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15775
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15776
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15777
|
+
*
|
|
15778
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15779
|
+
*/
|
|
15780
|
+
/**
|
|
15781
|
+
* Where the running hub's code was loaded from:
|
|
15782
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15783
|
+
* plain resolution and runtime updates are refused.
|
|
15784
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15785
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15786
|
+
*/
|
|
15787
|
+
var ServerBootModeSchema = _enum([
|
|
15788
|
+
"workspace",
|
|
15789
|
+
"baked",
|
|
15790
|
+
"data-root"
|
|
15791
|
+
]);
|
|
15792
|
+
/**
|
|
15793
|
+
* Update lifecycle state:
|
|
15794
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15795
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15796
|
+
* restarted onto it (still running the OLD version).
|
|
15797
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15798
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15799
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15800
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15801
|
+
*/
|
|
15802
|
+
var ServerUpdateStateSchema = _enum([
|
|
15803
|
+
"idle",
|
|
15804
|
+
"checking",
|
|
15805
|
+
"staging",
|
|
15806
|
+
"pending-restart",
|
|
15807
|
+
"awaiting-confirmation"
|
|
15808
|
+
]);
|
|
15809
|
+
var ServerRollbackInfoSchema = object({
|
|
15810
|
+
/** The version that failed (or was manually rolled back). */
|
|
15811
|
+
fromVersion: string(),
|
|
15812
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15813
|
+
toVersion: string().nullable(),
|
|
15814
|
+
atMs: number(),
|
|
15815
|
+
reason: string()
|
|
15488
15816
|
});
|
|
15489
|
-
var
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15817
|
+
var ServerPackageStatusSchema = object({
|
|
15818
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15819
|
+
packageName: string(),
|
|
15820
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15821
|
+
runningVersion: string().nullable(),
|
|
15822
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15823
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15824
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15825
|
+
activeVersion: string().nullable(),
|
|
15826
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15827
|
+
previousVersion: string().nullable(),
|
|
15828
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15829
|
+
seedVersion: string().nullable(),
|
|
15830
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15831
|
+
latestVersion: string().nullable(),
|
|
15832
|
+
updateAvailable: boolean(),
|
|
15833
|
+
bootMode: ServerBootModeSchema,
|
|
15834
|
+
updateState: ServerUpdateStateSchema,
|
|
15835
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15836
|
+
pendingVersion: string().nullable(),
|
|
15837
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15838
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15839
|
+
/**
|
|
15840
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15841
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15842
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15843
|
+
*/
|
|
15844
|
+
stateFileCorrupt: boolean(),
|
|
15845
|
+
lastCheckedAtMs: number().nullable()
|
|
15846
|
+
});
|
|
15847
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15848
|
+
packageName: string(),
|
|
15849
|
+
runningVersion: string().nullable(),
|
|
15850
|
+
latestVersion: string().nullable(),
|
|
15851
|
+
updateAvailable: boolean(),
|
|
15852
|
+
checkedAtMs: number(),
|
|
15853
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15854
|
+
error: string().nullable()
|
|
15855
|
+
});
|
|
15856
|
+
var ServerUpdateActionResultSchema = object({
|
|
15857
|
+
accepted: boolean(),
|
|
15858
|
+
targetVersion: string().nullable(),
|
|
15859
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15860
|
+
restarting: boolean(),
|
|
15861
|
+
message: string()
|
|
15862
|
+
});
|
|
15863
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15864
|
+
kind: "mutation",
|
|
15865
|
+
auth: "admin"
|
|
15866
|
+
}), method(object({
|
|
15867
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15868
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15869
|
+
kind: "mutation",
|
|
15870
|
+
auth: "admin"
|
|
15871
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15872
|
+
kind: "mutation",
|
|
15873
|
+
auth: "admin"
|
|
15874
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15875
|
+
kind: "mutation",
|
|
15876
|
+
auth: "admin"
|
|
15493
15877
|
});
|
|
15494
|
-
method(object({
|
|
15495
|
-
deviceId: number(),
|
|
15496
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15497
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15498
15878
|
/**
|
|
15499
15879
|
* Query filter for settings-store collections.
|
|
15500
15880
|
*/
|
|
@@ -15647,9 +16027,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15647
16027
|
/**
|
|
15648
16028
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15649
16029
|
*
|
|
15650
|
-
*
|
|
15651
|
-
*
|
|
15652
|
-
*
|
|
16030
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16031
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16032
|
+
* prebuffer fallback.
|
|
15653
16033
|
*/
|
|
15654
16034
|
var SnapshotImageSchema = object({
|
|
15655
16035
|
base64: string(),
|
|
@@ -15680,11 +16060,12 @@ DeviceType.Camera, method(object({
|
|
|
15680
16060
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15681
16061
|
kind: "mutation",
|
|
15682
16062
|
auth: "admin"
|
|
15683
|
-
})
|
|
15684
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16063
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15685
16064
|
deviceId: number(),
|
|
15686
|
-
|
|
15687
|
-
|
|
16065
|
+
lastCapturedAt: number().nullable(),
|
|
16066
|
+
cacheAgeMs: number().nullable(),
|
|
16067
|
+
etag: string().nullable()
|
|
16068
|
+
})));
|
|
15688
16069
|
/**
|
|
15689
16070
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15690
16071
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -15980,10 +16361,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
15980
16361
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
15981
16362
|
* the assertion, bumps the credential counter, returns ok.
|
|
15982
16363
|
*
|
|
16364
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16365
|
+
* passkey IS the primary factor, no password leg:
|
|
16366
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16367
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16368
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16369
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16370
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16371
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16372
|
+
* resolves the credential by the response's credential id,
|
|
16373
|
+
* verifies the assertion against the stored challenge + that
|
|
16374
|
+
* credential's public key/counter, and returns the OWNING
|
|
16375
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16376
|
+
*
|
|
15983
16377
|
* 3. Management:
|
|
15984
16378
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
15985
16379
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
15986
16380
|
*
|
|
16381
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16382
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16383
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16384
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16385
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16386
|
+
* row ⇒ `enabled: false`).
|
|
16387
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16388
|
+
* the providing addon beside its credentials.
|
|
16389
|
+
*
|
|
15987
16390
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
15988
16391
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
15989
16392
|
* the cap to non-admins.
|
|
@@ -16026,6 +16429,17 @@ method(object({
|
|
|
16026
16429
|
}), object({ verified: boolean() }), {
|
|
16027
16430
|
kind: "mutation",
|
|
16028
16431
|
access: "view"
|
|
16432
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16433
|
+
kind: "mutation",
|
|
16434
|
+
access: "view"
|
|
16435
|
+
}), method(object({
|
|
16436
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16437
|
+
response: record(string(), unknown()) }), object({
|
|
16438
|
+
verified: boolean(),
|
|
16439
|
+
userId: string().nullable()
|
|
16440
|
+
}), {
|
|
16441
|
+
kind: "mutation",
|
|
16442
|
+
access: "view"
|
|
16029
16443
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16030
16444
|
userId: string(),
|
|
16031
16445
|
credentialId: string()
|
|
@@ -16033,6 +16447,13 @@ method(object({
|
|
|
16033
16447
|
kind: "mutation",
|
|
16034
16448
|
auth: "admin",
|
|
16035
16449
|
access: "delete"
|
|
16450
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16451
|
+
userId: string(),
|
|
16452
|
+
enabled: boolean()
|
|
16453
|
+
}), object({ success: literal(true) }), {
|
|
16454
|
+
kind: "mutation",
|
|
16455
|
+
auth: "admin",
|
|
16456
|
+
access: "create"
|
|
16036
16457
|
});
|
|
16037
16458
|
/**
|
|
16038
16459
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16090,9 +16511,10 @@ method(object({
|
|
|
16090
16511
|
auth: "admin"
|
|
16091
16512
|
});
|
|
16092
16513
|
/**
|
|
16093
|
-
* Optional client-side hints sent at session creation to help the
|
|
16094
|
-
*
|
|
16095
|
-
*
|
|
16514
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16515
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16516
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16517
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16096
16518
|
*/
|
|
16097
16519
|
var webrtcClientHintsSchema = object({
|
|
16098
16520
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16103,22 +16525,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16103
16525
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16104
16526
|
prefersTier: string().optional()
|
|
16105
16527
|
}).partial();
|
|
16106
|
-
method(object({
|
|
16107
|
-
streamId: string(),
|
|
16108
|
-
sdpOffer: string()
|
|
16109
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16110
|
-
streamId: string(),
|
|
16111
|
-
codec: string()
|
|
16112
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16113
|
-
streamId: string(),
|
|
16114
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16115
|
-
}), object({
|
|
16116
|
-
sessionId: string(),
|
|
16117
|
-
sdpOffer: string()
|
|
16118
|
-
}), { kind: "mutation" }), method(object({
|
|
16119
|
-
sessionId: string(),
|
|
16120
|
-
sdpAnswer: string()
|
|
16121
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16122
16528
|
/**
|
|
16123
16529
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16124
16530
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16849,7 +17255,17 @@ var FaceInfoSchema = object({
|
|
|
16849
17255
|
recognizedIdentityId: string().optional(),
|
|
16850
17256
|
identityName: string().optional(),
|
|
16851
17257
|
assigned: boolean(),
|
|
16852
|
-
base64: string().optional()
|
|
17258
|
+
base64: string().optional(),
|
|
17259
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17260
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17261
|
+
* legacy rows written before design B. */
|
|
17262
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17263
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17264
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17265
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17266
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17267
|
+
* back to the inline `base64` face crop. */
|
|
17268
|
+
keyFrameMediaKey: string().optional()
|
|
16853
17269
|
});
|
|
16854
17270
|
var FaceFilterEnum = _enum([
|
|
16855
17271
|
"unassigned",
|
|
@@ -17546,6 +17962,16 @@ var TopologyCategorySchema = object({
|
|
|
17546
17962
|
healthy: number(),
|
|
17547
17963
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17548
17964
|
});
|
|
17965
|
+
/**
|
|
17966
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17967
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17968
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17969
|
+
* rows and pre-phase-2 nodes report none.
|
|
17970
|
+
*/
|
|
17971
|
+
var TopologyRootPackageSchema = object({
|
|
17972
|
+
name: string(),
|
|
17973
|
+
version: string()
|
|
17974
|
+
});
|
|
17549
17975
|
var TopologyNodeSchema = object({
|
|
17550
17976
|
id: string(),
|
|
17551
17977
|
name: string(),
|
|
@@ -17569,7 +17995,8 @@ var TopologyNodeSchema = object({
|
|
|
17569
17995
|
status: string()
|
|
17570
17996
|
})).readonly(),
|
|
17571
17997
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17572
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
17998
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
17999
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17573
18000
|
});
|
|
17574
18001
|
var CapUsageEdgeSchema = object({
|
|
17575
18002
|
callerAddonId: string(),
|
|
@@ -20369,6 +20796,12 @@ Object.freeze({
|
|
|
20369
20796
|
addonId: null,
|
|
20370
20797
|
access: "create"
|
|
20371
20798
|
},
|
|
20799
|
+
"loginMethod.getLoginMethods": {
|
|
20800
|
+
capName: "login-method",
|
|
20801
|
+
capScope: "system",
|
|
20802
|
+
addonId: null,
|
|
20803
|
+
access: "view"
|
|
20804
|
+
},
|
|
20372
20805
|
"mediaPlayer.next": {
|
|
20373
20806
|
capName: "media-player",
|
|
20374
20807
|
capScope: "device",
|
|
@@ -20951,6 +21384,12 @@ Object.freeze({
|
|
|
20951
21384
|
addonId: null,
|
|
20952
21385
|
access: "view"
|
|
20953
21386
|
},
|
|
21387
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21388
|
+
capName: "pipeline-analytics",
|
|
21389
|
+
capScope: "device",
|
|
21390
|
+
addonId: null,
|
|
21391
|
+
access: "view"
|
|
21392
|
+
},
|
|
20954
21393
|
"pipelineAnalytics.getMotionEvents": {
|
|
20955
21394
|
capName: "pipeline-analytics",
|
|
20956
21395
|
capScope: "device",
|
|
@@ -20999,23 +21438,23 @@ Object.freeze({
|
|
|
20999
21438
|
addonId: null,
|
|
21000
21439
|
access: "create"
|
|
21001
21440
|
},
|
|
21002
|
-
"pipelineExecutor.
|
|
21441
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21003
21442
|
capName: "pipeline-executor",
|
|
21004
21443
|
capScope: "system",
|
|
21005
21444
|
addonId: null,
|
|
21006
21445
|
access: "delete"
|
|
21007
21446
|
},
|
|
21008
|
-
"pipelineExecutor.
|
|
21447
|
+
"pipelineExecutor.deleteModel": {
|
|
21009
21448
|
capName: "pipeline-executor",
|
|
21010
21449
|
capScope: "system",
|
|
21011
21450
|
addonId: null,
|
|
21012
21451
|
access: "delete"
|
|
21013
21452
|
},
|
|
21014
|
-
"pipelineExecutor.
|
|
21453
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21015
21454
|
capName: "pipeline-executor",
|
|
21016
21455
|
capScope: "system",
|
|
21017
21456
|
addonId: null,
|
|
21018
|
-
access: "
|
|
21457
|
+
access: "delete"
|
|
21019
21458
|
},
|
|
21020
21459
|
"pipelineExecutor.downloadModel": {
|
|
21021
21460
|
capName: "pipeline-executor",
|
|
@@ -21209,13 +21648,13 @@ Object.freeze({
|
|
|
21209
21648
|
addonId: null,
|
|
21210
21649
|
access: "create"
|
|
21211
21650
|
},
|
|
21212
|
-
"
|
|
21213
|
-
capName: "pipeline-
|
|
21651
|
+
"pipelineExecutor.validatePipeline": {
|
|
21652
|
+
capName: "pipeline-executor",
|
|
21214
21653
|
capScope: "system",
|
|
21215
21654
|
addonId: null,
|
|
21216
|
-
access: "
|
|
21655
|
+
access: "view"
|
|
21217
21656
|
},
|
|
21218
|
-
"pipelineOrchestrator.
|
|
21657
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21219
21658
|
capName: "pipeline-orchestrator",
|
|
21220
21659
|
capScope: "system",
|
|
21221
21660
|
addonId: null,
|
|
@@ -21299,19 +21738,13 @@ Object.freeze({
|
|
|
21299
21738
|
addonId: null,
|
|
21300
21739
|
access: "view"
|
|
21301
21740
|
},
|
|
21302
|
-
"pipelineOrchestrator.
|
|
21303
|
-
capName: "pipeline-orchestrator",
|
|
21304
|
-
capScope: "system",
|
|
21305
|
-
addonId: null,
|
|
21306
|
-
access: "view"
|
|
21307
|
-
},
|
|
21308
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21741
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21309
21742
|
capName: "pipeline-orchestrator",
|
|
21310
21743
|
capScope: "system",
|
|
21311
21744
|
addonId: null,
|
|
21312
21745
|
access: "view"
|
|
21313
21746
|
},
|
|
21314
|
-
"pipelineOrchestrator.
|
|
21747
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21315
21748
|
capName: "pipeline-orchestrator",
|
|
21316
21749
|
capScope: "system",
|
|
21317
21750
|
addonId: null,
|
|
@@ -21353,6 +21786,12 @@ Object.freeze({
|
|
|
21353
21786
|
addonId: null,
|
|
21354
21787
|
access: "delete"
|
|
21355
21788
|
},
|
|
21789
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21790
|
+
capName: "pipeline-orchestrator",
|
|
21791
|
+
capScope: "system",
|
|
21792
|
+
addonId: null,
|
|
21793
|
+
access: "delete"
|
|
21794
|
+
},
|
|
21356
21795
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21357
21796
|
capName: "pipeline-orchestrator",
|
|
21358
21797
|
capScope: "system",
|
|
@@ -21389,37 +21828,37 @@ Object.freeze({
|
|
|
21389
21828
|
addonId: null,
|
|
21390
21829
|
access: "create"
|
|
21391
21830
|
},
|
|
21392
|
-
"pipelineOrchestrator.
|
|
21831
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21393
21832
|
capName: "pipeline-orchestrator",
|
|
21394
21833
|
capScope: "system",
|
|
21395
21834
|
addonId: null,
|
|
21396
21835
|
access: "create"
|
|
21397
21836
|
},
|
|
21398
|
-
"pipelineOrchestrator.
|
|
21837
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21399
21838
|
capName: "pipeline-orchestrator",
|
|
21400
21839
|
capScope: "system",
|
|
21401
21840
|
addonId: null,
|
|
21402
21841
|
access: "create"
|
|
21403
21842
|
},
|
|
21404
|
-
"pipelineOrchestrator.
|
|
21843
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21405
21844
|
capName: "pipeline-orchestrator",
|
|
21406
21845
|
capScope: "system",
|
|
21407
21846
|
addonId: null,
|
|
21408
21847
|
access: "create"
|
|
21409
21848
|
},
|
|
21410
|
-
"pipelineOrchestrator.
|
|
21849
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21411
21850
|
capName: "pipeline-orchestrator",
|
|
21412
21851
|
capScope: "system",
|
|
21413
21852
|
addonId: null,
|
|
21414
21853
|
access: "create"
|
|
21415
21854
|
},
|
|
21416
|
-
"pipelineOrchestrator.
|
|
21855
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21417
21856
|
capName: "pipeline-orchestrator",
|
|
21418
21857
|
capScope: "system",
|
|
21419
21858
|
addonId: null,
|
|
21420
21859
|
access: "create"
|
|
21421
21860
|
},
|
|
21422
|
-
"pipelineOrchestrator.
|
|
21861
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21423
21862
|
capName: "pipeline-orchestrator",
|
|
21424
21863
|
capScope: "system",
|
|
21425
21864
|
addonId: null,
|
|
@@ -21479,6 +21918,12 @@ Object.freeze({
|
|
|
21479
21918
|
addonId: null,
|
|
21480
21919
|
access: "view"
|
|
21481
21920
|
},
|
|
21921
|
+
"pipelineRunner.getNativeCrop": {
|
|
21922
|
+
capName: "pipeline-runner",
|
|
21923
|
+
capScope: "system",
|
|
21924
|
+
addonId: null,
|
|
21925
|
+
access: "view"
|
|
21926
|
+
},
|
|
21482
21927
|
"pipelineRunner.reportMotion": {
|
|
21483
21928
|
capName: "pipeline-runner",
|
|
21484
21929
|
capScope: "system",
|
|
@@ -21719,33 +22164,45 @@ Object.freeze({
|
|
|
21719
22164
|
addonId: null,
|
|
21720
22165
|
access: "create"
|
|
21721
22166
|
},
|
|
21722
|
-
"
|
|
21723
|
-
capName: "
|
|
22167
|
+
"scriptRunner.run": {
|
|
22168
|
+
capName: "script-runner",
|
|
22169
|
+
capScope: "device",
|
|
22170
|
+
addonId: null,
|
|
22171
|
+
access: "create"
|
|
22172
|
+
},
|
|
22173
|
+
"scriptRunner.stop": {
|
|
22174
|
+
capName: "script-runner",
|
|
22175
|
+
capScope: "device",
|
|
22176
|
+
addonId: null,
|
|
22177
|
+
access: "create"
|
|
22178
|
+
},
|
|
22179
|
+
"serverManagement.applyServerUpdate": {
|
|
22180
|
+
capName: "server-management",
|
|
21724
22181
|
capScope: "system",
|
|
21725
22182
|
addonId: null,
|
|
21726
|
-
access: "
|
|
22183
|
+
access: "create"
|
|
21727
22184
|
},
|
|
21728
|
-
"
|
|
21729
|
-
capName: "
|
|
22185
|
+
"serverManagement.checkServerUpdate": {
|
|
22186
|
+
capName: "server-management",
|
|
21730
22187
|
capScope: "system",
|
|
21731
22188
|
addonId: null,
|
|
21732
22189
|
access: "create"
|
|
21733
22190
|
},
|
|
21734
|
-
"
|
|
21735
|
-
capName: "
|
|
22191
|
+
"serverManagement.getServerPackageStatus": {
|
|
22192
|
+
capName: "server-management",
|
|
21736
22193
|
capScope: "system",
|
|
21737
22194
|
addonId: null,
|
|
21738
|
-
access: "
|
|
22195
|
+
access: "view"
|
|
21739
22196
|
},
|
|
21740
|
-
"
|
|
21741
|
-
capName: "
|
|
21742
|
-
capScope: "
|
|
22197
|
+
"serverManagement.restartServer": {
|
|
22198
|
+
capName: "server-management",
|
|
22199
|
+
capScope: "system",
|
|
21743
22200
|
addonId: null,
|
|
21744
22201
|
access: "create"
|
|
21745
22202
|
},
|
|
21746
|
-
"
|
|
21747
|
-
capName: "
|
|
21748
|
-
capScope: "
|
|
22203
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22204
|
+
capName: "server-management",
|
|
22205
|
+
capScope: "system",
|
|
21749
22206
|
addonId: null,
|
|
21750
22207
|
access: "create"
|
|
21751
22208
|
},
|
|
@@ -21833,23 +22290,17 @@ Object.freeze({
|
|
|
21833
22290
|
addonId: null,
|
|
21834
22291
|
access: "view"
|
|
21835
22292
|
},
|
|
21836
|
-
"snapshot.
|
|
22293
|
+
"snapshot.getSnapshotOverview": {
|
|
21837
22294
|
capName: "snapshot",
|
|
21838
22295
|
capScope: "device",
|
|
21839
22296
|
addonId: null,
|
|
21840
|
-
access: "create"
|
|
21841
|
-
},
|
|
21842
|
-
"snapshotProvider.getSnapshot": {
|
|
21843
|
-
capName: "snapshot-provider",
|
|
21844
|
-
capScope: "system",
|
|
21845
|
-
addonId: null,
|
|
21846
22297
|
access: "view"
|
|
21847
22298
|
},
|
|
21848
|
-
"
|
|
21849
|
-
capName: "snapshot
|
|
21850
|
-
capScope: "
|
|
22299
|
+
"snapshot.invalidateCache": {
|
|
22300
|
+
capName: "snapshot",
|
|
22301
|
+
capScope: "device",
|
|
21851
22302
|
addonId: null,
|
|
21852
|
-
access: "
|
|
22303
|
+
access: "create"
|
|
21853
22304
|
},
|
|
21854
22305
|
"ssoBridge.signBridgeToken": {
|
|
21855
22306
|
capName: "sso-bridge",
|
|
@@ -22277,30 +22728,6 @@ Object.freeze({
|
|
|
22277
22728
|
addonId: null,
|
|
22278
22729
|
access: "view"
|
|
22279
22730
|
},
|
|
22280
|
-
"streamingEngine.getStreamUrl": {
|
|
22281
|
-
capName: "streaming-engine",
|
|
22282
|
-
capScope: "system",
|
|
22283
|
-
addonId: null,
|
|
22284
|
-
access: "view"
|
|
22285
|
-
},
|
|
22286
|
-
"streamingEngine.listStreams": {
|
|
22287
|
-
capName: "streaming-engine",
|
|
22288
|
-
capScope: "system",
|
|
22289
|
-
addonId: null,
|
|
22290
|
-
access: "view"
|
|
22291
|
-
},
|
|
22292
|
-
"streamingEngine.registerStream": {
|
|
22293
|
-
capName: "streaming-engine",
|
|
22294
|
-
capScope: "system",
|
|
22295
|
-
addonId: null,
|
|
22296
|
-
access: "create"
|
|
22297
|
-
},
|
|
22298
|
-
"streamingEngine.unregisterStream": {
|
|
22299
|
-
capName: "streaming-engine",
|
|
22300
|
-
capScope: "system",
|
|
22301
|
-
addonId: null,
|
|
22302
|
-
access: "delete"
|
|
22303
|
-
},
|
|
22304
22731
|
"streamParams.getConfigSchema": {
|
|
22305
22732
|
capName: "stream-params",
|
|
22306
22733
|
capScope: "device",
|
|
@@ -22547,6 +22974,12 @@ Object.freeze({
|
|
|
22547
22974
|
addonId: null,
|
|
22548
22975
|
access: "view"
|
|
22549
22976
|
},
|
|
22977
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
22978
|
+
capName: "user-passkeys",
|
|
22979
|
+
capScope: "system",
|
|
22980
|
+
addonId: null,
|
|
22981
|
+
access: "view"
|
|
22982
|
+
},
|
|
22550
22983
|
"userPasskeys.beginRegistration": {
|
|
22551
22984
|
capName: "user-passkeys",
|
|
22552
22985
|
capScope: "system",
|
|
@@ -22559,12 +22992,24 @@ Object.freeze({
|
|
|
22559
22992
|
addonId: null,
|
|
22560
22993
|
access: "view"
|
|
22561
22994
|
},
|
|
22995
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
22996
|
+
capName: "user-passkeys",
|
|
22997
|
+
capScope: "system",
|
|
22998
|
+
addonId: null,
|
|
22999
|
+
access: "view"
|
|
23000
|
+
},
|
|
22562
23001
|
"userPasskeys.finishRegistration": {
|
|
22563
23002
|
capName: "user-passkeys",
|
|
22564
23003
|
capScope: "system",
|
|
22565
23004
|
addonId: null,
|
|
22566
23005
|
access: "create"
|
|
22567
23006
|
},
|
|
23007
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23008
|
+
capName: "user-passkeys",
|
|
23009
|
+
capScope: "system",
|
|
23010
|
+
addonId: null,
|
|
23011
|
+
access: "view"
|
|
23012
|
+
},
|
|
22568
23013
|
"userPasskeys.listPasskeys": {
|
|
22569
23014
|
capName: "user-passkeys",
|
|
22570
23015
|
capScope: "system",
|
|
@@ -22577,6 +23022,12 @@ Object.freeze({
|
|
|
22577
23022
|
addonId: null,
|
|
22578
23023
|
access: "delete"
|
|
22579
23024
|
},
|
|
23025
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23026
|
+
capName: "user-passkeys",
|
|
23027
|
+
capScope: "system",
|
|
23028
|
+
addonId: null,
|
|
23029
|
+
access: "create"
|
|
23030
|
+
},
|
|
22580
23031
|
"vacuumControl.locate": {
|
|
22581
23032
|
capName: "vacuum-control",
|
|
22582
23033
|
capScope: "device",
|
|
@@ -22649,6 +23100,18 @@ Object.freeze({
|
|
|
22649
23100
|
addonId: null,
|
|
22650
23101
|
access: "view"
|
|
22651
23102
|
},
|
|
23103
|
+
"viewerUi.getStaticDir": {
|
|
23104
|
+
capName: "viewer-ui",
|
|
23105
|
+
capScope: "system",
|
|
23106
|
+
addonId: null,
|
|
23107
|
+
access: "view"
|
|
23108
|
+
},
|
|
23109
|
+
"viewerUi.getVersion": {
|
|
23110
|
+
capName: "viewer-ui",
|
|
23111
|
+
capScope: "system",
|
|
23112
|
+
addonId: null,
|
|
23113
|
+
access: "view"
|
|
23114
|
+
},
|
|
22652
23115
|
"waterHeater.setAway": {
|
|
22653
23116
|
capName: "water-heater",
|
|
22654
23117
|
capScope: "device",
|
|
@@ -22667,54 +23130,6 @@ Object.freeze({
|
|
|
22667
23130
|
addonId: null,
|
|
22668
23131
|
access: "create"
|
|
22669
23132
|
},
|
|
22670
|
-
"webrtc.closeSession": {
|
|
22671
|
-
capName: "webrtc",
|
|
22672
|
-
capScope: "system",
|
|
22673
|
-
addonId: null,
|
|
22674
|
-
access: "create"
|
|
22675
|
-
},
|
|
22676
|
-
"webrtc.createSession": {
|
|
22677
|
-
capName: "webrtc",
|
|
22678
|
-
capScope: "system",
|
|
22679
|
-
addonId: null,
|
|
22680
|
-
access: "create"
|
|
22681
|
-
},
|
|
22682
|
-
"webrtc.handleAnswer": {
|
|
22683
|
-
capName: "webrtc",
|
|
22684
|
-
capScope: "system",
|
|
22685
|
-
addonId: null,
|
|
22686
|
-
access: "create"
|
|
22687
|
-
},
|
|
22688
|
-
"webrtc.handleOffer": {
|
|
22689
|
-
capName: "webrtc",
|
|
22690
|
-
capScope: "system",
|
|
22691
|
-
addonId: null,
|
|
22692
|
-
access: "create"
|
|
22693
|
-
},
|
|
22694
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22695
|
-
capName: "webrtc",
|
|
22696
|
-
capScope: "system",
|
|
22697
|
-
addonId: null,
|
|
22698
|
-
access: "view"
|
|
22699
|
-
},
|
|
22700
|
-
"webrtc.registerStream": {
|
|
22701
|
-
capName: "webrtc",
|
|
22702
|
-
capScope: "system",
|
|
22703
|
-
addonId: null,
|
|
22704
|
-
access: "create"
|
|
22705
|
-
},
|
|
22706
|
-
"webrtc.supportsStream": {
|
|
22707
|
-
capName: "webrtc",
|
|
22708
|
-
capScope: "system",
|
|
22709
|
-
addonId: null,
|
|
22710
|
-
access: "view"
|
|
22711
|
-
},
|
|
22712
|
-
"webrtc.unregisterStream": {
|
|
22713
|
-
capName: "webrtc",
|
|
22714
|
-
capScope: "system",
|
|
22715
|
-
addonId: null,
|
|
22716
|
-
access: "delete"
|
|
22717
|
-
},
|
|
22718
23133
|
"webrtcSession.addIceCandidate": {
|
|
22719
23134
|
capName: "webrtc-session",
|
|
22720
23135
|
capScope: "device",
|