@camstack/addon-mqtt-broker 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mqtt-broker.addon.js +672 -257
- package/dist/mqtt-broker.addon.mjs +672 -257
- package/package.json +4 -1
|
@@ -4673,7 +4673,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4673
4673
|
return inst;
|
|
4674
4674
|
}
|
|
4675
4675
|
//#endregion
|
|
4676
|
-
//#region ../types/dist/sleep-
|
|
4676
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4677
4677
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4678
4678
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4679
4679
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4859,6 +4859,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4859
4859
|
*/
|
|
4860
4860
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4861
4861
|
/**
|
|
4862
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4863
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4864
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4865
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4866
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4867
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4868
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4869
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4870
|
+
* broker's long backstop reconcile query).
|
|
4871
|
+
*/
|
|
4872
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4873
|
+
/**
|
|
4862
4874
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4863
4875
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4864
4876
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5382,10 +5394,6 @@ function hydrateField(field, values) {
|
|
|
5382
5394
|
};
|
|
5383
5395
|
}
|
|
5384
5396
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5385
|
-
if (field.type === "password") return {
|
|
5386
|
-
...field,
|
|
5387
|
-
value: ""
|
|
5388
|
-
};
|
|
5389
5397
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5390
5398
|
return {
|
|
5391
5399
|
...field,
|
|
@@ -6769,6 +6777,21 @@ function method(input, output, options) {
|
|
|
6769
6777
|
timeoutMs: options?.timeoutMs
|
|
6770
6778
|
};
|
|
6771
6779
|
}
|
|
6780
|
+
/**
|
|
6781
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6782
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6783
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6784
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6785
|
+
*/
|
|
6786
|
+
function systemMethod(input, output, options) {
|
|
6787
|
+
return {
|
|
6788
|
+
...method(input, output, options),
|
|
6789
|
+
systemOnly: true
|
|
6790
|
+
};
|
|
6791
|
+
}
|
|
6792
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6793
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6794
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6772
6795
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6773
6796
|
var VersionOutputSchema = object({ version: string() });
|
|
6774
6797
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6938,6 +6961,36 @@ var ModelFormatsSchema = object({
|
|
|
6938
6961
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6939
6962
|
pt: ModelFormatEntrySchema.optional()
|
|
6940
6963
|
});
|
|
6964
|
+
/**
|
|
6965
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6966
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6967
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6968
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6969
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6970
|
+
* to an `id`.
|
|
6971
|
+
*/
|
|
6972
|
+
var ModelVariantGroupSchema = object({
|
|
6973
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6974
|
+
family: string(),
|
|
6975
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6976
|
+
tier: string(),
|
|
6977
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6978
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6979
|
+
/**
|
|
6980
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6981
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6982
|
+
* future performance variants plug into.
|
|
6983
|
+
*/
|
|
6984
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6985
|
+
/**
|
|
6986
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6987
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6988
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6989
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6990
|
+
* the group so the selector can offer it as a variant axis.
|
|
6991
|
+
*/
|
|
6992
|
+
resolution: number().int().positive().optional()
|
|
6993
|
+
});
|
|
6941
6994
|
var ModelCatalogEntrySchema = object({
|
|
6942
6995
|
id: string(),
|
|
6943
6996
|
name: string(),
|
|
@@ -6967,7 +7020,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6967
7020
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6968
7021
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6969
7022
|
*/
|
|
6970
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7023
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7024
|
+
/**
|
|
7025
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7026
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7027
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7028
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7029
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7030
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7031
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7032
|
+
*/
|
|
7033
|
+
legacy: boolean().optional(),
|
|
7034
|
+
/**
|
|
7035
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7036
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7037
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7038
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7039
|
+
*/
|
|
7040
|
+
metrics: object({
|
|
7041
|
+
map50: number().optional(),
|
|
7042
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7043
|
+
}).optional(),
|
|
7044
|
+
/**
|
|
7045
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7046
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7047
|
+
* the retraining addon and any future commercial distribution.
|
|
7048
|
+
*/
|
|
7049
|
+
license: string().optional(),
|
|
7050
|
+
/**
|
|
7051
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7052
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7053
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7054
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7055
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7056
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7057
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7058
|
+
*/
|
|
7059
|
+
group: ModelVariantGroupSchema.optional()
|
|
6971
7060
|
});
|
|
6972
7061
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6973
7062
|
format: literal("openvino"),
|
|
@@ -7028,8 +7117,8 @@ var RecordingModeSchema = _enum([
|
|
|
7028
7117
|
"onAudioThreshold"
|
|
7029
7118
|
]);
|
|
7030
7119
|
/**
|
|
7031
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7032
|
-
* reads directly (never inferred from `rules`):
|
|
7120
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7121
|
+
* UI reads directly (never inferred from `rules`):
|
|
7033
7122
|
* - `off` — not recording.
|
|
7034
7123
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7035
7124
|
* with pre/post-buffer.
|
|
@@ -8677,26 +8766,13 @@ DeviceType.Light, method(object({
|
|
|
8677
8766
|
percentage: number().min(0).max(100),
|
|
8678
8767
|
lastChangedAt: number()
|
|
8679
8768
|
});
|
|
8769
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8680
8770
|
var StreamFormatSchema = _enum([
|
|
8681
8771
|
"webrtc",
|
|
8682
8772
|
"hls",
|
|
8683
8773
|
"mjpeg",
|
|
8684
8774
|
"rtsp"
|
|
8685
8775
|
]);
|
|
8686
|
-
var StreamInfoSchema = object({
|
|
8687
|
-
streamId: string(),
|
|
8688
|
-
format: StreamFormatSchema,
|
|
8689
|
-
url: string().nullable(),
|
|
8690
|
-
active: boolean()
|
|
8691
|
-
});
|
|
8692
|
-
method(object({
|
|
8693
|
-
streamId: string(),
|
|
8694
|
-
sourceUrl: string(),
|
|
8695
|
-
codec: string().optional()
|
|
8696
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8697
|
-
streamId: string(),
|
|
8698
|
-
format: StreamFormatSchema
|
|
8699
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8700
8776
|
var RtspRestreamEntrySchema = object({
|
|
8701
8777
|
brokerId: string(),
|
|
8702
8778
|
url: string(),
|
|
@@ -9361,7 +9437,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9361
9437
|
})),
|
|
9362
9438
|
lastChangedAt: number()
|
|
9363
9439
|
});
|
|
9364
|
-
|
|
9440
|
+
Object.values(DeviceType), method(object({
|
|
9365
9441
|
deviceId: number().int().nonnegative(),
|
|
9366
9442
|
key: string().min(1)
|
|
9367
9443
|
}), _void(), {
|
|
@@ -10276,7 +10352,7 @@ var BoundingBoxSchema = object({
|
|
|
10276
10352
|
w: number(),
|
|
10277
10353
|
h: number()
|
|
10278
10354
|
});
|
|
10279
|
-
|
|
10355
|
+
object({
|
|
10280
10356
|
class: string(),
|
|
10281
10357
|
originalClass: string(),
|
|
10282
10358
|
score: number(),
|
|
@@ -10411,7 +10487,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10411
10487
|
enabled: boolean(),
|
|
10412
10488
|
modelId: string(),
|
|
10413
10489
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10414
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10415
10490
|
group: string().optional(),
|
|
10416
10491
|
settings: record(string(), unknown()).optional()
|
|
10417
10492
|
}));
|
|
@@ -10436,7 +10511,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10436
10511
|
formats: record(string(), object({
|
|
10437
10512
|
downloaded: boolean(),
|
|
10438
10513
|
sizeMB: number()
|
|
10439
|
-
}))
|
|
10514
|
+
})),
|
|
10515
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10516
|
+
legacy: boolean().optional()
|
|
10440
10517
|
});
|
|
10441
10518
|
var ConfigFieldBridge = custom();
|
|
10442
10519
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10450,6 +10527,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10450
10527
|
defaultModelId: string(),
|
|
10451
10528
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10452
10529
|
enabledByDefault: boolean().optional(),
|
|
10530
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10453
10531
|
defaultConfidence: number(),
|
|
10454
10532
|
group: string().optional(),
|
|
10455
10533
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10466,11 +10544,6 @@ var PipelineSchemaSchema = object({
|
|
|
10466
10544
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10467
10545
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10468
10546
|
});
|
|
10469
|
-
var DetectorOutputSchema = object({
|
|
10470
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10471
|
-
inferenceMs: number(),
|
|
10472
|
-
modelId: string()
|
|
10473
|
-
});
|
|
10474
10547
|
var EngineProvisioningSchema = object({
|
|
10475
10548
|
runtimeId: _enum([
|
|
10476
10549
|
"onnx",
|
|
@@ -10487,15 +10560,42 @@ var EngineProvisioningSchema = object({
|
|
|
10487
10560
|
]),
|
|
10488
10561
|
progress: number().optional(),
|
|
10489
10562
|
error: string().optional(),
|
|
10490
|
-
nextRetryAt: number().optional()
|
|
10563
|
+
nextRetryAt: number().optional(),
|
|
10564
|
+
/**
|
|
10565
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10566
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10567
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10568
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10569
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10570
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10571
|
+
*/
|
|
10572
|
+
configIssues: array(string()).optional()
|
|
10491
10573
|
});
|
|
10492
10574
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10493
10575
|
addonId: string(),
|
|
10494
|
-
modelId: string(),
|
|
10576
|
+
modelId: string().optional(),
|
|
10495
10577
|
enabled: boolean().default(true),
|
|
10496
10578
|
children: array(PipelineStepInputSchema).optional(),
|
|
10497
10579
|
settings: record(string(), unknown()).optional()
|
|
10498
10580
|
}));
|
|
10581
|
+
var ModelSubstitutionSchema = object({
|
|
10582
|
+
addonId: string(),
|
|
10583
|
+
chosen: string(),
|
|
10584
|
+
running: string(),
|
|
10585
|
+
format: string()
|
|
10586
|
+
});
|
|
10587
|
+
var PipelineValidationIssueSchema = object({
|
|
10588
|
+
addonId: string(),
|
|
10589
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10590
|
+
detail: string()
|
|
10591
|
+
});
|
|
10592
|
+
var PipelineValidationResultSchema = object({
|
|
10593
|
+
ok: boolean(),
|
|
10594
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10595
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10596
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10597
|
+
format: string()
|
|
10598
|
+
});
|
|
10499
10599
|
var ReferenceImageEntrySchema = object({
|
|
10500
10600
|
filename: string(),
|
|
10501
10601
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10566,7 +10666,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10566
10666
|
})) }), object({ success: literal(true) }), {
|
|
10567
10667
|
kind: "mutation",
|
|
10568
10668
|
auth: "admin"
|
|
10569
|
-
}), method(
|
|
10669
|
+
}), method(object({ nodeId: string() }), object({
|
|
10670
|
+
success: literal(true),
|
|
10671
|
+
clearedDevices: number()
|
|
10672
|
+
}), {
|
|
10673
|
+
kind: "mutation",
|
|
10674
|
+
auth: "admin"
|
|
10675
|
+
}), 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({
|
|
10570
10676
|
name: string(),
|
|
10571
10677
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10572
10678
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10583,10 +10689,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10583
10689
|
modelId: string(),
|
|
10584
10690
|
format: ModelFormatSchema$1
|
|
10585
10691
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10586
|
-
addonId: string(),
|
|
10587
|
-
frame: FrameInputSchema,
|
|
10588
|
-
config: record(string(), unknown()).optional()
|
|
10589
|
-
}), DetectorOutputSchema), method(object({
|
|
10590
10692
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10591
10693
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10592
10694
|
frame: FrameInputSchema.optional(),
|
|
@@ -10732,6 +10834,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10732
10834
|
auth: "admin"
|
|
10733
10835
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10734
10836
|
/**
|
|
10837
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10838
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10839
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10840
|
+
* dims — no native resolution to plumb.
|
|
10841
|
+
*/
|
|
10842
|
+
var NativeCropBboxSchema = object({
|
|
10843
|
+
x: number(),
|
|
10844
|
+
y: number(),
|
|
10845
|
+
w: number(),
|
|
10846
|
+
h: number()
|
|
10847
|
+
});
|
|
10848
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10849
|
+
var NativeCropResultSchema = object({
|
|
10850
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10851
|
+
bytes: _instanceof(Uint8Array),
|
|
10852
|
+
width: number().int().positive(),
|
|
10853
|
+
height: number().int().positive()
|
|
10854
|
+
});
|
|
10855
|
+
/**
|
|
10735
10856
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10736
10857
|
* by both the Zod data schema (validation + default fallback) and
|
|
10737
10858
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10826,6 +10947,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10826
10947
|
kind: literal("remote-restream"),
|
|
10827
10948
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10828
10949
|
ownerNodeId: string(),
|
|
10950
|
+
/**
|
|
10951
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10952
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10953
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10954
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10955
|
+
*/
|
|
10956
|
+
ownerReachableHost: string().optional(),
|
|
10829
10957
|
/** Operator override for the owner host the runner dials. */
|
|
10830
10958
|
hubHostnameOverride: string().optional()
|
|
10831
10959
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10834,13 +10962,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10834
10962
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10835
10963
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10836
10964
|
*
|
|
10837
|
-
* Stateless-pipeline model: the
|
|
10838
|
-
*
|
|
10839
|
-
*
|
|
10840
|
-
*
|
|
10841
|
-
*
|
|
10842
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10843
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10965
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10966
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10967
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10968
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10969
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10844
10970
|
*/
|
|
10845
10971
|
var RunnerCameraConfigSchema = object({
|
|
10846
10972
|
deviceId: number(),
|
|
@@ -10891,14 +11017,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10891
11017
|
*/
|
|
10892
11018
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10893
11019
|
pipelineEnabled: boolean().default(true),
|
|
10894
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10895
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10896
11020
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10897
11021
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10898
11022
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10899
11023
|
audio: object({
|
|
10900
|
-
|
|
10901
|
-
modelId: string(),
|
|
11024
|
+
modelId: string().optional(),
|
|
10902
11025
|
enabled: boolean()
|
|
10903
11026
|
}).nullable().optional(),
|
|
10904
11027
|
/**
|
|
@@ -10985,7 +11108,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10985
11108
|
avgInferenceTimeMs: number(),
|
|
10986
11109
|
queueDepth: number()
|
|
10987
11110
|
});
|
|
10988
|
-
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly())
|
|
11111
|
+
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
11112
|
+
handle: FrameHandleSchema,
|
|
11113
|
+
bbox: NativeCropBboxSchema,
|
|
11114
|
+
maxWidth: number().int().positive().optional()
|
|
11115
|
+
}), NativeCropResultSchema.nullable());
|
|
10989
11116
|
object({
|
|
10990
11117
|
detected: boolean(),
|
|
10991
11118
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12279,7 +12406,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12279
12406
|
icon: string(),
|
|
12280
12407
|
path: string(),
|
|
12281
12408
|
remoteName: string(),
|
|
12282
|
-
bundle: string()
|
|
12409
|
+
bundle: string(),
|
|
12410
|
+
section: string().optional(),
|
|
12411
|
+
sectionLabel: string().optional()
|
|
12283
12412
|
});
|
|
12284
12413
|
var AddonPageInfoSchema = object({
|
|
12285
12414
|
addonId: string(),
|
|
@@ -12319,7 +12448,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12319
12448
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12320
12449
|
* without a separate filesystem stat.
|
|
12321
12450
|
*/
|
|
12322
|
-
bundle: string()
|
|
12451
|
+
bundle: string(),
|
|
12452
|
+
/**
|
|
12453
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12454
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12455
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12456
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12457
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12458
|
+
* "Addon Pages" group.
|
|
12459
|
+
*/
|
|
12460
|
+
section: string().optional(),
|
|
12461
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12462
|
+
sectionLabel: string().optional()
|
|
12323
12463
|
});
|
|
12324
12464
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12325
12465
|
var AddonHttpRouteSchema = object({
|
|
@@ -12535,6 +12675,17 @@ var WidgetMetadataSchema = object({
|
|
|
12535
12675
|
deviceContext: boolean().default(false),
|
|
12536
12676
|
integrationContext: boolean().default(false)
|
|
12537
12677
|
}),
|
|
12678
|
+
/**
|
|
12679
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12680
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12681
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12682
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12683
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12684
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12685
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12686
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12687
|
+
*/
|
|
12688
|
+
preAuth: boolean().optional().default(false),
|
|
12538
12689
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12539
12690
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12540
12691
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12836,6 +12987,66 @@ method(object({
|
|
|
12836
12987
|
password: string()
|
|
12837
12988
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12838
12989
|
/**
|
|
12990
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12991
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12992
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12993
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12994
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12995
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12996
|
+
*
|
|
12997
|
+
* A contribution is a discriminated union on `kind`:
|
|
12998
|
+
*
|
|
12999
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13000
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13001
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13002
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13003
|
+
* login page needs NO change.
|
|
13004
|
+
*
|
|
13005
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13006
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13007
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13008
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13009
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13010
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13011
|
+
*
|
|
13012
|
+
* Every contribution carries a `stage`:
|
|
13013
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13014
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13015
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13016
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13017
|
+
*
|
|
13018
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13019
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13020
|
+
* tRPC router.
|
|
13021
|
+
*/
|
|
13022
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13023
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13024
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13025
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13026
|
+
kind: literal("redirect"),
|
|
13027
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13028
|
+
id: string(),
|
|
13029
|
+
/** Operator-facing button label. */
|
|
13030
|
+
label: string(),
|
|
13031
|
+
/** lucide-react icon name. */
|
|
13032
|
+
icon: string().optional(),
|
|
13033
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13034
|
+
startUrl: string(),
|
|
13035
|
+
stage: LoginStageEnum
|
|
13036
|
+
}), object({
|
|
13037
|
+
kind: literal("widget"),
|
|
13038
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13039
|
+
id: string(),
|
|
13040
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13041
|
+
addonId: string(),
|
|
13042
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13043
|
+
bundle: string(),
|
|
13044
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13045
|
+
remote: WidgetRemoteSchema,
|
|
13046
|
+
stage: LoginStageEnum
|
|
13047
|
+
})]);
|
|
13048
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13049
|
+
/**
|
|
12839
13050
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12840
13051
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12841
13052
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -15007,7 +15218,17 @@ var TrackSchema = object({
|
|
|
15007
15218
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
15008
15219
|
totalDistance: number(),
|
|
15009
15220
|
state: TrackStateSchema,
|
|
15010
|
-
active: boolean()
|
|
15221
|
+
active: boolean(),
|
|
15222
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15223
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15224
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15225
|
+
importance: number().optional(),
|
|
15226
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15227
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15228
|
+
bestEventId: string().optional(),
|
|
15229
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15230
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15231
|
+
importanceReason: string().optional()
|
|
15011
15232
|
});
|
|
15012
15233
|
var BaseEventFields = {
|
|
15013
15234
|
id: string(),
|
|
@@ -15072,8 +15293,18 @@ var ObjectEventSchema = object({
|
|
|
15072
15293
|
frameHeight: number().optional(),
|
|
15073
15294
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
15074
15295
|
mediaKey: string().optional(),
|
|
15296
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15297
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15298
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15299
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15300
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15301
|
+
keyFrameMediaKey: string().optional(),
|
|
15075
15302
|
/** Populated by B5 (recording playback URL for this event). */
|
|
15076
|
-
mediaUrl: string().optional()
|
|
15303
|
+
mediaUrl: string().optional(),
|
|
15304
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15305
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15306
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15307
|
+
importance: number().optional()
|
|
15077
15308
|
});
|
|
15078
15309
|
var AudioEventSchema = object({
|
|
15079
15310
|
...BaseEventFields,
|
|
@@ -15097,7 +15328,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15097
15328
|
"fullFrame",
|
|
15098
15329
|
"fullFrameBoxed",
|
|
15099
15330
|
"faceCrop",
|
|
15100
|
-
"plateCrop"
|
|
15331
|
+
"plateCrop",
|
|
15332
|
+
"keyFrame"
|
|
15101
15333
|
]);
|
|
15102
15334
|
var MediaFileSchema = object({
|
|
15103
15335
|
key: string(),
|
|
@@ -15118,6 +15350,32 @@ var DeviceEventQueryInput = object({
|
|
|
15118
15350
|
projection: _enum(["full", "slim"]).optional()
|
|
15119
15351
|
});
|
|
15120
15352
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15353
|
+
var KeyEventQueryInput = object({
|
|
15354
|
+
deviceId: number(),
|
|
15355
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15356
|
+
since: number(),
|
|
15357
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15358
|
+
until: number(),
|
|
15359
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15360
|
+
/** Drop tracks scoring below this importance. */
|
|
15361
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15362
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15363
|
+
classFilter: string().optional()
|
|
15364
|
+
});
|
|
15365
|
+
var KeyEventSchema = object({
|
|
15366
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15367
|
+
id: string(),
|
|
15368
|
+
trackId: string(),
|
|
15369
|
+
/** Track start time (firstSeen). */
|
|
15370
|
+
timestamp: number(),
|
|
15371
|
+
className: string(),
|
|
15372
|
+
label: string().optional(),
|
|
15373
|
+
importance: number(),
|
|
15374
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15375
|
+
bestEventId: string(),
|
|
15376
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15377
|
+
windowMs: number().optional()
|
|
15378
|
+
});
|
|
15121
15379
|
var TrackedDetectionSchema = object({
|
|
15122
15380
|
trackId: string(),
|
|
15123
15381
|
className: string(),
|
|
@@ -15147,7 +15405,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15147
15405
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15148
15406
|
kind: "mutation",
|
|
15149
15407
|
auth: "admin"
|
|
15150
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15408
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15151
15409
|
deviceId: number(),
|
|
15152
15410
|
since: number(),
|
|
15153
15411
|
until: number(),
|
|
@@ -15192,11 +15450,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15192
15450
|
timestamp: number()
|
|
15193
15451
|
});
|
|
15194
15452
|
var CameraPipelineConfigSchema = object({
|
|
15195
|
-
engine: PipelineEngineChoiceSchema,
|
|
15453
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15196
15454
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15197
15455
|
audio: object({
|
|
15198
|
-
engine: PipelineEngineChoiceSchema,
|
|
15199
|
-
modelId: string(),
|
|
15456
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15457
|
+
modelId: string().optional(),
|
|
15200
15458
|
enabled: boolean(),
|
|
15201
15459
|
settings: record(string(), unknown()).readonly().optional()
|
|
15202
15460
|
}).nullable().optional()
|
|
@@ -15211,7 +15469,7 @@ var PipelineTemplateSchema = object({
|
|
|
15211
15469
|
});
|
|
15212
15470
|
var AgentAddonConfigSchema = object({
|
|
15213
15471
|
enabled: boolean(),
|
|
15214
|
-
modelId: string(),
|
|
15472
|
+
modelId: string().optional(),
|
|
15215
15473
|
settings: record(string(), unknown()).readonly()
|
|
15216
15474
|
});
|
|
15217
15475
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15221,12 +15479,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15221
15479
|
detectWeight: number().positive().optional(),
|
|
15222
15480
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15223
15481
|
detect: boolean().optional(),
|
|
15224
|
-
/**
|
|
15482
|
+
/**
|
|
15483
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15484
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15485
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15486
|
+
* parse — no code reads it and no write path emits it.
|
|
15487
|
+
*/
|
|
15225
15488
|
decode: boolean().optional(),
|
|
15226
15489
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15227
15490
|
audio: boolean().optional(),
|
|
15228
15491
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15229
|
-
ingest: boolean().optional()
|
|
15492
|
+
ingest: boolean().optional(),
|
|
15493
|
+
/**
|
|
15494
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15495
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15496
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15497
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15498
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15499
|
+
*/
|
|
15500
|
+
reachableHost: string().optional()
|
|
15230
15501
|
});
|
|
15231
15502
|
var CameraPipelineForAgentSchema = object({
|
|
15232
15503
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15274,25 +15545,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15274
15545
|
assignedAt: number()
|
|
15275
15546
|
});
|
|
15276
15547
|
/**
|
|
15277
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15278
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15279
|
-
* → co-located with pipeline → capacity).
|
|
15280
|
-
*/
|
|
15281
|
-
var DecoderAssignmentSchema = object({
|
|
15282
|
-
deviceId: number(),
|
|
15283
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15284
|
-
decoderNodeId: string(),
|
|
15285
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15286
|
-
pinned: boolean(),
|
|
15287
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15288
|
-
reason: _enum([
|
|
15289
|
-
"manual",
|
|
15290
|
-
"co-located",
|
|
15291
|
-
"capacity",
|
|
15292
|
-
"hardware-affinity"
|
|
15293
|
-
])
|
|
15294
|
-
});
|
|
15295
|
-
/**
|
|
15296
15548
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15297
15549
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15298
15550
|
*/
|
|
@@ -15332,6 +15584,15 @@ var GlobalMetricsSchema = object({
|
|
|
15332
15584
|
* capability providers.
|
|
15333
15585
|
*/
|
|
15334
15586
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15587
|
+
/**
|
|
15588
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15589
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15590
|
+
*/
|
|
15591
|
+
var IngestOwnerSchema = object({
|
|
15592
|
+
ownerNodeId: string(),
|
|
15593
|
+
reachableHost: string().optional(),
|
|
15594
|
+
configIssue: string().optional()
|
|
15595
|
+
});
|
|
15335
15596
|
/** Source block — always present; derives from the stream catalog. */
|
|
15336
15597
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15337
15598
|
camStreamId: string(),
|
|
@@ -15346,6 +15607,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15346
15607
|
detectionNodeId: string().nullable(),
|
|
15347
15608
|
decoderNodeId: string().nullable(),
|
|
15348
15609
|
audioNodeId: string().nullable(),
|
|
15610
|
+
/**
|
|
15611
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15612
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15613
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15614
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15615
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15616
|
+
*/
|
|
15617
|
+
sourceNodeId: string().nullable(),
|
|
15349
15618
|
pinned: object({
|
|
15350
15619
|
detection: boolean(),
|
|
15351
15620
|
decoder: boolean(),
|
|
@@ -15478,16 +15747,7 @@ method(object({
|
|
|
15478
15747
|
}), object({ success: literal(true) }), {
|
|
15479
15748
|
kind: "mutation",
|
|
15480
15749
|
auth: "admin"
|
|
15481
|
-
}), method(object({
|
|
15482
|
-
deviceId: number(),
|
|
15483
|
-
nodeId: string()
|
|
15484
|
-
}), _void(), {
|
|
15485
|
-
kind: "mutation",
|
|
15486
|
-
auth: "admin"
|
|
15487
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15488
|
-
kind: "mutation",
|
|
15489
|
-
auth: "admin"
|
|
15490
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15750
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15491
15751
|
deviceId: number(),
|
|
15492
15752
|
nodeId: string()
|
|
15493
15753
|
}), object({ success: literal(true) }), {
|
|
@@ -15508,10 +15768,7 @@ method(object({
|
|
|
15508
15768
|
nodeId: string(),
|
|
15509
15769
|
pinned: boolean(),
|
|
15510
15770
|
assignedAt: number()
|
|
15511
|
-
}))), method(object({
|
|
15512
|
-
deviceId: number(),
|
|
15513
|
-
pipelineNodeId: string().optional()
|
|
15514
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15771
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15515
15772
|
nodeId: string(),
|
|
15516
15773
|
settings: AgentPipelineSettingsSchema
|
|
15517
15774
|
})).readonly()), method(object({
|
|
@@ -15541,12 +15798,26 @@ method(object({
|
|
|
15541
15798
|
}), method(object({
|
|
15542
15799
|
agentNodeId: string(),
|
|
15543
15800
|
detect: boolean().nullable().optional(),
|
|
15544
|
-
decode: boolean().nullable().optional(),
|
|
15545
15801
|
audio: boolean().nullable().optional(),
|
|
15546
15802
|
ingest: boolean().nullable().optional()
|
|
15547
15803
|
}), object({ success: literal(true) }), {
|
|
15548
15804
|
kind: "mutation",
|
|
15549
15805
|
auth: "admin"
|
|
15806
|
+
}), method(object({
|
|
15807
|
+
agentNodeId: string(),
|
|
15808
|
+
reachableHost: string().nullable()
|
|
15809
|
+
}), object({ success: literal(true) }), {
|
|
15810
|
+
kind: "mutation",
|
|
15811
|
+
auth: "admin"
|
|
15812
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15813
|
+
success: literal(true),
|
|
15814
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15815
|
+
effectiveModelId: string().nullable(),
|
|
15816
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15817
|
+
clearedCameraOverrides: number()
|
|
15818
|
+
}), {
|
|
15819
|
+
kind: "mutation",
|
|
15820
|
+
auth: "admin"
|
|
15550
15821
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15551
15822
|
deviceId: number(),
|
|
15552
15823
|
addonId: string(),
|
|
@@ -15591,22 +15862,131 @@ method(object({
|
|
|
15591
15862
|
kind: "mutation",
|
|
15592
15863
|
auth: "admin"
|
|
15593
15864
|
});
|
|
15594
|
-
|
|
15595
|
-
|
|
15596
|
-
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
|
|
15865
|
+
/**
|
|
15866
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15867
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15868
|
+
* agents).
|
|
15869
|
+
*
|
|
15870
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15871
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15872
|
+
* version describes the node. Updates install into
|
|
15873
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15874
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15875
|
+
*
|
|
15876
|
+
* Providers:
|
|
15877
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15878
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15879
|
+
* unpinned calls.
|
|
15880
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15881
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15882
|
+
* `$hub.registerNode` manifest.
|
|
15883
|
+
*
|
|
15884
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15885
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15886
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15887
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15888
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15889
|
+
*
|
|
15890
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15891
|
+
*/
|
|
15892
|
+
/**
|
|
15893
|
+
* Where the running hub's code was loaded from:
|
|
15894
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15895
|
+
* plain resolution and runtime updates are refused.
|
|
15896
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15897
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15898
|
+
*/
|
|
15899
|
+
var ServerBootModeSchema = _enum([
|
|
15900
|
+
"workspace",
|
|
15901
|
+
"baked",
|
|
15902
|
+
"data-root"
|
|
15903
|
+
]);
|
|
15904
|
+
/**
|
|
15905
|
+
* Update lifecycle state:
|
|
15906
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15907
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15908
|
+
* restarted onto it (still running the OLD version).
|
|
15909
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15910
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15911
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15912
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15913
|
+
*/
|
|
15914
|
+
var ServerUpdateStateSchema = _enum([
|
|
15915
|
+
"idle",
|
|
15916
|
+
"checking",
|
|
15917
|
+
"staging",
|
|
15918
|
+
"pending-restart",
|
|
15919
|
+
"awaiting-confirmation"
|
|
15920
|
+
]);
|
|
15921
|
+
var ServerRollbackInfoSchema = object({
|
|
15922
|
+
/** The version that failed (or was manually rolled back). */
|
|
15923
|
+
fromVersion: string(),
|
|
15924
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15925
|
+
toVersion: string().nullable(),
|
|
15926
|
+
atMs: number(),
|
|
15927
|
+
reason: string()
|
|
15600
15928
|
});
|
|
15601
|
-
var
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
|
|
15929
|
+
var ServerPackageStatusSchema = object({
|
|
15930
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15931
|
+
packageName: string(),
|
|
15932
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15933
|
+
runningVersion: string().nullable(),
|
|
15934
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15935
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15936
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15937
|
+
activeVersion: string().nullable(),
|
|
15938
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15939
|
+
previousVersion: string().nullable(),
|
|
15940
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15941
|
+
seedVersion: string().nullable(),
|
|
15942
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15943
|
+
latestVersion: string().nullable(),
|
|
15944
|
+
updateAvailable: boolean(),
|
|
15945
|
+
bootMode: ServerBootModeSchema,
|
|
15946
|
+
updateState: ServerUpdateStateSchema,
|
|
15947
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15948
|
+
pendingVersion: string().nullable(),
|
|
15949
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15950
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15951
|
+
/**
|
|
15952
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15953
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15954
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15955
|
+
*/
|
|
15956
|
+
stateFileCorrupt: boolean(),
|
|
15957
|
+
lastCheckedAtMs: number().nullable()
|
|
15958
|
+
});
|
|
15959
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15960
|
+
packageName: string(),
|
|
15961
|
+
runningVersion: string().nullable(),
|
|
15962
|
+
latestVersion: string().nullable(),
|
|
15963
|
+
updateAvailable: boolean(),
|
|
15964
|
+
checkedAtMs: number(),
|
|
15965
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15966
|
+
error: string().nullable()
|
|
15967
|
+
});
|
|
15968
|
+
var ServerUpdateActionResultSchema = object({
|
|
15969
|
+
accepted: boolean(),
|
|
15970
|
+
targetVersion: string().nullable(),
|
|
15971
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15972
|
+
restarting: boolean(),
|
|
15973
|
+
message: string()
|
|
15974
|
+
});
|
|
15975
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15976
|
+
kind: "mutation",
|
|
15977
|
+
auth: "admin"
|
|
15978
|
+
}), method(object({
|
|
15979
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15980
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15981
|
+
kind: "mutation",
|
|
15982
|
+
auth: "admin"
|
|
15983
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15984
|
+
kind: "mutation",
|
|
15985
|
+
auth: "admin"
|
|
15986
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15987
|
+
kind: "mutation",
|
|
15988
|
+
auth: "admin"
|
|
15605
15989
|
});
|
|
15606
|
-
method(object({
|
|
15607
|
-
deviceId: number(),
|
|
15608
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15609
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15610
15990
|
/**
|
|
15611
15991
|
* Query filter for settings-store collections.
|
|
15612
15992
|
*/
|
|
@@ -15759,9 +16139,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
|
|
|
15759
16139
|
/**
|
|
15760
16140
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15761
16141
|
*
|
|
15762
|
-
*
|
|
15763
|
-
*
|
|
15764
|
-
*
|
|
16142
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16143
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16144
|
+
* prebuffer fallback.
|
|
15765
16145
|
*/
|
|
15766
16146
|
var SnapshotImageSchema = object({
|
|
15767
16147
|
base64: string(),
|
|
@@ -15792,11 +16172,12 @@ DeviceType.Camera, method(object({
|
|
|
15792
16172
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15793
16173
|
kind: "mutation",
|
|
15794
16174
|
auth: "admin"
|
|
15795
|
-
})
|
|
15796
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16175
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15797
16176
|
deviceId: number(),
|
|
15798
|
-
|
|
15799
|
-
|
|
16177
|
+
lastCapturedAt: number().nullable(),
|
|
16178
|
+
cacheAgeMs: number().nullable(),
|
|
16179
|
+
etag: string().nullable()
|
|
16180
|
+
})));
|
|
15800
16181
|
/**
|
|
15801
16182
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15802
16183
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -16047,10 +16428,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
16047
16428
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
16048
16429
|
* the assertion, bumps the credential counter, returns ok.
|
|
16049
16430
|
*
|
|
16431
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16432
|
+
* passkey IS the primary factor, no password leg:
|
|
16433
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16434
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16435
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16436
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16437
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16438
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16439
|
+
* resolves the credential by the response's credential id,
|
|
16440
|
+
* verifies the assertion against the stored challenge + that
|
|
16441
|
+
* credential's public key/counter, and returns the OWNING
|
|
16442
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16443
|
+
*
|
|
16050
16444
|
* 3. Management:
|
|
16051
16445
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
16052
16446
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
16053
16447
|
*
|
|
16448
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16449
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16450
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16451
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16452
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16453
|
+
* row ⇒ `enabled: false`).
|
|
16454
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16455
|
+
* the providing addon beside its credentials.
|
|
16456
|
+
*
|
|
16054
16457
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
16055
16458
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
16056
16459
|
* the cap to non-admins.
|
|
@@ -16093,6 +16496,17 @@ method(object({
|
|
|
16093
16496
|
}), object({ verified: boolean() }), {
|
|
16094
16497
|
kind: "mutation",
|
|
16095
16498
|
access: "view"
|
|
16499
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16500
|
+
kind: "mutation",
|
|
16501
|
+
access: "view"
|
|
16502
|
+
}), method(object({
|
|
16503
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16504
|
+
response: record(string(), unknown()) }), object({
|
|
16505
|
+
verified: boolean(),
|
|
16506
|
+
userId: string().nullable()
|
|
16507
|
+
}), {
|
|
16508
|
+
kind: "mutation",
|
|
16509
|
+
access: "view"
|
|
16096
16510
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16097
16511
|
userId: string(),
|
|
16098
16512
|
credentialId: string()
|
|
@@ -16100,6 +16514,13 @@ method(object({
|
|
|
16100
16514
|
kind: "mutation",
|
|
16101
16515
|
auth: "admin",
|
|
16102
16516
|
access: "delete"
|
|
16517
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16518
|
+
userId: string(),
|
|
16519
|
+
enabled: boolean()
|
|
16520
|
+
}), object({ success: literal(true) }), {
|
|
16521
|
+
kind: "mutation",
|
|
16522
|
+
auth: "admin",
|
|
16523
|
+
access: "create"
|
|
16103
16524
|
});
|
|
16104
16525
|
/**
|
|
16105
16526
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16157,9 +16578,10 @@ method(object({
|
|
|
16157
16578
|
auth: "admin"
|
|
16158
16579
|
});
|
|
16159
16580
|
/**
|
|
16160
|
-
* Optional client-side hints sent at session creation to help the
|
|
16161
|
-
*
|
|
16162
|
-
*
|
|
16581
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16582
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16583
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16584
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16163
16585
|
*/
|
|
16164
16586
|
var webrtcClientHintsSchema = object({
|
|
16165
16587
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16170,22 +16592,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16170
16592
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16171
16593
|
prefersTier: string().optional()
|
|
16172
16594
|
}).partial();
|
|
16173
|
-
method(object({
|
|
16174
|
-
streamId: string(),
|
|
16175
|
-
sdpOffer: string()
|
|
16176
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16177
|
-
streamId: string(),
|
|
16178
|
-
codec: string()
|
|
16179
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16180
|
-
streamId: string(),
|
|
16181
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16182
|
-
}), object({
|
|
16183
|
-
sessionId: string(),
|
|
16184
|
-
sdpOffer: string()
|
|
16185
|
-
}), { kind: "mutation" }), method(object({
|
|
16186
|
-
sessionId: string(),
|
|
16187
|
-
sdpAnswer: string()
|
|
16188
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16189
16595
|
/**
|
|
16190
16596
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16191
16597
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16916,7 +17322,17 @@ var FaceInfoSchema = object({
|
|
|
16916
17322
|
recognizedIdentityId: string().optional(),
|
|
16917
17323
|
identityName: string().optional(),
|
|
16918
17324
|
assigned: boolean(),
|
|
16919
|
-
base64: string().optional()
|
|
17325
|
+
base64: string().optional(),
|
|
17326
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17327
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17328
|
+
* legacy rows written before design B. */
|
|
17329
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17330
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17331
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17332
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17333
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17334
|
+
* back to the inline `base64` face crop. */
|
|
17335
|
+
keyFrameMediaKey: string().optional()
|
|
16920
17336
|
});
|
|
16921
17337
|
var FaceFilterEnum = _enum([
|
|
16922
17338
|
"unassigned",
|
|
@@ -17613,6 +18029,16 @@ var TopologyCategorySchema = object({
|
|
|
17613
18029
|
healthy: number(),
|
|
17614
18030
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17615
18031
|
});
|
|
18032
|
+
/**
|
|
18033
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18034
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18035
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18036
|
+
* rows and pre-phase-2 nodes report none.
|
|
18037
|
+
*/
|
|
18038
|
+
var TopologyRootPackageSchema = object({
|
|
18039
|
+
name: string(),
|
|
18040
|
+
version: string()
|
|
18041
|
+
});
|
|
17616
18042
|
var TopologyNodeSchema = object({
|
|
17617
18043
|
id: string(),
|
|
17618
18044
|
name: string(),
|
|
@@ -17636,7 +18062,8 @@ var TopologyNodeSchema = object({
|
|
|
17636
18062
|
status: string()
|
|
17637
18063
|
})).readonly(),
|
|
17638
18064
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17639
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18065
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18066
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17640
18067
|
});
|
|
17641
18068
|
var CapUsageEdgeSchema = object({
|
|
17642
18069
|
callerAddonId: string(),
|
|
@@ -20436,6 +20863,12 @@ Object.freeze({
|
|
|
20436
20863
|
addonId: null,
|
|
20437
20864
|
access: "create"
|
|
20438
20865
|
},
|
|
20866
|
+
"loginMethod.getLoginMethods": {
|
|
20867
|
+
capName: "login-method",
|
|
20868
|
+
capScope: "system",
|
|
20869
|
+
addonId: null,
|
|
20870
|
+
access: "view"
|
|
20871
|
+
},
|
|
20439
20872
|
"mediaPlayer.next": {
|
|
20440
20873
|
capName: "media-player",
|
|
20441
20874
|
capScope: "device",
|
|
@@ -21018,6 +21451,12 @@ Object.freeze({
|
|
|
21018
21451
|
addonId: null,
|
|
21019
21452
|
access: "view"
|
|
21020
21453
|
},
|
|
21454
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21455
|
+
capName: "pipeline-analytics",
|
|
21456
|
+
capScope: "device",
|
|
21457
|
+
addonId: null,
|
|
21458
|
+
access: "view"
|
|
21459
|
+
},
|
|
21021
21460
|
"pipelineAnalytics.getMotionEvents": {
|
|
21022
21461
|
capName: "pipeline-analytics",
|
|
21023
21462
|
capScope: "device",
|
|
@@ -21066,23 +21505,23 @@ Object.freeze({
|
|
|
21066
21505
|
addonId: null,
|
|
21067
21506
|
access: "create"
|
|
21068
21507
|
},
|
|
21069
|
-
"pipelineExecutor.
|
|
21508
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21070
21509
|
capName: "pipeline-executor",
|
|
21071
21510
|
capScope: "system",
|
|
21072
21511
|
addonId: null,
|
|
21073
21512
|
access: "delete"
|
|
21074
21513
|
},
|
|
21075
|
-
"pipelineExecutor.
|
|
21514
|
+
"pipelineExecutor.deleteModel": {
|
|
21076
21515
|
capName: "pipeline-executor",
|
|
21077
21516
|
capScope: "system",
|
|
21078
21517
|
addonId: null,
|
|
21079
21518
|
access: "delete"
|
|
21080
21519
|
},
|
|
21081
|
-
"pipelineExecutor.
|
|
21520
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21082
21521
|
capName: "pipeline-executor",
|
|
21083
21522
|
capScope: "system",
|
|
21084
21523
|
addonId: null,
|
|
21085
|
-
access: "
|
|
21524
|
+
access: "delete"
|
|
21086
21525
|
},
|
|
21087
21526
|
"pipelineExecutor.downloadModel": {
|
|
21088
21527
|
capName: "pipeline-executor",
|
|
@@ -21276,13 +21715,13 @@ Object.freeze({
|
|
|
21276
21715
|
addonId: null,
|
|
21277
21716
|
access: "create"
|
|
21278
21717
|
},
|
|
21279
|
-
"
|
|
21280
|
-
capName: "pipeline-
|
|
21718
|
+
"pipelineExecutor.validatePipeline": {
|
|
21719
|
+
capName: "pipeline-executor",
|
|
21281
21720
|
capScope: "system",
|
|
21282
21721
|
addonId: null,
|
|
21283
|
-
access: "
|
|
21722
|
+
access: "view"
|
|
21284
21723
|
},
|
|
21285
|
-
"pipelineOrchestrator.
|
|
21724
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21286
21725
|
capName: "pipeline-orchestrator",
|
|
21287
21726
|
capScope: "system",
|
|
21288
21727
|
addonId: null,
|
|
@@ -21366,19 +21805,13 @@ Object.freeze({
|
|
|
21366
21805
|
addonId: null,
|
|
21367
21806
|
access: "view"
|
|
21368
21807
|
},
|
|
21369
|
-
"pipelineOrchestrator.
|
|
21370
|
-
capName: "pipeline-orchestrator",
|
|
21371
|
-
capScope: "system",
|
|
21372
|
-
addonId: null,
|
|
21373
|
-
access: "view"
|
|
21374
|
-
},
|
|
21375
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21808
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21376
21809
|
capName: "pipeline-orchestrator",
|
|
21377
21810
|
capScope: "system",
|
|
21378
21811
|
addonId: null,
|
|
21379
21812
|
access: "view"
|
|
21380
21813
|
},
|
|
21381
|
-
"pipelineOrchestrator.
|
|
21814
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21382
21815
|
capName: "pipeline-orchestrator",
|
|
21383
21816
|
capScope: "system",
|
|
21384
21817
|
addonId: null,
|
|
@@ -21420,6 +21853,12 @@ Object.freeze({
|
|
|
21420
21853
|
addonId: null,
|
|
21421
21854
|
access: "delete"
|
|
21422
21855
|
},
|
|
21856
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21857
|
+
capName: "pipeline-orchestrator",
|
|
21858
|
+
capScope: "system",
|
|
21859
|
+
addonId: null,
|
|
21860
|
+
access: "delete"
|
|
21861
|
+
},
|
|
21423
21862
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21424
21863
|
capName: "pipeline-orchestrator",
|
|
21425
21864
|
capScope: "system",
|
|
@@ -21456,37 +21895,37 @@ Object.freeze({
|
|
|
21456
21895
|
addonId: null,
|
|
21457
21896
|
access: "create"
|
|
21458
21897
|
},
|
|
21459
|
-
"pipelineOrchestrator.
|
|
21898
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21460
21899
|
capName: "pipeline-orchestrator",
|
|
21461
21900
|
capScope: "system",
|
|
21462
21901
|
addonId: null,
|
|
21463
21902
|
access: "create"
|
|
21464
21903
|
},
|
|
21465
|
-
"pipelineOrchestrator.
|
|
21904
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21466
21905
|
capName: "pipeline-orchestrator",
|
|
21467
21906
|
capScope: "system",
|
|
21468
21907
|
addonId: null,
|
|
21469
21908
|
access: "create"
|
|
21470
21909
|
},
|
|
21471
|
-
"pipelineOrchestrator.
|
|
21910
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21472
21911
|
capName: "pipeline-orchestrator",
|
|
21473
21912
|
capScope: "system",
|
|
21474
21913
|
addonId: null,
|
|
21475
21914
|
access: "create"
|
|
21476
21915
|
},
|
|
21477
|
-
"pipelineOrchestrator.
|
|
21916
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21478
21917
|
capName: "pipeline-orchestrator",
|
|
21479
21918
|
capScope: "system",
|
|
21480
21919
|
addonId: null,
|
|
21481
21920
|
access: "create"
|
|
21482
21921
|
},
|
|
21483
|
-
"pipelineOrchestrator.
|
|
21922
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21484
21923
|
capName: "pipeline-orchestrator",
|
|
21485
21924
|
capScope: "system",
|
|
21486
21925
|
addonId: null,
|
|
21487
21926
|
access: "create"
|
|
21488
21927
|
},
|
|
21489
|
-
"pipelineOrchestrator.
|
|
21928
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21490
21929
|
capName: "pipeline-orchestrator",
|
|
21491
21930
|
capScope: "system",
|
|
21492
21931
|
addonId: null,
|
|
@@ -21546,6 +21985,12 @@ Object.freeze({
|
|
|
21546
21985
|
addonId: null,
|
|
21547
21986
|
access: "view"
|
|
21548
21987
|
},
|
|
21988
|
+
"pipelineRunner.getNativeCrop": {
|
|
21989
|
+
capName: "pipeline-runner",
|
|
21990
|
+
capScope: "system",
|
|
21991
|
+
addonId: null,
|
|
21992
|
+
access: "view"
|
|
21993
|
+
},
|
|
21549
21994
|
"pipelineRunner.reportMotion": {
|
|
21550
21995
|
capName: "pipeline-runner",
|
|
21551
21996
|
capScope: "system",
|
|
@@ -21786,33 +22231,45 @@ Object.freeze({
|
|
|
21786
22231
|
addonId: null,
|
|
21787
22232
|
access: "create"
|
|
21788
22233
|
},
|
|
21789
|
-
"
|
|
21790
|
-
capName: "
|
|
22234
|
+
"scriptRunner.run": {
|
|
22235
|
+
capName: "script-runner",
|
|
22236
|
+
capScope: "device",
|
|
22237
|
+
addonId: null,
|
|
22238
|
+
access: "create"
|
|
22239
|
+
},
|
|
22240
|
+
"scriptRunner.stop": {
|
|
22241
|
+
capName: "script-runner",
|
|
22242
|
+
capScope: "device",
|
|
22243
|
+
addonId: null,
|
|
22244
|
+
access: "create"
|
|
22245
|
+
},
|
|
22246
|
+
"serverManagement.applyServerUpdate": {
|
|
22247
|
+
capName: "server-management",
|
|
21791
22248
|
capScope: "system",
|
|
21792
22249
|
addonId: null,
|
|
21793
|
-
access: "
|
|
22250
|
+
access: "create"
|
|
21794
22251
|
},
|
|
21795
|
-
"
|
|
21796
|
-
capName: "
|
|
22252
|
+
"serverManagement.checkServerUpdate": {
|
|
22253
|
+
capName: "server-management",
|
|
21797
22254
|
capScope: "system",
|
|
21798
22255
|
addonId: null,
|
|
21799
22256
|
access: "create"
|
|
21800
22257
|
},
|
|
21801
|
-
"
|
|
21802
|
-
capName: "
|
|
22258
|
+
"serverManagement.getServerPackageStatus": {
|
|
22259
|
+
capName: "server-management",
|
|
21803
22260
|
capScope: "system",
|
|
21804
22261
|
addonId: null,
|
|
21805
|
-
access: "
|
|
22262
|
+
access: "view"
|
|
21806
22263
|
},
|
|
21807
|
-
"
|
|
21808
|
-
capName: "
|
|
21809
|
-
capScope: "
|
|
22264
|
+
"serverManagement.restartServer": {
|
|
22265
|
+
capName: "server-management",
|
|
22266
|
+
capScope: "system",
|
|
21810
22267
|
addonId: null,
|
|
21811
22268
|
access: "create"
|
|
21812
22269
|
},
|
|
21813
|
-
"
|
|
21814
|
-
capName: "
|
|
21815
|
-
capScope: "
|
|
22270
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22271
|
+
capName: "server-management",
|
|
22272
|
+
capScope: "system",
|
|
21816
22273
|
addonId: null,
|
|
21817
22274
|
access: "create"
|
|
21818
22275
|
},
|
|
@@ -21900,23 +22357,17 @@ Object.freeze({
|
|
|
21900
22357
|
addonId: null,
|
|
21901
22358
|
access: "view"
|
|
21902
22359
|
},
|
|
21903
|
-
"snapshot.
|
|
22360
|
+
"snapshot.getSnapshotOverview": {
|
|
21904
22361
|
capName: "snapshot",
|
|
21905
22362
|
capScope: "device",
|
|
21906
22363
|
addonId: null,
|
|
21907
|
-
access: "create"
|
|
21908
|
-
},
|
|
21909
|
-
"snapshotProvider.getSnapshot": {
|
|
21910
|
-
capName: "snapshot-provider",
|
|
21911
|
-
capScope: "system",
|
|
21912
|
-
addonId: null,
|
|
21913
22364
|
access: "view"
|
|
21914
22365
|
},
|
|
21915
|
-
"
|
|
21916
|
-
capName: "snapshot
|
|
21917
|
-
capScope: "
|
|
22366
|
+
"snapshot.invalidateCache": {
|
|
22367
|
+
capName: "snapshot",
|
|
22368
|
+
capScope: "device",
|
|
21918
22369
|
addonId: null,
|
|
21919
|
-
access: "
|
|
22370
|
+
access: "create"
|
|
21920
22371
|
},
|
|
21921
22372
|
"ssoBridge.signBridgeToken": {
|
|
21922
22373
|
capName: "sso-bridge",
|
|
@@ -22344,30 +22795,6 @@ Object.freeze({
|
|
|
22344
22795
|
addonId: null,
|
|
22345
22796
|
access: "view"
|
|
22346
22797
|
},
|
|
22347
|
-
"streamingEngine.getStreamUrl": {
|
|
22348
|
-
capName: "streaming-engine",
|
|
22349
|
-
capScope: "system",
|
|
22350
|
-
addonId: null,
|
|
22351
|
-
access: "view"
|
|
22352
|
-
},
|
|
22353
|
-
"streamingEngine.listStreams": {
|
|
22354
|
-
capName: "streaming-engine",
|
|
22355
|
-
capScope: "system",
|
|
22356
|
-
addonId: null,
|
|
22357
|
-
access: "view"
|
|
22358
|
-
},
|
|
22359
|
-
"streamingEngine.registerStream": {
|
|
22360
|
-
capName: "streaming-engine",
|
|
22361
|
-
capScope: "system",
|
|
22362
|
-
addonId: null,
|
|
22363
|
-
access: "create"
|
|
22364
|
-
},
|
|
22365
|
-
"streamingEngine.unregisterStream": {
|
|
22366
|
-
capName: "streaming-engine",
|
|
22367
|
-
capScope: "system",
|
|
22368
|
-
addonId: null,
|
|
22369
|
-
access: "delete"
|
|
22370
|
-
},
|
|
22371
22798
|
"streamParams.getConfigSchema": {
|
|
22372
22799
|
capName: "stream-params",
|
|
22373
22800
|
capScope: "device",
|
|
@@ -22614,6 +23041,12 @@ Object.freeze({
|
|
|
22614
23041
|
addonId: null,
|
|
22615
23042
|
access: "view"
|
|
22616
23043
|
},
|
|
23044
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
23045
|
+
capName: "user-passkeys",
|
|
23046
|
+
capScope: "system",
|
|
23047
|
+
addonId: null,
|
|
23048
|
+
access: "view"
|
|
23049
|
+
},
|
|
22617
23050
|
"userPasskeys.beginRegistration": {
|
|
22618
23051
|
capName: "user-passkeys",
|
|
22619
23052
|
capScope: "system",
|
|
@@ -22626,12 +23059,24 @@ Object.freeze({
|
|
|
22626
23059
|
addonId: null,
|
|
22627
23060
|
access: "view"
|
|
22628
23061
|
},
|
|
23062
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
23063
|
+
capName: "user-passkeys",
|
|
23064
|
+
capScope: "system",
|
|
23065
|
+
addonId: null,
|
|
23066
|
+
access: "view"
|
|
23067
|
+
},
|
|
22629
23068
|
"userPasskeys.finishRegistration": {
|
|
22630
23069
|
capName: "user-passkeys",
|
|
22631
23070
|
capScope: "system",
|
|
22632
23071
|
addonId: null,
|
|
22633
23072
|
access: "create"
|
|
22634
23073
|
},
|
|
23074
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23075
|
+
capName: "user-passkeys",
|
|
23076
|
+
capScope: "system",
|
|
23077
|
+
addonId: null,
|
|
23078
|
+
access: "view"
|
|
23079
|
+
},
|
|
22635
23080
|
"userPasskeys.listPasskeys": {
|
|
22636
23081
|
capName: "user-passkeys",
|
|
22637
23082
|
capScope: "system",
|
|
@@ -22644,6 +23089,12 @@ Object.freeze({
|
|
|
22644
23089
|
addonId: null,
|
|
22645
23090
|
access: "delete"
|
|
22646
23091
|
},
|
|
23092
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23093
|
+
capName: "user-passkeys",
|
|
23094
|
+
capScope: "system",
|
|
23095
|
+
addonId: null,
|
|
23096
|
+
access: "create"
|
|
23097
|
+
},
|
|
22647
23098
|
"vacuumControl.locate": {
|
|
22648
23099
|
capName: "vacuum-control",
|
|
22649
23100
|
capScope: "device",
|
|
@@ -22716,6 +23167,18 @@ Object.freeze({
|
|
|
22716
23167
|
addonId: null,
|
|
22717
23168
|
access: "view"
|
|
22718
23169
|
},
|
|
23170
|
+
"viewerUi.getStaticDir": {
|
|
23171
|
+
capName: "viewer-ui",
|
|
23172
|
+
capScope: "system",
|
|
23173
|
+
addonId: null,
|
|
23174
|
+
access: "view"
|
|
23175
|
+
},
|
|
23176
|
+
"viewerUi.getVersion": {
|
|
23177
|
+
capName: "viewer-ui",
|
|
23178
|
+
capScope: "system",
|
|
23179
|
+
addonId: null,
|
|
23180
|
+
access: "view"
|
|
23181
|
+
},
|
|
22719
23182
|
"waterHeater.setAway": {
|
|
22720
23183
|
capName: "water-heater",
|
|
22721
23184
|
capScope: "device",
|
|
@@ -22734,54 +23197,6 @@ Object.freeze({
|
|
|
22734
23197
|
addonId: null,
|
|
22735
23198
|
access: "create"
|
|
22736
23199
|
},
|
|
22737
|
-
"webrtc.closeSession": {
|
|
22738
|
-
capName: "webrtc",
|
|
22739
|
-
capScope: "system",
|
|
22740
|
-
addonId: null,
|
|
22741
|
-
access: "create"
|
|
22742
|
-
},
|
|
22743
|
-
"webrtc.createSession": {
|
|
22744
|
-
capName: "webrtc",
|
|
22745
|
-
capScope: "system",
|
|
22746
|
-
addonId: null,
|
|
22747
|
-
access: "create"
|
|
22748
|
-
},
|
|
22749
|
-
"webrtc.handleAnswer": {
|
|
22750
|
-
capName: "webrtc",
|
|
22751
|
-
capScope: "system",
|
|
22752
|
-
addonId: null,
|
|
22753
|
-
access: "create"
|
|
22754
|
-
},
|
|
22755
|
-
"webrtc.handleOffer": {
|
|
22756
|
-
capName: "webrtc",
|
|
22757
|
-
capScope: "system",
|
|
22758
|
-
addonId: null,
|
|
22759
|
-
access: "create"
|
|
22760
|
-
},
|
|
22761
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22762
|
-
capName: "webrtc",
|
|
22763
|
-
capScope: "system",
|
|
22764
|
-
addonId: null,
|
|
22765
|
-
access: "view"
|
|
22766
|
-
},
|
|
22767
|
-
"webrtc.registerStream": {
|
|
22768
|
-
capName: "webrtc",
|
|
22769
|
-
capScope: "system",
|
|
22770
|
-
addonId: null,
|
|
22771
|
-
access: "create"
|
|
22772
|
-
},
|
|
22773
|
-
"webrtc.supportsStream": {
|
|
22774
|
-
capName: "webrtc",
|
|
22775
|
-
capScope: "system",
|
|
22776
|
-
addonId: null,
|
|
22777
|
-
access: "view"
|
|
22778
|
-
},
|
|
22779
|
-
"webrtc.unregisterStream": {
|
|
22780
|
-
capName: "webrtc",
|
|
22781
|
-
capScope: "system",
|
|
22782
|
-
addonId: null,
|
|
22783
|
-
access: "delete"
|
|
22784
|
-
},
|
|
22785
23200
|
"webrtcSession.addIceCandidate": {
|
|
22786
23201
|
capName: "webrtc-session",
|
|
22787
23202
|
capScope: "device",
|