@camstack/addon-tailscale 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-C_MUQLnn.js → dist-DvyIYWRl.js} +672 -257
- package/dist/{dist-CgzzL85D.mjs → dist-irXrU_Jl.mjs} +672 -257
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
4630
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4631
4631
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4632
4632
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4633
4633
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4813,6 +4813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4813
4813
|
*/
|
|
4814
4814
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4815
4815
|
/**
|
|
4816
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4817
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4818
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4819
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4820
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4821
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4822
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4823
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4824
|
+
* broker's long backstop reconcile query).
|
|
4825
|
+
*/
|
|
4826
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4827
|
+
/**
|
|
4816
4828
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4817
4829
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4818
4830
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5336,10 +5348,6 @@ function hydrateField(field, values) {
|
|
|
5336
5348
|
};
|
|
5337
5349
|
}
|
|
5338
5350
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5339
|
-
if (field.type === "password") return {
|
|
5340
|
-
...field,
|
|
5341
|
-
value: ""
|
|
5342
|
-
};
|
|
5343
5351
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5344
5352
|
return {
|
|
5345
5353
|
...field,
|
|
@@ -6723,6 +6731,21 @@ function method(input, output, options) {
|
|
|
6723
6731
|
timeoutMs: options?.timeoutMs
|
|
6724
6732
|
};
|
|
6725
6733
|
}
|
|
6734
|
+
/**
|
|
6735
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6736
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6737
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6738
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6739
|
+
*/
|
|
6740
|
+
function systemMethod(input, output, options) {
|
|
6741
|
+
return {
|
|
6742
|
+
...method(input, output, options),
|
|
6743
|
+
systemOnly: true
|
|
6744
|
+
};
|
|
6745
|
+
}
|
|
6746
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6747
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6748
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6726
6749
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6727
6750
|
var VersionOutputSchema = object({ version: string() });
|
|
6728
6751
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6892,6 +6915,36 @@ var ModelFormatsSchema = object({
|
|
|
6892
6915
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6893
6916
|
pt: ModelFormatEntrySchema.optional()
|
|
6894
6917
|
});
|
|
6918
|
+
/**
|
|
6919
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6920
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6921
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6922
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6923
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6924
|
+
* to an `id`.
|
|
6925
|
+
*/
|
|
6926
|
+
var ModelVariantGroupSchema = object({
|
|
6927
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6928
|
+
family: string(),
|
|
6929
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6930
|
+
tier: string(),
|
|
6931
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6932
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6933
|
+
/**
|
|
6934
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6935
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6936
|
+
* future performance variants plug into.
|
|
6937
|
+
*/
|
|
6938
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6939
|
+
/**
|
|
6940
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6941
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6942
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6943
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6944
|
+
* the group so the selector can offer it as a variant axis.
|
|
6945
|
+
*/
|
|
6946
|
+
resolution: number().int().positive().optional()
|
|
6947
|
+
});
|
|
6895
6948
|
var ModelCatalogEntrySchema = object({
|
|
6896
6949
|
id: string(),
|
|
6897
6950
|
name: string(),
|
|
@@ -6921,7 +6974,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6921
6974
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6922
6975
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6923
6976
|
*/
|
|
6924
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
6977
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
6978
|
+
/**
|
|
6979
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
6980
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
6981
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
6982
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
6983
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
6984
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
6985
|
+
* an explicit legacy id that has a build for the node's format.
|
|
6986
|
+
*/
|
|
6987
|
+
legacy: boolean().optional(),
|
|
6988
|
+
/**
|
|
6989
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
6990
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
6991
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
6992
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
6993
|
+
*/
|
|
6994
|
+
metrics: object({
|
|
6995
|
+
map50: number().optional(),
|
|
6996
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
6997
|
+
}).optional(),
|
|
6998
|
+
/**
|
|
6999
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7000
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7001
|
+
* the retraining addon and any future commercial distribution.
|
|
7002
|
+
*/
|
|
7003
|
+
license: string().optional(),
|
|
7004
|
+
/**
|
|
7005
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7006
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7007
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7008
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7009
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7010
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7011
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7012
|
+
*/
|
|
7013
|
+
group: ModelVariantGroupSchema.optional()
|
|
6925
7014
|
});
|
|
6926
7015
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6927
7016
|
format: literal("openvino"),
|
|
@@ -6982,8 +7071,8 @@ var RecordingModeSchema = _enum([
|
|
|
6982
7071
|
"onAudioThreshold"
|
|
6983
7072
|
]);
|
|
6984
7073
|
/**
|
|
6985
|
-
* First-class, authoritative per-camera storage mode — the
|
|
6986
|
-
* reads directly (never inferred from `rules`):
|
|
7074
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7075
|
+
* UI reads directly (never inferred from `rules`):
|
|
6987
7076
|
* - `off` — not recording.
|
|
6988
7077
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
6989
7078
|
* with pre/post-buffer.
|
|
@@ -8631,26 +8720,13 @@ DeviceType.Light, method(object({
|
|
|
8631
8720
|
percentage: number().min(0).max(100),
|
|
8632
8721
|
lastChangedAt: number()
|
|
8633
8722
|
});
|
|
8723
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8634
8724
|
var StreamFormatSchema = _enum([
|
|
8635
8725
|
"webrtc",
|
|
8636
8726
|
"hls",
|
|
8637
8727
|
"mjpeg",
|
|
8638
8728
|
"rtsp"
|
|
8639
8729
|
]);
|
|
8640
|
-
var StreamInfoSchema = object({
|
|
8641
|
-
streamId: string(),
|
|
8642
|
-
format: StreamFormatSchema,
|
|
8643
|
-
url: string().nullable(),
|
|
8644
|
-
active: boolean()
|
|
8645
|
-
});
|
|
8646
|
-
method(object({
|
|
8647
|
-
streamId: string(),
|
|
8648
|
-
sourceUrl: string(),
|
|
8649
|
-
codec: string().optional()
|
|
8650
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8651
|
-
streamId: string(),
|
|
8652
|
-
format: StreamFormatSchema
|
|
8653
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8654
8730
|
var RtspRestreamEntrySchema = object({
|
|
8655
8731
|
brokerId: string(),
|
|
8656
8732
|
url: string(),
|
|
@@ -9315,7 +9391,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9315
9391
|
})),
|
|
9316
9392
|
lastChangedAt: number()
|
|
9317
9393
|
});
|
|
9318
|
-
|
|
9394
|
+
Object.values(DeviceType), method(object({
|
|
9319
9395
|
deviceId: number().int().nonnegative(),
|
|
9320
9396
|
key: string().min(1)
|
|
9321
9397
|
}), _void(), {
|
|
@@ -10230,7 +10306,7 @@ var BoundingBoxSchema = object({
|
|
|
10230
10306
|
w: number(),
|
|
10231
10307
|
h: number()
|
|
10232
10308
|
});
|
|
10233
|
-
|
|
10309
|
+
object({
|
|
10234
10310
|
class: string(),
|
|
10235
10311
|
originalClass: string(),
|
|
10236
10312
|
score: number(),
|
|
@@ -10365,7 +10441,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10365
10441
|
enabled: boolean(),
|
|
10366
10442
|
modelId: string(),
|
|
10367
10443
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10368
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10369
10444
|
group: string().optional(),
|
|
10370
10445
|
settings: record(string(), unknown()).optional()
|
|
10371
10446
|
}));
|
|
@@ -10390,7 +10465,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10390
10465
|
formats: record(string(), object({
|
|
10391
10466
|
downloaded: boolean(),
|
|
10392
10467
|
sizeMB: number()
|
|
10393
|
-
}))
|
|
10468
|
+
})),
|
|
10469
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10470
|
+
legacy: boolean().optional()
|
|
10394
10471
|
});
|
|
10395
10472
|
var ConfigFieldBridge = custom();
|
|
10396
10473
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10404,6 +10481,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10404
10481
|
defaultModelId: string(),
|
|
10405
10482
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10406
10483
|
enabledByDefault: boolean().optional(),
|
|
10484
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10407
10485
|
defaultConfidence: number(),
|
|
10408
10486
|
group: string().optional(),
|
|
10409
10487
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10420,11 +10498,6 @@ var PipelineSchemaSchema = object({
|
|
|
10420
10498
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10421
10499
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10422
10500
|
});
|
|
10423
|
-
var DetectorOutputSchema = object({
|
|
10424
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10425
|
-
inferenceMs: number(),
|
|
10426
|
-
modelId: string()
|
|
10427
|
-
});
|
|
10428
10501
|
var EngineProvisioningSchema = object({
|
|
10429
10502
|
runtimeId: _enum([
|
|
10430
10503
|
"onnx",
|
|
@@ -10441,15 +10514,42 @@ var EngineProvisioningSchema = object({
|
|
|
10441
10514
|
]),
|
|
10442
10515
|
progress: number().optional(),
|
|
10443
10516
|
error: string().optional(),
|
|
10444
|
-
nextRetryAt: number().optional()
|
|
10517
|
+
nextRetryAt: number().optional(),
|
|
10518
|
+
/**
|
|
10519
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10520
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10521
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10522
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10523
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10524
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10525
|
+
*/
|
|
10526
|
+
configIssues: array(string()).optional()
|
|
10445
10527
|
});
|
|
10446
10528
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10447
10529
|
addonId: string(),
|
|
10448
|
-
modelId: string(),
|
|
10530
|
+
modelId: string().optional(),
|
|
10449
10531
|
enabled: boolean().default(true),
|
|
10450
10532
|
children: array(PipelineStepInputSchema).optional(),
|
|
10451
10533
|
settings: record(string(), unknown()).optional()
|
|
10452
10534
|
}));
|
|
10535
|
+
var ModelSubstitutionSchema = object({
|
|
10536
|
+
addonId: string(),
|
|
10537
|
+
chosen: string(),
|
|
10538
|
+
running: string(),
|
|
10539
|
+
format: string()
|
|
10540
|
+
});
|
|
10541
|
+
var PipelineValidationIssueSchema = object({
|
|
10542
|
+
addonId: string(),
|
|
10543
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10544
|
+
detail: string()
|
|
10545
|
+
});
|
|
10546
|
+
var PipelineValidationResultSchema = object({
|
|
10547
|
+
ok: boolean(),
|
|
10548
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10549
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10550
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10551
|
+
format: string()
|
|
10552
|
+
});
|
|
10453
10553
|
var ReferenceImageEntrySchema = object({
|
|
10454
10554
|
filename: string(),
|
|
10455
10555
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10520,7 +10620,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10520
10620
|
})) }), object({ success: literal(true) }), {
|
|
10521
10621
|
kind: "mutation",
|
|
10522
10622
|
auth: "admin"
|
|
10523
|
-
}), method(
|
|
10623
|
+
}), method(object({ nodeId: string() }), object({
|
|
10624
|
+
success: literal(true),
|
|
10625
|
+
clearedDevices: number()
|
|
10626
|
+
}), {
|
|
10627
|
+
kind: "mutation",
|
|
10628
|
+
auth: "admin"
|
|
10629
|
+
}), 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({
|
|
10524
10630
|
name: string(),
|
|
10525
10631
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10526
10632
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10537,10 +10643,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10537
10643
|
modelId: string(),
|
|
10538
10644
|
format: ModelFormatSchema$1
|
|
10539
10645
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10540
|
-
addonId: string(),
|
|
10541
|
-
frame: FrameInputSchema,
|
|
10542
|
-
config: record(string(), unknown()).optional()
|
|
10543
|
-
}), DetectorOutputSchema), method(object({
|
|
10544
10646
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10545
10647
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10546
10648
|
frame: FrameInputSchema.optional(),
|
|
@@ -10686,6 +10788,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10686
10788
|
auth: "admin"
|
|
10687
10789
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10688
10790
|
/**
|
|
10791
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10792
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10793
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10794
|
+
* dims — no native resolution to plumb.
|
|
10795
|
+
*/
|
|
10796
|
+
var NativeCropBboxSchema = object({
|
|
10797
|
+
x: number(),
|
|
10798
|
+
y: number(),
|
|
10799
|
+
w: number(),
|
|
10800
|
+
h: number()
|
|
10801
|
+
});
|
|
10802
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10803
|
+
var NativeCropResultSchema = object({
|
|
10804
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10805
|
+
bytes: _instanceof(Uint8Array),
|
|
10806
|
+
width: number().int().positive(),
|
|
10807
|
+
height: number().int().positive()
|
|
10808
|
+
});
|
|
10809
|
+
/**
|
|
10689
10810
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10690
10811
|
* by both the Zod data schema (validation + default fallback) and
|
|
10691
10812
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10780,6 +10901,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10780
10901
|
kind: literal("remote-restream"),
|
|
10781
10902
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10782
10903
|
ownerNodeId: string(),
|
|
10904
|
+
/**
|
|
10905
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10906
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10907
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10908
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10909
|
+
*/
|
|
10910
|
+
ownerReachableHost: string().optional(),
|
|
10783
10911
|
/** Operator override for the owner host the runner dials. */
|
|
10784
10912
|
hubHostnameOverride: string().optional()
|
|
10785
10913
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10788,13 +10916,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10788
10916
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10789
10917
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10790
10918
|
*
|
|
10791
|
-
* Stateless-pipeline model: the
|
|
10792
|
-
*
|
|
10793
|
-
*
|
|
10794
|
-
*
|
|
10795
|
-
*
|
|
10796
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10797
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10919
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10920
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10921
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10922
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10923
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10798
10924
|
*/
|
|
10799
10925
|
var RunnerCameraConfigSchema = object({
|
|
10800
10926
|
deviceId: number(),
|
|
@@ -10845,14 +10971,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10845
10971
|
*/
|
|
10846
10972
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10847
10973
|
pipelineEnabled: boolean().default(true),
|
|
10848
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10849
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10850
10974
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10851
10975
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10852
10976
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10853
10977
|
audio: object({
|
|
10854
|
-
|
|
10855
|
-
modelId: string(),
|
|
10978
|
+
modelId: string().optional(),
|
|
10856
10979
|
enabled: boolean()
|
|
10857
10980
|
}).nullable().optional(),
|
|
10858
10981
|
/**
|
|
@@ -10939,7 +11062,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10939
11062
|
avgInferenceTimeMs: number(),
|
|
10940
11063
|
queueDepth: number()
|
|
10941
11064
|
});
|
|
10942
|
-
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())
|
|
11065
|
+
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({
|
|
11066
|
+
handle: FrameHandleSchema,
|
|
11067
|
+
bbox: NativeCropBboxSchema,
|
|
11068
|
+
maxWidth: number().int().positive().optional()
|
|
11069
|
+
}), NativeCropResultSchema.nullable());
|
|
10943
11070
|
object({
|
|
10944
11071
|
detected: boolean(),
|
|
10945
11072
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12233,7 +12360,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12233
12360
|
icon: string(),
|
|
12234
12361
|
path: string(),
|
|
12235
12362
|
remoteName: string(),
|
|
12236
|
-
bundle: string()
|
|
12363
|
+
bundle: string(),
|
|
12364
|
+
section: string().optional(),
|
|
12365
|
+
sectionLabel: string().optional()
|
|
12237
12366
|
});
|
|
12238
12367
|
var AddonPageInfoSchema = object({
|
|
12239
12368
|
addonId: string(),
|
|
@@ -12273,7 +12402,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12273
12402
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12274
12403
|
* without a separate filesystem stat.
|
|
12275
12404
|
*/
|
|
12276
|
-
bundle: string()
|
|
12405
|
+
bundle: string(),
|
|
12406
|
+
/**
|
|
12407
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12408
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12409
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12410
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12411
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12412
|
+
* "Addon Pages" group.
|
|
12413
|
+
*/
|
|
12414
|
+
section: string().optional(),
|
|
12415
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12416
|
+
sectionLabel: string().optional()
|
|
12277
12417
|
});
|
|
12278
12418
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12279
12419
|
var AddonHttpRouteSchema = object({
|
|
@@ -12489,6 +12629,17 @@ var WidgetMetadataSchema = object({
|
|
|
12489
12629
|
deviceContext: boolean().default(false),
|
|
12490
12630
|
integrationContext: boolean().default(false)
|
|
12491
12631
|
}),
|
|
12632
|
+
/**
|
|
12633
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12634
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12635
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12636
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12637
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12638
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12639
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12640
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12641
|
+
*/
|
|
12642
|
+
preAuth: boolean().optional().default(false),
|
|
12492
12643
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12493
12644
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12494
12645
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12790,6 +12941,66 @@ method(object({
|
|
|
12790
12941
|
password: string()
|
|
12791
12942
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12792
12943
|
/**
|
|
12944
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12945
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12946
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12947
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12948
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12949
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12950
|
+
*
|
|
12951
|
+
* A contribution is a discriminated union on `kind`:
|
|
12952
|
+
*
|
|
12953
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12954
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12955
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12956
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12957
|
+
* login page needs NO change.
|
|
12958
|
+
*
|
|
12959
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12960
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12961
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12962
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12963
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
12964
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
12965
|
+
*
|
|
12966
|
+
* Every contribution carries a `stage`:
|
|
12967
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
12968
|
+
* magic-link buttons; a future usernameless passkey).
|
|
12969
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
12970
|
+
* returned `factors` (passkey-as-2FA today).
|
|
12971
|
+
*
|
|
12972
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
12973
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
12974
|
+
* tRPC router.
|
|
12975
|
+
*/
|
|
12976
|
+
/** When a login method renders in the two-phase login flow. */
|
|
12977
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
12978
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
12979
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
12980
|
+
kind: literal("redirect"),
|
|
12981
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
12982
|
+
id: string(),
|
|
12983
|
+
/** Operator-facing button label. */
|
|
12984
|
+
label: string(),
|
|
12985
|
+
/** lucide-react icon name. */
|
|
12986
|
+
icon: string().optional(),
|
|
12987
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
12988
|
+
startUrl: string(),
|
|
12989
|
+
stage: LoginStageEnum
|
|
12990
|
+
}), object({
|
|
12991
|
+
kind: literal("widget"),
|
|
12992
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
12993
|
+
id: string(),
|
|
12994
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
12995
|
+
addonId: string(),
|
|
12996
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
12997
|
+
bundle: string(),
|
|
12998
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
12999
|
+
remote: WidgetRemoteSchema,
|
|
13000
|
+
stage: LoginStageEnum
|
|
13001
|
+
})]);
|
|
13002
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13003
|
+
/**
|
|
12793
13004
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12794
13005
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12795
13006
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14910,7 +15121,17 @@ var TrackSchema = object({
|
|
|
14910
15121
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14911
15122
|
totalDistance: number(),
|
|
14912
15123
|
state: TrackStateSchema,
|
|
14913
|
-
active: boolean()
|
|
15124
|
+
active: boolean(),
|
|
15125
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15126
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15127
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15128
|
+
importance: number().optional(),
|
|
15129
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15130
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15131
|
+
bestEventId: string().optional(),
|
|
15132
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15133
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15134
|
+
importanceReason: string().optional()
|
|
14914
15135
|
});
|
|
14915
15136
|
var BaseEventFields = {
|
|
14916
15137
|
id: string(),
|
|
@@ -14975,8 +15196,18 @@ var ObjectEventSchema = object({
|
|
|
14975
15196
|
frameHeight: number().optional(),
|
|
14976
15197
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
14977
15198
|
mediaKey: string().optional(),
|
|
15199
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15200
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15201
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15202
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15203
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15204
|
+
keyFrameMediaKey: string().optional(),
|
|
14978
15205
|
/** Populated by B5 (recording playback URL for this event). */
|
|
14979
|
-
mediaUrl: string().optional()
|
|
15206
|
+
mediaUrl: string().optional(),
|
|
15207
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15208
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15209
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15210
|
+
importance: number().optional()
|
|
14980
15211
|
});
|
|
14981
15212
|
var AudioEventSchema = object({
|
|
14982
15213
|
...BaseEventFields,
|
|
@@ -15000,7 +15231,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15000
15231
|
"fullFrame",
|
|
15001
15232
|
"fullFrameBoxed",
|
|
15002
15233
|
"faceCrop",
|
|
15003
|
-
"plateCrop"
|
|
15234
|
+
"plateCrop",
|
|
15235
|
+
"keyFrame"
|
|
15004
15236
|
]);
|
|
15005
15237
|
var MediaFileSchema = object({
|
|
15006
15238
|
key: string(),
|
|
@@ -15021,6 +15253,32 @@ var DeviceEventQueryInput = object({
|
|
|
15021
15253
|
projection: _enum(["full", "slim"]).optional()
|
|
15022
15254
|
});
|
|
15023
15255
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15256
|
+
var KeyEventQueryInput = object({
|
|
15257
|
+
deviceId: number(),
|
|
15258
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15259
|
+
since: number(),
|
|
15260
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15261
|
+
until: number(),
|
|
15262
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15263
|
+
/** Drop tracks scoring below this importance. */
|
|
15264
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15265
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15266
|
+
classFilter: string().optional()
|
|
15267
|
+
});
|
|
15268
|
+
var KeyEventSchema = object({
|
|
15269
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15270
|
+
id: string(),
|
|
15271
|
+
trackId: string(),
|
|
15272
|
+
/** Track start time (firstSeen). */
|
|
15273
|
+
timestamp: number(),
|
|
15274
|
+
className: string(),
|
|
15275
|
+
label: string().optional(),
|
|
15276
|
+
importance: number(),
|
|
15277
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15278
|
+
bestEventId: string(),
|
|
15279
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15280
|
+
windowMs: number().optional()
|
|
15281
|
+
});
|
|
15024
15282
|
var TrackedDetectionSchema = object({
|
|
15025
15283
|
trackId: string(),
|
|
15026
15284
|
className: string(),
|
|
@@ -15050,7 +15308,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15050
15308
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15051
15309
|
kind: "mutation",
|
|
15052
15310
|
auth: "admin"
|
|
15053
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15311
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15054
15312
|
deviceId: number(),
|
|
15055
15313
|
since: number(),
|
|
15056
15314
|
until: number(),
|
|
@@ -15095,11 +15353,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15095
15353
|
timestamp: number()
|
|
15096
15354
|
});
|
|
15097
15355
|
var CameraPipelineConfigSchema = object({
|
|
15098
|
-
engine: PipelineEngineChoiceSchema,
|
|
15356
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15099
15357
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15100
15358
|
audio: object({
|
|
15101
|
-
engine: PipelineEngineChoiceSchema,
|
|
15102
|
-
modelId: string(),
|
|
15359
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15360
|
+
modelId: string().optional(),
|
|
15103
15361
|
enabled: boolean(),
|
|
15104
15362
|
settings: record(string(), unknown()).readonly().optional()
|
|
15105
15363
|
}).nullable().optional()
|
|
@@ -15114,7 +15372,7 @@ var PipelineTemplateSchema = object({
|
|
|
15114
15372
|
});
|
|
15115
15373
|
var AgentAddonConfigSchema = object({
|
|
15116
15374
|
enabled: boolean(),
|
|
15117
|
-
modelId: string(),
|
|
15375
|
+
modelId: string().optional(),
|
|
15118
15376
|
settings: record(string(), unknown()).readonly()
|
|
15119
15377
|
});
|
|
15120
15378
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15124,12 +15382,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15124
15382
|
detectWeight: number().positive().optional(),
|
|
15125
15383
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15126
15384
|
detect: boolean().optional(),
|
|
15127
|
-
/**
|
|
15385
|
+
/**
|
|
15386
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15387
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15388
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15389
|
+
* parse — no code reads it and no write path emits it.
|
|
15390
|
+
*/
|
|
15128
15391
|
decode: boolean().optional(),
|
|
15129
15392
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15130
15393
|
audio: boolean().optional(),
|
|
15131
15394
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15132
|
-
ingest: boolean().optional()
|
|
15395
|
+
ingest: boolean().optional(),
|
|
15396
|
+
/**
|
|
15397
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15398
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15399
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15400
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15401
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15402
|
+
*/
|
|
15403
|
+
reachableHost: string().optional()
|
|
15133
15404
|
});
|
|
15134
15405
|
var CameraPipelineForAgentSchema = object({
|
|
15135
15406
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15177,25 +15448,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15177
15448
|
assignedAt: number()
|
|
15178
15449
|
});
|
|
15179
15450
|
/**
|
|
15180
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15181
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15182
|
-
* → co-located with pipeline → capacity).
|
|
15183
|
-
*/
|
|
15184
|
-
var DecoderAssignmentSchema = object({
|
|
15185
|
-
deviceId: number(),
|
|
15186
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15187
|
-
decoderNodeId: string(),
|
|
15188
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15189
|
-
pinned: boolean(),
|
|
15190
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15191
|
-
reason: _enum([
|
|
15192
|
-
"manual",
|
|
15193
|
-
"co-located",
|
|
15194
|
-
"capacity",
|
|
15195
|
-
"hardware-affinity"
|
|
15196
|
-
])
|
|
15197
|
-
});
|
|
15198
|
-
/**
|
|
15199
15451
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15200
15452
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15201
15453
|
*/
|
|
@@ -15235,6 +15487,15 @@ var GlobalMetricsSchema = object({
|
|
|
15235
15487
|
* capability providers.
|
|
15236
15488
|
*/
|
|
15237
15489
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15490
|
+
/**
|
|
15491
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15492
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15493
|
+
*/
|
|
15494
|
+
var IngestOwnerSchema = object({
|
|
15495
|
+
ownerNodeId: string(),
|
|
15496
|
+
reachableHost: string().optional(),
|
|
15497
|
+
configIssue: string().optional()
|
|
15498
|
+
});
|
|
15238
15499
|
/** Source block — always present; derives from the stream catalog. */
|
|
15239
15500
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15240
15501
|
camStreamId: string(),
|
|
@@ -15249,6 +15510,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15249
15510
|
detectionNodeId: string().nullable(),
|
|
15250
15511
|
decoderNodeId: string().nullable(),
|
|
15251
15512
|
audioNodeId: string().nullable(),
|
|
15513
|
+
/**
|
|
15514
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15515
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15516
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15517
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15518
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15519
|
+
*/
|
|
15520
|
+
sourceNodeId: string().nullable(),
|
|
15252
15521
|
pinned: object({
|
|
15253
15522
|
detection: boolean(),
|
|
15254
15523
|
decoder: boolean(),
|
|
@@ -15381,16 +15650,7 @@ method(object({
|
|
|
15381
15650
|
}), object({ success: literal(true) }), {
|
|
15382
15651
|
kind: "mutation",
|
|
15383
15652
|
auth: "admin"
|
|
15384
|
-
}), method(object({
|
|
15385
|
-
deviceId: number(),
|
|
15386
|
-
nodeId: string()
|
|
15387
|
-
}), _void(), {
|
|
15388
|
-
kind: "mutation",
|
|
15389
|
-
auth: "admin"
|
|
15390
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15391
|
-
kind: "mutation",
|
|
15392
|
-
auth: "admin"
|
|
15393
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15653
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15394
15654
|
deviceId: number(),
|
|
15395
15655
|
nodeId: string()
|
|
15396
15656
|
}), object({ success: literal(true) }), {
|
|
@@ -15411,10 +15671,7 @@ method(object({
|
|
|
15411
15671
|
nodeId: string(),
|
|
15412
15672
|
pinned: boolean(),
|
|
15413
15673
|
assignedAt: number()
|
|
15414
|
-
}))), method(object({
|
|
15415
|
-
deviceId: number(),
|
|
15416
|
-
pipelineNodeId: string().optional()
|
|
15417
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15674
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15418
15675
|
nodeId: string(),
|
|
15419
15676
|
settings: AgentPipelineSettingsSchema
|
|
15420
15677
|
})).readonly()), method(object({
|
|
@@ -15444,12 +15701,26 @@ method(object({
|
|
|
15444
15701
|
}), method(object({
|
|
15445
15702
|
agentNodeId: string(),
|
|
15446
15703
|
detect: boolean().nullable().optional(),
|
|
15447
|
-
decode: boolean().nullable().optional(),
|
|
15448
15704
|
audio: boolean().nullable().optional(),
|
|
15449
15705
|
ingest: boolean().nullable().optional()
|
|
15450
15706
|
}), object({ success: literal(true) }), {
|
|
15451
15707
|
kind: "mutation",
|
|
15452
15708
|
auth: "admin"
|
|
15709
|
+
}), method(object({
|
|
15710
|
+
agentNodeId: string(),
|
|
15711
|
+
reachableHost: string().nullable()
|
|
15712
|
+
}), object({ success: literal(true) }), {
|
|
15713
|
+
kind: "mutation",
|
|
15714
|
+
auth: "admin"
|
|
15715
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15716
|
+
success: literal(true),
|
|
15717
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15718
|
+
effectiveModelId: string().nullable(),
|
|
15719
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15720
|
+
clearedCameraOverrides: number()
|
|
15721
|
+
}), {
|
|
15722
|
+
kind: "mutation",
|
|
15723
|
+
auth: "admin"
|
|
15453
15724
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15454
15725
|
deviceId: number(),
|
|
15455
15726
|
addonId: string(),
|
|
@@ -15494,22 +15765,131 @@ method(object({
|
|
|
15494
15765
|
kind: "mutation",
|
|
15495
15766
|
auth: "admin"
|
|
15496
15767
|
});
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15768
|
+
/**
|
|
15769
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15770
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15771
|
+
* agents).
|
|
15772
|
+
*
|
|
15773
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15774
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15775
|
+
* version describes the node. Updates install into
|
|
15776
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15777
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15778
|
+
*
|
|
15779
|
+
* Providers:
|
|
15780
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15781
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15782
|
+
* unpinned calls.
|
|
15783
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15784
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15785
|
+
* `$hub.registerNode` manifest.
|
|
15786
|
+
*
|
|
15787
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15788
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15789
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15790
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15791
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15792
|
+
*
|
|
15793
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15794
|
+
*/
|
|
15795
|
+
/**
|
|
15796
|
+
* Where the running hub's code was loaded from:
|
|
15797
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15798
|
+
* plain resolution and runtime updates are refused.
|
|
15799
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15800
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15801
|
+
*/
|
|
15802
|
+
var ServerBootModeSchema = _enum([
|
|
15803
|
+
"workspace",
|
|
15804
|
+
"baked",
|
|
15805
|
+
"data-root"
|
|
15806
|
+
]);
|
|
15807
|
+
/**
|
|
15808
|
+
* Update lifecycle state:
|
|
15809
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15810
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15811
|
+
* restarted onto it (still running the OLD version).
|
|
15812
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15813
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15814
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15815
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15816
|
+
*/
|
|
15817
|
+
var ServerUpdateStateSchema = _enum([
|
|
15818
|
+
"idle",
|
|
15819
|
+
"checking",
|
|
15820
|
+
"staging",
|
|
15821
|
+
"pending-restart",
|
|
15822
|
+
"awaiting-confirmation"
|
|
15823
|
+
]);
|
|
15824
|
+
var ServerRollbackInfoSchema = object({
|
|
15825
|
+
/** The version that failed (or was manually rolled back). */
|
|
15826
|
+
fromVersion: string(),
|
|
15827
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15828
|
+
toVersion: string().nullable(),
|
|
15829
|
+
atMs: number(),
|
|
15830
|
+
reason: string()
|
|
15503
15831
|
});
|
|
15504
|
-
var
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15832
|
+
var ServerPackageStatusSchema = object({
|
|
15833
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15834
|
+
packageName: string(),
|
|
15835
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15836
|
+
runningVersion: string().nullable(),
|
|
15837
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15838
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15839
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15840
|
+
activeVersion: string().nullable(),
|
|
15841
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15842
|
+
previousVersion: string().nullable(),
|
|
15843
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15844
|
+
seedVersion: string().nullable(),
|
|
15845
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15846
|
+
latestVersion: string().nullable(),
|
|
15847
|
+
updateAvailable: boolean(),
|
|
15848
|
+
bootMode: ServerBootModeSchema,
|
|
15849
|
+
updateState: ServerUpdateStateSchema,
|
|
15850
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15851
|
+
pendingVersion: string().nullable(),
|
|
15852
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15853
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15854
|
+
/**
|
|
15855
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15856
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15857
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15858
|
+
*/
|
|
15859
|
+
stateFileCorrupt: boolean(),
|
|
15860
|
+
lastCheckedAtMs: number().nullable()
|
|
15861
|
+
});
|
|
15862
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15863
|
+
packageName: string(),
|
|
15864
|
+
runningVersion: string().nullable(),
|
|
15865
|
+
latestVersion: string().nullable(),
|
|
15866
|
+
updateAvailable: boolean(),
|
|
15867
|
+
checkedAtMs: number(),
|
|
15868
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15869
|
+
error: string().nullable()
|
|
15870
|
+
});
|
|
15871
|
+
var ServerUpdateActionResultSchema = object({
|
|
15872
|
+
accepted: boolean(),
|
|
15873
|
+
targetVersion: string().nullable(),
|
|
15874
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15875
|
+
restarting: boolean(),
|
|
15876
|
+
message: string()
|
|
15877
|
+
});
|
|
15878
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15879
|
+
kind: "mutation",
|
|
15880
|
+
auth: "admin"
|
|
15881
|
+
}), method(object({
|
|
15882
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15883
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15884
|
+
kind: "mutation",
|
|
15885
|
+
auth: "admin"
|
|
15886
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15887
|
+
kind: "mutation",
|
|
15888
|
+
auth: "admin"
|
|
15889
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15890
|
+
kind: "mutation",
|
|
15891
|
+
auth: "admin"
|
|
15508
15892
|
});
|
|
15509
|
-
method(object({
|
|
15510
|
-
deviceId: number(),
|
|
15511
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15512
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15513
15893
|
/**
|
|
15514
15894
|
* Query filter for settings-store collections.
|
|
15515
15895
|
*/
|
|
@@ -15662,9 +16042,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15662
16042
|
/**
|
|
15663
16043
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15664
16044
|
*
|
|
15665
|
-
*
|
|
15666
|
-
*
|
|
15667
|
-
*
|
|
16045
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16046
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16047
|
+
* prebuffer fallback.
|
|
15668
16048
|
*/
|
|
15669
16049
|
var SnapshotImageSchema = object({
|
|
15670
16050
|
base64: string(),
|
|
@@ -15695,11 +16075,12 @@ DeviceType.Camera, method(object({
|
|
|
15695
16075
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15696
16076
|
kind: "mutation",
|
|
15697
16077
|
auth: "admin"
|
|
15698
|
-
})
|
|
15699
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16078
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15700
16079
|
deviceId: number(),
|
|
15701
|
-
|
|
15702
|
-
|
|
16080
|
+
lastCapturedAt: number().nullable(),
|
|
16081
|
+
cacheAgeMs: number().nullable(),
|
|
16082
|
+
etag: string().nullable()
|
|
16083
|
+
})));
|
|
15703
16084
|
/**
|
|
15704
16085
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15705
16086
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -15950,10 +16331,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
15950
16331
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
15951
16332
|
* the assertion, bumps the credential counter, returns ok.
|
|
15952
16333
|
*
|
|
16334
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16335
|
+
* passkey IS the primary factor, no password leg:
|
|
16336
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16337
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16338
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16339
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16340
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16341
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16342
|
+
* resolves the credential by the response's credential id,
|
|
16343
|
+
* verifies the assertion against the stored challenge + that
|
|
16344
|
+
* credential's public key/counter, and returns the OWNING
|
|
16345
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16346
|
+
*
|
|
15953
16347
|
* 3. Management:
|
|
15954
16348
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
15955
16349
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
15956
16350
|
*
|
|
16351
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16352
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16353
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16354
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16355
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16356
|
+
* row ⇒ `enabled: false`).
|
|
16357
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16358
|
+
* the providing addon beside its credentials.
|
|
16359
|
+
*
|
|
15957
16360
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
15958
16361
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
15959
16362
|
* the cap to non-admins.
|
|
@@ -15996,6 +16399,17 @@ method(object({
|
|
|
15996
16399
|
}), object({ verified: boolean() }), {
|
|
15997
16400
|
kind: "mutation",
|
|
15998
16401
|
access: "view"
|
|
16402
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16403
|
+
kind: "mutation",
|
|
16404
|
+
access: "view"
|
|
16405
|
+
}), method(object({
|
|
16406
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16407
|
+
response: record(string(), unknown()) }), object({
|
|
16408
|
+
verified: boolean(),
|
|
16409
|
+
userId: string().nullable()
|
|
16410
|
+
}), {
|
|
16411
|
+
kind: "mutation",
|
|
16412
|
+
access: "view"
|
|
15999
16413
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16000
16414
|
userId: string(),
|
|
16001
16415
|
credentialId: string()
|
|
@@ -16003,6 +16417,13 @@ method(object({
|
|
|
16003
16417
|
kind: "mutation",
|
|
16004
16418
|
auth: "admin",
|
|
16005
16419
|
access: "delete"
|
|
16420
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16421
|
+
userId: string(),
|
|
16422
|
+
enabled: boolean()
|
|
16423
|
+
}), object({ success: literal(true) }), {
|
|
16424
|
+
kind: "mutation",
|
|
16425
|
+
auth: "admin",
|
|
16426
|
+
access: "create"
|
|
16006
16427
|
});
|
|
16007
16428
|
/**
|
|
16008
16429
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16060,9 +16481,10 @@ method(object({
|
|
|
16060
16481
|
auth: "admin"
|
|
16061
16482
|
});
|
|
16062
16483
|
/**
|
|
16063
|
-
* Optional client-side hints sent at session creation to help the
|
|
16064
|
-
*
|
|
16065
|
-
*
|
|
16484
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16485
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16486
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16487
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16066
16488
|
*/
|
|
16067
16489
|
var webrtcClientHintsSchema = object({
|
|
16068
16490
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16073,22 +16495,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16073
16495
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16074
16496
|
prefersTier: string().optional()
|
|
16075
16497
|
}).partial();
|
|
16076
|
-
method(object({
|
|
16077
|
-
streamId: string(),
|
|
16078
|
-
sdpOffer: string()
|
|
16079
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16080
|
-
streamId: string(),
|
|
16081
|
-
codec: string()
|
|
16082
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16083
|
-
streamId: string(),
|
|
16084
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16085
|
-
}), object({
|
|
16086
|
-
sessionId: string(),
|
|
16087
|
-
sdpOffer: string()
|
|
16088
|
-
}), { kind: "mutation" }), method(object({
|
|
16089
|
-
sessionId: string(),
|
|
16090
|
-
sdpAnswer: string()
|
|
16091
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16092
16498
|
/**
|
|
16093
16499
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16094
16500
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16819,7 +17225,17 @@ var FaceInfoSchema = object({
|
|
|
16819
17225
|
recognizedIdentityId: string().optional(),
|
|
16820
17226
|
identityName: string().optional(),
|
|
16821
17227
|
assigned: boolean(),
|
|
16822
|
-
base64: string().optional()
|
|
17228
|
+
base64: string().optional(),
|
|
17229
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17230
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17231
|
+
* legacy rows written before design B. */
|
|
17232
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17233
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17234
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17235
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17236
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17237
|
+
* back to the inline `base64` face crop. */
|
|
17238
|
+
keyFrameMediaKey: string().optional()
|
|
16823
17239
|
});
|
|
16824
17240
|
var FaceFilterEnum = _enum([
|
|
16825
17241
|
"unassigned",
|
|
@@ -17577,6 +17993,16 @@ var TopologyCategorySchema = object({
|
|
|
17577
17993
|
healthy: number(),
|
|
17578
17994
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17579
17995
|
});
|
|
17996
|
+
/**
|
|
17997
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17998
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17999
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18000
|
+
* rows and pre-phase-2 nodes report none.
|
|
18001
|
+
*/
|
|
18002
|
+
var TopologyRootPackageSchema = object({
|
|
18003
|
+
name: string(),
|
|
18004
|
+
version: string()
|
|
18005
|
+
});
|
|
17580
18006
|
var TopologyNodeSchema = object({
|
|
17581
18007
|
id: string(),
|
|
17582
18008
|
name: string(),
|
|
@@ -17600,7 +18026,8 @@ var TopologyNodeSchema = object({
|
|
|
17600
18026
|
status: string()
|
|
17601
18027
|
})).readonly(),
|
|
17602
18028
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17603
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18029
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18030
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17604
18031
|
});
|
|
17605
18032
|
var CapUsageEdgeSchema = object({
|
|
17606
18033
|
callerAddonId: string(),
|
|
@@ -20400,6 +20827,12 @@ Object.freeze({
|
|
|
20400
20827
|
addonId: null,
|
|
20401
20828
|
access: "create"
|
|
20402
20829
|
},
|
|
20830
|
+
"loginMethod.getLoginMethods": {
|
|
20831
|
+
capName: "login-method",
|
|
20832
|
+
capScope: "system",
|
|
20833
|
+
addonId: null,
|
|
20834
|
+
access: "view"
|
|
20835
|
+
},
|
|
20403
20836
|
"mediaPlayer.next": {
|
|
20404
20837
|
capName: "media-player",
|
|
20405
20838
|
capScope: "device",
|
|
@@ -20982,6 +21415,12 @@ Object.freeze({
|
|
|
20982
21415
|
addonId: null,
|
|
20983
21416
|
access: "view"
|
|
20984
21417
|
},
|
|
21418
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21419
|
+
capName: "pipeline-analytics",
|
|
21420
|
+
capScope: "device",
|
|
21421
|
+
addonId: null,
|
|
21422
|
+
access: "view"
|
|
21423
|
+
},
|
|
20985
21424
|
"pipelineAnalytics.getMotionEvents": {
|
|
20986
21425
|
capName: "pipeline-analytics",
|
|
20987
21426
|
capScope: "device",
|
|
@@ -21030,23 +21469,23 @@ Object.freeze({
|
|
|
21030
21469
|
addonId: null,
|
|
21031
21470
|
access: "create"
|
|
21032
21471
|
},
|
|
21033
|
-
"pipelineExecutor.
|
|
21472
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21034
21473
|
capName: "pipeline-executor",
|
|
21035
21474
|
capScope: "system",
|
|
21036
21475
|
addonId: null,
|
|
21037
21476
|
access: "delete"
|
|
21038
21477
|
},
|
|
21039
|
-
"pipelineExecutor.
|
|
21478
|
+
"pipelineExecutor.deleteModel": {
|
|
21040
21479
|
capName: "pipeline-executor",
|
|
21041
21480
|
capScope: "system",
|
|
21042
21481
|
addonId: null,
|
|
21043
21482
|
access: "delete"
|
|
21044
21483
|
},
|
|
21045
|
-
"pipelineExecutor.
|
|
21484
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21046
21485
|
capName: "pipeline-executor",
|
|
21047
21486
|
capScope: "system",
|
|
21048
21487
|
addonId: null,
|
|
21049
|
-
access: "
|
|
21488
|
+
access: "delete"
|
|
21050
21489
|
},
|
|
21051
21490
|
"pipelineExecutor.downloadModel": {
|
|
21052
21491
|
capName: "pipeline-executor",
|
|
@@ -21240,13 +21679,13 @@ Object.freeze({
|
|
|
21240
21679
|
addonId: null,
|
|
21241
21680
|
access: "create"
|
|
21242
21681
|
},
|
|
21243
|
-
"
|
|
21244
|
-
capName: "pipeline-
|
|
21682
|
+
"pipelineExecutor.validatePipeline": {
|
|
21683
|
+
capName: "pipeline-executor",
|
|
21245
21684
|
capScope: "system",
|
|
21246
21685
|
addonId: null,
|
|
21247
|
-
access: "
|
|
21686
|
+
access: "view"
|
|
21248
21687
|
},
|
|
21249
|
-
"pipelineOrchestrator.
|
|
21688
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21250
21689
|
capName: "pipeline-orchestrator",
|
|
21251
21690
|
capScope: "system",
|
|
21252
21691
|
addonId: null,
|
|
@@ -21330,19 +21769,13 @@ Object.freeze({
|
|
|
21330
21769
|
addonId: null,
|
|
21331
21770
|
access: "view"
|
|
21332
21771
|
},
|
|
21333
|
-
"pipelineOrchestrator.
|
|
21334
|
-
capName: "pipeline-orchestrator",
|
|
21335
|
-
capScope: "system",
|
|
21336
|
-
addonId: null,
|
|
21337
|
-
access: "view"
|
|
21338
|
-
},
|
|
21339
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21772
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21340
21773
|
capName: "pipeline-orchestrator",
|
|
21341
21774
|
capScope: "system",
|
|
21342
21775
|
addonId: null,
|
|
21343
21776
|
access: "view"
|
|
21344
21777
|
},
|
|
21345
|
-
"pipelineOrchestrator.
|
|
21778
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21346
21779
|
capName: "pipeline-orchestrator",
|
|
21347
21780
|
capScope: "system",
|
|
21348
21781
|
addonId: null,
|
|
@@ -21384,6 +21817,12 @@ Object.freeze({
|
|
|
21384
21817
|
addonId: null,
|
|
21385
21818
|
access: "delete"
|
|
21386
21819
|
},
|
|
21820
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21821
|
+
capName: "pipeline-orchestrator",
|
|
21822
|
+
capScope: "system",
|
|
21823
|
+
addonId: null,
|
|
21824
|
+
access: "delete"
|
|
21825
|
+
},
|
|
21387
21826
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21388
21827
|
capName: "pipeline-orchestrator",
|
|
21389
21828
|
capScope: "system",
|
|
@@ -21420,37 +21859,37 @@ Object.freeze({
|
|
|
21420
21859
|
addonId: null,
|
|
21421
21860
|
access: "create"
|
|
21422
21861
|
},
|
|
21423
|
-
"pipelineOrchestrator.
|
|
21862
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21424
21863
|
capName: "pipeline-orchestrator",
|
|
21425
21864
|
capScope: "system",
|
|
21426
21865
|
addonId: null,
|
|
21427
21866
|
access: "create"
|
|
21428
21867
|
},
|
|
21429
|
-
"pipelineOrchestrator.
|
|
21868
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21430
21869
|
capName: "pipeline-orchestrator",
|
|
21431
21870
|
capScope: "system",
|
|
21432
21871
|
addonId: null,
|
|
21433
21872
|
access: "create"
|
|
21434
21873
|
},
|
|
21435
|
-
"pipelineOrchestrator.
|
|
21874
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21436
21875
|
capName: "pipeline-orchestrator",
|
|
21437
21876
|
capScope: "system",
|
|
21438
21877
|
addonId: null,
|
|
21439
21878
|
access: "create"
|
|
21440
21879
|
},
|
|
21441
|
-
"pipelineOrchestrator.
|
|
21880
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21442
21881
|
capName: "pipeline-orchestrator",
|
|
21443
21882
|
capScope: "system",
|
|
21444
21883
|
addonId: null,
|
|
21445
21884
|
access: "create"
|
|
21446
21885
|
},
|
|
21447
|
-
"pipelineOrchestrator.
|
|
21886
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21448
21887
|
capName: "pipeline-orchestrator",
|
|
21449
21888
|
capScope: "system",
|
|
21450
21889
|
addonId: null,
|
|
21451
21890
|
access: "create"
|
|
21452
21891
|
},
|
|
21453
|
-
"pipelineOrchestrator.
|
|
21892
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21454
21893
|
capName: "pipeline-orchestrator",
|
|
21455
21894
|
capScope: "system",
|
|
21456
21895
|
addonId: null,
|
|
@@ -21510,6 +21949,12 @@ Object.freeze({
|
|
|
21510
21949
|
addonId: null,
|
|
21511
21950
|
access: "view"
|
|
21512
21951
|
},
|
|
21952
|
+
"pipelineRunner.getNativeCrop": {
|
|
21953
|
+
capName: "pipeline-runner",
|
|
21954
|
+
capScope: "system",
|
|
21955
|
+
addonId: null,
|
|
21956
|
+
access: "view"
|
|
21957
|
+
},
|
|
21513
21958
|
"pipelineRunner.reportMotion": {
|
|
21514
21959
|
capName: "pipeline-runner",
|
|
21515
21960
|
capScope: "system",
|
|
@@ -21750,33 +22195,45 @@ Object.freeze({
|
|
|
21750
22195
|
addonId: null,
|
|
21751
22196
|
access: "create"
|
|
21752
22197
|
},
|
|
21753
|
-
"
|
|
21754
|
-
capName: "
|
|
22198
|
+
"scriptRunner.run": {
|
|
22199
|
+
capName: "script-runner",
|
|
22200
|
+
capScope: "device",
|
|
22201
|
+
addonId: null,
|
|
22202
|
+
access: "create"
|
|
22203
|
+
},
|
|
22204
|
+
"scriptRunner.stop": {
|
|
22205
|
+
capName: "script-runner",
|
|
22206
|
+
capScope: "device",
|
|
22207
|
+
addonId: null,
|
|
22208
|
+
access: "create"
|
|
22209
|
+
},
|
|
22210
|
+
"serverManagement.applyServerUpdate": {
|
|
22211
|
+
capName: "server-management",
|
|
21755
22212
|
capScope: "system",
|
|
21756
22213
|
addonId: null,
|
|
21757
|
-
access: "
|
|
22214
|
+
access: "create"
|
|
21758
22215
|
},
|
|
21759
|
-
"
|
|
21760
|
-
capName: "
|
|
22216
|
+
"serverManagement.checkServerUpdate": {
|
|
22217
|
+
capName: "server-management",
|
|
21761
22218
|
capScope: "system",
|
|
21762
22219
|
addonId: null,
|
|
21763
22220
|
access: "create"
|
|
21764
22221
|
},
|
|
21765
|
-
"
|
|
21766
|
-
capName: "
|
|
22222
|
+
"serverManagement.getServerPackageStatus": {
|
|
22223
|
+
capName: "server-management",
|
|
21767
22224
|
capScope: "system",
|
|
21768
22225
|
addonId: null,
|
|
21769
|
-
access: "
|
|
22226
|
+
access: "view"
|
|
21770
22227
|
},
|
|
21771
|
-
"
|
|
21772
|
-
capName: "
|
|
21773
|
-
capScope: "
|
|
22228
|
+
"serverManagement.restartServer": {
|
|
22229
|
+
capName: "server-management",
|
|
22230
|
+
capScope: "system",
|
|
21774
22231
|
addonId: null,
|
|
21775
22232
|
access: "create"
|
|
21776
22233
|
},
|
|
21777
|
-
"
|
|
21778
|
-
capName: "
|
|
21779
|
-
capScope: "
|
|
22234
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22235
|
+
capName: "server-management",
|
|
22236
|
+
capScope: "system",
|
|
21780
22237
|
addonId: null,
|
|
21781
22238
|
access: "create"
|
|
21782
22239
|
},
|
|
@@ -21864,23 +22321,17 @@ Object.freeze({
|
|
|
21864
22321
|
addonId: null,
|
|
21865
22322
|
access: "view"
|
|
21866
22323
|
},
|
|
21867
|
-
"snapshot.
|
|
22324
|
+
"snapshot.getSnapshotOverview": {
|
|
21868
22325
|
capName: "snapshot",
|
|
21869
22326
|
capScope: "device",
|
|
21870
22327
|
addonId: null,
|
|
21871
|
-
access: "create"
|
|
21872
|
-
},
|
|
21873
|
-
"snapshotProvider.getSnapshot": {
|
|
21874
|
-
capName: "snapshot-provider",
|
|
21875
|
-
capScope: "system",
|
|
21876
|
-
addonId: null,
|
|
21877
22328
|
access: "view"
|
|
21878
22329
|
},
|
|
21879
|
-
"
|
|
21880
|
-
capName: "snapshot
|
|
21881
|
-
capScope: "
|
|
22330
|
+
"snapshot.invalidateCache": {
|
|
22331
|
+
capName: "snapshot",
|
|
22332
|
+
capScope: "device",
|
|
21882
22333
|
addonId: null,
|
|
21883
|
-
access: "
|
|
22334
|
+
access: "create"
|
|
21884
22335
|
},
|
|
21885
22336
|
"ssoBridge.signBridgeToken": {
|
|
21886
22337
|
capName: "sso-bridge",
|
|
@@ -22308,30 +22759,6 @@ Object.freeze({
|
|
|
22308
22759
|
addonId: null,
|
|
22309
22760
|
access: "view"
|
|
22310
22761
|
},
|
|
22311
|
-
"streamingEngine.getStreamUrl": {
|
|
22312
|
-
capName: "streaming-engine",
|
|
22313
|
-
capScope: "system",
|
|
22314
|
-
addonId: null,
|
|
22315
|
-
access: "view"
|
|
22316
|
-
},
|
|
22317
|
-
"streamingEngine.listStreams": {
|
|
22318
|
-
capName: "streaming-engine",
|
|
22319
|
-
capScope: "system",
|
|
22320
|
-
addonId: null,
|
|
22321
|
-
access: "view"
|
|
22322
|
-
},
|
|
22323
|
-
"streamingEngine.registerStream": {
|
|
22324
|
-
capName: "streaming-engine",
|
|
22325
|
-
capScope: "system",
|
|
22326
|
-
addonId: null,
|
|
22327
|
-
access: "create"
|
|
22328
|
-
},
|
|
22329
|
-
"streamingEngine.unregisterStream": {
|
|
22330
|
-
capName: "streaming-engine",
|
|
22331
|
-
capScope: "system",
|
|
22332
|
-
addonId: null,
|
|
22333
|
-
access: "delete"
|
|
22334
|
-
},
|
|
22335
22762
|
"streamParams.getConfigSchema": {
|
|
22336
22763
|
capName: "stream-params",
|
|
22337
22764
|
capScope: "device",
|
|
@@ -22578,6 +23005,12 @@ Object.freeze({
|
|
|
22578
23005
|
addonId: null,
|
|
22579
23006
|
access: "view"
|
|
22580
23007
|
},
|
|
23008
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23009
|
+
capName: "user-passkeys",
|
|
23010
|
+
capScope: "system",
|
|
23011
|
+
addonId: null,
|
|
23012
|
+
access: "view"
|
|
23013
|
+
},
|
|
22581
23014
|
"userPasskeys.beginRegistration": {
|
|
22582
23015
|
capName: "user-passkeys",
|
|
22583
23016
|
capScope: "system",
|
|
@@ -22590,12 +23023,24 @@ Object.freeze({
|
|
|
22590
23023
|
addonId: null,
|
|
22591
23024
|
access: "view"
|
|
22592
23025
|
},
|
|
23026
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23027
|
+
capName: "user-passkeys",
|
|
23028
|
+
capScope: "system",
|
|
23029
|
+
addonId: null,
|
|
23030
|
+
access: "view"
|
|
23031
|
+
},
|
|
22593
23032
|
"userPasskeys.finishRegistration": {
|
|
22594
23033
|
capName: "user-passkeys",
|
|
22595
23034
|
capScope: "system",
|
|
22596
23035
|
addonId: null,
|
|
22597
23036
|
access: "create"
|
|
22598
23037
|
},
|
|
23038
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23039
|
+
capName: "user-passkeys",
|
|
23040
|
+
capScope: "system",
|
|
23041
|
+
addonId: null,
|
|
23042
|
+
access: "view"
|
|
23043
|
+
},
|
|
22599
23044
|
"userPasskeys.listPasskeys": {
|
|
22600
23045
|
capName: "user-passkeys",
|
|
22601
23046
|
capScope: "system",
|
|
@@ -22608,6 +23053,12 @@ Object.freeze({
|
|
|
22608
23053
|
addonId: null,
|
|
22609
23054
|
access: "delete"
|
|
22610
23055
|
},
|
|
23056
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23057
|
+
capName: "user-passkeys",
|
|
23058
|
+
capScope: "system",
|
|
23059
|
+
addonId: null,
|
|
23060
|
+
access: "create"
|
|
23061
|
+
},
|
|
22611
23062
|
"vacuumControl.locate": {
|
|
22612
23063
|
capName: "vacuum-control",
|
|
22613
23064
|
capScope: "device",
|
|
@@ -22680,6 +23131,18 @@ Object.freeze({
|
|
|
22680
23131
|
addonId: null,
|
|
22681
23132
|
access: "view"
|
|
22682
23133
|
},
|
|
23134
|
+
"viewerUi.getStaticDir": {
|
|
23135
|
+
capName: "viewer-ui",
|
|
23136
|
+
capScope: "system",
|
|
23137
|
+
addonId: null,
|
|
23138
|
+
access: "view"
|
|
23139
|
+
},
|
|
23140
|
+
"viewerUi.getVersion": {
|
|
23141
|
+
capName: "viewer-ui",
|
|
23142
|
+
capScope: "system",
|
|
23143
|
+
addonId: null,
|
|
23144
|
+
access: "view"
|
|
23145
|
+
},
|
|
22683
23146
|
"waterHeater.setAway": {
|
|
22684
23147
|
capName: "water-heater",
|
|
22685
23148
|
capScope: "device",
|
|
@@ -22698,54 +23161,6 @@ Object.freeze({
|
|
|
22698
23161
|
addonId: null,
|
|
22699
23162
|
access: "create"
|
|
22700
23163
|
},
|
|
22701
|
-
"webrtc.closeSession": {
|
|
22702
|
-
capName: "webrtc",
|
|
22703
|
-
capScope: "system",
|
|
22704
|
-
addonId: null,
|
|
22705
|
-
access: "create"
|
|
22706
|
-
},
|
|
22707
|
-
"webrtc.createSession": {
|
|
22708
|
-
capName: "webrtc",
|
|
22709
|
-
capScope: "system",
|
|
22710
|
-
addonId: null,
|
|
22711
|
-
access: "create"
|
|
22712
|
-
},
|
|
22713
|
-
"webrtc.handleAnswer": {
|
|
22714
|
-
capName: "webrtc",
|
|
22715
|
-
capScope: "system",
|
|
22716
|
-
addonId: null,
|
|
22717
|
-
access: "create"
|
|
22718
|
-
},
|
|
22719
|
-
"webrtc.handleOffer": {
|
|
22720
|
-
capName: "webrtc",
|
|
22721
|
-
capScope: "system",
|
|
22722
|
-
addonId: null,
|
|
22723
|
-
access: "create"
|
|
22724
|
-
},
|
|
22725
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22726
|
-
capName: "webrtc",
|
|
22727
|
-
capScope: "system",
|
|
22728
|
-
addonId: null,
|
|
22729
|
-
access: "view"
|
|
22730
|
-
},
|
|
22731
|
-
"webrtc.registerStream": {
|
|
22732
|
-
capName: "webrtc",
|
|
22733
|
-
capScope: "system",
|
|
22734
|
-
addonId: null,
|
|
22735
|
-
access: "create"
|
|
22736
|
-
},
|
|
22737
|
-
"webrtc.supportsStream": {
|
|
22738
|
-
capName: "webrtc",
|
|
22739
|
-
capScope: "system",
|
|
22740
|
-
addonId: null,
|
|
22741
|
-
access: "view"
|
|
22742
|
-
},
|
|
22743
|
-
"webrtc.unregisterStream": {
|
|
22744
|
-
capName: "webrtc",
|
|
22745
|
-
capScope: "system",
|
|
22746
|
-
addonId: null,
|
|
22747
|
-
access: "delete"
|
|
22748
|
-
},
|
|
22749
23164
|
"webrtcSession.addIceCandidate": {
|
|
22750
23165
|
capName: "webrtc-session",
|
|
22751
23166
|
capScope: "device",
|