@camstack/addon-export-ha-mqtt 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/export-ha-mqtt.addon.js +672 -257
- package/dist/export-ha-mqtt.addon.mjs +672 -257
- package/package.json +1 -1
|
@@ -4677,7 +4677,7 @@ function number(params) {
|
|
|
4677
4677
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
4678
4678
|
}
|
|
4679
4679
|
//#endregion
|
|
4680
|
-
//#region ../types/dist/sleep-
|
|
4680
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4681
4681
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4682
4682
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4683
4683
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4863,6 +4863,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4863
4863
|
*/
|
|
4864
4864
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4865
4865
|
/**
|
|
4866
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4867
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4868
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4869
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4870
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4871
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4872
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4873
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4874
|
+
* broker's long backstop reconcile query).
|
|
4875
|
+
*/
|
|
4876
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4877
|
+
/**
|
|
4866
4878
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4867
4879
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4868
4880
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5386,10 +5398,6 @@ function hydrateField(field, values) {
|
|
|
5386
5398
|
};
|
|
5387
5399
|
}
|
|
5388
5400
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5389
|
-
if (field.type === "password") return {
|
|
5390
|
-
...field,
|
|
5391
|
-
value: ""
|
|
5392
|
-
};
|
|
5393
5401
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5394
5402
|
return {
|
|
5395
5403
|
...field,
|
|
@@ -6773,6 +6781,21 @@ function method(input, output, options) {
|
|
|
6773
6781
|
timeoutMs: options?.timeoutMs
|
|
6774
6782
|
};
|
|
6775
6783
|
}
|
|
6784
|
+
/**
|
|
6785
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6786
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6787
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6788
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6789
|
+
*/
|
|
6790
|
+
function systemMethod(input, output, options) {
|
|
6791
|
+
return {
|
|
6792
|
+
...method(input, output, options),
|
|
6793
|
+
systemOnly: true
|
|
6794
|
+
};
|
|
6795
|
+
}
|
|
6796
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6797
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6798
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6776
6799
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6777
6800
|
var VersionOutputSchema = object({ version: string() });
|
|
6778
6801
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6942,6 +6965,36 @@ var ModelFormatsSchema = object({
|
|
|
6942
6965
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6943
6966
|
pt: ModelFormatEntrySchema.optional()
|
|
6944
6967
|
});
|
|
6968
|
+
/**
|
|
6969
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6970
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6971
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6972
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6973
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6974
|
+
* to an `id`.
|
|
6975
|
+
*/
|
|
6976
|
+
var ModelVariantGroupSchema = object({
|
|
6977
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6978
|
+
family: string(),
|
|
6979
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6980
|
+
tier: string(),
|
|
6981
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6982
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6983
|
+
/**
|
|
6984
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6985
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6986
|
+
* future performance variants plug into.
|
|
6987
|
+
*/
|
|
6988
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6989
|
+
/**
|
|
6990
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6991
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6992
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6993
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6994
|
+
* the group so the selector can offer it as a variant axis.
|
|
6995
|
+
*/
|
|
6996
|
+
resolution: number$1().int().positive().optional()
|
|
6997
|
+
});
|
|
6945
6998
|
var ModelCatalogEntrySchema = object({
|
|
6946
6999
|
id: string(),
|
|
6947
7000
|
name: string(),
|
|
@@ -6971,7 +7024,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6971
7024
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6972
7025
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6973
7026
|
*/
|
|
6974
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7027
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7028
|
+
/**
|
|
7029
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7030
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7031
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7032
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7033
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7034
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7035
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7036
|
+
*/
|
|
7037
|
+
legacy: boolean().optional(),
|
|
7038
|
+
/**
|
|
7039
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7040
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7041
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7042
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7043
|
+
*/
|
|
7044
|
+
metrics: object({
|
|
7045
|
+
map50: number$1().optional(),
|
|
7046
|
+
p95LatencyMs: record(string(), number$1()).optional()
|
|
7047
|
+
}).optional(),
|
|
7048
|
+
/**
|
|
7049
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7050
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7051
|
+
* the retraining addon and any future commercial distribution.
|
|
7052
|
+
*/
|
|
7053
|
+
license: string().optional(),
|
|
7054
|
+
/**
|
|
7055
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7056
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7057
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7058
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7059
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7060
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7061
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7062
|
+
*/
|
|
7063
|
+
group: ModelVariantGroupSchema.optional()
|
|
6975
7064
|
});
|
|
6976
7065
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6977
7066
|
format: literal("openvino"),
|
|
@@ -7032,8 +7121,8 @@ var RecordingModeSchema = _enum([
|
|
|
7032
7121
|
"onAudioThreshold"
|
|
7033
7122
|
]);
|
|
7034
7123
|
/**
|
|
7035
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7036
|
-
* reads directly (never inferred from `rules`):
|
|
7124
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7125
|
+
* UI reads directly (never inferred from `rules`):
|
|
7037
7126
|
* - `off` — not recording.
|
|
7038
7127
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7039
7128
|
* with pre/post-buffer.
|
|
@@ -8681,26 +8770,13 @@ DeviceType.Light, method(object({
|
|
|
8681
8770
|
percentage: number$1().min(0).max(100),
|
|
8682
8771
|
lastChangedAt: number$1()
|
|
8683
8772
|
});
|
|
8773
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8684
8774
|
var StreamFormatSchema = _enum([
|
|
8685
8775
|
"webrtc",
|
|
8686
8776
|
"hls",
|
|
8687
8777
|
"mjpeg",
|
|
8688
8778
|
"rtsp"
|
|
8689
8779
|
]);
|
|
8690
|
-
var StreamInfoSchema = object({
|
|
8691
|
-
streamId: string(),
|
|
8692
|
-
format: StreamFormatSchema,
|
|
8693
|
-
url: string().nullable(),
|
|
8694
|
-
active: boolean()
|
|
8695
|
-
});
|
|
8696
|
-
method(object({
|
|
8697
|
-
streamId: string(),
|
|
8698
|
-
sourceUrl: string(),
|
|
8699
|
-
codec: string().optional()
|
|
8700
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8701
|
-
streamId: string(),
|
|
8702
|
-
format: StreamFormatSchema
|
|
8703
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8704
8780
|
var RtspRestreamEntrySchema = object({
|
|
8705
8781
|
brokerId: string(),
|
|
8706
8782
|
url: string(),
|
|
@@ -9365,7 +9441,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9365
9441
|
})),
|
|
9366
9442
|
lastChangedAt: number$1()
|
|
9367
9443
|
});
|
|
9368
|
-
|
|
9444
|
+
Object.values(DeviceType), method(object({
|
|
9369
9445
|
deviceId: number$1().int().nonnegative(),
|
|
9370
9446
|
key: string().min(1)
|
|
9371
9447
|
}), _void(), {
|
|
@@ -10280,7 +10356,7 @@ var BoundingBoxSchema = object({
|
|
|
10280
10356
|
w: number$1(),
|
|
10281
10357
|
h: number$1()
|
|
10282
10358
|
});
|
|
10283
|
-
|
|
10359
|
+
object({
|
|
10284
10360
|
class: string(),
|
|
10285
10361
|
originalClass: string(),
|
|
10286
10362
|
score: number$1(),
|
|
@@ -10415,7 +10491,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10415
10491
|
enabled: boolean(),
|
|
10416
10492
|
modelId: string(),
|
|
10417
10493
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10418
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10419
10494
|
group: string().optional(),
|
|
10420
10495
|
settings: record(string(), unknown()).optional()
|
|
10421
10496
|
}));
|
|
@@ -10440,7 +10515,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10440
10515
|
formats: record(string(), object({
|
|
10441
10516
|
downloaded: boolean(),
|
|
10442
10517
|
sizeMB: number$1()
|
|
10443
|
-
}))
|
|
10518
|
+
})),
|
|
10519
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10520
|
+
legacy: boolean().optional()
|
|
10444
10521
|
});
|
|
10445
10522
|
var ConfigFieldBridge = custom();
|
|
10446
10523
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10454,6 +10531,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10454
10531
|
defaultModelId: string(),
|
|
10455
10532
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10456
10533
|
enabledByDefault: boolean().optional(),
|
|
10534
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10457
10535
|
defaultConfidence: number$1(),
|
|
10458
10536
|
group: string().optional(),
|
|
10459
10537
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10470,11 +10548,6 @@ var PipelineSchemaSchema = object({
|
|
|
10470
10548
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10471
10549
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10472
10550
|
});
|
|
10473
|
-
var DetectorOutputSchema = object({
|
|
10474
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10475
|
-
inferenceMs: number$1(),
|
|
10476
|
-
modelId: string()
|
|
10477
|
-
});
|
|
10478
10551
|
var EngineProvisioningSchema = object({
|
|
10479
10552
|
runtimeId: _enum([
|
|
10480
10553
|
"onnx",
|
|
@@ -10491,15 +10564,42 @@ var EngineProvisioningSchema = object({
|
|
|
10491
10564
|
]),
|
|
10492
10565
|
progress: number$1().optional(),
|
|
10493
10566
|
error: string().optional(),
|
|
10494
|
-
nextRetryAt: number$1().optional()
|
|
10567
|
+
nextRetryAt: number$1().optional(),
|
|
10568
|
+
/**
|
|
10569
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10570
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10571
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10572
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10573
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10574
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10575
|
+
*/
|
|
10576
|
+
configIssues: array(string()).optional()
|
|
10495
10577
|
});
|
|
10496
10578
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10497
10579
|
addonId: string(),
|
|
10498
|
-
modelId: string(),
|
|
10580
|
+
modelId: string().optional(),
|
|
10499
10581
|
enabled: boolean().default(true),
|
|
10500
10582
|
children: array(PipelineStepInputSchema).optional(),
|
|
10501
10583
|
settings: record(string(), unknown()).optional()
|
|
10502
10584
|
}));
|
|
10585
|
+
var ModelSubstitutionSchema = object({
|
|
10586
|
+
addonId: string(),
|
|
10587
|
+
chosen: string(),
|
|
10588
|
+
running: string(),
|
|
10589
|
+
format: string()
|
|
10590
|
+
});
|
|
10591
|
+
var PipelineValidationIssueSchema = object({
|
|
10592
|
+
addonId: string(),
|
|
10593
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10594
|
+
detail: string()
|
|
10595
|
+
});
|
|
10596
|
+
var PipelineValidationResultSchema = object({
|
|
10597
|
+
ok: boolean(),
|
|
10598
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10599
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10600
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10601
|
+
format: string()
|
|
10602
|
+
});
|
|
10503
10603
|
var ReferenceImageEntrySchema = object({
|
|
10504
10604
|
filename: string(),
|
|
10505
10605
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10570,7 +10670,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10570
10670
|
})) }), object({ success: literal(true) }), {
|
|
10571
10671
|
kind: "mutation",
|
|
10572
10672
|
auth: "admin"
|
|
10573
|
-
}), method(
|
|
10673
|
+
}), method(object({ nodeId: string() }), object({
|
|
10674
|
+
success: literal(true),
|
|
10675
|
+
clearedDevices: number$1()
|
|
10676
|
+
}), {
|
|
10677
|
+
kind: "mutation",
|
|
10678
|
+
auth: "admin"
|
|
10679
|
+
}), 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({
|
|
10574
10680
|
name: string(),
|
|
10575
10681
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10576
10682
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10587,10 +10693,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10587
10693
|
modelId: string(),
|
|
10588
10694
|
format: ModelFormatSchema$1
|
|
10589
10695
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10590
|
-
addonId: string(),
|
|
10591
|
-
frame: FrameInputSchema,
|
|
10592
|
-
config: record(string(), unknown()).optional()
|
|
10593
|
-
}), DetectorOutputSchema), method(object({
|
|
10594
10696
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10595
10697
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10596
10698
|
frame: FrameInputSchema.optional(),
|
|
@@ -10736,6 +10838,25 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(ZoneSchema).re
|
|
|
10736
10838
|
auth: "admin"
|
|
10737
10839
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10738
10840
|
/**
|
|
10841
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10842
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10843
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10844
|
+
* dims — no native resolution to plumb.
|
|
10845
|
+
*/
|
|
10846
|
+
var NativeCropBboxSchema = object({
|
|
10847
|
+
x: number$1(),
|
|
10848
|
+
y: number$1(),
|
|
10849
|
+
w: number$1(),
|
|
10850
|
+
h: number$1()
|
|
10851
|
+
});
|
|
10852
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10853
|
+
var NativeCropResultSchema = object({
|
|
10854
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10855
|
+
bytes: _instanceof(Uint8Array),
|
|
10856
|
+
width: number$1().int().positive(),
|
|
10857
|
+
height: number$1().int().positive()
|
|
10858
|
+
});
|
|
10859
|
+
/**
|
|
10739
10860
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10740
10861
|
* by both the Zod data schema (validation + default fallback) and
|
|
10741
10862
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10830,6 +10951,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10830
10951
|
kind: literal("remote-restream"),
|
|
10831
10952
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10832
10953
|
ownerNodeId: string(),
|
|
10954
|
+
/**
|
|
10955
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10956
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10957
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10958
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10959
|
+
*/
|
|
10960
|
+
ownerReachableHost: string().optional(),
|
|
10833
10961
|
/** Operator override for the owner host the runner dials. */
|
|
10834
10962
|
hubHostnameOverride: string().optional()
|
|
10835
10963
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10838,13 +10966,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10838
10966
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10839
10967
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10840
10968
|
*
|
|
10841
|
-
* Stateless-pipeline model: the
|
|
10842
|
-
*
|
|
10843
|
-
*
|
|
10844
|
-
*
|
|
10845
|
-
*
|
|
10846
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10847
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10969
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10970
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10971
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10972
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10973
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10848
10974
|
*/
|
|
10849
10975
|
var RunnerCameraConfigSchema = object({
|
|
10850
10976
|
deviceId: number$1(),
|
|
@@ -10895,14 +11021,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10895
11021
|
*/
|
|
10896
11022
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10897
11023
|
pipelineEnabled: boolean().default(true),
|
|
10898
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10899
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10900
11024
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10901
11025
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10902
11026
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10903
11027
|
audio: object({
|
|
10904
|
-
|
|
10905
|
-
modelId: string(),
|
|
11028
|
+
modelId: string().optional(),
|
|
10906
11029
|
enabled: boolean()
|
|
10907
11030
|
}).nullable().optional(),
|
|
10908
11031
|
/**
|
|
@@ -10989,7 +11112,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10989
11112
|
avgInferenceTimeMs: number$1(),
|
|
10990
11113
|
queueDepth: number$1()
|
|
10991
11114
|
});
|
|
10992
|
-
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly())
|
|
11115
|
+
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
|
|
11116
|
+
handle: FrameHandleSchema,
|
|
11117
|
+
bbox: NativeCropBboxSchema,
|
|
11118
|
+
maxWidth: number$1().int().positive().optional()
|
|
11119
|
+
}), NativeCropResultSchema.nullable());
|
|
10993
11120
|
object({
|
|
10994
11121
|
detected: boolean(),
|
|
10995
11122
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12283,7 +12410,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12283
12410
|
icon: string(),
|
|
12284
12411
|
path: string(),
|
|
12285
12412
|
remoteName: string(),
|
|
12286
|
-
bundle: string()
|
|
12413
|
+
bundle: string(),
|
|
12414
|
+
section: string().optional(),
|
|
12415
|
+
sectionLabel: string().optional()
|
|
12287
12416
|
});
|
|
12288
12417
|
var AddonPageInfoSchema = object({
|
|
12289
12418
|
addonId: string(),
|
|
@@ -12323,7 +12452,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12323
12452
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12324
12453
|
* without a separate filesystem stat.
|
|
12325
12454
|
*/
|
|
12326
|
-
bundle: string()
|
|
12455
|
+
bundle: string(),
|
|
12456
|
+
/**
|
|
12457
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12458
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12459
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12460
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12461
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12462
|
+
* "Addon Pages" group.
|
|
12463
|
+
*/
|
|
12464
|
+
section: string().optional(),
|
|
12465
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12466
|
+
sectionLabel: string().optional()
|
|
12327
12467
|
});
|
|
12328
12468
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12329
12469
|
var AddonHttpRouteSchema = object({
|
|
@@ -12539,6 +12679,17 @@ var WidgetMetadataSchema = object({
|
|
|
12539
12679
|
deviceContext: boolean().default(false),
|
|
12540
12680
|
integrationContext: boolean().default(false)
|
|
12541
12681
|
}),
|
|
12682
|
+
/**
|
|
12683
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12684
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12685
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12686
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12687
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12688
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12689
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12690
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12691
|
+
*/
|
|
12692
|
+
preAuth: boolean().optional().default(false),
|
|
12542
12693
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12543
12694
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12544
12695
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12840,6 +12991,66 @@ method(object({
|
|
|
12840
12991
|
password: string()
|
|
12841
12992
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12842
12993
|
/**
|
|
12994
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12995
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12996
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12997
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12998
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12999
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
13000
|
+
*
|
|
13001
|
+
* A contribution is a discriminated union on `kind`:
|
|
13002
|
+
*
|
|
13003
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13004
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13005
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13006
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13007
|
+
* login page needs NO change.
|
|
13008
|
+
*
|
|
13009
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13010
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13011
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13012
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13013
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13014
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13015
|
+
*
|
|
13016
|
+
* Every contribution carries a `stage`:
|
|
13017
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13018
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13019
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13020
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13021
|
+
*
|
|
13022
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13023
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13024
|
+
* tRPC router.
|
|
13025
|
+
*/
|
|
13026
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13027
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13028
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13029
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13030
|
+
kind: literal("redirect"),
|
|
13031
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13032
|
+
id: string(),
|
|
13033
|
+
/** Operator-facing button label. */
|
|
13034
|
+
label: string(),
|
|
13035
|
+
/** lucide-react icon name. */
|
|
13036
|
+
icon: string().optional(),
|
|
13037
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13038
|
+
startUrl: string(),
|
|
13039
|
+
stage: LoginStageEnum
|
|
13040
|
+
}), object({
|
|
13041
|
+
kind: literal("widget"),
|
|
13042
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13043
|
+
id: string(),
|
|
13044
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13045
|
+
addonId: string(),
|
|
13046
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13047
|
+
bundle: string(),
|
|
13048
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13049
|
+
remote: WidgetRemoteSchema,
|
|
13050
|
+
stage: LoginStageEnum
|
|
13051
|
+
})]);
|
|
13052
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13053
|
+
/**
|
|
12843
13054
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12844
13055
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12845
13056
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14968,7 +15179,17 @@ var TrackSchema = object({
|
|
|
14968
15179
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14969
15180
|
totalDistance: number$1(),
|
|
14970
15181
|
state: TrackStateSchema,
|
|
14971
|
-
active: boolean()
|
|
15182
|
+
active: boolean(),
|
|
15183
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15184
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15185
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15186
|
+
importance: number$1().optional(),
|
|
15187
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15188
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15189
|
+
bestEventId: string().optional(),
|
|
15190
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15191
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15192
|
+
importanceReason: string().optional()
|
|
14972
15193
|
});
|
|
14973
15194
|
var BaseEventFields = {
|
|
14974
15195
|
id: string(),
|
|
@@ -15033,8 +15254,18 @@ var ObjectEventSchema = object({
|
|
|
15033
15254
|
frameHeight: number$1().optional(),
|
|
15034
15255
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15035
15256
|
mediaKey: string().optional(),
|
|
15257
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15258
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15259
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15260
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15261
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15262
|
+
keyFrameMediaKey: string().optional(),
|
|
15036
15263
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15037
|
-
mediaUrl: string().optional()
|
|
15264
|
+
mediaUrl: string().optional(),
|
|
15265
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15266
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15267
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15268
|
+
importance: number$1().optional()
|
|
15038
15269
|
});
|
|
15039
15270
|
var AudioEventSchema = object({
|
|
15040
15271
|
...BaseEventFields,
|
|
@@ -15058,7 +15289,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15058
15289
|
"fullFrame",
|
|
15059
15290
|
"fullFrameBoxed",
|
|
15060
15291
|
"faceCrop",
|
|
15061
|
-
"plateCrop"
|
|
15292
|
+
"plateCrop",
|
|
15293
|
+
"keyFrame"
|
|
15062
15294
|
]);
|
|
15063
15295
|
var MediaFileSchema = object({
|
|
15064
15296
|
key: string(),
|
|
@@ -15079,6 +15311,32 @@ var DeviceEventQueryInput = object({
|
|
|
15079
15311
|
projection: _enum(["full", "slim"]).optional()
|
|
15080
15312
|
});
|
|
15081
15313
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15314
|
+
var KeyEventQueryInput = object({
|
|
15315
|
+
deviceId: number$1(),
|
|
15316
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15317
|
+
since: number$1(),
|
|
15318
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15319
|
+
until: number$1(),
|
|
15320
|
+
limit: number$1().int().min(1).max(200).default(50),
|
|
15321
|
+
/** Drop tracks scoring below this importance. */
|
|
15322
|
+
minImportance: number$1().min(0).max(1).optional(),
|
|
15323
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15324
|
+
classFilter: string().optional()
|
|
15325
|
+
});
|
|
15326
|
+
var KeyEventSchema = object({
|
|
15327
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15328
|
+
id: string(),
|
|
15329
|
+
trackId: string(),
|
|
15330
|
+
/** Track start time (firstSeen). */
|
|
15331
|
+
timestamp: number$1(),
|
|
15332
|
+
className: string(),
|
|
15333
|
+
label: string().optional(),
|
|
15334
|
+
importance: number$1(),
|
|
15335
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15336
|
+
bestEventId: string(),
|
|
15337
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15338
|
+
windowMs: number$1().optional()
|
|
15339
|
+
});
|
|
15082
15340
|
var TrackedDetectionSchema = object({
|
|
15083
15341
|
trackId: string(),
|
|
15084
15342
|
className: string(),
|
|
@@ -15108,7 +15366,7 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
|
|
|
15108
15366
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number$1() }), _void(), {
|
|
15109
15367
|
kind: "mutation",
|
|
15110
15368
|
auth: "admin"
|
|
15111
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15369
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15112
15370
|
deviceId: number$1(),
|
|
15113
15371
|
since: number$1(),
|
|
15114
15372
|
until: number$1(),
|
|
@@ -15153,11 +15411,11 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
|
|
|
15153
15411
|
timestamp: number$1()
|
|
15154
15412
|
});
|
|
15155
15413
|
var CameraPipelineConfigSchema = object({
|
|
15156
|
-
engine: PipelineEngineChoiceSchema,
|
|
15414
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15157
15415
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15158
15416
|
audio: object({
|
|
15159
|
-
engine: PipelineEngineChoiceSchema,
|
|
15160
|
-
modelId: string(),
|
|
15417
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15418
|
+
modelId: string().optional(),
|
|
15161
15419
|
enabled: boolean(),
|
|
15162
15420
|
settings: record(string(), unknown()).readonly().optional()
|
|
15163
15421
|
}).nullable().optional()
|
|
@@ -15172,7 +15430,7 @@ var PipelineTemplateSchema = object({
|
|
|
15172
15430
|
});
|
|
15173
15431
|
var AgentAddonConfigSchema = object({
|
|
15174
15432
|
enabled: boolean(),
|
|
15175
|
-
modelId: string(),
|
|
15433
|
+
modelId: string().optional(),
|
|
15176
15434
|
settings: record(string(), unknown()).readonly()
|
|
15177
15435
|
});
|
|
15178
15436
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15182,12 +15440,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15182
15440
|
detectWeight: number$1().positive().optional(),
|
|
15183
15441
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15184
15442
|
detect: boolean().optional(),
|
|
15185
|
-
/**
|
|
15443
|
+
/**
|
|
15444
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15445
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15446
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15447
|
+
* parse — no code reads it and no write path emits it.
|
|
15448
|
+
*/
|
|
15186
15449
|
decode: boolean().optional(),
|
|
15187
15450
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15188
15451
|
audio: boolean().optional(),
|
|
15189
15452
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15190
|
-
ingest: boolean().optional()
|
|
15453
|
+
ingest: boolean().optional(),
|
|
15454
|
+
/**
|
|
15455
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15456
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15457
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15458
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15459
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15460
|
+
*/
|
|
15461
|
+
reachableHost: string().optional()
|
|
15191
15462
|
});
|
|
15192
15463
|
var CameraPipelineForAgentSchema = object({
|
|
15193
15464
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15235,25 +15506,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15235
15506
|
assignedAt: number$1()
|
|
15236
15507
|
});
|
|
15237
15508
|
/**
|
|
15238
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15239
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15240
|
-
* → co-located with pipeline → capacity).
|
|
15241
|
-
*/
|
|
15242
|
-
var DecoderAssignmentSchema = object({
|
|
15243
|
-
deviceId: number$1(),
|
|
15244
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15245
|
-
decoderNodeId: string(),
|
|
15246
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15247
|
-
pinned: boolean(),
|
|
15248
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15249
|
-
reason: _enum([
|
|
15250
|
-
"manual",
|
|
15251
|
-
"co-located",
|
|
15252
|
-
"capacity",
|
|
15253
|
-
"hardware-affinity"
|
|
15254
|
-
])
|
|
15255
|
-
});
|
|
15256
|
-
/**
|
|
15257
15509
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15258
15510
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15259
15511
|
*/
|
|
@@ -15293,6 +15545,15 @@ var GlobalMetricsSchema = object({
|
|
|
15293
15545
|
* capability providers.
|
|
15294
15546
|
*/
|
|
15295
15547
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15548
|
+
/**
|
|
15549
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15550
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15551
|
+
*/
|
|
15552
|
+
var IngestOwnerSchema = object({
|
|
15553
|
+
ownerNodeId: string(),
|
|
15554
|
+
reachableHost: string().optional(),
|
|
15555
|
+
configIssue: string().optional()
|
|
15556
|
+
});
|
|
15296
15557
|
/** Source block — always present; derives from the stream catalog. */
|
|
15297
15558
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15298
15559
|
camStreamId: string(),
|
|
@@ -15307,6 +15568,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15307
15568
|
detectionNodeId: string().nullable(),
|
|
15308
15569
|
decoderNodeId: string().nullable(),
|
|
15309
15570
|
audioNodeId: string().nullable(),
|
|
15571
|
+
/**
|
|
15572
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15573
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15574
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15575
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15576
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15577
|
+
*/
|
|
15578
|
+
sourceNodeId: string().nullable(),
|
|
15310
15579
|
pinned: object({
|
|
15311
15580
|
detection: boolean(),
|
|
15312
15581
|
decoder: boolean(),
|
|
@@ -15439,16 +15708,7 @@ method(object({
|
|
|
15439
15708
|
}), object({ success: literal(true) }), {
|
|
15440
15709
|
kind: "mutation",
|
|
15441
15710
|
auth: "admin"
|
|
15442
|
-
}), method(object({
|
|
15443
|
-
deviceId: number$1(),
|
|
15444
|
-
nodeId: string()
|
|
15445
|
-
}), _void(), {
|
|
15446
|
-
kind: "mutation",
|
|
15447
|
-
auth: "admin"
|
|
15448
|
-
}), method(object({ deviceId: number$1() }), _void(), {
|
|
15449
|
-
kind: "mutation",
|
|
15450
|
-
auth: "admin"
|
|
15451
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15711
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15452
15712
|
deviceId: number$1(),
|
|
15453
15713
|
nodeId: string()
|
|
15454
15714
|
}), object({ success: literal(true) }), {
|
|
@@ -15469,10 +15729,7 @@ method(object({
|
|
|
15469
15729
|
nodeId: string(),
|
|
15470
15730
|
pinned: boolean(),
|
|
15471
15731
|
assignedAt: number$1()
|
|
15472
|
-
}))), method(object({
|
|
15473
|
-
deviceId: number$1(),
|
|
15474
|
-
pipelineNodeId: string().optional()
|
|
15475
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15732
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15476
15733
|
nodeId: string(),
|
|
15477
15734
|
settings: AgentPipelineSettingsSchema
|
|
15478
15735
|
})).readonly()), method(object({
|
|
@@ -15502,12 +15759,26 @@ method(object({
|
|
|
15502
15759
|
}), method(object({
|
|
15503
15760
|
agentNodeId: string(),
|
|
15504
15761
|
detect: boolean().nullable().optional(),
|
|
15505
|
-
decode: boolean().nullable().optional(),
|
|
15506
15762
|
audio: boolean().nullable().optional(),
|
|
15507
15763
|
ingest: boolean().nullable().optional()
|
|
15508
15764
|
}), object({ success: literal(true) }), {
|
|
15509
15765
|
kind: "mutation",
|
|
15510
15766
|
auth: "admin"
|
|
15767
|
+
}), method(object({
|
|
15768
|
+
agentNodeId: string(),
|
|
15769
|
+
reachableHost: string().nullable()
|
|
15770
|
+
}), object({ success: literal(true) }), {
|
|
15771
|
+
kind: "mutation",
|
|
15772
|
+
auth: "admin"
|
|
15773
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15774
|
+
success: literal(true),
|
|
15775
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15776
|
+
effectiveModelId: string().nullable(),
|
|
15777
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15778
|
+
clearedCameraOverrides: number$1()
|
|
15779
|
+
}), {
|
|
15780
|
+
kind: "mutation",
|
|
15781
|
+
auth: "admin"
|
|
15511
15782
|
}), method(object({ deviceId: number$1() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15512
15783
|
deviceId: number$1(),
|
|
15513
15784
|
addonId: string(),
|
|
@@ -15552,22 +15823,131 @@ method(object({
|
|
|
15552
15823
|
kind: "mutation",
|
|
15553
15824
|
auth: "admin"
|
|
15554
15825
|
});
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15826
|
+
/**
|
|
15827
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15828
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15829
|
+
* agents).
|
|
15830
|
+
*
|
|
15831
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15832
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15833
|
+
* version describes the node. Updates install into
|
|
15834
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15835
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15836
|
+
*
|
|
15837
|
+
* Providers:
|
|
15838
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15839
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15840
|
+
* unpinned calls.
|
|
15841
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15842
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15843
|
+
* `$hub.registerNode` manifest.
|
|
15844
|
+
*
|
|
15845
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15846
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15847
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15848
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15849
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15850
|
+
*
|
|
15851
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15852
|
+
*/
|
|
15853
|
+
/**
|
|
15854
|
+
* Where the running hub's code was loaded from:
|
|
15855
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15856
|
+
* plain resolution and runtime updates are refused.
|
|
15857
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15858
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15859
|
+
*/
|
|
15860
|
+
var ServerBootModeSchema = _enum([
|
|
15861
|
+
"workspace",
|
|
15862
|
+
"baked",
|
|
15863
|
+
"data-root"
|
|
15864
|
+
]);
|
|
15865
|
+
/**
|
|
15866
|
+
* Update lifecycle state:
|
|
15867
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15868
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15869
|
+
* restarted onto it (still running the OLD version).
|
|
15870
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15871
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15872
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15873
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15874
|
+
*/
|
|
15875
|
+
var ServerUpdateStateSchema = _enum([
|
|
15876
|
+
"idle",
|
|
15877
|
+
"checking",
|
|
15878
|
+
"staging",
|
|
15879
|
+
"pending-restart",
|
|
15880
|
+
"awaiting-confirmation"
|
|
15881
|
+
]);
|
|
15882
|
+
var ServerRollbackInfoSchema = object({
|
|
15883
|
+
/** The version that failed (or was manually rolled back). */
|
|
15884
|
+
fromVersion: string(),
|
|
15885
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15886
|
+
toVersion: string().nullable(),
|
|
15887
|
+
atMs: number$1(),
|
|
15888
|
+
reason: string()
|
|
15561
15889
|
});
|
|
15562
|
-
var
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15890
|
+
var ServerPackageStatusSchema = object({
|
|
15891
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15892
|
+
packageName: string(),
|
|
15893
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15894
|
+
runningVersion: string().nullable(),
|
|
15895
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15896
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15897
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15898
|
+
activeVersion: string().nullable(),
|
|
15899
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15900
|
+
previousVersion: string().nullable(),
|
|
15901
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15902
|
+
seedVersion: string().nullable(),
|
|
15903
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15904
|
+
latestVersion: string().nullable(),
|
|
15905
|
+
updateAvailable: boolean(),
|
|
15906
|
+
bootMode: ServerBootModeSchema,
|
|
15907
|
+
updateState: ServerUpdateStateSchema,
|
|
15908
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15909
|
+
pendingVersion: string().nullable(),
|
|
15910
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15911
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15912
|
+
/**
|
|
15913
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15914
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15915
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15916
|
+
*/
|
|
15917
|
+
stateFileCorrupt: boolean(),
|
|
15918
|
+
lastCheckedAtMs: number$1().nullable()
|
|
15919
|
+
});
|
|
15920
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15921
|
+
packageName: string(),
|
|
15922
|
+
runningVersion: string().nullable(),
|
|
15923
|
+
latestVersion: string().nullable(),
|
|
15924
|
+
updateAvailable: boolean(),
|
|
15925
|
+
checkedAtMs: number$1(),
|
|
15926
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15927
|
+
error: string().nullable()
|
|
15928
|
+
});
|
|
15929
|
+
var ServerUpdateActionResultSchema = object({
|
|
15930
|
+
accepted: boolean(),
|
|
15931
|
+
targetVersion: string().nullable(),
|
|
15932
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15933
|
+
restarting: boolean(),
|
|
15934
|
+
message: string()
|
|
15935
|
+
});
|
|
15936
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15937
|
+
kind: "mutation",
|
|
15938
|
+
auth: "admin"
|
|
15939
|
+
}), method(object({
|
|
15940
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15941
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15942
|
+
kind: "mutation",
|
|
15943
|
+
auth: "admin"
|
|
15944
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15945
|
+
kind: "mutation",
|
|
15946
|
+
auth: "admin"
|
|
15947
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15948
|
+
kind: "mutation",
|
|
15949
|
+
auth: "admin"
|
|
15566
15950
|
});
|
|
15567
|
-
method(object({
|
|
15568
|
-
deviceId: number$1(),
|
|
15569
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15570
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), array(ExposedResourceSchema).readonly());
|
|
15571
15951
|
/**
|
|
15572
15952
|
* Query filter for settings-store collections.
|
|
15573
15953
|
*/
|
|
@@ -15720,9 +16100,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15720
16100
|
/**
|
|
15721
16101
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15722
16102
|
*
|
|
15723
|
-
*
|
|
15724
|
-
*
|
|
15725
|
-
*
|
|
16103
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16104
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16105
|
+
* prebuffer fallback.
|
|
15726
16106
|
*/
|
|
15727
16107
|
var SnapshotImageSchema = object({
|
|
15728
16108
|
base64: string(),
|
|
@@ -15753,11 +16133,12 @@ DeviceType.Camera, method(object({
|
|
|
15753
16133
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number$1() }), _void(), {
|
|
15754
16134
|
kind: "mutation",
|
|
15755
16135
|
auth: "admin"
|
|
15756
|
-
})
|
|
15757
|
-
method(object({ deviceId: number$1() }), boolean()), method(object({
|
|
16136
|
+
}), systemMethod(object({ deviceIds: array(number$1()).min(1).max(200) }), array(object({
|
|
15758
16137
|
deviceId: number$1(),
|
|
15759
|
-
|
|
15760
|
-
|
|
16138
|
+
lastCapturedAt: number$1().nullable(),
|
|
16139
|
+
cacheAgeMs: number$1().nullable(),
|
|
16140
|
+
etag: string().nullable()
|
|
16141
|
+
})));
|
|
15761
16142
|
/**
|
|
15762
16143
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15763
16144
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16008,10 +16389,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16008
16389
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16009
16390
|
* the assertion, bumps the credential counter, returns ok.
|
|
16010
16391
|
*
|
|
16392
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16393
|
+
* passkey IS the primary factor, no password leg:
|
|
16394
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16395
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16396
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16397
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16398
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16399
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16400
|
+
* resolves the credential by the response's credential id,
|
|
16401
|
+
* verifies the assertion against the stored challenge + that
|
|
16402
|
+
* credential's public key/counter, and returns the OWNING
|
|
16403
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16404
|
+
*
|
|
16011
16405
|
* 3. Management:
|
|
16012
16406
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16013
16407
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16014
16408
|
*
|
|
16409
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16410
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16411
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16412
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16413
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16414
|
+
* row ⇒ `enabled: false`).
|
|
16415
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16416
|
+
* the providing addon beside its credentials.
|
|
16417
|
+
*
|
|
16015
16418
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16016
16419
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16017
16420
|
* the cap to non-admins.
|
|
@@ -16054,6 +16457,17 @@ method(object({
|
|
|
16054
16457
|
}), object({ verified: boolean() }), {
|
|
16055
16458
|
kind: "mutation",
|
|
16056
16459
|
access: "view"
|
|
16460
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16461
|
+
kind: "mutation",
|
|
16462
|
+
access: "view"
|
|
16463
|
+
}), method(object({
|
|
16464
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16465
|
+
response: record(string(), unknown()) }), object({
|
|
16466
|
+
verified: boolean(),
|
|
16467
|
+
userId: string().nullable()
|
|
16468
|
+
}), {
|
|
16469
|
+
kind: "mutation",
|
|
16470
|
+
access: "view"
|
|
16057
16471
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16058
16472
|
userId: string(),
|
|
16059
16473
|
credentialId: string()
|
|
@@ -16061,6 +16475,13 @@ method(object({
|
|
|
16061
16475
|
kind: "mutation",
|
|
16062
16476
|
auth: "admin",
|
|
16063
16477
|
access: "delete"
|
|
16478
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16479
|
+
userId: string(),
|
|
16480
|
+
enabled: boolean()
|
|
16481
|
+
}), object({ success: literal(true) }), {
|
|
16482
|
+
kind: "mutation",
|
|
16483
|
+
auth: "admin",
|
|
16484
|
+
access: "create"
|
|
16064
16485
|
});
|
|
16065
16486
|
/**
|
|
16066
16487
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16118,9 +16539,10 @@ method(object({
|
|
|
16118
16539
|
auth: "admin"
|
|
16119
16540
|
});
|
|
16120
16541
|
/**
|
|
16121
|
-
* Optional client-side hints sent at session creation to help the
|
|
16122
|
-
*
|
|
16123
|
-
*
|
|
16542
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16543
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16544
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16545
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16124
16546
|
*/
|
|
16125
16547
|
var webrtcClientHintsSchema = object({
|
|
16126
16548
|
viewportWidth: number$1().int().positive().optional(),
|
|
@@ -16131,22 +16553,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16131
16553
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16132
16554
|
prefersTier: string().optional()
|
|
16133
16555
|
}).partial();
|
|
16134
|
-
method(object({
|
|
16135
|
-
streamId: string(),
|
|
16136
|
-
sdpOffer: string()
|
|
16137
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16138
|
-
streamId: string(),
|
|
16139
|
-
codec: string()
|
|
16140
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16141
|
-
streamId: string(),
|
|
16142
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16143
|
-
}), object({
|
|
16144
|
-
sessionId: string(),
|
|
16145
|
-
sdpOffer: string()
|
|
16146
|
-
}), { kind: "mutation" }), method(object({
|
|
16147
|
-
sessionId: string(),
|
|
16148
|
-
sdpAnswer: string()
|
|
16149
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16150
16556
|
/**
|
|
16151
16557
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16152
16558
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16877,7 +17283,17 @@ var FaceInfoSchema = object({
|
|
|
16877
17283
|
recognizedIdentityId: string().optional(),
|
|
16878
17284
|
identityName: string().optional(),
|
|
16879
17285
|
assigned: boolean(),
|
|
16880
|
-
base64: string().optional()
|
|
17286
|
+
base64: string().optional(),
|
|
17287
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17288
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17289
|
+
* legacy rows written before design B. */
|
|
17290
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17291
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17292
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17293
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17294
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17295
|
+
* back to the inline `base64` face crop. */
|
|
17296
|
+
keyFrameMediaKey: string().optional()
|
|
16881
17297
|
});
|
|
16882
17298
|
var FaceFilterEnum = _enum([
|
|
16883
17299
|
"unassigned",
|
|
@@ -17574,6 +17990,16 @@ var TopologyCategorySchema = object({
|
|
|
17574
17990
|
healthy: number$1(),
|
|
17575
17991
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17576
17992
|
});
|
|
17993
|
+
/**
|
|
17994
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17995
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17996
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17997
|
+
* rows and pre-phase-2 nodes report none.
|
|
17998
|
+
*/
|
|
17999
|
+
var TopologyRootPackageSchema = object({
|
|
18000
|
+
name: string(),
|
|
18001
|
+
version: string()
|
|
18002
|
+
});
|
|
17577
18003
|
var TopologyNodeSchema = object({
|
|
17578
18004
|
id: string(),
|
|
17579
18005
|
name: string(),
|
|
@@ -17597,7 +18023,8 @@ var TopologyNodeSchema = object({
|
|
|
17597
18023
|
status: string()
|
|
17598
18024
|
})).readonly(),
|
|
17599
18025
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17600
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18026
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18027
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17601
18028
|
});
|
|
17602
18029
|
var CapUsageEdgeSchema = object({
|
|
17603
18030
|
callerAddonId: string(),
|
|
@@ -20397,6 +20824,12 @@ Object.freeze({
|
|
|
20397
20824
|
addonId: null,
|
|
20398
20825
|
access: "create"
|
|
20399
20826
|
},
|
|
20827
|
+
"loginMethod.getLoginMethods": {
|
|
20828
|
+
capName: "login-method",
|
|
20829
|
+
capScope: "system",
|
|
20830
|
+
addonId: null,
|
|
20831
|
+
access: "view"
|
|
20832
|
+
},
|
|
20400
20833
|
"mediaPlayer.next": {
|
|
20401
20834
|
capName: "media-player",
|
|
20402
20835
|
capScope: "device",
|
|
@@ -20979,6 +21412,12 @@ Object.freeze({
|
|
|
20979
21412
|
addonId: null,
|
|
20980
21413
|
access: "view"
|
|
20981
21414
|
},
|
|
21415
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21416
|
+
capName: "pipeline-analytics",
|
|
21417
|
+
capScope: "device",
|
|
21418
|
+
addonId: null,
|
|
21419
|
+
access: "view"
|
|
21420
|
+
},
|
|
20982
21421
|
"pipelineAnalytics.getMotionEvents": {
|
|
20983
21422
|
capName: "pipeline-analytics",
|
|
20984
21423
|
capScope: "device",
|
|
@@ -21027,23 +21466,23 @@ Object.freeze({
|
|
|
21027
21466
|
addonId: null,
|
|
21028
21467
|
access: "create"
|
|
21029
21468
|
},
|
|
21030
|
-
"pipelineExecutor.
|
|
21469
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21031
21470
|
capName: "pipeline-executor",
|
|
21032
21471
|
capScope: "system",
|
|
21033
21472
|
addonId: null,
|
|
21034
21473
|
access: "delete"
|
|
21035
21474
|
},
|
|
21036
|
-
"pipelineExecutor.
|
|
21475
|
+
"pipelineExecutor.deleteModel": {
|
|
21037
21476
|
capName: "pipeline-executor",
|
|
21038
21477
|
capScope: "system",
|
|
21039
21478
|
addonId: null,
|
|
21040
21479
|
access: "delete"
|
|
21041
21480
|
},
|
|
21042
|
-
"pipelineExecutor.
|
|
21481
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21043
21482
|
capName: "pipeline-executor",
|
|
21044
21483
|
capScope: "system",
|
|
21045
21484
|
addonId: null,
|
|
21046
|
-
access: "
|
|
21485
|
+
access: "delete"
|
|
21047
21486
|
},
|
|
21048
21487
|
"pipelineExecutor.downloadModel": {
|
|
21049
21488
|
capName: "pipeline-executor",
|
|
@@ -21237,13 +21676,13 @@ Object.freeze({
|
|
|
21237
21676
|
addonId: null,
|
|
21238
21677
|
access: "create"
|
|
21239
21678
|
},
|
|
21240
|
-
"
|
|
21241
|
-
capName: "pipeline-
|
|
21679
|
+
"pipelineExecutor.validatePipeline": {
|
|
21680
|
+
capName: "pipeline-executor",
|
|
21242
21681
|
capScope: "system",
|
|
21243
21682
|
addonId: null,
|
|
21244
|
-
access: "
|
|
21683
|
+
access: "view"
|
|
21245
21684
|
},
|
|
21246
|
-
"pipelineOrchestrator.
|
|
21685
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21247
21686
|
capName: "pipeline-orchestrator",
|
|
21248
21687
|
capScope: "system",
|
|
21249
21688
|
addonId: null,
|
|
@@ -21327,19 +21766,13 @@ Object.freeze({
|
|
|
21327
21766
|
addonId: null,
|
|
21328
21767
|
access: "view"
|
|
21329
21768
|
},
|
|
21330
|
-
"pipelineOrchestrator.
|
|
21331
|
-
capName: "pipeline-orchestrator",
|
|
21332
|
-
capScope: "system",
|
|
21333
|
-
addonId: null,
|
|
21334
|
-
access: "view"
|
|
21335
|
-
},
|
|
21336
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21769
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21337
21770
|
capName: "pipeline-orchestrator",
|
|
21338
21771
|
capScope: "system",
|
|
21339
21772
|
addonId: null,
|
|
21340
21773
|
access: "view"
|
|
21341
21774
|
},
|
|
21342
|
-
"pipelineOrchestrator.
|
|
21775
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21343
21776
|
capName: "pipeline-orchestrator",
|
|
21344
21777
|
capScope: "system",
|
|
21345
21778
|
addonId: null,
|
|
@@ -21381,6 +21814,12 @@ Object.freeze({
|
|
|
21381
21814
|
addonId: null,
|
|
21382
21815
|
access: "delete"
|
|
21383
21816
|
},
|
|
21817
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21818
|
+
capName: "pipeline-orchestrator",
|
|
21819
|
+
capScope: "system",
|
|
21820
|
+
addonId: null,
|
|
21821
|
+
access: "delete"
|
|
21822
|
+
},
|
|
21384
21823
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21385
21824
|
capName: "pipeline-orchestrator",
|
|
21386
21825
|
capScope: "system",
|
|
@@ -21417,37 +21856,37 @@ Object.freeze({
|
|
|
21417
21856
|
addonId: null,
|
|
21418
21857
|
access: "create"
|
|
21419
21858
|
},
|
|
21420
|
-
"pipelineOrchestrator.
|
|
21859
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21421
21860
|
capName: "pipeline-orchestrator",
|
|
21422
21861
|
capScope: "system",
|
|
21423
21862
|
addonId: null,
|
|
21424
21863
|
access: "create"
|
|
21425
21864
|
},
|
|
21426
|
-
"pipelineOrchestrator.
|
|
21865
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21427
21866
|
capName: "pipeline-orchestrator",
|
|
21428
21867
|
capScope: "system",
|
|
21429
21868
|
addonId: null,
|
|
21430
21869
|
access: "create"
|
|
21431
21870
|
},
|
|
21432
|
-
"pipelineOrchestrator.
|
|
21871
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21433
21872
|
capName: "pipeline-orchestrator",
|
|
21434
21873
|
capScope: "system",
|
|
21435
21874
|
addonId: null,
|
|
21436
21875
|
access: "create"
|
|
21437
21876
|
},
|
|
21438
|
-
"pipelineOrchestrator.
|
|
21877
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21439
21878
|
capName: "pipeline-orchestrator",
|
|
21440
21879
|
capScope: "system",
|
|
21441
21880
|
addonId: null,
|
|
21442
21881
|
access: "create"
|
|
21443
21882
|
},
|
|
21444
|
-
"pipelineOrchestrator.
|
|
21883
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21445
21884
|
capName: "pipeline-orchestrator",
|
|
21446
21885
|
capScope: "system",
|
|
21447
21886
|
addonId: null,
|
|
21448
21887
|
access: "create"
|
|
21449
21888
|
},
|
|
21450
|
-
"pipelineOrchestrator.
|
|
21889
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21451
21890
|
capName: "pipeline-orchestrator",
|
|
21452
21891
|
capScope: "system",
|
|
21453
21892
|
addonId: null,
|
|
@@ -21507,6 +21946,12 @@ Object.freeze({
|
|
|
21507
21946
|
addonId: null,
|
|
21508
21947
|
access: "view"
|
|
21509
21948
|
},
|
|
21949
|
+
"pipelineRunner.getNativeCrop": {
|
|
21950
|
+
capName: "pipeline-runner",
|
|
21951
|
+
capScope: "system",
|
|
21952
|
+
addonId: null,
|
|
21953
|
+
access: "view"
|
|
21954
|
+
},
|
|
21510
21955
|
"pipelineRunner.reportMotion": {
|
|
21511
21956
|
capName: "pipeline-runner",
|
|
21512
21957
|
capScope: "system",
|
|
@@ -21747,33 +22192,45 @@ Object.freeze({
|
|
|
21747
22192
|
addonId: null,
|
|
21748
22193
|
access: "create"
|
|
21749
22194
|
},
|
|
21750
|
-
"
|
|
21751
|
-
capName: "
|
|
22195
|
+
"scriptRunner.run": {
|
|
22196
|
+
capName: "script-runner",
|
|
22197
|
+
capScope: "device",
|
|
22198
|
+
addonId: null,
|
|
22199
|
+
access: "create"
|
|
22200
|
+
},
|
|
22201
|
+
"scriptRunner.stop": {
|
|
22202
|
+
capName: "script-runner",
|
|
22203
|
+
capScope: "device",
|
|
22204
|
+
addonId: null,
|
|
22205
|
+
access: "create"
|
|
22206
|
+
},
|
|
22207
|
+
"serverManagement.applyServerUpdate": {
|
|
22208
|
+
capName: "server-management",
|
|
21752
22209
|
capScope: "system",
|
|
21753
22210
|
addonId: null,
|
|
21754
|
-
access: "
|
|
22211
|
+
access: "create"
|
|
21755
22212
|
},
|
|
21756
|
-
"
|
|
21757
|
-
capName: "
|
|
22213
|
+
"serverManagement.checkServerUpdate": {
|
|
22214
|
+
capName: "server-management",
|
|
21758
22215
|
capScope: "system",
|
|
21759
22216
|
addonId: null,
|
|
21760
22217
|
access: "create"
|
|
21761
22218
|
},
|
|
21762
|
-
"
|
|
21763
|
-
capName: "
|
|
22219
|
+
"serverManagement.getServerPackageStatus": {
|
|
22220
|
+
capName: "server-management",
|
|
21764
22221
|
capScope: "system",
|
|
21765
22222
|
addonId: null,
|
|
21766
|
-
access: "
|
|
22223
|
+
access: "view"
|
|
21767
22224
|
},
|
|
21768
|
-
"
|
|
21769
|
-
capName: "
|
|
21770
|
-
capScope: "
|
|
22225
|
+
"serverManagement.restartServer": {
|
|
22226
|
+
capName: "server-management",
|
|
22227
|
+
capScope: "system",
|
|
21771
22228
|
addonId: null,
|
|
21772
22229
|
access: "create"
|
|
21773
22230
|
},
|
|
21774
|
-
"
|
|
21775
|
-
capName: "
|
|
21776
|
-
capScope: "
|
|
22231
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22232
|
+
capName: "server-management",
|
|
22233
|
+
capScope: "system",
|
|
21777
22234
|
addonId: null,
|
|
21778
22235
|
access: "create"
|
|
21779
22236
|
},
|
|
@@ -21861,23 +22318,17 @@ Object.freeze({
|
|
|
21861
22318
|
addonId: null,
|
|
21862
22319
|
access: "view"
|
|
21863
22320
|
},
|
|
21864
|
-
"snapshot.
|
|
22321
|
+
"snapshot.getSnapshotOverview": {
|
|
21865
22322
|
capName: "snapshot",
|
|
21866
22323
|
capScope: "device",
|
|
21867
22324
|
addonId: null,
|
|
21868
|
-
access: "create"
|
|
21869
|
-
},
|
|
21870
|
-
"snapshotProvider.getSnapshot": {
|
|
21871
|
-
capName: "snapshot-provider",
|
|
21872
|
-
capScope: "system",
|
|
21873
|
-
addonId: null,
|
|
21874
22325
|
access: "view"
|
|
21875
22326
|
},
|
|
21876
|
-
"
|
|
21877
|
-
capName: "snapshot
|
|
21878
|
-
capScope: "
|
|
22327
|
+
"snapshot.invalidateCache": {
|
|
22328
|
+
capName: "snapshot",
|
|
22329
|
+
capScope: "device",
|
|
21879
22330
|
addonId: null,
|
|
21880
|
-
access: "
|
|
22331
|
+
access: "create"
|
|
21881
22332
|
},
|
|
21882
22333
|
"ssoBridge.signBridgeToken": {
|
|
21883
22334
|
capName: "sso-bridge",
|
|
@@ -22305,30 +22756,6 @@ Object.freeze({
|
|
|
22305
22756
|
addonId: null,
|
|
22306
22757
|
access: "view"
|
|
22307
22758
|
},
|
|
22308
|
-
"streamingEngine.getStreamUrl": {
|
|
22309
|
-
capName: "streaming-engine",
|
|
22310
|
-
capScope: "system",
|
|
22311
|
-
addonId: null,
|
|
22312
|
-
access: "view"
|
|
22313
|
-
},
|
|
22314
|
-
"streamingEngine.listStreams": {
|
|
22315
|
-
capName: "streaming-engine",
|
|
22316
|
-
capScope: "system",
|
|
22317
|
-
addonId: null,
|
|
22318
|
-
access: "view"
|
|
22319
|
-
},
|
|
22320
|
-
"streamingEngine.registerStream": {
|
|
22321
|
-
capName: "streaming-engine",
|
|
22322
|
-
capScope: "system",
|
|
22323
|
-
addonId: null,
|
|
22324
|
-
access: "create"
|
|
22325
|
-
},
|
|
22326
|
-
"streamingEngine.unregisterStream": {
|
|
22327
|
-
capName: "streaming-engine",
|
|
22328
|
-
capScope: "system",
|
|
22329
|
-
addonId: null,
|
|
22330
|
-
access: "delete"
|
|
22331
|
-
},
|
|
22332
22759
|
"streamParams.getConfigSchema": {
|
|
22333
22760
|
capName: "stream-params",
|
|
22334
22761
|
capScope: "device",
|
|
@@ -22575,6 +23002,12 @@ Object.freeze({
|
|
|
22575
23002
|
addonId: null,
|
|
22576
23003
|
access: "view"
|
|
22577
23004
|
},
|
|
23005
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23006
|
+
capName: "user-passkeys",
|
|
23007
|
+
capScope: "system",
|
|
23008
|
+
addonId: null,
|
|
23009
|
+
access: "view"
|
|
23010
|
+
},
|
|
22578
23011
|
"userPasskeys.beginRegistration": {
|
|
22579
23012
|
capName: "user-passkeys",
|
|
22580
23013
|
capScope: "system",
|
|
@@ -22587,12 +23020,24 @@ Object.freeze({
|
|
|
22587
23020
|
addonId: null,
|
|
22588
23021
|
access: "view"
|
|
22589
23022
|
},
|
|
23023
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23024
|
+
capName: "user-passkeys",
|
|
23025
|
+
capScope: "system",
|
|
23026
|
+
addonId: null,
|
|
23027
|
+
access: "view"
|
|
23028
|
+
},
|
|
22590
23029
|
"userPasskeys.finishRegistration": {
|
|
22591
23030
|
capName: "user-passkeys",
|
|
22592
23031
|
capScope: "system",
|
|
22593
23032
|
addonId: null,
|
|
22594
23033
|
access: "create"
|
|
22595
23034
|
},
|
|
23035
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23036
|
+
capName: "user-passkeys",
|
|
23037
|
+
capScope: "system",
|
|
23038
|
+
addonId: null,
|
|
23039
|
+
access: "view"
|
|
23040
|
+
},
|
|
22596
23041
|
"userPasskeys.listPasskeys": {
|
|
22597
23042
|
capName: "user-passkeys",
|
|
22598
23043
|
capScope: "system",
|
|
@@ -22605,6 +23050,12 @@ Object.freeze({
|
|
|
22605
23050
|
addonId: null,
|
|
22606
23051
|
access: "delete"
|
|
22607
23052
|
},
|
|
23053
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23054
|
+
capName: "user-passkeys",
|
|
23055
|
+
capScope: "system",
|
|
23056
|
+
addonId: null,
|
|
23057
|
+
access: "create"
|
|
23058
|
+
},
|
|
22608
23059
|
"vacuumControl.locate": {
|
|
22609
23060
|
capName: "vacuum-control",
|
|
22610
23061
|
capScope: "device",
|
|
@@ -22677,6 +23128,18 @@ Object.freeze({
|
|
|
22677
23128
|
addonId: null,
|
|
22678
23129
|
access: "view"
|
|
22679
23130
|
},
|
|
23131
|
+
"viewerUi.getStaticDir": {
|
|
23132
|
+
capName: "viewer-ui",
|
|
23133
|
+
capScope: "system",
|
|
23134
|
+
addonId: null,
|
|
23135
|
+
access: "view"
|
|
23136
|
+
},
|
|
23137
|
+
"viewerUi.getVersion": {
|
|
23138
|
+
capName: "viewer-ui",
|
|
23139
|
+
capScope: "system",
|
|
23140
|
+
addonId: null,
|
|
23141
|
+
access: "view"
|
|
23142
|
+
},
|
|
22680
23143
|
"waterHeater.setAway": {
|
|
22681
23144
|
capName: "water-heater",
|
|
22682
23145
|
capScope: "device",
|
|
@@ -22695,54 +23158,6 @@ Object.freeze({
|
|
|
22695
23158
|
addonId: null,
|
|
22696
23159
|
access: "create"
|
|
22697
23160
|
},
|
|
22698
|
-
"webrtc.closeSession": {
|
|
22699
|
-
capName: "webrtc",
|
|
22700
|
-
capScope: "system",
|
|
22701
|
-
addonId: null,
|
|
22702
|
-
access: "create"
|
|
22703
|
-
},
|
|
22704
|
-
"webrtc.createSession": {
|
|
22705
|
-
capName: "webrtc",
|
|
22706
|
-
capScope: "system",
|
|
22707
|
-
addonId: null,
|
|
22708
|
-
access: "create"
|
|
22709
|
-
},
|
|
22710
|
-
"webrtc.handleAnswer": {
|
|
22711
|
-
capName: "webrtc",
|
|
22712
|
-
capScope: "system",
|
|
22713
|
-
addonId: null,
|
|
22714
|
-
access: "create"
|
|
22715
|
-
},
|
|
22716
|
-
"webrtc.handleOffer": {
|
|
22717
|
-
capName: "webrtc",
|
|
22718
|
-
capScope: "system",
|
|
22719
|
-
addonId: null,
|
|
22720
|
-
access: "create"
|
|
22721
|
-
},
|
|
22722
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22723
|
-
capName: "webrtc",
|
|
22724
|
-
capScope: "system",
|
|
22725
|
-
addonId: null,
|
|
22726
|
-
access: "view"
|
|
22727
|
-
},
|
|
22728
|
-
"webrtc.registerStream": {
|
|
22729
|
-
capName: "webrtc",
|
|
22730
|
-
capScope: "system",
|
|
22731
|
-
addonId: null,
|
|
22732
|
-
access: "create"
|
|
22733
|
-
},
|
|
22734
|
-
"webrtc.supportsStream": {
|
|
22735
|
-
capName: "webrtc",
|
|
22736
|
-
capScope: "system",
|
|
22737
|
-
addonId: null,
|
|
22738
|
-
access: "view"
|
|
22739
|
-
},
|
|
22740
|
-
"webrtc.unregisterStream": {
|
|
22741
|
-
capName: "webrtc",
|
|
22742
|
-
capScope: "system",
|
|
22743
|
-
addonId: null,
|
|
22744
|
-
access: "delete"
|
|
22745
|
-
},
|
|
22746
23161
|
"webrtcSession.addIceCandidate": {
|
|
22747
23162
|
capName: "webrtc-session",
|
|
22748
23163
|
capScope: "device",
|