@camstack/addon-mqtt-broker 1.1.19 → 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/mqtt-broker.addon.js +672 -257
- package/dist/mqtt-broker.addon.mjs +672 -257
- package/package.json +4 -1
|
@@ -4668,7 +4668,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4668
4668
|
return inst;
|
|
4669
4669
|
}
|
|
4670
4670
|
//#endregion
|
|
4671
|
-
//#region ../types/dist/sleep-
|
|
4671
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4672
4672
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4673
4673
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4674
4674
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4854,6 +4854,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4854
4854
|
*/
|
|
4855
4855
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4856
4856
|
/**
|
|
4857
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4858
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4859
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4860
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4861
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4862
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4863
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4864
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4865
|
+
* broker's long backstop reconcile query).
|
|
4866
|
+
*/
|
|
4867
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4868
|
+
/**
|
|
4857
4869
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4858
4870
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4859
4871
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5377,10 +5389,6 @@ function hydrateField(field, values) {
|
|
|
5377
5389
|
};
|
|
5378
5390
|
}
|
|
5379
5391
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5380
|
-
if (field.type === "password") return {
|
|
5381
|
-
...field,
|
|
5382
|
-
value: ""
|
|
5383
|
-
};
|
|
5384
5392
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5385
5393
|
return {
|
|
5386
5394
|
...field,
|
|
@@ -6764,6 +6772,21 @@ function method(input, output, options) {
|
|
|
6764
6772
|
timeoutMs: options?.timeoutMs
|
|
6765
6773
|
};
|
|
6766
6774
|
}
|
|
6775
|
+
/**
|
|
6776
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6777
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6778
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6779
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6780
|
+
*/
|
|
6781
|
+
function systemMethod(input, output, options) {
|
|
6782
|
+
return {
|
|
6783
|
+
...method(input, output, options),
|
|
6784
|
+
systemOnly: true
|
|
6785
|
+
};
|
|
6786
|
+
}
|
|
6787
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6788
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6789
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6767
6790
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6768
6791
|
var VersionOutputSchema = object({ version: string() });
|
|
6769
6792
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6933,6 +6956,36 @@ var ModelFormatsSchema = object({
|
|
|
6933
6956
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6934
6957
|
pt: ModelFormatEntrySchema.optional()
|
|
6935
6958
|
});
|
|
6959
|
+
/**
|
|
6960
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6961
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6962
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6963
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6964
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6965
|
+
* to an `id`.
|
|
6966
|
+
*/
|
|
6967
|
+
var ModelVariantGroupSchema = object({
|
|
6968
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6969
|
+
family: string(),
|
|
6970
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6971
|
+
tier: string(),
|
|
6972
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6973
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6974
|
+
/**
|
|
6975
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6976
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6977
|
+
* future performance variants plug into.
|
|
6978
|
+
*/
|
|
6979
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6980
|
+
/**
|
|
6981
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6982
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6983
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6984
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6985
|
+
* the group so the selector can offer it as a variant axis.
|
|
6986
|
+
*/
|
|
6987
|
+
resolution: number().int().positive().optional()
|
|
6988
|
+
});
|
|
6936
6989
|
var ModelCatalogEntrySchema = object({
|
|
6937
6990
|
id: string(),
|
|
6938
6991
|
name: string(),
|
|
@@ -6962,7 +7015,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6962
7015
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6963
7016
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6964
7017
|
*/
|
|
6965
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7018
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7019
|
+
/**
|
|
7020
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7021
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7022
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7023
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7024
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7025
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7026
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7027
|
+
*/
|
|
7028
|
+
legacy: boolean().optional(),
|
|
7029
|
+
/**
|
|
7030
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7031
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7032
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7033
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7034
|
+
*/
|
|
7035
|
+
metrics: object({
|
|
7036
|
+
map50: number().optional(),
|
|
7037
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7038
|
+
}).optional(),
|
|
7039
|
+
/**
|
|
7040
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7041
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7042
|
+
* the retraining addon and any future commercial distribution.
|
|
7043
|
+
*/
|
|
7044
|
+
license: string().optional(),
|
|
7045
|
+
/**
|
|
7046
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7047
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7048
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7049
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7050
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7051
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7052
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7053
|
+
*/
|
|
7054
|
+
group: ModelVariantGroupSchema.optional()
|
|
6966
7055
|
});
|
|
6967
7056
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6968
7057
|
format: literal("openvino"),
|
|
@@ -7023,8 +7112,8 @@ var RecordingModeSchema = _enum([
|
|
|
7023
7112
|
"onAudioThreshold"
|
|
7024
7113
|
]);
|
|
7025
7114
|
/**
|
|
7026
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7027
|
-
* reads directly (never inferred from `rules`):
|
|
7115
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7116
|
+
* UI reads directly (never inferred from `rules`):
|
|
7028
7117
|
* - `off` — not recording.
|
|
7029
7118
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7030
7119
|
* with pre/post-buffer.
|
|
@@ -8672,26 +8761,13 @@ DeviceType.Light, method(object({
|
|
|
8672
8761
|
percentage: number().min(0).max(100),
|
|
8673
8762
|
lastChangedAt: number()
|
|
8674
8763
|
});
|
|
8764
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8675
8765
|
var StreamFormatSchema = _enum([
|
|
8676
8766
|
"webrtc",
|
|
8677
8767
|
"hls",
|
|
8678
8768
|
"mjpeg",
|
|
8679
8769
|
"rtsp"
|
|
8680
8770
|
]);
|
|
8681
|
-
var StreamInfoSchema = object({
|
|
8682
|
-
streamId: string(),
|
|
8683
|
-
format: StreamFormatSchema,
|
|
8684
|
-
url: string().nullable(),
|
|
8685
|
-
active: boolean()
|
|
8686
|
-
});
|
|
8687
|
-
method(object({
|
|
8688
|
-
streamId: string(),
|
|
8689
|
-
sourceUrl: string(),
|
|
8690
|
-
codec: string().optional()
|
|
8691
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8692
|
-
streamId: string(),
|
|
8693
|
-
format: StreamFormatSchema
|
|
8694
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8695
8771
|
var RtspRestreamEntrySchema = object({
|
|
8696
8772
|
brokerId: string(),
|
|
8697
8773
|
url: string(),
|
|
@@ -9356,7 +9432,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9356
9432
|
})),
|
|
9357
9433
|
lastChangedAt: number()
|
|
9358
9434
|
});
|
|
9359
|
-
|
|
9435
|
+
Object.values(DeviceType), method(object({
|
|
9360
9436
|
deviceId: number().int().nonnegative(),
|
|
9361
9437
|
key: string().min(1)
|
|
9362
9438
|
}), _void(), {
|
|
@@ -10271,7 +10347,7 @@ var BoundingBoxSchema = object({
|
|
|
10271
10347
|
w: number(),
|
|
10272
10348
|
h: number()
|
|
10273
10349
|
});
|
|
10274
|
-
|
|
10350
|
+
object({
|
|
10275
10351
|
class: string(),
|
|
10276
10352
|
originalClass: string(),
|
|
10277
10353
|
score: number(),
|
|
@@ -10406,7 +10482,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10406
10482
|
enabled: boolean(),
|
|
10407
10483
|
modelId: string(),
|
|
10408
10484
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10409
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10410
10485
|
group: string().optional(),
|
|
10411
10486
|
settings: record(string(), unknown()).optional()
|
|
10412
10487
|
}));
|
|
@@ -10431,7 +10506,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10431
10506
|
formats: record(string(), object({
|
|
10432
10507
|
downloaded: boolean(),
|
|
10433
10508
|
sizeMB: number()
|
|
10434
|
-
}))
|
|
10509
|
+
})),
|
|
10510
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10511
|
+
legacy: boolean().optional()
|
|
10435
10512
|
});
|
|
10436
10513
|
var ConfigFieldBridge = custom();
|
|
10437
10514
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10445,6 +10522,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10445
10522
|
defaultModelId: string(),
|
|
10446
10523
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10447
10524
|
enabledByDefault: boolean().optional(),
|
|
10525
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10448
10526
|
defaultConfidence: number(),
|
|
10449
10527
|
group: string().optional(),
|
|
10450
10528
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10461,11 +10539,6 @@ var PipelineSchemaSchema = object({
|
|
|
10461
10539
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10462
10540
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10463
10541
|
});
|
|
10464
|
-
var DetectorOutputSchema = object({
|
|
10465
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10466
|
-
inferenceMs: number(),
|
|
10467
|
-
modelId: string()
|
|
10468
|
-
});
|
|
10469
10542
|
var EngineProvisioningSchema = object({
|
|
10470
10543
|
runtimeId: _enum([
|
|
10471
10544
|
"onnx",
|
|
@@ -10482,15 +10555,42 @@ var EngineProvisioningSchema = object({
|
|
|
10482
10555
|
]),
|
|
10483
10556
|
progress: number().optional(),
|
|
10484
10557
|
error: string().optional(),
|
|
10485
|
-
nextRetryAt: number().optional()
|
|
10558
|
+
nextRetryAt: number().optional(),
|
|
10559
|
+
/**
|
|
10560
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10561
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10562
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10563
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10564
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10565
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10566
|
+
*/
|
|
10567
|
+
configIssues: array(string()).optional()
|
|
10486
10568
|
});
|
|
10487
10569
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10488
10570
|
addonId: string(),
|
|
10489
|
-
modelId: string(),
|
|
10571
|
+
modelId: string().optional(),
|
|
10490
10572
|
enabled: boolean().default(true),
|
|
10491
10573
|
children: array(PipelineStepInputSchema).optional(),
|
|
10492
10574
|
settings: record(string(), unknown()).optional()
|
|
10493
10575
|
}));
|
|
10576
|
+
var ModelSubstitutionSchema = object({
|
|
10577
|
+
addonId: string(),
|
|
10578
|
+
chosen: string(),
|
|
10579
|
+
running: string(),
|
|
10580
|
+
format: string()
|
|
10581
|
+
});
|
|
10582
|
+
var PipelineValidationIssueSchema = object({
|
|
10583
|
+
addonId: string(),
|
|
10584
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10585
|
+
detail: string()
|
|
10586
|
+
});
|
|
10587
|
+
var PipelineValidationResultSchema = object({
|
|
10588
|
+
ok: boolean(),
|
|
10589
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10590
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10591
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10592
|
+
format: string()
|
|
10593
|
+
});
|
|
10494
10594
|
var ReferenceImageEntrySchema = object({
|
|
10495
10595
|
filename: string(),
|
|
10496
10596
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10561,7 +10661,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10561
10661
|
})) }), object({ success: literal(true) }), {
|
|
10562
10662
|
kind: "mutation",
|
|
10563
10663
|
auth: "admin"
|
|
10564
|
-
}), method(
|
|
10664
|
+
}), method(object({ nodeId: string() }), object({
|
|
10665
|
+
success: literal(true),
|
|
10666
|
+
clearedDevices: number()
|
|
10667
|
+
}), {
|
|
10668
|
+
kind: "mutation",
|
|
10669
|
+
auth: "admin"
|
|
10670
|
+
}), 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({
|
|
10565
10671
|
name: string(),
|
|
10566
10672
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10567
10673
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10578,10 +10684,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10578
10684
|
modelId: string(),
|
|
10579
10685
|
format: ModelFormatSchema$1
|
|
10580
10686
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10581
|
-
addonId: string(),
|
|
10582
|
-
frame: FrameInputSchema,
|
|
10583
|
-
config: record(string(), unknown()).optional()
|
|
10584
|
-
}), DetectorOutputSchema), method(object({
|
|
10585
10687
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10586
10688
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10587
10689
|
frame: FrameInputSchema.optional(),
|
|
@@ -10727,6 +10829,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10727
10829
|
auth: "admin"
|
|
10728
10830
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10729
10831
|
/**
|
|
10832
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10833
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10834
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10835
|
+
* dims — no native resolution to plumb.
|
|
10836
|
+
*/
|
|
10837
|
+
var NativeCropBboxSchema = object({
|
|
10838
|
+
x: number(),
|
|
10839
|
+
y: number(),
|
|
10840
|
+
w: number(),
|
|
10841
|
+
h: number()
|
|
10842
|
+
});
|
|
10843
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10844
|
+
var NativeCropResultSchema = object({
|
|
10845
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10846
|
+
bytes: _instanceof(Uint8Array),
|
|
10847
|
+
width: number().int().positive(),
|
|
10848
|
+
height: number().int().positive()
|
|
10849
|
+
});
|
|
10850
|
+
/**
|
|
10730
10851
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10731
10852
|
* by both the Zod data schema (validation + default fallback) and
|
|
10732
10853
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10821,6 +10942,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10821
10942
|
kind: literal("remote-restream"),
|
|
10822
10943
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10823
10944
|
ownerNodeId: string(),
|
|
10945
|
+
/**
|
|
10946
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10947
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10948
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10949
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10950
|
+
*/
|
|
10951
|
+
ownerReachableHost: string().optional(),
|
|
10824
10952
|
/** Operator override for the owner host the runner dials. */
|
|
10825
10953
|
hubHostnameOverride: string().optional()
|
|
10826
10954
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10829,13 +10957,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10829
10957
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10830
10958
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10831
10959
|
*
|
|
10832
|
-
* Stateless-pipeline model: the
|
|
10833
|
-
*
|
|
10834
|
-
*
|
|
10835
|
-
*
|
|
10836
|
-
*
|
|
10837
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10838
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10960
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10961
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10962
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10963
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10964
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10839
10965
|
*/
|
|
10840
10966
|
var RunnerCameraConfigSchema = object({
|
|
10841
10967
|
deviceId: number(),
|
|
@@ -10886,14 +11012,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10886
11012
|
*/
|
|
10887
11013
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10888
11014
|
pipelineEnabled: boolean().default(true),
|
|
10889
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10890
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10891
11015
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10892
11016
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10893
11017
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10894
11018
|
audio: object({
|
|
10895
|
-
|
|
10896
|
-
modelId: string(),
|
|
11019
|
+
modelId: string().optional(),
|
|
10897
11020
|
enabled: boolean()
|
|
10898
11021
|
}).nullable().optional(),
|
|
10899
11022
|
/**
|
|
@@ -10980,7 +11103,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10980
11103
|
avgInferenceTimeMs: number(),
|
|
10981
11104
|
queueDepth: number()
|
|
10982
11105
|
});
|
|
10983
|
-
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())
|
|
11106
|
+
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({
|
|
11107
|
+
handle: FrameHandleSchema,
|
|
11108
|
+
bbox: NativeCropBboxSchema,
|
|
11109
|
+
maxWidth: number().int().positive().optional()
|
|
11110
|
+
}), NativeCropResultSchema.nullable());
|
|
10984
11111
|
object({
|
|
10985
11112
|
detected: boolean(),
|
|
10986
11113
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12274,7 +12401,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12274
12401
|
icon: string(),
|
|
12275
12402
|
path: string(),
|
|
12276
12403
|
remoteName: string(),
|
|
12277
|
-
bundle: string()
|
|
12404
|
+
bundle: string(),
|
|
12405
|
+
section: string().optional(),
|
|
12406
|
+
sectionLabel: string().optional()
|
|
12278
12407
|
});
|
|
12279
12408
|
var AddonPageInfoSchema = object({
|
|
12280
12409
|
addonId: string(),
|
|
@@ -12314,7 +12443,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12314
12443
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12315
12444
|
* without a separate filesystem stat.
|
|
12316
12445
|
*/
|
|
12317
|
-
bundle: string()
|
|
12446
|
+
bundle: string(),
|
|
12447
|
+
/**
|
|
12448
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12449
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12450
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12451
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12452
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12453
|
+
* "Addon Pages" group.
|
|
12454
|
+
*/
|
|
12455
|
+
section: string().optional(),
|
|
12456
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12457
|
+
sectionLabel: string().optional()
|
|
12318
12458
|
});
|
|
12319
12459
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12320
12460
|
var AddonHttpRouteSchema = object({
|
|
@@ -12530,6 +12670,17 @@ var WidgetMetadataSchema = object({
|
|
|
12530
12670
|
deviceContext: boolean().default(false),
|
|
12531
12671
|
integrationContext: boolean().default(false)
|
|
12532
12672
|
}),
|
|
12673
|
+
/**
|
|
12674
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12675
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12676
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12677
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12678
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12679
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12680
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12681
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12682
|
+
*/
|
|
12683
|
+
preAuth: boolean().optional().default(false),
|
|
12533
12684
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12534
12685
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12535
12686
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12831,6 +12982,66 @@ method(object({
|
|
|
12831
12982
|
password: string()
|
|
12832
12983
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12833
12984
|
/**
|
|
12985
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12986
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12987
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12988
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12989
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12990
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12991
|
+
*
|
|
12992
|
+
* A contribution is a discriminated union on `kind`:
|
|
12993
|
+
*
|
|
12994
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12995
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12996
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12997
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12998
|
+
* login page needs NO change.
|
|
12999
|
+
*
|
|
13000
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13001
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13002
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13003
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13004
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13005
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13006
|
+
*
|
|
13007
|
+
* Every contribution carries a `stage`:
|
|
13008
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13009
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13010
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13011
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13012
|
+
*
|
|
13013
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13014
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13015
|
+
* tRPC router.
|
|
13016
|
+
*/
|
|
13017
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13018
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13019
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13020
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13021
|
+
kind: literal("redirect"),
|
|
13022
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13023
|
+
id: string(),
|
|
13024
|
+
/** Operator-facing button label. */
|
|
13025
|
+
label: string(),
|
|
13026
|
+
/** lucide-react icon name. */
|
|
13027
|
+
icon: string().optional(),
|
|
13028
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13029
|
+
startUrl: string(),
|
|
13030
|
+
stage: LoginStageEnum
|
|
13031
|
+
}), object({
|
|
13032
|
+
kind: literal("widget"),
|
|
13033
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13034
|
+
id: string(),
|
|
13035
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13036
|
+
addonId: string(),
|
|
13037
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13038
|
+
bundle: string(),
|
|
13039
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13040
|
+
remote: WidgetRemoteSchema,
|
|
13041
|
+
stage: LoginStageEnum
|
|
13042
|
+
})]);
|
|
13043
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13044
|
+
/**
|
|
12834
13045
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12835
13046
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12836
13047
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -15002,7 +15213,17 @@ var TrackSchema = object({
|
|
|
15002
15213
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
15003
15214
|
totalDistance: number(),
|
|
15004
15215
|
state: TrackStateSchema,
|
|
15005
|
-
active: boolean()
|
|
15216
|
+
active: boolean(),
|
|
15217
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15218
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15219
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15220
|
+
importance: number().optional(),
|
|
15221
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15222
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15223
|
+
bestEventId: string().optional(),
|
|
15224
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15225
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15226
|
+
importanceReason: string().optional()
|
|
15006
15227
|
});
|
|
15007
15228
|
var BaseEventFields = {
|
|
15008
15229
|
id: string(),
|
|
@@ -15067,8 +15288,18 @@ var ObjectEventSchema = object({
|
|
|
15067
15288
|
frameHeight: number().optional(),
|
|
15068
15289
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15069
15290
|
mediaKey: string().optional(),
|
|
15291
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15292
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15293
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15294
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15295
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15296
|
+
keyFrameMediaKey: string().optional(),
|
|
15070
15297
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15071
|
-
mediaUrl: string().optional()
|
|
15298
|
+
mediaUrl: string().optional(),
|
|
15299
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15300
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15301
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15302
|
+
importance: number().optional()
|
|
15072
15303
|
});
|
|
15073
15304
|
var AudioEventSchema = object({
|
|
15074
15305
|
...BaseEventFields,
|
|
@@ -15092,7 +15323,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15092
15323
|
"fullFrame",
|
|
15093
15324
|
"fullFrameBoxed",
|
|
15094
15325
|
"faceCrop",
|
|
15095
|
-
"plateCrop"
|
|
15326
|
+
"plateCrop",
|
|
15327
|
+
"keyFrame"
|
|
15096
15328
|
]);
|
|
15097
15329
|
var MediaFileSchema = object({
|
|
15098
15330
|
key: string(),
|
|
@@ -15113,6 +15345,32 @@ var DeviceEventQueryInput = object({
|
|
|
15113
15345
|
projection: _enum(["full", "slim"]).optional()
|
|
15114
15346
|
});
|
|
15115
15347
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15348
|
+
var KeyEventQueryInput = object({
|
|
15349
|
+
deviceId: number(),
|
|
15350
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15351
|
+
since: number(),
|
|
15352
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15353
|
+
until: number(),
|
|
15354
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15355
|
+
/** Drop tracks scoring below this importance. */
|
|
15356
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15357
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15358
|
+
classFilter: string().optional()
|
|
15359
|
+
});
|
|
15360
|
+
var KeyEventSchema = object({
|
|
15361
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15362
|
+
id: string(),
|
|
15363
|
+
trackId: string(),
|
|
15364
|
+
/** Track start time (firstSeen). */
|
|
15365
|
+
timestamp: number(),
|
|
15366
|
+
className: string(),
|
|
15367
|
+
label: string().optional(),
|
|
15368
|
+
importance: number(),
|
|
15369
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15370
|
+
bestEventId: string(),
|
|
15371
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15372
|
+
windowMs: number().optional()
|
|
15373
|
+
});
|
|
15116
15374
|
var TrackedDetectionSchema = object({
|
|
15117
15375
|
trackId: string(),
|
|
15118
15376
|
className: string(),
|
|
@@ -15142,7 +15400,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15142
15400
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15143
15401
|
kind: "mutation",
|
|
15144
15402
|
auth: "admin"
|
|
15145
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15403
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15146
15404
|
deviceId: number(),
|
|
15147
15405
|
since: number(),
|
|
15148
15406
|
until: number(),
|
|
@@ -15187,11 +15445,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15187
15445
|
timestamp: number()
|
|
15188
15446
|
});
|
|
15189
15447
|
var CameraPipelineConfigSchema = object({
|
|
15190
|
-
engine: PipelineEngineChoiceSchema,
|
|
15448
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15191
15449
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15192
15450
|
audio: object({
|
|
15193
|
-
engine: PipelineEngineChoiceSchema,
|
|
15194
|
-
modelId: string(),
|
|
15451
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15452
|
+
modelId: string().optional(),
|
|
15195
15453
|
enabled: boolean(),
|
|
15196
15454
|
settings: record(string(), unknown()).readonly().optional()
|
|
15197
15455
|
}).nullable().optional()
|
|
@@ -15206,7 +15464,7 @@ var PipelineTemplateSchema = object({
|
|
|
15206
15464
|
});
|
|
15207
15465
|
var AgentAddonConfigSchema = object({
|
|
15208
15466
|
enabled: boolean(),
|
|
15209
|
-
modelId: string(),
|
|
15467
|
+
modelId: string().optional(),
|
|
15210
15468
|
settings: record(string(), unknown()).readonly()
|
|
15211
15469
|
});
|
|
15212
15470
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15216,12 +15474,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15216
15474
|
detectWeight: number().positive().optional(),
|
|
15217
15475
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15218
15476
|
detect: boolean().optional(),
|
|
15219
|
-
/**
|
|
15477
|
+
/**
|
|
15478
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15479
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15480
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15481
|
+
* parse — no code reads it and no write path emits it.
|
|
15482
|
+
*/
|
|
15220
15483
|
decode: boolean().optional(),
|
|
15221
15484
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15222
15485
|
audio: boolean().optional(),
|
|
15223
15486
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15224
|
-
ingest: boolean().optional()
|
|
15487
|
+
ingest: boolean().optional(),
|
|
15488
|
+
/**
|
|
15489
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15490
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15491
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15492
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15493
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15494
|
+
*/
|
|
15495
|
+
reachableHost: string().optional()
|
|
15225
15496
|
});
|
|
15226
15497
|
var CameraPipelineForAgentSchema = object({
|
|
15227
15498
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15269,25 +15540,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15269
15540
|
assignedAt: number()
|
|
15270
15541
|
});
|
|
15271
15542
|
/**
|
|
15272
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15273
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15274
|
-
* → co-located with pipeline → capacity).
|
|
15275
|
-
*/
|
|
15276
|
-
var DecoderAssignmentSchema = object({
|
|
15277
|
-
deviceId: number(),
|
|
15278
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15279
|
-
decoderNodeId: string(),
|
|
15280
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15281
|
-
pinned: boolean(),
|
|
15282
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15283
|
-
reason: _enum([
|
|
15284
|
-
"manual",
|
|
15285
|
-
"co-located",
|
|
15286
|
-
"capacity",
|
|
15287
|
-
"hardware-affinity"
|
|
15288
|
-
])
|
|
15289
|
-
});
|
|
15290
|
-
/**
|
|
15291
15543
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15292
15544
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15293
15545
|
*/
|
|
@@ -15327,6 +15579,15 @@ var GlobalMetricsSchema = object({
|
|
|
15327
15579
|
* capability providers.
|
|
15328
15580
|
*/
|
|
15329
15581
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15582
|
+
/**
|
|
15583
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15584
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15585
|
+
*/
|
|
15586
|
+
var IngestOwnerSchema = object({
|
|
15587
|
+
ownerNodeId: string(),
|
|
15588
|
+
reachableHost: string().optional(),
|
|
15589
|
+
configIssue: string().optional()
|
|
15590
|
+
});
|
|
15330
15591
|
/** Source block — always present; derives from the stream catalog. */
|
|
15331
15592
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15332
15593
|
camStreamId: string(),
|
|
@@ -15341,6 +15602,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15341
15602
|
detectionNodeId: string().nullable(),
|
|
15342
15603
|
decoderNodeId: string().nullable(),
|
|
15343
15604
|
audioNodeId: string().nullable(),
|
|
15605
|
+
/**
|
|
15606
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15607
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15608
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15609
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15610
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15611
|
+
*/
|
|
15612
|
+
sourceNodeId: string().nullable(),
|
|
15344
15613
|
pinned: object({
|
|
15345
15614
|
detection: boolean(),
|
|
15346
15615
|
decoder: boolean(),
|
|
@@ -15473,16 +15742,7 @@ method(object({
|
|
|
15473
15742
|
}), object({ success: literal(true) }), {
|
|
15474
15743
|
kind: "mutation",
|
|
15475
15744
|
auth: "admin"
|
|
15476
|
-
}), method(object({
|
|
15477
|
-
deviceId: number(),
|
|
15478
|
-
nodeId: string()
|
|
15479
|
-
}), _void(), {
|
|
15480
|
-
kind: "mutation",
|
|
15481
|
-
auth: "admin"
|
|
15482
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15483
|
-
kind: "mutation",
|
|
15484
|
-
auth: "admin"
|
|
15485
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15745
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15486
15746
|
deviceId: number(),
|
|
15487
15747
|
nodeId: string()
|
|
15488
15748
|
}), object({ success: literal(true) }), {
|
|
@@ -15503,10 +15763,7 @@ method(object({
|
|
|
15503
15763
|
nodeId: string(),
|
|
15504
15764
|
pinned: boolean(),
|
|
15505
15765
|
assignedAt: number()
|
|
15506
|
-
}))), method(object({
|
|
15507
|
-
deviceId: number(),
|
|
15508
|
-
pipelineNodeId: string().optional()
|
|
15509
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15766
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15510
15767
|
nodeId: string(),
|
|
15511
15768
|
settings: AgentPipelineSettingsSchema
|
|
15512
15769
|
})).readonly()), method(object({
|
|
@@ -15536,12 +15793,26 @@ method(object({
|
|
|
15536
15793
|
}), method(object({
|
|
15537
15794
|
agentNodeId: string(),
|
|
15538
15795
|
detect: boolean().nullable().optional(),
|
|
15539
|
-
decode: boolean().nullable().optional(),
|
|
15540
15796
|
audio: boolean().nullable().optional(),
|
|
15541
15797
|
ingest: boolean().nullable().optional()
|
|
15542
15798
|
}), object({ success: literal(true) }), {
|
|
15543
15799
|
kind: "mutation",
|
|
15544
15800
|
auth: "admin"
|
|
15801
|
+
}), method(object({
|
|
15802
|
+
agentNodeId: string(),
|
|
15803
|
+
reachableHost: string().nullable()
|
|
15804
|
+
}), object({ success: literal(true) }), {
|
|
15805
|
+
kind: "mutation",
|
|
15806
|
+
auth: "admin"
|
|
15807
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15808
|
+
success: literal(true),
|
|
15809
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15810
|
+
effectiveModelId: string().nullable(),
|
|
15811
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15812
|
+
clearedCameraOverrides: number()
|
|
15813
|
+
}), {
|
|
15814
|
+
kind: "mutation",
|
|
15815
|
+
auth: "admin"
|
|
15545
15816
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15546
15817
|
deviceId: number(),
|
|
15547
15818
|
addonId: string(),
|
|
@@ -15586,22 +15857,131 @@ method(object({
|
|
|
15586
15857
|
kind: "mutation",
|
|
15587
15858
|
auth: "admin"
|
|
15588
15859
|
});
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15860
|
+
/**
|
|
15861
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15862
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15863
|
+
* agents).
|
|
15864
|
+
*
|
|
15865
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15866
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15867
|
+
* version describes the node. Updates install into
|
|
15868
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15869
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15870
|
+
*
|
|
15871
|
+
* Providers:
|
|
15872
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15873
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15874
|
+
* unpinned calls.
|
|
15875
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15876
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15877
|
+
* `$hub.registerNode` manifest.
|
|
15878
|
+
*
|
|
15879
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15880
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15881
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15882
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15883
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15884
|
+
*
|
|
15885
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15886
|
+
*/
|
|
15887
|
+
/**
|
|
15888
|
+
* Where the running hub's code was loaded from:
|
|
15889
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15890
|
+
* plain resolution and runtime updates are refused.
|
|
15891
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15892
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15893
|
+
*/
|
|
15894
|
+
var ServerBootModeSchema = _enum([
|
|
15895
|
+
"workspace",
|
|
15896
|
+
"baked",
|
|
15897
|
+
"data-root"
|
|
15898
|
+
]);
|
|
15899
|
+
/**
|
|
15900
|
+
* Update lifecycle state:
|
|
15901
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15902
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15903
|
+
* restarted onto it (still running the OLD version).
|
|
15904
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15905
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15906
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15907
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15908
|
+
*/
|
|
15909
|
+
var ServerUpdateStateSchema = _enum([
|
|
15910
|
+
"idle",
|
|
15911
|
+
"checking",
|
|
15912
|
+
"staging",
|
|
15913
|
+
"pending-restart",
|
|
15914
|
+
"awaiting-confirmation"
|
|
15915
|
+
]);
|
|
15916
|
+
var ServerRollbackInfoSchema = object({
|
|
15917
|
+
/** The version that failed (or was manually rolled back). */
|
|
15918
|
+
fromVersion: string(),
|
|
15919
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15920
|
+
toVersion: string().nullable(),
|
|
15921
|
+
atMs: number(),
|
|
15922
|
+
reason: string()
|
|
15595
15923
|
});
|
|
15596
|
-
var
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15924
|
+
var ServerPackageStatusSchema = object({
|
|
15925
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15926
|
+
packageName: string(),
|
|
15927
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15928
|
+
runningVersion: string().nullable(),
|
|
15929
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15930
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15931
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15932
|
+
activeVersion: string().nullable(),
|
|
15933
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15934
|
+
previousVersion: string().nullable(),
|
|
15935
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15936
|
+
seedVersion: string().nullable(),
|
|
15937
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15938
|
+
latestVersion: string().nullable(),
|
|
15939
|
+
updateAvailable: boolean(),
|
|
15940
|
+
bootMode: ServerBootModeSchema,
|
|
15941
|
+
updateState: ServerUpdateStateSchema,
|
|
15942
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15943
|
+
pendingVersion: string().nullable(),
|
|
15944
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15945
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15946
|
+
/**
|
|
15947
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15948
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15949
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15950
|
+
*/
|
|
15951
|
+
stateFileCorrupt: boolean(),
|
|
15952
|
+
lastCheckedAtMs: number().nullable()
|
|
15953
|
+
});
|
|
15954
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15955
|
+
packageName: string(),
|
|
15956
|
+
runningVersion: string().nullable(),
|
|
15957
|
+
latestVersion: string().nullable(),
|
|
15958
|
+
updateAvailable: boolean(),
|
|
15959
|
+
checkedAtMs: number(),
|
|
15960
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15961
|
+
error: string().nullable()
|
|
15962
|
+
});
|
|
15963
|
+
var ServerUpdateActionResultSchema = object({
|
|
15964
|
+
accepted: boolean(),
|
|
15965
|
+
targetVersion: string().nullable(),
|
|
15966
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15967
|
+
restarting: boolean(),
|
|
15968
|
+
message: string()
|
|
15969
|
+
});
|
|
15970
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15971
|
+
kind: "mutation",
|
|
15972
|
+
auth: "admin"
|
|
15973
|
+
}), method(object({
|
|
15974
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15975
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15976
|
+
kind: "mutation",
|
|
15977
|
+
auth: "admin"
|
|
15978
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15979
|
+
kind: "mutation",
|
|
15980
|
+
auth: "admin"
|
|
15981
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15982
|
+
kind: "mutation",
|
|
15983
|
+
auth: "admin"
|
|
15600
15984
|
});
|
|
15601
|
-
method(object({
|
|
15602
|
-
deviceId: number(),
|
|
15603
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15604
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15605
15985
|
/**
|
|
15606
15986
|
* Query filter for settings-store collections.
|
|
15607
15987
|
*/
|
|
@@ -15754,9 +16134,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15754
16134
|
/**
|
|
15755
16135
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15756
16136
|
*
|
|
15757
|
-
*
|
|
15758
|
-
*
|
|
15759
|
-
*
|
|
16137
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16138
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16139
|
+
* prebuffer fallback.
|
|
15760
16140
|
*/
|
|
15761
16141
|
var SnapshotImageSchema = object({
|
|
15762
16142
|
base64: string(),
|
|
@@ -15787,11 +16167,12 @@ DeviceType.Camera, method(object({
|
|
|
15787
16167
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15788
16168
|
kind: "mutation",
|
|
15789
16169
|
auth: "admin"
|
|
15790
|
-
})
|
|
15791
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16170
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15792
16171
|
deviceId: number(),
|
|
15793
|
-
|
|
15794
|
-
|
|
16172
|
+
lastCapturedAt: number().nullable(),
|
|
16173
|
+
cacheAgeMs: number().nullable(),
|
|
16174
|
+
etag: string().nullable()
|
|
16175
|
+
})));
|
|
15795
16176
|
/**
|
|
15796
16177
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15797
16178
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16042,10 +16423,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16042
16423
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16043
16424
|
* the assertion, bumps the credential counter, returns ok.
|
|
16044
16425
|
*
|
|
16426
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16427
|
+
* passkey IS the primary factor, no password leg:
|
|
16428
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16429
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16430
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16431
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16432
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16433
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16434
|
+
* resolves the credential by the response's credential id,
|
|
16435
|
+
* verifies the assertion against the stored challenge + that
|
|
16436
|
+
* credential's public key/counter, and returns the OWNING
|
|
16437
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16438
|
+
*
|
|
16045
16439
|
* 3. Management:
|
|
16046
16440
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16047
16441
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16048
16442
|
*
|
|
16443
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16444
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16445
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16446
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16447
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16448
|
+
* row ⇒ `enabled: false`).
|
|
16449
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16450
|
+
* the providing addon beside its credentials.
|
|
16451
|
+
*
|
|
16049
16452
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16050
16453
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16051
16454
|
* the cap to non-admins.
|
|
@@ -16088,6 +16491,17 @@ method(object({
|
|
|
16088
16491
|
}), object({ verified: boolean() }), {
|
|
16089
16492
|
kind: "mutation",
|
|
16090
16493
|
access: "view"
|
|
16494
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16495
|
+
kind: "mutation",
|
|
16496
|
+
access: "view"
|
|
16497
|
+
}), method(object({
|
|
16498
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16499
|
+
response: record(string(), unknown()) }), object({
|
|
16500
|
+
verified: boolean(),
|
|
16501
|
+
userId: string().nullable()
|
|
16502
|
+
}), {
|
|
16503
|
+
kind: "mutation",
|
|
16504
|
+
access: "view"
|
|
16091
16505
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16092
16506
|
userId: string(),
|
|
16093
16507
|
credentialId: string()
|
|
@@ -16095,6 +16509,13 @@ method(object({
|
|
|
16095
16509
|
kind: "mutation",
|
|
16096
16510
|
auth: "admin",
|
|
16097
16511
|
access: "delete"
|
|
16512
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16513
|
+
userId: string(),
|
|
16514
|
+
enabled: boolean()
|
|
16515
|
+
}), object({ success: literal(true) }), {
|
|
16516
|
+
kind: "mutation",
|
|
16517
|
+
auth: "admin",
|
|
16518
|
+
access: "create"
|
|
16098
16519
|
});
|
|
16099
16520
|
/**
|
|
16100
16521
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16152,9 +16573,10 @@ method(object({
|
|
|
16152
16573
|
auth: "admin"
|
|
16153
16574
|
});
|
|
16154
16575
|
/**
|
|
16155
|
-
* Optional client-side hints sent at session creation to help the
|
|
16156
|
-
*
|
|
16157
|
-
*
|
|
16576
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16577
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16578
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16579
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16158
16580
|
*/
|
|
16159
16581
|
var webrtcClientHintsSchema = object({
|
|
16160
16582
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16165,22 +16587,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16165
16587
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16166
16588
|
prefersTier: string().optional()
|
|
16167
16589
|
}).partial();
|
|
16168
|
-
method(object({
|
|
16169
|
-
streamId: string(),
|
|
16170
|
-
sdpOffer: string()
|
|
16171
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16172
|
-
streamId: string(),
|
|
16173
|
-
codec: string()
|
|
16174
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16175
|
-
streamId: string(),
|
|
16176
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16177
|
-
}), object({
|
|
16178
|
-
sessionId: string(),
|
|
16179
|
-
sdpOffer: string()
|
|
16180
|
-
}), { kind: "mutation" }), method(object({
|
|
16181
|
-
sessionId: string(),
|
|
16182
|
-
sdpAnswer: string()
|
|
16183
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16184
16590
|
/**
|
|
16185
16591
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16186
16592
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16911,7 +17317,17 @@ var FaceInfoSchema = object({
|
|
|
16911
17317
|
recognizedIdentityId: string().optional(),
|
|
16912
17318
|
identityName: string().optional(),
|
|
16913
17319
|
assigned: boolean(),
|
|
16914
|
-
base64: string().optional()
|
|
17320
|
+
base64: string().optional(),
|
|
17321
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17322
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17323
|
+
* legacy rows written before design B. */
|
|
17324
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17325
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17326
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17327
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17328
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17329
|
+
* back to the inline `base64` face crop. */
|
|
17330
|
+
keyFrameMediaKey: string().optional()
|
|
16915
17331
|
});
|
|
16916
17332
|
var FaceFilterEnum = _enum([
|
|
16917
17333
|
"unassigned",
|
|
@@ -17608,6 +18024,16 @@ var TopologyCategorySchema = object({
|
|
|
17608
18024
|
healthy: number(),
|
|
17609
18025
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17610
18026
|
});
|
|
18027
|
+
/**
|
|
18028
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18029
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18030
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18031
|
+
* rows and pre-phase-2 nodes report none.
|
|
18032
|
+
*/
|
|
18033
|
+
var TopologyRootPackageSchema = object({
|
|
18034
|
+
name: string(),
|
|
18035
|
+
version: string()
|
|
18036
|
+
});
|
|
17611
18037
|
var TopologyNodeSchema = object({
|
|
17612
18038
|
id: string(),
|
|
17613
18039
|
name: string(),
|
|
@@ -17631,7 +18057,8 @@ var TopologyNodeSchema = object({
|
|
|
17631
18057
|
status: string()
|
|
17632
18058
|
})).readonly(),
|
|
17633
18059
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17634
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18060
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18061
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17635
18062
|
});
|
|
17636
18063
|
var CapUsageEdgeSchema = object({
|
|
17637
18064
|
callerAddonId: string(),
|
|
@@ -20431,6 +20858,12 @@ Object.freeze({
|
|
|
20431
20858
|
addonId: null,
|
|
20432
20859
|
access: "create"
|
|
20433
20860
|
},
|
|
20861
|
+
"loginMethod.getLoginMethods": {
|
|
20862
|
+
capName: "login-method",
|
|
20863
|
+
capScope: "system",
|
|
20864
|
+
addonId: null,
|
|
20865
|
+
access: "view"
|
|
20866
|
+
},
|
|
20434
20867
|
"mediaPlayer.next": {
|
|
20435
20868
|
capName: "media-player",
|
|
20436
20869
|
capScope: "device",
|
|
@@ -21013,6 +21446,12 @@ Object.freeze({
|
|
|
21013
21446
|
addonId: null,
|
|
21014
21447
|
access: "view"
|
|
21015
21448
|
},
|
|
21449
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21450
|
+
capName: "pipeline-analytics",
|
|
21451
|
+
capScope: "device",
|
|
21452
|
+
addonId: null,
|
|
21453
|
+
access: "view"
|
|
21454
|
+
},
|
|
21016
21455
|
"pipelineAnalytics.getMotionEvents": {
|
|
21017
21456
|
capName: "pipeline-analytics",
|
|
21018
21457
|
capScope: "device",
|
|
@@ -21061,23 +21500,23 @@ Object.freeze({
|
|
|
21061
21500
|
addonId: null,
|
|
21062
21501
|
access: "create"
|
|
21063
21502
|
},
|
|
21064
|
-
"pipelineExecutor.
|
|
21503
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21065
21504
|
capName: "pipeline-executor",
|
|
21066
21505
|
capScope: "system",
|
|
21067
21506
|
addonId: null,
|
|
21068
21507
|
access: "delete"
|
|
21069
21508
|
},
|
|
21070
|
-
"pipelineExecutor.
|
|
21509
|
+
"pipelineExecutor.deleteModel": {
|
|
21071
21510
|
capName: "pipeline-executor",
|
|
21072
21511
|
capScope: "system",
|
|
21073
21512
|
addonId: null,
|
|
21074
21513
|
access: "delete"
|
|
21075
21514
|
},
|
|
21076
|
-
"pipelineExecutor.
|
|
21515
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21077
21516
|
capName: "pipeline-executor",
|
|
21078
21517
|
capScope: "system",
|
|
21079
21518
|
addonId: null,
|
|
21080
|
-
access: "
|
|
21519
|
+
access: "delete"
|
|
21081
21520
|
},
|
|
21082
21521
|
"pipelineExecutor.downloadModel": {
|
|
21083
21522
|
capName: "pipeline-executor",
|
|
@@ -21271,13 +21710,13 @@ Object.freeze({
|
|
|
21271
21710
|
addonId: null,
|
|
21272
21711
|
access: "create"
|
|
21273
21712
|
},
|
|
21274
|
-
"
|
|
21275
|
-
capName: "pipeline-
|
|
21713
|
+
"pipelineExecutor.validatePipeline": {
|
|
21714
|
+
capName: "pipeline-executor",
|
|
21276
21715
|
capScope: "system",
|
|
21277
21716
|
addonId: null,
|
|
21278
|
-
access: "
|
|
21717
|
+
access: "view"
|
|
21279
21718
|
},
|
|
21280
|
-
"pipelineOrchestrator.
|
|
21719
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21281
21720
|
capName: "pipeline-orchestrator",
|
|
21282
21721
|
capScope: "system",
|
|
21283
21722
|
addonId: null,
|
|
@@ -21361,19 +21800,13 @@ Object.freeze({
|
|
|
21361
21800
|
addonId: null,
|
|
21362
21801
|
access: "view"
|
|
21363
21802
|
},
|
|
21364
|
-
"pipelineOrchestrator.
|
|
21365
|
-
capName: "pipeline-orchestrator",
|
|
21366
|
-
capScope: "system",
|
|
21367
|
-
addonId: null,
|
|
21368
|
-
access: "view"
|
|
21369
|
-
},
|
|
21370
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21803
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21371
21804
|
capName: "pipeline-orchestrator",
|
|
21372
21805
|
capScope: "system",
|
|
21373
21806
|
addonId: null,
|
|
21374
21807
|
access: "view"
|
|
21375
21808
|
},
|
|
21376
|
-
"pipelineOrchestrator.
|
|
21809
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21377
21810
|
capName: "pipeline-orchestrator",
|
|
21378
21811
|
capScope: "system",
|
|
21379
21812
|
addonId: null,
|
|
@@ -21415,6 +21848,12 @@ Object.freeze({
|
|
|
21415
21848
|
addonId: null,
|
|
21416
21849
|
access: "delete"
|
|
21417
21850
|
},
|
|
21851
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21852
|
+
capName: "pipeline-orchestrator",
|
|
21853
|
+
capScope: "system",
|
|
21854
|
+
addonId: null,
|
|
21855
|
+
access: "delete"
|
|
21856
|
+
},
|
|
21418
21857
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21419
21858
|
capName: "pipeline-orchestrator",
|
|
21420
21859
|
capScope: "system",
|
|
@@ -21451,37 +21890,37 @@ Object.freeze({
|
|
|
21451
21890
|
addonId: null,
|
|
21452
21891
|
access: "create"
|
|
21453
21892
|
},
|
|
21454
|
-
"pipelineOrchestrator.
|
|
21893
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21455
21894
|
capName: "pipeline-orchestrator",
|
|
21456
21895
|
capScope: "system",
|
|
21457
21896
|
addonId: null,
|
|
21458
21897
|
access: "create"
|
|
21459
21898
|
},
|
|
21460
|
-
"pipelineOrchestrator.
|
|
21899
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21461
21900
|
capName: "pipeline-orchestrator",
|
|
21462
21901
|
capScope: "system",
|
|
21463
21902
|
addonId: null,
|
|
21464
21903
|
access: "create"
|
|
21465
21904
|
},
|
|
21466
|
-
"pipelineOrchestrator.
|
|
21905
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21467
21906
|
capName: "pipeline-orchestrator",
|
|
21468
21907
|
capScope: "system",
|
|
21469
21908
|
addonId: null,
|
|
21470
21909
|
access: "create"
|
|
21471
21910
|
},
|
|
21472
|
-
"pipelineOrchestrator.
|
|
21911
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21473
21912
|
capName: "pipeline-orchestrator",
|
|
21474
21913
|
capScope: "system",
|
|
21475
21914
|
addonId: null,
|
|
21476
21915
|
access: "create"
|
|
21477
21916
|
},
|
|
21478
|
-
"pipelineOrchestrator.
|
|
21917
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21479
21918
|
capName: "pipeline-orchestrator",
|
|
21480
21919
|
capScope: "system",
|
|
21481
21920
|
addonId: null,
|
|
21482
21921
|
access: "create"
|
|
21483
21922
|
},
|
|
21484
|
-
"pipelineOrchestrator.
|
|
21923
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21485
21924
|
capName: "pipeline-orchestrator",
|
|
21486
21925
|
capScope: "system",
|
|
21487
21926
|
addonId: null,
|
|
@@ -21541,6 +21980,12 @@ Object.freeze({
|
|
|
21541
21980
|
addonId: null,
|
|
21542
21981
|
access: "view"
|
|
21543
21982
|
},
|
|
21983
|
+
"pipelineRunner.getNativeCrop": {
|
|
21984
|
+
capName: "pipeline-runner",
|
|
21985
|
+
capScope: "system",
|
|
21986
|
+
addonId: null,
|
|
21987
|
+
access: "view"
|
|
21988
|
+
},
|
|
21544
21989
|
"pipelineRunner.reportMotion": {
|
|
21545
21990
|
capName: "pipeline-runner",
|
|
21546
21991
|
capScope: "system",
|
|
@@ -21781,33 +22226,45 @@ Object.freeze({
|
|
|
21781
22226
|
addonId: null,
|
|
21782
22227
|
access: "create"
|
|
21783
22228
|
},
|
|
21784
|
-
"
|
|
21785
|
-
capName: "
|
|
22229
|
+
"scriptRunner.run": {
|
|
22230
|
+
capName: "script-runner",
|
|
22231
|
+
capScope: "device",
|
|
22232
|
+
addonId: null,
|
|
22233
|
+
access: "create"
|
|
22234
|
+
},
|
|
22235
|
+
"scriptRunner.stop": {
|
|
22236
|
+
capName: "script-runner",
|
|
22237
|
+
capScope: "device",
|
|
22238
|
+
addonId: null,
|
|
22239
|
+
access: "create"
|
|
22240
|
+
},
|
|
22241
|
+
"serverManagement.applyServerUpdate": {
|
|
22242
|
+
capName: "server-management",
|
|
21786
22243
|
capScope: "system",
|
|
21787
22244
|
addonId: null,
|
|
21788
|
-
access: "
|
|
22245
|
+
access: "create"
|
|
21789
22246
|
},
|
|
21790
|
-
"
|
|
21791
|
-
capName: "
|
|
22247
|
+
"serverManagement.checkServerUpdate": {
|
|
22248
|
+
capName: "server-management",
|
|
21792
22249
|
capScope: "system",
|
|
21793
22250
|
addonId: null,
|
|
21794
22251
|
access: "create"
|
|
21795
22252
|
},
|
|
21796
|
-
"
|
|
21797
|
-
capName: "
|
|
22253
|
+
"serverManagement.getServerPackageStatus": {
|
|
22254
|
+
capName: "server-management",
|
|
21798
22255
|
capScope: "system",
|
|
21799
22256
|
addonId: null,
|
|
21800
|
-
access: "
|
|
22257
|
+
access: "view"
|
|
21801
22258
|
},
|
|
21802
|
-
"
|
|
21803
|
-
capName: "
|
|
21804
|
-
capScope: "
|
|
22259
|
+
"serverManagement.restartServer": {
|
|
22260
|
+
capName: "server-management",
|
|
22261
|
+
capScope: "system",
|
|
21805
22262
|
addonId: null,
|
|
21806
22263
|
access: "create"
|
|
21807
22264
|
},
|
|
21808
|
-
"
|
|
21809
|
-
capName: "
|
|
21810
|
-
capScope: "
|
|
22265
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22266
|
+
capName: "server-management",
|
|
22267
|
+
capScope: "system",
|
|
21811
22268
|
addonId: null,
|
|
21812
22269
|
access: "create"
|
|
21813
22270
|
},
|
|
@@ -21895,23 +22352,17 @@ Object.freeze({
|
|
|
21895
22352
|
addonId: null,
|
|
21896
22353
|
access: "view"
|
|
21897
22354
|
},
|
|
21898
|
-
"snapshot.
|
|
22355
|
+
"snapshot.getSnapshotOverview": {
|
|
21899
22356
|
capName: "snapshot",
|
|
21900
22357
|
capScope: "device",
|
|
21901
22358
|
addonId: null,
|
|
21902
|
-
access: "create"
|
|
21903
|
-
},
|
|
21904
|
-
"snapshotProvider.getSnapshot": {
|
|
21905
|
-
capName: "snapshot-provider",
|
|
21906
|
-
capScope: "system",
|
|
21907
|
-
addonId: null,
|
|
21908
22359
|
access: "view"
|
|
21909
22360
|
},
|
|
21910
|
-
"
|
|
21911
|
-
capName: "snapshot
|
|
21912
|
-
capScope: "
|
|
22361
|
+
"snapshot.invalidateCache": {
|
|
22362
|
+
capName: "snapshot",
|
|
22363
|
+
capScope: "device",
|
|
21913
22364
|
addonId: null,
|
|
21914
|
-
access: "
|
|
22365
|
+
access: "create"
|
|
21915
22366
|
},
|
|
21916
22367
|
"ssoBridge.signBridgeToken": {
|
|
21917
22368
|
capName: "sso-bridge",
|
|
@@ -22339,30 +22790,6 @@ Object.freeze({
|
|
|
22339
22790
|
addonId: null,
|
|
22340
22791
|
access: "view"
|
|
22341
22792
|
},
|
|
22342
|
-
"streamingEngine.getStreamUrl": {
|
|
22343
|
-
capName: "streaming-engine",
|
|
22344
|
-
capScope: "system",
|
|
22345
|
-
addonId: null,
|
|
22346
|
-
access: "view"
|
|
22347
|
-
},
|
|
22348
|
-
"streamingEngine.listStreams": {
|
|
22349
|
-
capName: "streaming-engine",
|
|
22350
|
-
capScope: "system",
|
|
22351
|
-
addonId: null,
|
|
22352
|
-
access: "view"
|
|
22353
|
-
},
|
|
22354
|
-
"streamingEngine.registerStream": {
|
|
22355
|
-
capName: "streaming-engine",
|
|
22356
|
-
capScope: "system",
|
|
22357
|
-
addonId: null,
|
|
22358
|
-
access: "create"
|
|
22359
|
-
},
|
|
22360
|
-
"streamingEngine.unregisterStream": {
|
|
22361
|
-
capName: "streaming-engine",
|
|
22362
|
-
capScope: "system",
|
|
22363
|
-
addonId: null,
|
|
22364
|
-
access: "delete"
|
|
22365
|
-
},
|
|
22366
22793
|
"streamParams.getConfigSchema": {
|
|
22367
22794
|
capName: "stream-params",
|
|
22368
22795
|
capScope: "device",
|
|
@@ -22609,6 +23036,12 @@ Object.freeze({
|
|
|
22609
23036
|
addonId: null,
|
|
22610
23037
|
access: "view"
|
|
22611
23038
|
},
|
|
23039
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23040
|
+
capName: "user-passkeys",
|
|
23041
|
+
capScope: "system",
|
|
23042
|
+
addonId: null,
|
|
23043
|
+
access: "view"
|
|
23044
|
+
},
|
|
22612
23045
|
"userPasskeys.beginRegistration": {
|
|
22613
23046
|
capName: "user-passkeys",
|
|
22614
23047
|
capScope: "system",
|
|
@@ -22621,12 +23054,24 @@ Object.freeze({
|
|
|
22621
23054
|
addonId: null,
|
|
22622
23055
|
access: "view"
|
|
22623
23056
|
},
|
|
23057
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23058
|
+
capName: "user-passkeys",
|
|
23059
|
+
capScope: "system",
|
|
23060
|
+
addonId: null,
|
|
23061
|
+
access: "view"
|
|
23062
|
+
},
|
|
22624
23063
|
"userPasskeys.finishRegistration": {
|
|
22625
23064
|
capName: "user-passkeys",
|
|
22626
23065
|
capScope: "system",
|
|
22627
23066
|
addonId: null,
|
|
22628
23067
|
access: "create"
|
|
22629
23068
|
},
|
|
23069
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23070
|
+
capName: "user-passkeys",
|
|
23071
|
+
capScope: "system",
|
|
23072
|
+
addonId: null,
|
|
23073
|
+
access: "view"
|
|
23074
|
+
},
|
|
22630
23075
|
"userPasskeys.listPasskeys": {
|
|
22631
23076
|
capName: "user-passkeys",
|
|
22632
23077
|
capScope: "system",
|
|
@@ -22639,6 +23084,12 @@ Object.freeze({
|
|
|
22639
23084
|
addonId: null,
|
|
22640
23085
|
access: "delete"
|
|
22641
23086
|
},
|
|
23087
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23088
|
+
capName: "user-passkeys",
|
|
23089
|
+
capScope: "system",
|
|
23090
|
+
addonId: null,
|
|
23091
|
+
access: "create"
|
|
23092
|
+
},
|
|
22642
23093
|
"vacuumControl.locate": {
|
|
22643
23094
|
capName: "vacuum-control",
|
|
22644
23095
|
capScope: "device",
|
|
@@ -22711,6 +23162,18 @@ Object.freeze({
|
|
|
22711
23162
|
addonId: null,
|
|
22712
23163
|
access: "view"
|
|
22713
23164
|
},
|
|
23165
|
+
"viewerUi.getStaticDir": {
|
|
23166
|
+
capName: "viewer-ui",
|
|
23167
|
+
capScope: "system",
|
|
23168
|
+
addonId: null,
|
|
23169
|
+
access: "view"
|
|
23170
|
+
},
|
|
23171
|
+
"viewerUi.getVersion": {
|
|
23172
|
+
capName: "viewer-ui",
|
|
23173
|
+
capScope: "system",
|
|
23174
|
+
addonId: null,
|
|
23175
|
+
access: "view"
|
|
23176
|
+
},
|
|
22714
23177
|
"waterHeater.setAway": {
|
|
22715
23178
|
capName: "water-heater",
|
|
22716
23179
|
capScope: "device",
|
|
@@ -22729,54 +23192,6 @@ Object.freeze({
|
|
|
22729
23192
|
addonId: null,
|
|
22730
23193
|
access: "create"
|
|
22731
23194
|
},
|
|
22732
|
-
"webrtc.closeSession": {
|
|
22733
|
-
capName: "webrtc",
|
|
22734
|
-
capScope: "system",
|
|
22735
|
-
addonId: null,
|
|
22736
|
-
access: "create"
|
|
22737
|
-
},
|
|
22738
|
-
"webrtc.createSession": {
|
|
22739
|
-
capName: "webrtc",
|
|
22740
|
-
capScope: "system",
|
|
22741
|
-
addonId: null,
|
|
22742
|
-
access: "create"
|
|
22743
|
-
},
|
|
22744
|
-
"webrtc.handleAnswer": {
|
|
22745
|
-
capName: "webrtc",
|
|
22746
|
-
capScope: "system",
|
|
22747
|
-
addonId: null,
|
|
22748
|
-
access: "create"
|
|
22749
|
-
},
|
|
22750
|
-
"webrtc.handleOffer": {
|
|
22751
|
-
capName: "webrtc",
|
|
22752
|
-
capScope: "system",
|
|
22753
|
-
addonId: null,
|
|
22754
|
-
access: "create"
|
|
22755
|
-
},
|
|
22756
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22757
|
-
capName: "webrtc",
|
|
22758
|
-
capScope: "system",
|
|
22759
|
-
addonId: null,
|
|
22760
|
-
access: "view"
|
|
22761
|
-
},
|
|
22762
|
-
"webrtc.registerStream": {
|
|
22763
|
-
capName: "webrtc",
|
|
22764
|
-
capScope: "system",
|
|
22765
|
-
addonId: null,
|
|
22766
|
-
access: "create"
|
|
22767
|
-
},
|
|
22768
|
-
"webrtc.supportsStream": {
|
|
22769
|
-
capName: "webrtc",
|
|
22770
|
-
capScope: "system",
|
|
22771
|
-
addonId: null,
|
|
22772
|
-
access: "view"
|
|
22773
|
-
},
|
|
22774
|
-
"webrtc.unregisterStream": {
|
|
22775
|
-
capName: "webrtc",
|
|
22776
|
-
capScope: "system",
|
|
22777
|
-
addonId: null,
|
|
22778
|
-
access: "delete"
|
|
22779
|
-
},
|
|
22780
23195
|
"webrtcSession.addIceCandidate": {
|
|
22781
23196
|
capName: "webrtc-session",
|
|
22782
23197
|
capScope: "device",
|