@camstack/addon-mqtt-broker 1.1.19 → 1.1.20
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 +487 -252
- package/dist/mqtt-broker.addon.mjs +487 -252
- 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-DJaTV2D7.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,9 @@ function method(input, output, options) {
|
|
|
6764
6772
|
timeoutMs: options?.timeoutMs
|
|
6765
6773
|
};
|
|
6766
6774
|
}
|
|
6775
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6776
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6777
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6767
6778
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6768
6779
|
var VersionOutputSchema = object({ version: string() });
|
|
6769
6780
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6933,6 +6944,36 @@ var ModelFormatsSchema = object({
|
|
|
6933
6944
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6934
6945
|
pt: ModelFormatEntrySchema.optional()
|
|
6935
6946
|
});
|
|
6947
|
+
/**
|
|
6948
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6949
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6950
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6951
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6952
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6953
|
+
* to an `id`.
|
|
6954
|
+
*/
|
|
6955
|
+
var ModelVariantGroupSchema = object({
|
|
6956
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6957
|
+
family: string(),
|
|
6958
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6959
|
+
tier: string(),
|
|
6960
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6961
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6962
|
+
/**
|
|
6963
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6964
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6965
|
+
* future performance variants plug into.
|
|
6966
|
+
*/
|
|
6967
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6968
|
+
/**
|
|
6969
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6970
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6971
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6972
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6973
|
+
* the group so the selector can offer it as a variant axis.
|
|
6974
|
+
*/
|
|
6975
|
+
resolution: number().int().positive().optional()
|
|
6976
|
+
});
|
|
6936
6977
|
var ModelCatalogEntrySchema = object({
|
|
6937
6978
|
id: string(),
|
|
6938
6979
|
name: string(),
|
|
@@ -6962,7 +7003,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6962
7003
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6963
7004
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6964
7005
|
*/
|
|
6965
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7006
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7007
|
+
/**
|
|
7008
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7009
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7010
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7011
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7012
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7013
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7014
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7015
|
+
*/
|
|
7016
|
+
legacy: boolean().optional(),
|
|
7017
|
+
/**
|
|
7018
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7019
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7020
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7021
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7022
|
+
*/
|
|
7023
|
+
metrics: object({
|
|
7024
|
+
map50: number().optional(),
|
|
7025
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7026
|
+
}).optional(),
|
|
7027
|
+
/**
|
|
7028
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7029
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7030
|
+
* the retraining addon and any future commercial distribution.
|
|
7031
|
+
*/
|
|
7032
|
+
license: string().optional(),
|
|
7033
|
+
/**
|
|
7034
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7035
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7036
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7037
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7038
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7039
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7040
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7041
|
+
*/
|
|
7042
|
+
group: ModelVariantGroupSchema.optional()
|
|
6966
7043
|
});
|
|
6967
7044
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6968
7045
|
format: literal("openvino"),
|
|
@@ -7023,8 +7100,8 @@ var RecordingModeSchema = _enum([
|
|
|
7023
7100
|
"onAudioThreshold"
|
|
7024
7101
|
]);
|
|
7025
7102
|
/**
|
|
7026
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7027
|
-
* reads directly (never inferred from `rules`):
|
|
7103
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7104
|
+
* UI reads directly (never inferred from `rules`):
|
|
7028
7105
|
* - `off` — not recording.
|
|
7029
7106
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7030
7107
|
* with pre/post-buffer.
|
|
@@ -8672,26 +8749,13 @@ DeviceType.Light, method(object({
|
|
|
8672
8749
|
percentage: number().min(0).max(100),
|
|
8673
8750
|
lastChangedAt: number()
|
|
8674
8751
|
});
|
|
8752
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8675
8753
|
var StreamFormatSchema = _enum([
|
|
8676
8754
|
"webrtc",
|
|
8677
8755
|
"hls",
|
|
8678
8756
|
"mjpeg",
|
|
8679
8757
|
"rtsp"
|
|
8680
8758
|
]);
|
|
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
8759
|
var RtspRestreamEntrySchema = object({
|
|
8696
8760
|
brokerId: string(),
|
|
8697
8761
|
url: string(),
|
|
@@ -9356,7 +9420,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9356
9420
|
})),
|
|
9357
9421
|
lastChangedAt: number()
|
|
9358
9422
|
});
|
|
9359
|
-
|
|
9423
|
+
Object.values(DeviceType), method(object({
|
|
9360
9424
|
deviceId: number().int().nonnegative(),
|
|
9361
9425
|
key: string().min(1)
|
|
9362
9426
|
}), _void(), {
|
|
@@ -10271,7 +10335,7 @@ var BoundingBoxSchema = object({
|
|
|
10271
10335
|
w: number(),
|
|
10272
10336
|
h: number()
|
|
10273
10337
|
});
|
|
10274
|
-
|
|
10338
|
+
object({
|
|
10275
10339
|
class: string(),
|
|
10276
10340
|
originalClass: string(),
|
|
10277
10341
|
score: number(),
|
|
@@ -10406,7 +10470,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10406
10470
|
enabled: boolean(),
|
|
10407
10471
|
modelId: string(),
|
|
10408
10472
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10409
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10410
10473
|
group: string().optional(),
|
|
10411
10474
|
settings: record(string(), unknown()).optional()
|
|
10412
10475
|
}));
|
|
@@ -10431,7 +10494,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10431
10494
|
formats: record(string(), object({
|
|
10432
10495
|
downloaded: boolean(),
|
|
10433
10496
|
sizeMB: number()
|
|
10434
|
-
}))
|
|
10497
|
+
})),
|
|
10498
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10499
|
+
legacy: boolean().optional()
|
|
10435
10500
|
});
|
|
10436
10501
|
var ConfigFieldBridge = custom();
|
|
10437
10502
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10461,11 +10526,6 @@ var PipelineSchemaSchema = object({
|
|
|
10461
10526
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10462
10527
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10463
10528
|
});
|
|
10464
|
-
var DetectorOutputSchema = object({
|
|
10465
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10466
|
-
inferenceMs: number(),
|
|
10467
|
-
modelId: string()
|
|
10468
|
-
});
|
|
10469
10529
|
var EngineProvisioningSchema = object({
|
|
10470
10530
|
runtimeId: _enum([
|
|
10471
10531
|
"onnx",
|
|
@@ -10482,15 +10542,42 @@ var EngineProvisioningSchema = object({
|
|
|
10482
10542
|
]),
|
|
10483
10543
|
progress: number().optional(),
|
|
10484
10544
|
error: string().optional(),
|
|
10485
|
-
nextRetryAt: number().optional()
|
|
10545
|
+
nextRetryAt: number().optional(),
|
|
10546
|
+
/**
|
|
10547
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10548
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10549
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10550
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10551
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10552
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10553
|
+
*/
|
|
10554
|
+
configIssues: array(string()).optional()
|
|
10486
10555
|
});
|
|
10487
10556
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10488
10557
|
addonId: string(),
|
|
10489
|
-
modelId: string(),
|
|
10558
|
+
modelId: string().optional(),
|
|
10490
10559
|
enabled: boolean().default(true),
|
|
10491
10560
|
children: array(PipelineStepInputSchema).optional(),
|
|
10492
10561
|
settings: record(string(), unknown()).optional()
|
|
10493
10562
|
}));
|
|
10563
|
+
var ModelSubstitutionSchema = object({
|
|
10564
|
+
addonId: string(),
|
|
10565
|
+
chosen: string(),
|
|
10566
|
+
running: string(),
|
|
10567
|
+
format: string()
|
|
10568
|
+
});
|
|
10569
|
+
var PipelineValidationIssueSchema = object({
|
|
10570
|
+
addonId: string(),
|
|
10571
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10572
|
+
detail: string()
|
|
10573
|
+
});
|
|
10574
|
+
var PipelineValidationResultSchema = object({
|
|
10575
|
+
ok: boolean(),
|
|
10576
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10577
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10578
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10579
|
+
format: string()
|
|
10580
|
+
});
|
|
10494
10581
|
var ReferenceImageEntrySchema = object({
|
|
10495
10582
|
filename: string(),
|
|
10496
10583
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10561,7 +10648,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10561
10648
|
})) }), object({ success: literal(true) }), {
|
|
10562
10649
|
kind: "mutation",
|
|
10563
10650
|
auth: "admin"
|
|
10564
|
-
}), method(
|
|
10651
|
+
}), method(object({ nodeId: string() }), object({
|
|
10652
|
+
success: literal(true),
|
|
10653
|
+
clearedDevices: number()
|
|
10654
|
+
}), {
|
|
10655
|
+
kind: "mutation",
|
|
10656
|
+
auth: "admin"
|
|
10657
|
+
}), 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
10658
|
name: string(),
|
|
10566
10659
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10567
10660
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10578,10 +10671,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10578
10671
|
modelId: string(),
|
|
10579
10672
|
format: ModelFormatSchema$1
|
|
10580
10673
|
}), 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
10674
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10586
10675
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10587
10676
|
frame: FrameInputSchema.optional(),
|
|
@@ -10821,6 +10910,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10821
10910
|
kind: literal("remote-restream"),
|
|
10822
10911
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10823
10912
|
ownerNodeId: string(),
|
|
10913
|
+
/**
|
|
10914
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10915
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10916
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10917
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10918
|
+
*/
|
|
10919
|
+
ownerReachableHost: string().optional(),
|
|
10824
10920
|
/** Operator override for the owner host the runner dials. */
|
|
10825
10921
|
hubHostnameOverride: string().optional()
|
|
10826
10922
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10829,13 +10925,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10829
10925
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10830
10926
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10831
10927
|
*
|
|
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.
|
|
10928
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10929
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10930
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10931
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10932
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10839
10933
|
*/
|
|
10840
10934
|
var RunnerCameraConfigSchema = object({
|
|
10841
10935
|
deviceId: number(),
|
|
@@ -10886,14 +10980,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10886
10980
|
*/
|
|
10887
10981
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10888
10982
|
pipelineEnabled: boolean().default(true),
|
|
10889
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10890
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10891
10983
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10892
10984
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10893
10985
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10894
10986
|
audio: object({
|
|
10895
|
-
|
|
10896
|
-
modelId: string(),
|
|
10987
|
+
modelId: string().optional(),
|
|
10897
10988
|
enabled: boolean()
|
|
10898
10989
|
}).nullable().optional(),
|
|
10899
10990
|
/**
|
|
@@ -12274,7 +12365,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12274
12365
|
icon: string(),
|
|
12275
12366
|
path: string(),
|
|
12276
12367
|
remoteName: string(),
|
|
12277
|
-
bundle: string()
|
|
12368
|
+
bundle: string(),
|
|
12369
|
+
section: string().optional(),
|
|
12370
|
+
sectionLabel: string().optional()
|
|
12278
12371
|
});
|
|
12279
12372
|
var AddonPageInfoSchema = object({
|
|
12280
12373
|
addonId: string(),
|
|
@@ -12314,7 +12407,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12314
12407
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12315
12408
|
* without a separate filesystem stat.
|
|
12316
12409
|
*/
|
|
12317
|
-
bundle: string()
|
|
12410
|
+
bundle: string(),
|
|
12411
|
+
/**
|
|
12412
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12413
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12414
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12415
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12416
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12417
|
+
* "Addon Pages" group.
|
|
12418
|
+
*/
|
|
12419
|
+
section: string().optional(),
|
|
12420
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12421
|
+
sectionLabel: string().optional()
|
|
12318
12422
|
});
|
|
12319
12423
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12320
12424
|
var AddonHttpRouteSchema = object({
|
|
@@ -12530,6 +12634,17 @@ var WidgetMetadataSchema = object({
|
|
|
12530
12634
|
deviceContext: boolean().default(false),
|
|
12531
12635
|
integrationContext: boolean().default(false)
|
|
12532
12636
|
}),
|
|
12637
|
+
/**
|
|
12638
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12639
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12640
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12641
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12642
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12643
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12644
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12645
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12646
|
+
*/
|
|
12647
|
+
preAuth: boolean().optional().default(false),
|
|
12533
12648
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12534
12649
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12535
12650
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12831,6 +12946,66 @@ method(object({
|
|
|
12831
12946
|
password: string()
|
|
12832
12947
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12833
12948
|
/**
|
|
12949
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12950
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12951
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12952
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12953
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12954
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12955
|
+
*
|
|
12956
|
+
* A contribution is a discriminated union on `kind`:
|
|
12957
|
+
*
|
|
12958
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12959
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12960
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12961
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12962
|
+
* login page needs NO change.
|
|
12963
|
+
*
|
|
12964
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12965
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12966
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12967
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12968
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
12969
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
12970
|
+
*
|
|
12971
|
+
* Every contribution carries a `stage`:
|
|
12972
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
12973
|
+
* magic-link buttons; a future usernameless passkey).
|
|
12974
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
12975
|
+
* returned `factors` (passkey-as-2FA today).
|
|
12976
|
+
*
|
|
12977
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
12978
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
12979
|
+
* tRPC router.
|
|
12980
|
+
*/
|
|
12981
|
+
/** When a login method renders in the two-phase login flow. */
|
|
12982
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
12983
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
12984
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
12985
|
+
kind: literal("redirect"),
|
|
12986
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
12987
|
+
id: string(),
|
|
12988
|
+
/** Operator-facing button label. */
|
|
12989
|
+
label: string(),
|
|
12990
|
+
/** lucide-react icon name. */
|
|
12991
|
+
icon: string().optional(),
|
|
12992
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
12993
|
+
startUrl: string(),
|
|
12994
|
+
stage: LoginStageEnum
|
|
12995
|
+
}), object({
|
|
12996
|
+
kind: literal("widget"),
|
|
12997
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
12998
|
+
id: string(),
|
|
12999
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13000
|
+
addonId: string(),
|
|
13001
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13002
|
+
bundle: string(),
|
|
13003
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13004
|
+
remote: WidgetRemoteSchema,
|
|
13005
|
+
stage: LoginStageEnum
|
|
13006
|
+
})]);
|
|
13007
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13008
|
+
/**
|
|
12834
13009
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12835
13010
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12836
13011
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -15187,11 +15362,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15187
15362
|
timestamp: number()
|
|
15188
15363
|
});
|
|
15189
15364
|
var CameraPipelineConfigSchema = object({
|
|
15190
|
-
engine: PipelineEngineChoiceSchema,
|
|
15365
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15191
15366
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15192
15367
|
audio: object({
|
|
15193
|
-
engine: PipelineEngineChoiceSchema,
|
|
15194
|
-
modelId: string(),
|
|
15368
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15369
|
+
modelId: string().optional(),
|
|
15195
15370
|
enabled: boolean(),
|
|
15196
15371
|
settings: record(string(), unknown()).readonly().optional()
|
|
15197
15372
|
}).nullable().optional()
|
|
@@ -15206,7 +15381,7 @@ var PipelineTemplateSchema = object({
|
|
|
15206
15381
|
});
|
|
15207
15382
|
var AgentAddonConfigSchema = object({
|
|
15208
15383
|
enabled: boolean(),
|
|
15209
|
-
modelId: string(),
|
|
15384
|
+
modelId: string().optional(),
|
|
15210
15385
|
settings: record(string(), unknown()).readonly()
|
|
15211
15386
|
});
|
|
15212
15387
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15216,12 +15391,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15216
15391
|
detectWeight: number().positive().optional(),
|
|
15217
15392
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15218
15393
|
detect: boolean().optional(),
|
|
15219
|
-
/**
|
|
15394
|
+
/**
|
|
15395
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15396
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15397
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15398
|
+
* parse — no code reads it and no write path emits it.
|
|
15399
|
+
*/
|
|
15220
15400
|
decode: boolean().optional(),
|
|
15221
15401
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15222
15402
|
audio: boolean().optional(),
|
|
15223
15403
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15224
|
-
ingest: boolean().optional()
|
|
15404
|
+
ingest: boolean().optional(),
|
|
15405
|
+
/**
|
|
15406
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15407
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15408
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15409
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15410
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15411
|
+
*/
|
|
15412
|
+
reachableHost: string().optional()
|
|
15225
15413
|
});
|
|
15226
15414
|
var CameraPipelineForAgentSchema = object({
|
|
15227
15415
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15269,25 +15457,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15269
15457
|
assignedAt: number()
|
|
15270
15458
|
});
|
|
15271
15459
|
/**
|
|
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
15460
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15292
15461
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15293
15462
|
*/
|
|
@@ -15327,6 +15496,15 @@ var GlobalMetricsSchema = object({
|
|
|
15327
15496
|
* capability providers.
|
|
15328
15497
|
*/
|
|
15329
15498
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15499
|
+
/**
|
|
15500
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15501
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15502
|
+
*/
|
|
15503
|
+
var IngestOwnerSchema = object({
|
|
15504
|
+
ownerNodeId: string(),
|
|
15505
|
+
reachableHost: string().optional(),
|
|
15506
|
+
configIssue: string().optional()
|
|
15507
|
+
});
|
|
15330
15508
|
/** Source block — always present; derives from the stream catalog. */
|
|
15331
15509
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15332
15510
|
camStreamId: string(),
|
|
@@ -15341,6 +15519,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15341
15519
|
detectionNodeId: string().nullable(),
|
|
15342
15520
|
decoderNodeId: string().nullable(),
|
|
15343
15521
|
audioNodeId: string().nullable(),
|
|
15522
|
+
/**
|
|
15523
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15524
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15525
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15526
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15527
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15528
|
+
*/
|
|
15529
|
+
sourceNodeId: string().nullable(),
|
|
15344
15530
|
pinned: object({
|
|
15345
15531
|
detection: boolean(),
|
|
15346
15532
|
decoder: boolean(),
|
|
@@ -15473,16 +15659,7 @@ method(object({
|
|
|
15473
15659
|
}), object({ success: literal(true) }), {
|
|
15474
15660
|
kind: "mutation",
|
|
15475
15661
|
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({
|
|
15662
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15486
15663
|
deviceId: number(),
|
|
15487
15664
|
nodeId: string()
|
|
15488
15665
|
}), object({ success: literal(true) }), {
|
|
@@ -15503,10 +15680,7 @@ method(object({
|
|
|
15503
15680
|
nodeId: string(),
|
|
15504
15681
|
pinned: boolean(),
|
|
15505
15682
|
assignedAt: number()
|
|
15506
|
-
}))), method(object({
|
|
15507
|
-
deviceId: number(),
|
|
15508
|
-
pipelineNodeId: string().optional()
|
|
15509
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15683
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15510
15684
|
nodeId: string(),
|
|
15511
15685
|
settings: AgentPipelineSettingsSchema
|
|
15512
15686
|
})).readonly()), method(object({
|
|
@@ -15536,12 +15710,26 @@ method(object({
|
|
|
15536
15710
|
}), method(object({
|
|
15537
15711
|
agentNodeId: string(),
|
|
15538
15712
|
detect: boolean().nullable().optional(),
|
|
15539
|
-
decode: boolean().nullable().optional(),
|
|
15540
15713
|
audio: boolean().nullable().optional(),
|
|
15541
15714
|
ingest: boolean().nullable().optional()
|
|
15542
15715
|
}), object({ success: literal(true) }), {
|
|
15543
15716
|
kind: "mutation",
|
|
15544
15717
|
auth: "admin"
|
|
15718
|
+
}), method(object({
|
|
15719
|
+
agentNodeId: string(),
|
|
15720
|
+
reachableHost: string().nullable()
|
|
15721
|
+
}), object({ success: literal(true) }), {
|
|
15722
|
+
kind: "mutation",
|
|
15723
|
+
auth: "admin"
|
|
15724
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15725
|
+
success: literal(true),
|
|
15726
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15727
|
+
effectiveModelId: string().nullable(),
|
|
15728
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15729
|
+
clearedCameraOverrides: number()
|
|
15730
|
+
}), {
|
|
15731
|
+
kind: "mutation",
|
|
15732
|
+
auth: "admin"
|
|
15545
15733
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15546
15734
|
deviceId: number(),
|
|
15547
15735
|
addonId: string(),
|
|
@@ -15586,22 +15774,131 @@ method(object({
|
|
|
15586
15774
|
kind: "mutation",
|
|
15587
15775
|
auth: "admin"
|
|
15588
15776
|
});
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15777
|
+
/**
|
|
15778
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15779
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15780
|
+
* agents).
|
|
15781
|
+
*
|
|
15782
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15783
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15784
|
+
* version describes the node. Updates install into
|
|
15785
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15786
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15787
|
+
*
|
|
15788
|
+
* Providers:
|
|
15789
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15790
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15791
|
+
* unpinned calls.
|
|
15792
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15793
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15794
|
+
* `$hub.registerNode` manifest.
|
|
15795
|
+
*
|
|
15796
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15797
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15798
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15799
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15800
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15801
|
+
*
|
|
15802
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15803
|
+
*/
|
|
15804
|
+
/**
|
|
15805
|
+
* Where the running hub's code was loaded from:
|
|
15806
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15807
|
+
* plain resolution and runtime updates are refused.
|
|
15808
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15809
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15810
|
+
*/
|
|
15811
|
+
var ServerBootModeSchema = _enum([
|
|
15812
|
+
"workspace",
|
|
15813
|
+
"baked",
|
|
15814
|
+
"data-root"
|
|
15815
|
+
]);
|
|
15816
|
+
/**
|
|
15817
|
+
* Update lifecycle state:
|
|
15818
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15819
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15820
|
+
* restarted onto it (still running the OLD version).
|
|
15821
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15822
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15823
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15824
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15825
|
+
*/
|
|
15826
|
+
var ServerUpdateStateSchema = _enum([
|
|
15827
|
+
"idle",
|
|
15828
|
+
"checking",
|
|
15829
|
+
"staging",
|
|
15830
|
+
"pending-restart",
|
|
15831
|
+
"awaiting-confirmation"
|
|
15832
|
+
]);
|
|
15833
|
+
var ServerRollbackInfoSchema = object({
|
|
15834
|
+
/** The version that failed (or was manually rolled back). */
|
|
15835
|
+
fromVersion: string(),
|
|
15836
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15837
|
+
toVersion: string().nullable(),
|
|
15838
|
+
atMs: number(),
|
|
15839
|
+
reason: string()
|
|
15595
15840
|
});
|
|
15596
|
-
var
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15841
|
+
var ServerPackageStatusSchema = object({
|
|
15842
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15843
|
+
packageName: string(),
|
|
15844
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15845
|
+
runningVersion: string().nullable(),
|
|
15846
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15847
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15848
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15849
|
+
activeVersion: string().nullable(),
|
|
15850
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15851
|
+
previousVersion: string().nullable(),
|
|
15852
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15853
|
+
seedVersion: string().nullable(),
|
|
15854
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15855
|
+
latestVersion: string().nullable(),
|
|
15856
|
+
updateAvailable: boolean(),
|
|
15857
|
+
bootMode: ServerBootModeSchema,
|
|
15858
|
+
updateState: ServerUpdateStateSchema,
|
|
15859
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15860
|
+
pendingVersion: string().nullable(),
|
|
15861
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15862
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15863
|
+
/**
|
|
15864
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15865
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15866
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15867
|
+
*/
|
|
15868
|
+
stateFileCorrupt: boolean(),
|
|
15869
|
+
lastCheckedAtMs: number().nullable()
|
|
15870
|
+
});
|
|
15871
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15872
|
+
packageName: string(),
|
|
15873
|
+
runningVersion: string().nullable(),
|
|
15874
|
+
latestVersion: string().nullable(),
|
|
15875
|
+
updateAvailable: boolean(),
|
|
15876
|
+
checkedAtMs: number(),
|
|
15877
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15878
|
+
error: string().nullable()
|
|
15879
|
+
});
|
|
15880
|
+
var ServerUpdateActionResultSchema = object({
|
|
15881
|
+
accepted: boolean(),
|
|
15882
|
+
targetVersion: string().nullable(),
|
|
15883
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15884
|
+
restarting: boolean(),
|
|
15885
|
+
message: string()
|
|
15886
|
+
});
|
|
15887
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15888
|
+
kind: "mutation",
|
|
15889
|
+
auth: "admin"
|
|
15890
|
+
}), method(object({
|
|
15891
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15892
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15893
|
+
kind: "mutation",
|
|
15894
|
+
auth: "admin"
|
|
15895
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15896
|
+
kind: "mutation",
|
|
15897
|
+
auth: "admin"
|
|
15898
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15899
|
+
kind: "mutation",
|
|
15900
|
+
auth: "admin"
|
|
15600
15901
|
});
|
|
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
15902
|
/**
|
|
15606
15903
|
* Query filter for settings-store collections.
|
|
15607
15904
|
*/
|
|
@@ -15754,9 +16051,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15754
16051
|
/**
|
|
15755
16052
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15756
16053
|
*
|
|
15757
|
-
*
|
|
15758
|
-
*
|
|
15759
|
-
*
|
|
16054
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16055
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16056
|
+
* prebuffer fallback.
|
|
15760
16057
|
*/
|
|
15761
16058
|
var SnapshotImageSchema = object({
|
|
15762
16059
|
base64: string(),
|
|
@@ -15788,10 +16085,6 @@ DeviceType.Camera, method(object({
|
|
|
15788
16085
|
kind: "mutation",
|
|
15789
16086
|
auth: "admin"
|
|
15790
16087
|
});
|
|
15791
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
15792
|
-
deviceId: number(),
|
|
15793
|
-
streamId: string().optional()
|
|
15794
|
-
}), SnapshotImageSchema.nullable());
|
|
15795
16088
|
/**
|
|
15796
16089
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15797
16090
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16152,9 +16445,10 @@ method(object({
|
|
|
16152
16445
|
auth: "admin"
|
|
16153
16446
|
});
|
|
16154
16447
|
/**
|
|
16155
|
-
* Optional client-side hints sent at session creation to help the
|
|
16156
|
-
*
|
|
16157
|
-
*
|
|
16448
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16449
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16450
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16451
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16158
16452
|
*/
|
|
16159
16453
|
var webrtcClientHintsSchema = object({
|
|
16160
16454
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16165,22 +16459,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16165
16459
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16166
16460
|
prefersTier: string().optional()
|
|
16167
16461
|
}).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
16462
|
/**
|
|
16185
16463
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16186
16464
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -17608,6 +17886,16 @@ var TopologyCategorySchema = object({
|
|
|
17608
17886
|
healthy: number(),
|
|
17609
17887
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17610
17888
|
});
|
|
17889
|
+
/**
|
|
17890
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17891
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17892
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17893
|
+
* rows and pre-phase-2 nodes report none.
|
|
17894
|
+
*/
|
|
17895
|
+
var TopologyRootPackageSchema = object({
|
|
17896
|
+
name: string(),
|
|
17897
|
+
version: string()
|
|
17898
|
+
});
|
|
17611
17899
|
var TopologyNodeSchema = object({
|
|
17612
17900
|
id: string(),
|
|
17613
17901
|
name: string(),
|
|
@@ -17631,7 +17919,8 @@ var TopologyNodeSchema = object({
|
|
|
17631
17919
|
status: string()
|
|
17632
17920
|
})).readonly(),
|
|
17633
17921
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17634
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
17922
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
17923
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17635
17924
|
});
|
|
17636
17925
|
var CapUsageEdgeSchema = object({
|
|
17637
17926
|
callerAddonId: string(),
|
|
@@ -20431,6 +20720,12 @@ Object.freeze({
|
|
|
20431
20720
|
addonId: null,
|
|
20432
20721
|
access: "create"
|
|
20433
20722
|
},
|
|
20723
|
+
"loginMethod.getLoginMethods": {
|
|
20724
|
+
capName: "login-method",
|
|
20725
|
+
capScope: "system",
|
|
20726
|
+
addonId: null,
|
|
20727
|
+
access: "view"
|
|
20728
|
+
},
|
|
20434
20729
|
"mediaPlayer.next": {
|
|
20435
20730
|
capName: "media-player",
|
|
20436
20731
|
capScope: "device",
|
|
@@ -21061,23 +21356,23 @@ Object.freeze({
|
|
|
21061
21356
|
addonId: null,
|
|
21062
21357
|
access: "create"
|
|
21063
21358
|
},
|
|
21064
|
-
"pipelineExecutor.
|
|
21359
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21065
21360
|
capName: "pipeline-executor",
|
|
21066
21361
|
capScope: "system",
|
|
21067
21362
|
addonId: null,
|
|
21068
21363
|
access: "delete"
|
|
21069
21364
|
},
|
|
21070
|
-
"pipelineExecutor.
|
|
21365
|
+
"pipelineExecutor.deleteModel": {
|
|
21071
21366
|
capName: "pipeline-executor",
|
|
21072
21367
|
capScope: "system",
|
|
21073
21368
|
addonId: null,
|
|
21074
21369
|
access: "delete"
|
|
21075
21370
|
},
|
|
21076
|
-
"pipelineExecutor.
|
|
21371
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21077
21372
|
capName: "pipeline-executor",
|
|
21078
21373
|
capScope: "system",
|
|
21079
21374
|
addonId: null,
|
|
21080
|
-
access: "
|
|
21375
|
+
access: "delete"
|
|
21081
21376
|
},
|
|
21082
21377
|
"pipelineExecutor.downloadModel": {
|
|
21083
21378
|
capName: "pipeline-executor",
|
|
@@ -21271,13 +21566,13 @@ Object.freeze({
|
|
|
21271
21566
|
addonId: null,
|
|
21272
21567
|
access: "create"
|
|
21273
21568
|
},
|
|
21274
|
-
"
|
|
21275
|
-
capName: "pipeline-
|
|
21569
|
+
"pipelineExecutor.validatePipeline": {
|
|
21570
|
+
capName: "pipeline-executor",
|
|
21276
21571
|
capScope: "system",
|
|
21277
21572
|
addonId: null,
|
|
21278
|
-
access: "
|
|
21573
|
+
access: "view"
|
|
21279
21574
|
},
|
|
21280
|
-
"pipelineOrchestrator.
|
|
21575
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21281
21576
|
capName: "pipeline-orchestrator",
|
|
21282
21577
|
capScope: "system",
|
|
21283
21578
|
addonId: null,
|
|
@@ -21361,19 +21656,13 @@ Object.freeze({
|
|
|
21361
21656
|
addonId: null,
|
|
21362
21657
|
access: "view"
|
|
21363
21658
|
},
|
|
21364
|
-
"pipelineOrchestrator.
|
|
21659
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21365
21660
|
capName: "pipeline-orchestrator",
|
|
21366
21661
|
capScope: "system",
|
|
21367
21662
|
addonId: null,
|
|
21368
21663
|
access: "view"
|
|
21369
21664
|
},
|
|
21370
|
-
"pipelineOrchestrator.
|
|
21371
|
-
capName: "pipeline-orchestrator",
|
|
21372
|
-
capScope: "system",
|
|
21373
|
-
addonId: null,
|
|
21374
|
-
access: "view"
|
|
21375
|
-
},
|
|
21376
|
-
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21665
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21377
21666
|
capName: "pipeline-orchestrator",
|
|
21378
21667
|
capScope: "system",
|
|
21379
21668
|
addonId: null,
|
|
@@ -21415,6 +21704,12 @@ Object.freeze({
|
|
|
21415
21704
|
addonId: null,
|
|
21416
21705
|
access: "delete"
|
|
21417
21706
|
},
|
|
21707
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21708
|
+
capName: "pipeline-orchestrator",
|
|
21709
|
+
capScope: "system",
|
|
21710
|
+
addonId: null,
|
|
21711
|
+
access: "delete"
|
|
21712
|
+
},
|
|
21418
21713
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21419
21714
|
capName: "pipeline-orchestrator",
|
|
21420
21715
|
capScope: "system",
|
|
@@ -21451,37 +21746,37 @@ Object.freeze({
|
|
|
21451
21746
|
addonId: null,
|
|
21452
21747
|
access: "create"
|
|
21453
21748
|
},
|
|
21454
|
-
"pipelineOrchestrator.
|
|
21749
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21455
21750
|
capName: "pipeline-orchestrator",
|
|
21456
21751
|
capScope: "system",
|
|
21457
21752
|
addonId: null,
|
|
21458
21753
|
access: "create"
|
|
21459
21754
|
},
|
|
21460
|
-
"pipelineOrchestrator.
|
|
21755
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21461
21756
|
capName: "pipeline-orchestrator",
|
|
21462
21757
|
capScope: "system",
|
|
21463
21758
|
addonId: null,
|
|
21464
21759
|
access: "create"
|
|
21465
21760
|
},
|
|
21466
|
-
"pipelineOrchestrator.
|
|
21761
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21467
21762
|
capName: "pipeline-orchestrator",
|
|
21468
21763
|
capScope: "system",
|
|
21469
21764
|
addonId: null,
|
|
21470
21765
|
access: "create"
|
|
21471
21766
|
},
|
|
21472
|
-
"pipelineOrchestrator.
|
|
21767
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21473
21768
|
capName: "pipeline-orchestrator",
|
|
21474
21769
|
capScope: "system",
|
|
21475
21770
|
addonId: null,
|
|
21476
21771
|
access: "create"
|
|
21477
21772
|
},
|
|
21478
|
-
"pipelineOrchestrator.
|
|
21773
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21479
21774
|
capName: "pipeline-orchestrator",
|
|
21480
21775
|
capScope: "system",
|
|
21481
21776
|
addonId: null,
|
|
21482
21777
|
access: "create"
|
|
21483
21778
|
},
|
|
21484
|
-
"pipelineOrchestrator.
|
|
21779
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21485
21780
|
capName: "pipeline-orchestrator",
|
|
21486
21781
|
capScope: "system",
|
|
21487
21782
|
addonId: null,
|
|
@@ -21781,33 +22076,45 @@ Object.freeze({
|
|
|
21781
22076
|
addonId: null,
|
|
21782
22077
|
access: "create"
|
|
21783
22078
|
},
|
|
21784
|
-
"
|
|
21785
|
-
capName: "
|
|
22079
|
+
"scriptRunner.run": {
|
|
22080
|
+
capName: "script-runner",
|
|
22081
|
+
capScope: "device",
|
|
22082
|
+
addonId: null,
|
|
22083
|
+
access: "create"
|
|
22084
|
+
},
|
|
22085
|
+
"scriptRunner.stop": {
|
|
22086
|
+
capName: "script-runner",
|
|
22087
|
+
capScope: "device",
|
|
22088
|
+
addonId: null,
|
|
22089
|
+
access: "create"
|
|
22090
|
+
},
|
|
22091
|
+
"serverManagement.applyServerUpdate": {
|
|
22092
|
+
capName: "server-management",
|
|
21786
22093
|
capScope: "system",
|
|
21787
22094
|
addonId: null,
|
|
21788
|
-
access: "
|
|
22095
|
+
access: "create"
|
|
21789
22096
|
},
|
|
21790
|
-
"
|
|
21791
|
-
capName: "
|
|
22097
|
+
"serverManagement.checkServerUpdate": {
|
|
22098
|
+
capName: "server-management",
|
|
21792
22099
|
capScope: "system",
|
|
21793
22100
|
addonId: null,
|
|
21794
22101
|
access: "create"
|
|
21795
22102
|
},
|
|
21796
|
-
"
|
|
21797
|
-
capName: "
|
|
22103
|
+
"serverManagement.getServerPackageStatus": {
|
|
22104
|
+
capName: "server-management",
|
|
21798
22105
|
capScope: "system",
|
|
21799
22106
|
addonId: null,
|
|
21800
|
-
access: "
|
|
22107
|
+
access: "view"
|
|
21801
22108
|
},
|
|
21802
|
-
"
|
|
21803
|
-
capName: "
|
|
21804
|
-
capScope: "
|
|
22109
|
+
"serverManagement.restartServer": {
|
|
22110
|
+
capName: "server-management",
|
|
22111
|
+
capScope: "system",
|
|
21805
22112
|
addonId: null,
|
|
21806
22113
|
access: "create"
|
|
21807
22114
|
},
|
|
21808
|
-
"
|
|
21809
|
-
capName: "
|
|
21810
|
-
capScope: "
|
|
22115
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22116
|
+
capName: "server-management",
|
|
22117
|
+
capScope: "system",
|
|
21811
22118
|
addonId: null,
|
|
21812
22119
|
access: "create"
|
|
21813
22120
|
},
|
|
@@ -21901,18 +22208,6 @@ Object.freeze({
|
|
|
21901
22208
|
addonId: null,
|
|
21902
22209
|
access: "create"
|
|
21903
22210
|
},
|
|
21904
|
-
"snapshotProvider.getSnapshot": {
|
|
21905
|
-
capName: "snapshot-provider",
|
|
21906
|
-
capScope: "system",
|
|
21907
|
-
addonId: null,
|
|
21908
|
-
access: "view"
|
|
21909
|
-
},
|
|
21910
|
-
"snapshotProvider.supportsDevice": {
|
|
21911
|
-
capName: "snapshot-provider",
|
|
21912
|
-
capScope: "system",
|
|
21913
|
-
addonId: null,
|
|
21914
|
-
access: "view"
|
|
21915
|
-
},
|
|
21916
22211
|
"ssoBridge.signBridgeToken": {
|
|
21917
22212
|
capName: "sso-bridge",
|
|
21918
22213
|
capScope: "system",
|
|
@@ -22339,30 +22634,6 @@ Object.freeze({
|
|
|
22339
22634
|
addonId: null,
|
|
22340
22635
|
access: "view"
|
|
22341
22636
|
},
|
|
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
22637
|
"streamParams.getConfigSchema": {
|
|
22367
22638
|
capName: "stream-params",
|
|
22368
22639
|
capScope: "device",
|
|
@@ -22711,6 +22982,18 @@ Object.freeze({
|
|
|
22711
22982
|
addonId: null,
|
|
22712
22983
|
access: "view"
|
|
22713
22984
|
},
|
|
22985
|
+
"viewerUi.getStaticDir": {
|
|
22986
|
+
capName: "viewer-ui",
|
|
22987
|
+
capScope: "system",
|
|
22988
|
+
addonId: null,
|
|
22989
|
+
access: "view"
|
|
22990
|
+
},
|
|
22991
|
+
"viewerUi.getVersion": {
|
|
22992
|
+
capName: "viewer-ui",
|
|
22993
|
+
capScope: "system",
|
|
22994
|
+
addonId: null,
|
|
22995
|
+
access: "view"
|
|
22996
|
+
},
|
|
22714
22997
|
"waterHeater.setAway": {
|
|
22715
22998
|
capName: "water-heater",
|
|
22716
22999
|
capScope: "device",
|
|
@@ -22729,54 +23012,6 @@ Object.freeze({
|
|
|
22729
23012
|
addonId: null,
|
|
22730
23013
|
access: "create"
|
|
22731
23014
|
},
|
|
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
23015
|
"webrtcSession.addIceCandidate": {
|
|
22781
23016
|
capName: "webrtc-session",
|
|
22782
23017
|
capScope: "device",
|