@camstack/addon-smtp-nodemailer 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/smtp.addon.js +672 -257
- package/dist/smtp.addon.mjs +672 -257
- package/package.json +1 -1
package/dist/smtp.addon.mjs
CHANGED
|
@@ -4663,7 +4663,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4663
4663
|
return inst;
|
|
4664
4664
|
}
|
|
4665
4665
|
//#endregion
|
|
4666
|
-
//#region ../types/dist/sleep-
|
|
4666
|
+
//#region ../types/dist/sleep-BC9Yqte7.mjs
|
|
4667
4667
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4668
4668
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4669
4669
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4849,6 +4849,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4849
4849
|
*/
|
|
4850
4850
|
EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
|
|
4851
4851
|
/**
|
|
4852
|
+
* The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
|
|
4853
|
+
* Emitted by addon-pipeline-orchestrator whenever it (re)derives node
|
|
4854
|
+
* capabilities — at boot, on agent online/offline, and on an ingest-node
|
|
4855
|
+
* flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
|
|
4856
|
+
* keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
|
|
4857
|
+
* cross-process `getIngestOwner` query (push the authority's decision instead
|
|
4858
|
+
* of polling it on the hot path). Idempotent state — re-emitted on every
|
|
4859
|
+
* topology change, so a dropped event self-heals on the next one (plus the
|
|
4860
|
+
* broker's long backstop reconcile query).
|
|
4861
|
+
*/
|
|
4862
|
+
EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
|
|
4863
|
+
/**
|
|
4852
4864
|
* Periodic snapshot of per-node pipeline-runner load
|
|
4853
4865
|
* (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
|
|
4854
4866
|
* subscribe instead of polling `pipelineRunner.getLocalLoad`.
|
|
@@ -5372,10 +5384,6 @@ function hydrateField(field, values) {
|
|
|
5372
5384
|
};
|
|
5373
5385
|
}
|
|
5374
5386
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5375
|
-
if (field.type === "password") return {
|
|
5376
|
-
...field,
|
|
5377
|
-
value: ""
|
|
5378
|
-
};
|
|
5379
5387
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5380
5388
|
return {
|
|
5381
5389
|
...field,
|
|
@@ -6759,6 +6767,21 @@ function method(input, output, options) {
|
|
|
6759
6767
|
timeoutMs: options?.timeoutMs
|
|
6760
6768
|
};
|
|
6761
6769
|
}
|
|
6770
|
+
/**
|
|
6771
|
+
* A wrapper/system-only method: served exclusively by the cap's system-level
|
|
6772
|
+
* provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
|
|
6773
|
+
* driver natives don't stub out a wrapper concern (e.g. a cross-device cache
|
|
6774
|
+
* overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
|
|
6775
|
+
*/
|
|
6776
|
+
function systemMethod(input, output, options) {
|
|
6777
|
+
return {
|
|
6778
|
+
...method(input, output, options),
|
|
6779
|
+
systemOnly: true
|
|
6780
|
+
};
|
|
6781
|
+
}
|
|
6782
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
6783
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
6784
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
6762
6785
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6763
6786
|
var VersionOutputSchema = object({ version: string() });
|
|
6764
6787
|
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
@@ -6928,6 +6951,36 @@ var ModelFormatsSchema = object({
|
|
|
6928
6951
|
tflite: ModelFormatEntrySchema.optional(),
|
|
6929
6952
|
pt: ModelFormatEntrySchema.optional()
|
|
6930
6953
|
});
|
|
6954
|
+
/**
|
|
6955
|
+
* Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
|
|
6956
|
+
* the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
|
|
6957
|
+
* grouped Family→Tier→Variant picker renders identically in the config UI and
|
|
6958
|
+
* in the pipeline/device steppers. The flat `id` stays the source of truth for
|
|
6959
|
+
* resolution/download/persistence; this is a presentation overlay resolved back
|
|
6960
|
+
* to an `id`.
|
|
6961
|
+
*/
|
|
6962
|
+
var ModelVariantGroupSchema = object({
|
|
6963
|
+
/** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
|
|
6964
|
+
family: string(),
|
|
6965
|
+
/** Size within the family, e.g. `n` | `s` | `m` | `l`. */
|
|
6966
|
+
tier: string(),
|
|
6967
|
+
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
6968
|
+
precision: _enum(["fp32", "int8"]).optional(),
|
|
6969
|
+
/**
|
|
6970
|
+
* Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
|
|
6971
|
+
* latency-optimized export (e.g. ReLU-activation variant) — the slot the
|
|
6972
|
+
* future performance variants plug into.
|
|
6973
|
+
*/
|
|
6974
|
+
optimization: _enum(["standard", "fast"]).optional(),
|
|
6975
|
+
/**
|
|
6976
|
+
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
6977
|
+
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
6978
|
+
* cheap latency lever — especially on Apple ANE and the Intel N100 — at a
|
|
6979
|
+
* small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
|
|
6980
|
+
* the group so the selector can offer it as a variant axis.
|
|
6981
|
+
*/
|
|
6982
|
+
resolution: number().int().positive().optional()
|
|
6983
|
+
});
|
|
6931
6984
|
var ModelCatalogEntrySchema = object({
|
|
6932
6985
|
id: string(),
|
|
6933
6986
|
name: string(),
|
|
@@ -6957,7 +7010,43 @@ var ModelCatalogEntrySchema = object({
|
|
|
6957
7010
|
* Auxiliary files required at runtime (labels JSON, charset dict, etc.).
|
|
6958
7011
|
* Downloaded into the same modelsDir alongside the model file.
|
|
6959
7012
|
*/
|
|
6960
|
-
extraFiles: array(ModelExtraFileSchema).readonly().optional()
|
|
7013
|
+
extraFiles: array(ModelExtraFileSchema).readonly().optional(),
|
|
7014
|
+
/**
|
|
7015
|
+
* LEGACY entry — retained in the catalog so a persisted operator selection
|
|
7016
|
+
* still RESOLVES (and can be re-activated), but hidden from the selectable
|
|
7017
|
+
* model list and excluded from the auto format-default pick. Set on the
|
|
7018
|
+
* superseded / consolidated models (older lineages, redundant fp16 IRs) so
|
|
7019
|
+
* the active lineup stays the coherent curated ladder without deleting a
|
|
7020
|
+
* model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
|
|
7021
|
+
* an explicit legacy id that has a build for the node's format.
|
|
7022
|
+
*/
|
|
7023
|
+
legacy: boolean().optional(),
|
|
7024
|
+
/**
|
|
7025
|
+
* Measured quality/latency metadata — populated from the benchmark addon on
|
|
7026
|
+
* the real node classes. Absent = not yet measured (most entries today; the
|
|
7027
|
+
* catalog historically carried only `sizeMB`, a poor cross-architecture
|
|
7028
|
+
* speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
|
|
7029
|
+
*/
|
|
7030
|
+
metrics: object({
|
|
7031
|
+
map50: number().optional(),
|
|
7032
|
+
p95LatencyMs: record(string(), number()).optional()
|
|
7033
|
+
}).optional(),
|
|
7034
|
+
/**
|
|
7035
|
+
* SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
|
|
7036
|
+
* YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
|
|
7037
|
+
* the retraining addon and any future commercial distribution.
|
|
7038
|
+
*/
|
|
7039
|
+
license: string().optional(),
|
|
7040
|
+
/**
|
|
7041
|
+
* Variant-selector grouping. The UI groups models by `family` + `tier` and
|
|
7042
|
+
* offers `precision` / `optimization` as variant axes WITHIN a tier — so all
|
|
7043
|
+
* of a family's sizes and quantizations collapse into one grouped picker
|
|
7044
|
+
* instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
|
|
7045
|
+
* (legacy / custom models) — never shown in the grouped selector. The flat
|
|
7046
|
+
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
7047
|
+
* is a presentation overlay resolved back to an `id`.
|
|
7048
|
+
*/
|
|
7049
|
+
group: ModelVariantGroupSchema.optional()
|
|
6961
7050
|
});
|
|
6962
7051
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
6963
7052
|
format: literal("openvino"),
|
|
@@ -7018,8 +7107,8 @@ var RecordingModeSchema = _enum([
|
|
|
7018
7107
|
"onAudioThreshold"
|
|
7019
7108
|
]);
|
|
7020
7109
|
/**
|
|
7021
|
-
* First-class, authoritative per-camera storage mode — the
|
|
7022
|
-
* reads directly (never inferred from `rules`):
|
|
7110
|
+
* First-class, authoritative per-camera storage mode — the explicit choice the
|
|
7111
|
+
* UI reads directly (never inferred from `rules`):
|
|
7023
7112
|
* - `off` — not recording.
|
|
7024
7113
|
* - `events` — record only around triggers (motion / audio threshold),
|
|
7025
7114
|
* with pre/post-buffer.
|
|
@@ -8667,26 +8756,13 @@ DeviceType.Light, method(object({
|
|
|
8667
8756
|
percentage: number().min(0).max(100),
|
|
8668
8757
|
lastChangedAt: number()
|
|
8669
8758
|
});
|
|
8759
|
+
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
8670
8760
|
var StreamFormatSchema = _enum([
|
|
8671
8761
|
"webrtc",
|
|
8672
8762
|
"hls",
|
|
8673
8763
|
"mjpeg",
|
|
8674
8764
|
"rtsp"
|
|
8675
8765
|
]);
|
|
8676
|
-
var StreamInfoSchema = object({
|
|
8677
|
-
streamId: string(),
|
|
8678
|
-
format: StreamFormatSchema,
|
|
8679
|
-
url: string().nullable(),
|
|
8680
|
-
active: boolean()
|
|
8681
|
-
});
|
|
8682
|
-
method(object({
|
|
8683
|
-
streamId: string(),
|
|
8684
|
-
sourceUrl: string(),
|
|
8685
|
-
codec: string().optional()
|
|
8686
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
8687
|
-
streamId: string(),
|
|
8688
|
-
format: StreamFormatSchema
|
|
8689
|
-
}), string().nullable()), method(_void(), array(StreamInfoSchema));
|
|
8690
8766
|
var RtspRestreamEntrySchema = object({
|
|
8691
8767
|
brokerId: string(),
|
|
8692
8768
|
url: string(),
|
|
@@ -9351,7 +9427,7 @@ var ConsumablesStatusSchema = object({
|
|
|
9351
9427
|
})),
|
|
9352
9428
|
lastChangedAt: number()
|
|
9353
9429
|
});
|
|
9354
|
-
|
|
9430
|
+
Object.values(DeviceType), method(object({
|
|
9355
9431
|
deviceId: number().int().nonnegative(),
|
|
9356
9432
|
key: string().min(1)
|
|
9357
9433
|
}), _void(), {
|
|
@@ -10266,7 +10342,7 @@ var BoundingBoxSchema = object({
|
|
|
10266
10342
|
w: number(),
|
|
10267
10343
|
h: number()
|
|
10268
10344
|
});
|
|
10269
|
-
|
|
10345
|
+
object({
|
|
10270
10346
|
class: string(),
|
|
10271
10347
|
originalClass: string(),
|
|
10272
10348
|
score: number(),
|
|
@@ -10401,7 +10477,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
10401
10477
|
enabled: boolean(),
|
|
10402
10478
|
modelId: string(),
|
|
10403
10479
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
10404
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10405
10480
|
group: string().optional(),
|
|
10406
10481
|
settings: record(string(), unknown()).optional()
|
|
10407
10482
|
}));
|
|
@@ -10426,7 +10501,9 @@ var PipelineModelOptionSchema = object({
|
|
|
10426
10501
|
formats: record(string(), object({
|
|
10427
10502
|
downloaded: boolean(),
|
|
10428
10503
|
sizeMB: number()
|
|
10429
|
-
}))
|
|
10504
|
+
})),
|
|
10505
|
+
group: ModelVariantGroupSchema.optional(),
|
|
10506
|
+
legacy: boolean().optional()
|
|
10430
10507
|
});
|
|
10431
10508
|
var ConfigFieldBridge = custom();
|
|
10432
10509
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -10440,6 +10517,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
10440
10517
|
defaultModelId: string(),
|
|
10441
10518
|
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
10442
10519
|
enabledByDefault: boolean().optional(),
|
|
10520
|
+
backfillIntoExistingOverrides: boolean().optional(),
|
|
10443
10521
|
defaultConfidence: number(),
|
|
10444
10522
|
group: string().optional(),
|
|
10445
10523
|
configSchema: array(ConfigFieldBridge).readonly().optional()
|
|
@@ -10456,11 +10534,6 @@ var PipelineSchemaSchema = object({
|
|
|
10456
10534
|
selectedEngine: PipelineEngineChoiceSchema,
|
|
10457
10535
|
slots: array(PipelineSlotSchemaSchema).readonly()
|
|
10458
10536
|
});
|
|
10459
|
-
var DetectorOutputSchema = object({
|
|
10460
|
-
detections: array(SpatialDetectionSchema).readonly(),
|
|
10461
|
-
inferenceMs: number(),
|
|
10462
|
-
modelId: string()
|
|
10463
|
-
});
|
|
10464
10537
|
var EngineProvisioningSchema = object({
|
|
10465
10538
|
runtimeId: _enum([
|
|
10466
10539
|
"onnx",
|
|
@@ -10477,15 +10550,42 @@ var EngineProvisioningSchema = object({
|
|
|
10477
10550
|
]),
|
|
10478
10551
|
progress: number().optional(),
|
|
10479
10552
|
error: string().optional(),
|
|
10480
|
-
nextRetryAt: number().optional()
|
|
10553
|
+
nextRetryAt: number().optional(),
|
|
10554
|
+
/**
|
|
10555
|
+
* Gate A (config-correctness gate at engine change): human-readable
|
|
10556
|
+
* config issues surfaced EAGERLY when the node's engine changes — model
|
|
10557
|
+
* substitutions ("chose X, running Y") and zero-build steps ("no model
|
|
10558
|
+
* has a <format> build"). Additive/optional: informational only, never
|
|
10559
|
+
* enforced here — `assertEngineReady` (readiness) still gates inference.
|
|
10560
|
+
* Absent/empty when the node-default tree resolves cleanly.
|
|
10561
|
+
*/
|
|
10562
|
+
configIssues: array(string()).optional()
|
|
10481
10563
|
});
|
|
10482
10564
|
var PipelineStepInputSchema = lazy(() => object({
|
|
10483
10565
|
addonId: string(),
|
|
10484
|
-
modelId: string(),
|
|
10566
|
+
modelId: string().optional(),
|
|
10485
10567
|
enabled: boolean().default(true),
|
|
10486
10568
|
children: array(PipelineStepInputSchema).optional(),
|
|
10487
10569
|
settings: record(string(), unknown()).optional()
|
|
10488
10570
|
}));
|
|
10571
|
+
var ModelSubstitutionSchema = object({
|
|
10572
|
+
addonId: string(),
|
|
10573
|
+
chosen: string(),
|
|
10574
|
+
running: string(),
|
|
10575
|
+
format: string()
|
|
10576
|
+
});
|
|
10577
|
+
var PipelineValidationIssueSchema = object({
|
|
10578
|
+
addonId: string(),
|
|
10579
|
+
kind: _enum(["unknown-addon", "no-format-build"]),
|
|
10580
|
+
detail: string()
|
|
10581
|
+
});
|
|
10582
|
+
var PipelineValidationResultSchema = object({
|
|
10583
|
+
ok: boolean(),
|
|
10584
|
+
issues: array(PipelineValidationIssueSchema).readonly(),
|
|
10585
|
+
substitutions: array(ModelSubstitutionSchema).readonly(),
|
|
10586
|
+
/** The node's `currentEngine.format` this validation ran against. */
|
|
10587
|
+
format: string()
|
|
10588
|
+
});
|
|
10489
10589
|
var ReferenceImageEntrySchema = object({
|
|
10490
10590
|
filename: string(),
|
|
10491
10591
|
stepIds: array(string()).readonly().optional()
|
|
@@ -10556,7 +10656,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10556
10656
|
})) }), object({ success: literal(true) }), {
|
|
10557
10657
|
kind: "mutation",
|
|
10558
10658
|
auth: "admin"
|
|
10559
|
-
}), method(
|
|
10659
|
+
}), method(object({ nodeId: string() }), object({
|
|
10660
|
+
success: literal(true),
|
|
10661
|
+
clearedDevices: number()
|
|
10662
|
+
}), {
|
|
10663
|
+
kind: "mutation",
|
|
10664
|
+
auth: "admin"
|
|
10665
|
+
}), 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({
|
|
10560
10666
|
name: string(),
|
|
10561
10667
|
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
10562
10668
|
engine: PipelineEngineChoiceSchema
|
|
@@ -10573,10 +10679,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10573
10679
|
modelId: string(),
|
|
10574
10680
|
format: ModelFormatSchema$1
|
|
10575
10681
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
10576
|
-
addonId: string(),
|
|
10577
|
-
frame: FrameInputSchema,
|
|
10578
|
-
config: record(string(), unknown()).optional()
|
|
10579
|
-
}), DetectorOutputSchema), method(object({
|
|
10580
10682
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10581
10683
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10582
10684
|
frame: FrameInputSchema.optional(),
|
|
@@ -10722,6 +10824,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
|
|
|
10722
10824
|
auth: "admin"
|
|
10723
10825
|
}), object({ zones: array(ZoneSchema).readonly() });
|
|
10724
10826
|
/**
|
|
10827
|
+
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
10828
|
+
* decode worker resolves it against the RETAINED native frame's real pixel dims,
|
|
10829
|
+
* so the caller supplies only the detection-res bbox divided by the detection
|
|
10830
|
+
* dims — no native resolution to plumb.
|
|
10831
|
+
*/
|
|
10832
|
+
var NativeCropBboxSchema = object({
|
|
10833
|
+
x: number(),
|
|
10834
|
+
y: number(),
|
|
10835
|
+
w: number(),
|
|
10836
|
+
h: number()
|
|
10837
|
+
});
|
|
10838
|
+
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
10839
|
+
var NativeCropResultSchema = object({
|
|
10840
|
+
/** Packed rgb (24-bit) pixels of the crop. */
|
|
10841
|
+
bytes: _instanceof(Uint8Array),
|
|
10842
|
+
width: number().int().positive(),
|
|
10843
|
+
height: number().int().positive()
|
|
10844
|
+
});
|
|
10845
|
+
/**
|
|
10725
10846
|
* Per-camera tunable ranges + defaults. Single source of truth used
|
|
10726
10847
|
* by both the Zod data schema (validation + default fallback) and
|
|
10727
10848
|
* the device settings UI (slider min/max/step). Touch one place and
|
|
@@ -10816,6 +10937,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10816
10937
|
kind: literal("remote-restream"),
|
|
10817
10938
|
/** The camera's source-owner node (slice 1: always the hub). */
|
|
10818
10939
|
ownerNodeId: string(),
|
|
10940
|
+
/**
|
|
10941
|
+
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
10942
|
+
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
10943
|
+
* dials THIS host for the owner's restream, in preference to the
|
|
10944
|
+
* `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
10945
|
+
*/
|
|
10946
|
+
ownerReachableHost: string().optional(),
|
|
10819
10947
|
/** Operator override for the owner host the runner dials. */
|
|
10820
10948
|
hubHostnameOverride: string().optional()
|
|
10821
10949
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
@@ -10824,13 +10952,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
10824
10952
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
10825
10953
|
* runner needs to subscribe to the local broker and execute inference.
|
|
10826
10954
|
*
|
|
10827
|
-
* Stateless-pipeline model: the
|
|
10828
|
-
*
|
|
10829
|
-
*
|
|
10830
|
-
*
|
|
10831
|
-
*
|
|
10832
|
-
* `engine`/`steps`/`audio` are optional during the additive migration
|
|
10833
|
-
* window; once orchestrator + UI are migrated they become required.
|
|
10955
|
+
* Stateless-pipeline model: the pipeline content (`steps`, optional
|
|
10956
|
+
* `audio`) travels with the attach payload. The runner keeps it in RAM
|
|
10957
|
+
* for the lifetime of the attach — on rebalance, edit, or restart the
|
|
10958
|
+
* orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
|
|
10959
|
+
* node-local, resolved by the executing runner at dispatch time.
|
|
10834
10960
|
*/
|
|
10835
10961
|
var RunnerCameraConfigSchema = object({
|
|
10836
10962
|
deviceId: number(),
|
|
@@ -10881,14 +11007,11 @@ var RunnerCameraConfigSchema = object({
|
|
|
10881
11007
|
*/
|
|
10882
11008
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
10883
11009
|
pipelineEnabled: boolean().default(true),
|
|
10884
|
-
/** Engine choice for video steps (runtime+backend+format). */
|
|
10885
|
-
engine: PipelineEngineChoiceSchema.optional(),
|
|
10886
11010
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
10887
11011
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
10888
11012
|
/** Audio classification branch. `enabled:false` disables, null skips. */
|
|
10889
11013
|
audio: object({
|
|
10890
|
-
|
|
10891
|
-
modelId: string(),
|
|
11014
|
+
modelId: string().optional(),
|
|
10892
11015
|
enabled: boolean()
|
|
10893
11016
|
}).nullable().optional(),
|
|
10894
11017
|
/**
|
|
@@ -10975,7 +11098,11 @@ var RunnerLocalMetricsSchema = object({
|
|
|
10975
11098
|
avgInferenceTimeMs: number(),
|
|
10976
11099
|
queueDepth: number()
|
|
10977
11100
|
});
|
|
10978
|
-
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())
|
|
11101
|
+
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({
|
|
11102
|
+
handle: FrameHandleSchema,
|
|
11103
|
+
bbox: NativeCropBboxSchema,
|
|
11104
|
+
maxWidth: number().int().positive().optional()
|
|
11105
|
+
}), NativeCropResultSchema.nullable());
|
|
10979
11106
|
object({
|
|
10980
11107
|
detected: boolean(),
|
|
10981
11108
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -12269,7 +12396,9 @@ var AddonPageDeclarationSchema$1 = object({
|
|
|
12269
12396
|
icon: string(),
|
|
12270
12397
|
path: string(),
|
|
12271
12398
|
remoteName: string(),
|
|
12272
|
-
bundle: string()
|
|
12399
|
+
bundle: string(),
|
|
12400
|
+
section: string().optional(),
|
|
12401
|
+
sectionLabel: string().optional()
|
|
12273
12402
|
});
|
|
12274
12403
|
var AddonPageInfoSchema = object({
|
|
12275
12404
|
addonId: string(),
|
|
@@ -12309,7 +12438,18 @@ var AddonPageDeclarationSchema = object({
|
|
|
12309
12438
|
* the static-file route can compute an mtime-based cache-buster URL
|
|
12310
12439
|
* without a separate filesystem stat.
|
|
12311
12440
|
*/
|
|
12312
|
-
bundle: string()
|
|
12441
|
+
bundle: string(),
|
|
12442
|
+
/**
|
|
12443
|
+
* Sidebar section this page docks into. Well-known ids: `'detection'`,
|
|
12444
|
+
* `'cluster'`, `'administration'` — the page renders inside that group.
|
|
12445
|
+
* Any OTHER string creates (or joins) a custom section rendered after
|
|
12446
|
+
* the built-in groups; its label comes from `sectionLabel` (first
|
|
12447
|
+
* declaration wins), falling back to the id. Absent → the legacy
|
|
12448
|
+
* "Addon Pages" group.
|
|
12449
|
+
*/
|
|
12450
|
+
section: string().optional(),
|
|
12451
|
+
/** Display label for a CUSTOM `section` id (ignored for well-known ids). */
|
|
12452
|
+
sectionLabel: string().optional()
|
|
12313
12453
|
});
|
|
12314
12454
|
method(_void(), array(AddonPageDeclarationSchema).readonly());
|
|
12315
12455
|
var AddonHttpRouteSchema = object({
|
|
@@ -12525,6 +12665,17 @@ var WidgetMetadataSchema = object({
|
|
|
12525
12665
|
deviceContext: boolean().default(false),
|
|
12526
12666
|
integrationContext: boolean().default(false)
|
|
12527
12667
|
}),
|
|
12668
|
+
/**
|
|
12669
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
12670
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
12671
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
12672
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
12673
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
12674
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
12675
|
+
* than the authenticated registry, and its bundle is served by the
|
|
12676
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
12677
|
+
*/
|
|
12678
|
+
preAuth: boolean().optional().default(false),
|
|
12528
12679
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
12529
12680
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
12530
12681
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -12826,6 +12977,66 @@ method(object({
|
|
|
12826
12977
|
password: string()
|
|
12827
12978
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12828
12979
|
/**
|
|
12980
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
12981
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
12982
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
12983
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
12984
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
12985
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
12986
|
+
*
|
|
12987
|
+
* A contribution is a discriminated union on `kind`:
|
|
12988
|
+
*
|
|
12989
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
12990
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
12991
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
12992
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
12993
|
+
* login page needs NO change.
|
|
12994
|
+
*
|
|
12995
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
12996
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
12997
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
12998
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
12999
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13000
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13001
|
+
*
|
|
13002
|
+
* Every contribution carries a `stage`:
|
|
13003
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13004
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13005
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13006
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13007
|
+
*
|
|
13008
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13009
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13010
|
+
* tRPC router.
|
|
13011
|
+
*/
|
|
13012
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13013
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13014
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13015
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13016
|
+
kind: literal("redirect"),
|
|
13017
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13018
|
+
id: string(),
|
|
13019
|
+
/** Operator-facing button label. */
|
|
13020
|
+
label: string(),
|
|
13021
|
+
/** lucide-react icon name. */
|
|
13022
|
+
icon: string().optional(),
|
|
13023
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13024
|
+
startUrl: string(),
|
|
13025
|
+
stage: LoginStageEnum
|
|
13026
|
+
}), object({
|
|
13027
|
+
kind: literal("widget"),
|
|
13028
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13029
|
+
id: string(),
|
|
13030
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13031
|
+
addonId: string(),
|
|
13032
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13033
|
+
bundle: string(),
|
|
13034
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13035
|
+
remote: WidgetRemoteSchema,
|
|
13036
|
+
stage: LoginStageEnum
|
|
13037
|
+
})]);
|
|
13038
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13039
|
+
/**
|
|
12829
13040
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12830
13041
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12831
13042
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -14929,7 +15140,17 @@ var TrackSchema = object({
|
|
|
14929
15140
|
/** Cumulative normalized distance travelled (0..1 units = full frame width). */
|
|
14930
15141
|
totalDistance: number(),
|
|
14931
15142
|
state: TrackStateSchema,
|
|
14932
|
-
active: boolean()
|
|
15143
|
+
active: boolean(),
|
|
15144
|
+
/** Deterministic key-event importance score in [0,1] (server-computed at
|
|
15145
|
+
* track expiry, recomputed on late label). Absent on legacy rows written
|
|
15146
|
+
* before scoring shipped — consumers degrade to absence / compute-on-read. */
|
|
15147
|
+
importance: number().optional(),
|
|
15148
|
+
/** Id of the track's highest-confidence ObjectEvent (its representative
|
|
15149
|
+
* "best" frame). Absent when the track produced no object events. */
|
|
15150
|
+
bestEventId: string().optional(),
|
|
15151
|
+
/** Tag of the importance sub-signal that dominated the score
|
|
15152
|
+
* (identity|dwell|proximity|class|confidence|travel|zone). */
|
|
15153
|
+
importanceReason: string().optional()
|
|
14933
15154
|
});
|
|
14934
15155
|
var BaseEventFields = {
|
|
14935
15156
|
id: string(),
|
|
@@ -14994,8 +15215,18 @@ var ObjectEventSchema = object({
|
|
|
14994
15215
|
frameHeight: number().optional(),
|
|
14995
15216
|
/** MediaStore key for the crop attached to this event (if any). */
|
|
14996
15217
|
mediaKey: string().optional(),
|
|
15218
|
+
/** Design B: MediaStore key of the track's native-resolution key frame (the
|
|
15219
|
+
* best-detection full frame). Resolve via the event-media data-plane
|
|
15220
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
|
|
15221
|
+
* draws `bbox` over the native frame. Absent on legacy rows / non-decoded
|
|
15222
|
+
* sources — consumers fall back to `mediaKey` (the tight crop). */
|
|
15223
|
+
keyFrameMediaKey: string().optional(),
|
|
14997
15224
|
/** Populated by B5 (recording playback URL for this event). */
|
|
14998
|
-
mediaUrl: string().optional()
|
|
15225
|
+
mediaUrl: string().optional(),
|
|
15226
|
+
/** The parent track's key-event importance [0,1], propagated to every object
|
|
15227
|
+
* event of the track (so an event row can be sorted by importance without a
|
|
15228
|
+
* track join). Absent on legacy rows / before the track was scored. */
|
|
15229
|
+
importance: number().optional()
|
|
14999
15230
|
});
|
|
15000
15231
|
var AudioEventSchema = object({
|
|
15001
15232
|
...BaseEventFields,
|
|
@@ -15019,7 +15250,8 @@ var MediaFileKindEnum = _enum([
|
|
|
15019
15250
|
"fullFrame",
|
|
15020
15251
|
"fullFrameBoxed",
|
|
15021
15252
|
"faceCrop",
|
|
15022
|
-
"plateCrop"
|
|
15253
|
+
"plateCrop",
|
|
15254
|
+
"keyFrame"
|
|
15023
15255
|
]);
|
|
15024
15256
|
var MediaFileSchema = object({
|
|
15025
15257
|
key: string(),
|
|
@@ -15040,6 +15272,32 @@ var DeviceEventQueryInput = object({
|
|
|
15040
15272
|
projection: _enum(["full", "slim"]).optional()
|
|
15041
15273
|
});
|
|
15042
15274
|
var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
|
|
15275
|
+
var KeyEventQueryInput = object({
|
|
15276
|
+
deviceId: number(),
|
|
15277
|
+
/** Window lower bound (track firstSeen ≥ since). */
|
|
15278
|
+
since: number(),
|
|
15279
|
+
/** Window upper bound (track firstSeen ≤ until). */
|
|
15280
|
+
until: number(),
|
|
15281
|
+
limit: number().int().min(1).max(200).default(50),
|
|
15282
|
+
/** Drop tracks scoring below this importance. */
|
|
15283
|
+
minImportance: number().min(0).max(1).optional(),
|
|
15284
|
+
/** Restrict to a single class (e.g. 'person'). */
|
|
15285
|
+
classFilter: string().optional()
|
|
15286
|
+
});
|
|
15287
|
+
var KeyEventSchema = object({
|
|
15288
|
+
/** The representative event id (the track's best ObjectEvent, else its trackId). */
|
|
15289
|
+
id: string(),
|
|
15290
|
+
trackId: string(),
|
|
15291
|
+
/** Track start time (firstSeen). */
|
|
15292
|
+
timestamp: number(),
|
|
15293
|
+
className: string(),
|
|
15294
|
+
label: string().optional(),
|
|
15295
|
+
importance: number(),
|
|
15296
|
+
/** Highest-confidence ObjectEvent id for the track (empty when none). */
|
|
15297
|
+
bestEventId: string(),
|
|
15298
|
+
/** Track lifetime in ms (lastSeen - firstSeen). */
|
|
15299
|
+
windowMs: number().optional()
|
|
15300
|
+
});
|
|
15043
15301
|
var TrackedDetectionSchema = object({
|
|
15044
15302
|
trackId: string(),
|
|
15045
15303
|
className: string(),
|
|
@@ -15069,7 +15327,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15069
15327
|
}), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
|
|
15070
15328
|
kind: "mutation",
|
|
15071
15329
|
auth: "admin"
|
|
15072
|
-
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
|
|
15330
|
+
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
|
|
15073
15331
|
deviceId: number(),
|
|
15074
15332
|
since: number(),
|
|
15075
15333
|
until: number(),
|
|
@@ -15114,11 +15372,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
15114
15372
|
timestamp: number()
|
|
15115
15373
|
});
|
|
15116
15374
|
var CameraPipelineConfigSchema = object({
|
|
15117
|
-
engine: PipelineEngineChoiceSchema,
|
|
15375
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15118
15376
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
15119
15377
|
audio: object({
|
|
15120
|
-
engine: PipelineEngineChoiceSchema,
|
|
15121
|
-
modelId: string(),
|
|
15378
|
+
engine: PipelineEngineChoiceSchema.optional(),
|
|
15379
|
+
modelId: string().optional(),
|
|
15122
15380
|
enabled: boolean(),
|
|
15123
15381
|
settings: record(string(), unknown()).readonly().optional()
|
|
15124
15382
|
}).nullable().optional()
|
|
@@ -15133,7 +15391,7 @@ var PipelineTemplateSchema = object({
|
|
|
15133
15391
|
});
|
|
15134
15392
|
var AgentAddonConfigSchema = object({
|
|
15135
15393
|
enabled: boolean(),
|
|
15136
|
-
modelId: string(),
|
|
15394
|
+
modelId: string().optional(),
|
|
15137
15395
|
settings: record(string(), unknown()).readonly()
|
|
15138
15396
|
});
|
|
15139
15397
|
var AgentPipelineSettingsSchema = object({
|
|
@@ -15143,12 +15401,25 @@ var AgentPipelineSettingsSchema = object({
|
|
|
15143
15401
|
detectWeight: number().positive().optional(),
|
|
15144
15402
|
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
15145
15403
|
detect: boolean().optional(),
|
|
15146
|
-
/**
|
|
15404
|
+
/**
|
|
15405
|
+
* DEPRECATED AND IGNORED. Decode is always co-located with its frame
|
|
15406
|
+
* consumer, so decode eligibility IS detect eligibility. Kept optional in
|
|
15407
|
+
* the schema ONLY so persisted stores written before the removal still
|
|
15408
|
+
* parse — no code reads it and no write path emits it.
|
|
15409
|
+
*/
|
|
15147
15410
|
decode: boolean().optional(),
|
|
15148
15411
|
/** Node is eligible to run audio-analyzer sessions. */
|
|
15149
15412
|
audio: boolean().optional(),
|
|
15150
15413
|
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
15151
|
-
ingest: boolean().optional()
|
|
15414
|
+
ingest: boolean().optional(),
|
|
15415
|
+
/**
|
|
15416
|
+
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
15417
|
+
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
15418
|
+
* falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
|
|
15419
|
+
* it already uses to reach the hub). Set this only when the auto-detected
|
|
15420
|
+
* address is wrong (multi-homed host, NAT, custom interface).
|
|
15421
|
+
*/
|
|
15422
|
+
reachableHost: string().optional()
|
|
15152
15423
|
});
|
|
15153
15424
|
var CameraPipelineForAgentSchema = object({
|
|
15154
15425
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -15196,25 +15467,6 @@ var PipelineAssignmentSchema = object({
|
|
|
15196
15467
|
assignedAt: number()
|
|
15197
15468
|
});
|
|
15198
15469
|
/**
|
|
15199
|
-
* Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
|
|
15200
|
-
* the decoder-node placement domain (`balanceDecoder` decision: manual pin
|
|
15201
|
-
* → co-located with pipeline → capacity).
|
|
15202
|
-
*/
|
|
15203
|
-
var DecoderAssignmentSchema = object({
|
|
15204
|
-
deviceId: number(),
|
|
15205
|
-
/** Moleculer node id of the decoder provider currently responsible for this camera. */
|
|
15206
|
-
decoderNodeId: string(),
|
|
15207
|
-
/** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
|
|
15208
|
-
pinned: boolean(),
|
|
15209
|
-
/** Why this assignment was made — useful for debugging the decoder balancer. */
|
|
15210
|
-
reason: _enum([
|
|
15211
|
-
"manual",
|
|
15212
|
-
"co-located",
|
|
15213
|
-
"capacity",
|
|
15214
|
-
"hardware-affinity"
|
|
15215
|
-
])
|
|
15216
|
-
});
|
|
15217
|
-
/**
|
|
15218
15470
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
15219
15471
|
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
15220
15472
|
*/
|
|
@@ -15254,6 +15506,15 @@ var GlobalMetricsSchema = object({
|
|
|
15254
15506
|
* capability providers.
|
|
15255
15507
|
*/
|
|
15256
15508
|
var CapabilityBindingsSchema = record(string(), string());
|
|
15509
|
+
/**
|
|
15510
|
+
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
15511
|
+
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
15512
|
+
*/
|
|
15513
|
+
var IngestOwnerSchema = object({
|
|
15514
|
+
ownerNodeId: string(),
|
|
15515
|
+
reachableHost: string().optional(),
|
|
15516
|
+
configIssue: string().optional()
|
|
15517
|
+
});
|
|
15257
15518
|
/** Source block — always present; derives from the stream catalog. */
|
|
15258
15519
|
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
15259
15520
|
camStreamId: string(),
|
|
@@ -15268,6 +15529,14 @@ var CameraAssignmentStatusSchema = object({
|
|
|
15268
15529
|
detectionNodeId: string().nullable(),
|
|
15269
15530
|
decoderNodeId: string().nullable(),
|
|
15270
15531
|
audioNodeId: string().nullable(),
|
|
15532
|
+
/**
|
|
15533
|
+
* The node that OWNS this camera's physical source pull (dials the RTSP and
|
|
15534
|
+
* hosts the broker/restream) — the cluster ingest owner today
|
|
15535
|
+
* (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
|
|
15536
|
+
* the UI show WHERE a camera is sourced without SSH/logs, and is the node the
|
|
15537
|
+
* broker block below was read from (pinned). Nullable only pre-wiring.
|
|
15538
|
+
*/
|
|
15539
|
+
sourceNodeId: string().nullable(),
|
|
15271
15540
|
pinned: object({
|
|
15272
15541
|
detection: boolean(),
|
|
15273
15542
|
decoder: boolean(),
|
|
@@ -15400,16 +15669,7 @@ method(object({
|
|
|
15400
15669
|
}), object({ success: literal(true) }), {
|
|
15401
15670
|
kind: "mutation",
|
|
15402
15671
|
auth: "admin"
|
|
15403
|
-
}), method(object({
|
|
15404
|
-
deviceId: number(),
|
|
15405
|
-
nodeId: string()
|
|
15406
|
-
}), _void(), {
|
|
15407
|
-
kind: "mutation",
|
|
15408
|
-
auth: "admin"
|
|
15409
|
-
}), method(object({ deviceId: number() }), _void(), {
|
|
15410
|
-
kind: "mutation",
|
|
15411
|
-
auth: "admin"
|
|
15412
|
-
}), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
|
|
15672
|
+
}), method(_void(), IngestOwnerSchema), method(object({
|
|
15413
15673
|
deviceId: number(),
|
|
15414
15674
|
nodeId: string()
|
|
15415
15675
|
}), object({ success: literal(true) }), {
|
|
@@ -15430,10 +15690,7 @@ method(object({
|
|
|
15430
15690
|
nodeId: string(),
|
|
15431
15691
|
pinned: boolean(),
|
|
15432
15692
|
assignedAt: number()
|
|
15433
|
-
}))), method(object({
|
|
15434
|
-
deviceId: number(),
|
|
15435
|
-
pipelineNodeId: string().optional()
|
|
15436
|
-
}), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15693
|
+
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
15437
15694
|
nodeId: string(),
|
|
15438
15695
|
settings: AgentPipelineSettingsSchema
|
|
15439
15696
|
})).readonly()), method(object({
|
|
@@ -15463,12 +15720,26 @@ method(object({
|
|
|
15463
15720
|
}), method(object({
|
|
15464
15721
|
agentNodeId: string(),
|
|
15465
15722
|
detect: boolean().nullable().optional(),
|
|
15466
|
-
decode: boolean().nullable().optional(),
|
|
15467
15723
|
audio: boolean().nullable().optional(),
|
|
15468
15724
|
ingest: boolean().nullable().optional()
|
|
15469
15725
|
}), object({ success: literal(true) }), {
|
|
15470
15726
|
kind: "mutation",
|
|
15471
15727
|
auth: "admin"
|
|
15728
|
+
}), method(object({
|
|
15729
|
+
agentNodeId: string(),
|
|
15730
|
+
reachableHost: string().nullable()
|
|
15731
|
+
}), object({ success: literal(true) }), {
|
|
15732
|
+
kind: "mutation",
|
|
15733
|
+
auth: "admin"
|
|
15734
|
+
}), method(object({ agentNodeId: string() }), object({
|
|
15735
|
+
success: literal(true),
|
|
15736
|
+
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
15737
|
+
effectiveModelId: string().nullable(),
|
|
15738
|
+
/** Number of cameras whose node-scoped overrides were cleared. */
|
|
15739
|
+
clearedCameraOverrides: number()
|
|
15740
|
+
}), {
|
|
15741
|
+
kind: "mutation",
|
|
15742
|
+
auth: "admin"
|
|
15472
15743
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
15473
15744
|
deviceId: number(),
|
|
15474
15745
|
addonId: string(),
|
|
@@ -15513,22 +15784,131 @@ method(object({
|
|
|
15513
15784
|
kind: "mutation",
|
|
15514
15785
|
auth: "admin"
|
|
15515
15786
|
});
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15787
|
+
/**
|
|
15788
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
15789
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
15790
|
+
* agents).
|
|
15791
|
+
*
|
|
15792
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
15793
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
15794
|
+
* version describes the node. Updates install into
|
|
15795
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
15796
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
15797
|
+
*
|
|
15798
|
+
* Providers:
|
|
15799
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
15800
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
15801
|
+
* unpinned calls.
|
|
15802
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
15803
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
15804
|
+
* `$hub.registerNode` manifest.
|
|
15805
|
+
*
|
|
15806
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
15807
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
15808
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
15809
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
15810
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
15811
|
+
*
|
|
15812
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
15813
|
+
*/
|
|
15814
|
+
/**
|
|
15815
|
+
* Where the running hub's code was loaded from:
|
|
15816
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
15817
|
+
* plain resolution and runtime updates are refused.
|
|
15818
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
15819
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
15820
|
+
*/
|
|
15821
|
+
var ServerBootModeSchema = _enum([
|
|
15822
|
+
"workspace",
|
|
15823
|
+
"baked",
|
|
15824
|
+
"data-root"
|
|
15825
|
+
]);
|
|
15826
|
+
/**
|
|
15827
|
+
* Update lifecycle state:
|
|
15828
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
15829
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
15830
|
+
* restarted onto it (still running the OLD version).
|
|
15831
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
15832
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
15833
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
15834
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
15835
|
+
*/
|
|
15836
|
+
var ServerUpdateStateSchema = _enum([
|
|
15837
|
+
"idle",
|
|
15838
|
+
"checking",
|
|
15839
|
+
"staging",
|
|
15840
|
+
"pending-restart",
|
|
15841
|
+
"awaiting-confirmation"
|
|
15842
|
+
]);
|
|
15843
|
+
var ServerRollbackInfoSchema = object({
|
|
15844
|
+
/** The version that failed (or was manually rolled back). */
|
|
15845
|
+
fromVersion: string(),
|
|
15846
|
+
/** The version rolled back to; null = the baked seed. */
|
|
15847
|
+
toVersion: string().nullable(),
|
|
15848
|
+
atMs: number(),
|
|
15849
|
+
reason: string()
|
|
15522
15850
|
});
|
|
15523
|
-
var
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15851
|
+
var ServerPackageStatusSchema = object({
|
|
15852
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
15853
|
+
packageName: string(),
|
|
15854
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
15855
|
+
runningVersion: string().nullable(),
|
|
15856
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
15857
|
+
nodeRuntimeVersion: string().nullable(),
|
|
15858
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
15859
|
+
activeVersion: string().nullable(),
|
|
15860
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
15861
|
+
previousVersion: string().nullable(),
|
|
15862
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
15863
|
+
seedVersion: string().nullable(),
|
|
15864
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
15865
|
+
latestVersion: string().nullable(),
|
|
15866
|
+
updateAvailable: boolean(),
|
|
15867
|
+
bootMode: ServerBootModeSchema,
|
|
15868
|
+
updateState: ServerUpdateStateSchema,
|
|
15869
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
15870
|
+
pendingVersion: string().nullable(),
|
|
15871
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
15872
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
15873
|
+
/**
|
|
15874
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
15875
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
15876
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
15877
|
+
*/
|
|
15878
|
+
stateFileCorrupt: boolean(),
|
|
15879
|
+
lastCheckedAtMs: number().nullable()
|
|
15880
|
+
});
|
|
15881
|
+
var ServerUpdateCheckResultSchema = object({
|
|
15882
|
+
packageName: string(),
|
|
15883
|
+
runningVersion: string().nullable(),
|
|
15884
|
+
latestVersion: string().nullable(),
|
|
15885
|
+
updateAvailable: boolean(),
|
|
15886
|
+
checkedAtMs: number(),
|
|
15887
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
15888
|
+
error: string().nullable()
|
|
15889
|
+
});
|
|
15890
|
+
var ServerUpdateActionResultSchema = object({
|
|
15891
|
+
accepted: boolean(),
|
|
15892
|
+
targetVersion: string().nullable(),
|
|
15893
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
15894
|
+
restarting: boolean(),
|
|
15895
|
+
message: string()
|
|
15896
|
+
});
|
|
15897
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
15898
|
+
kind: "mutation",
|
|
15899
|
+
auth: "admin"
|
|
15900
|
+
}), method(object({
|
|
15901
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
15902
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
15903
|
+
kind: "mutation",
|
|
15904
|
+
auth: "admin"
|
|
15905
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15906
|
+
kind: "mutation",
|
|
15907
|
+
auth: "admin"
|
|
15908
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
15909
|
+
kind: "mutation",
|
|
15910
|
+
auth: "admin"
|
|
15527
15911
|
});
|
|
15528
|
-
method(object({
|
|
15529
|
-
deviceId: number(),
|
|
15530
|
-
streams: array(RegisteredStreamSchema).readonly()
|
|
15531
|
-
}), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
|
|
15532
15912
|
/**
|
|
15533
15913
|
* Query filter for settings-store collections.
|
|
15534
15914
|
*/
|
|
@@ -15694,9 +16074,9 @@ var smtpProviderCapability = {
|
|
|
15694
16074
|
/**
|
|
15695
16075
|
* A single device snapshot returned as base64 JPEG/PNG.
|
|
15696
16076
|
*
|
|
15697
|
-
*
|
|
15698
|
-
*
|
|
15699
|
-
*
|
|
16077
|
+
* The `SnapshotAddon` wrapper returns this shape whether the frame came from
|
|
16078
|
+
* the device-native provider (onboard capture) or from the stream-broker
|
|
16079
|
+
* prebuffer fallback.
|
|
15700
16080
|
*/
|
|
15701
16081
|
var SnapshotImageSchema = object({
|
|
15702
16082
|
base64: string(),
|
|
@@ -15727,11 +16107,12 @@ DeviceType.Camera, method(object({
|
|
|
15727
16107
|
}), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
15728
16108
|
kind: "mutation",
|
|
15729
16109
|
auth: "admin"
|
|
15730
|
-
})
|
|
15731
|
-
method(object({ deviceId: number() }), boolean()), method(object({
|
|
16110
|
+
}), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
|
|
15732
16111
|
deviceId: number(),
|
|
15733
|
-
|
|
15734
|
-
|
|
16112
|
+
lastCapturedAt: number().nullable(),
|
|
16113
|
+
cacheAgeMs: number().nullable(),
|
|
16114
|
+
etag: string().nullable()
|
|
16115
|
+
})));
|
|
15735
16116
|
/**
|
|
15736
16117
|
* `sso-bridge` — internal hub-only cap that lets SSO-style auth
|
|
15737
16118
|
* providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
|
|
@@ -15982,10 +16363,32 @@ method(_void(), array(TurnServerSchema).readonly());
|
|
|
15982
16363
|
* b. `finishAuthentication({userId, response})` → server verifies
|
|
15983
16364
|
* the assertion, bumps the credential counter, returns ok.
|
|
15984
16365
|
*
|
|
16366
|
+
* 2b. Usernameless (discoverable-credential) authentication — the
|
|
16367
|
+
* passkey IS the primary factor, no password leg:
|
|
16368
|
+
* a. `beginDiscoverableAuthentication({})` → assertion options with
|
|
16369
|
+
* EMPTY `allowCredentials` (the browser offers every resident
|
|
16370
|
+
* passkey it holds for this RP) + `userVerification: 'required'`
|
|
16371
|
+
* (the passkey replaces both factors, so UV is mandatory).
|
|
16372
|
+
* The challenge is stored server-side, NOT bound to any user.
|
|
16373
|
+
* b. `finishDiscoverableAuthentication({response})` → the provider
|
|
16374
|
+
* resolves the credential by the response's credential id,
|
|
16375
|
+
* verifies the assertion against the stored challenge + that
|
|
16376
|
+
* credential's public key/counter, and returns the OWNING
|
|
16377
|
+
* `userId` — the caller (core auth router) mints the session.
|
|
16378
|
+
*
|
|
15985
16379
|
* 3. Management:
|
|
15986
16380
|
* - `listPasskeys({userId})` — enumerate user's enrolled credentials.
|
|
15987
16381
|
* - `removePasskey({userId, credentialId})` — revoke one credential.
|
|
15988
16382
|
*
|
|
16383
|
+
* 4. Second-factor preference (opt-in, default OFF):
|
|
16384
|
+
* Enrolling a passkey only enables passkey-FIRST sign-in. It is
|
|
16385
|
+
* demanded as a second factor after a password login ONLY when the
|
|
16386
|
+
* user explicitly opts in via `setSecondFactorPreference`.
|
|
16387
|
+
* - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
|
|
16388
|
+
* row ⇒ `enabled: false`).
|
|
16389
|
+
* - `setSecondFactorPreference({userId, enabled})` — persisted by
|
|
16390
|
+
* the providing addon beside its credentials.
|
|
16391
|
+
*
|
|
15989
16392
|
* Challenges are short-lived (5 min, in-memory). The cap is internal —
|
|
15990
16393
|
* the admin-ui composes the begin/finish round-trip and never exposes
|
|
15991
16394
|
* the cap to non-admins.
|
|
@@ -16028,6 +16431,17 @@ method(object({
|
|
|
16028
16431
|
}), object({ verified: boolean() }), {
|
|
16029
16432
|
kind: "mutation",
|
|
16030
16433
|
access: "view"
|
|
16434
|
+
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
16435
|
+
kind: "mutation",
|
|
16436
|
+
access: "view"
|
|
16437
|
+
}), method(object({
|
|
16438
|
+
/** AuthenticationResponseJSON from the browser. */
|
|
16439
|
+
response: record(string(), unknown()) }), object({
|
|
16440
|
+
verified: boolean(),
|
|
16441
|
+
userId: string().nullable()
|
|
16442
|
+
}), {
|
|
16443
|
+
kind: "mutation",
|
|
16444
|
+
access: "view"
|
|
16031
16445
|
}), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
|
|
16032
16446
|
userId: string(),
|
|
16033
16447
|
credentialId: string()
|
|
@@ -16035,6 +16449,13 @@ method(object({
|
|
|
16035
16449
|
kind: "mutation",
|
|
16036
16450
|
auth: "admin",
|
|
16037
16451
|
access: "delete"
|
|
16452
|
+
}), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
|
|
16453
|
+
userId: string(),
|
|
16454
|
+
enabled: boolean()
|
|
16455
|
+
}), object({ success: literal(true) }), {
|
|
16456
|
+
kind: "mutation",
|
|
16457
|
+
auth: "admin",
|
|
16458
|
+
access: "create"
|
|
16038
16459
|
});
|
|
16039
16460
|
/**
|
|
16040
16461
|
* `videoclips` — the unified, navigable-clip surface for a camera.
|
|
@@ -16092,9 +16513,10 @@ method(object({
|
|
|
16092
16513
|
auth: "admin"
|
|
16093
16514
|
});
|
|
16094
16515
|
/**
|
|
16095
|
-
* Optional client-side hints sent at session creation to help the
|
|
16096
|
-
*
|
|
16097
|
-
*
|
|
16516
|
+
* Optional client-side hints sent at session creation to help the provider
|
|
16517
|
+
* pick the best native source. All fields optional — a viewer that knows
|
|
16518
|
+
* nothing still gets a sane default. (Relocated from the retired `webrtc`
|
|
16519
|
+
* collection cap; this `webrtc-session` cap is the live signaling surface.)
|
|
16098
16520
|
*/
|
|
16099
16521
|
var webrtcClientHintsSchema = object({
|
|
16100
16522
|
viewportWidth: number().int().positive().optional(),
|
|
@@ -16105,22 +16527,6 @@ var webrtcClientHintsSchema = object({
|
|
|
16105
16527
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
16106
16528
|
prefersTier: string().optional()
|
|
16107
16529
|
}).partial();
|
|
16108
|
-
method(object({
|
|
16109
|
-
streamId: string(),
|
|
16110
|
-
sdpOffer: string()
|
|
16111
|
-
}), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
|
|
16112
|
-
streamId: string(),
|
|
16113
|
-
codec: string()
|
|
16114
|
-
}), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
|
|
16115
|
-
streamId: string(),
|
|
16116
|
-
hints: webrtcClientHintsSchema.optional()
|
|
16117
|
-
}), object({
|
|
16118
|
-
sessionId: string(),
|
|
16119
|
-
sdpOffer: string()
|
|
16120
|
-
}), { kind: "mutation" }), method(object({
|
|
16121
|
-
sessionId: string(),
|
|
16122
|
-
sdpAnswer: string()
|
|
16123
|
-
}), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
|
|
16124
16530
|
/**
|
|
16125
16531
|
* Discriminated target for a WebRTC session. The client sends this
|
|
16126
16532
|
* structured object instead of building / parsing brokerId strings;
|
|
@@ -16851,7 +17257,17 @@ var FaceInfoSchema = object({
|
|
|
16851
17257
|
recognizedIdentityId: string().optional(),
|
|
16852
17258
|
identityName: string().optional(),
|
|
16853
17259
|
assigned: boolean(),
|
|
16854
|
-
base64: string().optional()
|
|
17260
|
+
base64: string().optional(),
|
|
17261
|
+
/** Design B: the face bbox (pixel space) on the key frame — lets a detail
|
|
17262
|
+
* view draw the box over the native `keyFrameMediaKey` frame. Absent on
|
|
17263
|
+
* legacy rows written before design B. */
|
|
17264
|
+
faceBbox: BoundingBoxSchema.optional(),
|
|
17265
|
+
/** Design B: MediaStore key of the track's native-resolution key frame.
|
|
17266
|
+
* Fetch the native JPEG via the event-media data-plane
|
|
17267
|
+
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
17268
|
+
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
17269
|
+
* back to the inline `base64` face crop. */
|
|
17270
|
+
keyFrameMediaKey: string().optional()
|
|
16855
17271
|
});
|
|
16856
17272
|
var FaceFilterEnum = _enum([
|
|
16857
17273
|
"unassigned",
|
|
@@ -17548,6 +17964,16 @@ var TopologyCategorySchema = object({
|
|
|
17548
17964
|
healthy: number(),
|
|
17549
17965
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
17550
17966
|
});
|
|
17967
|
+
/**
|
|
17968
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
17969
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
17970
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
17971
|
+
* rows and pre-phase-2 nodes report none.
|
|
17972
|
+
*/
|
|
17973
|
+
var TopologyRootPackageSchema = object({
|
|
17974
|
+
name: string(),
|
|
17975
|
+
version: string()
|
|
17976
|
+
});
|
|
17551
17977
|
var TopologyNodeSchema = object({
|
|
17552
17978
|
id: string(),
|
|
17553
17979
|
name: string(),
|
|
@@ -17571,7 +17997,8 @@ var TopologyNodeSchema = object({
|
|
|
17571
17997
|
status: string()
|
|
17572
17998
|
})).readonly(),
|
|
17573
17999
|
processes: array(TopologyProcessSchema).readonly(),
|
|
17574
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18000
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18001
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
17575
18002
|
});
|
|
17576
18003
|
var CapUsageEdgeSchema = object({
|
|
17577
18004
|
callerAddonId: string(),
|
|
@@ -20371,6 +20798,12 @@ Object.freeze({
|
|
|
20371
20798
|
addonId: null,
|
|
20372
20799
|
access: "create"
|
|
20373
20800
|
},
|
|
20801
|
+
"loginMethod.getLoginMethods": {
|
|
20802
|
+
capName: "login-method",
|
|
20803
|
+
capScope: "system",
|
|
20804
|
+
addonId: null,
|
|
20805
|
+
access: "view"
|
|
20806
|
+
},
|
|
20374
20807
|
"mediaPlayer.next": {
|
|
20375
20808
|
capName: "media-player",
|
|
20376
20809
|
capScope: "device",
|
|
@@ -20953,6 +21386,12 @@ Object.freeze({
|
|
|
20953
21386
|
addonId: null,
|
|
20954
21387
|
access: "view"
|
|
20955
21388
|
},
|
|
21389
|
+
"pipelineAnalytics.getKeyEvents": {
|
|
21390
|
+
capName: "pipeline-analytics",
|
|
21391
|
+
capScope: "device",
|
|
21392
|
+
addonId: null,
|
|
21393
|
+
access: "view"
|
|
21394
|
+
},
|
|
20956
21395
|
"pipelineAnalytics.getMotionEvents": {
|
|
20957
21396
|
capName: "pipeline-analytics",
|
|
20958
21397
|
capScope: "device",
|
|
@@ -21001,23 +21440,23 @@ Object.freeze({
|
|
|
21001
21440
|
addonId: null,
|
|
21002
21441
|
access: "create"
|
|
21003
21442
|
},
|
|
21004
|
-
"pipelineExecutor.
|
|
21443
|
+
"pipelineExecutor.clearDeviceOverrides": {
|
|
21005
21444
|
capName: "pipeline-executor",
|
|
21006
21445
|
capScope: "system",
|
|
21007
21446
|
addonId: null,
|
|
21008
21447
|
access: "delete"
|
|
21009
21448
|
},
|
|
21010
|
-
"pipelineExecutor.
|
|
21449
|
+
"pipelineExecutor.deleteModel": {
|
|
21011
21450
|
capName: "pipeline-executor",
|
|
21012
21451
|
capScope: "system",
|
|
21013
21452
|
addonId: null,
|
|
21014
21453
|
access: "delete"
|
|
21015
21454
|
},
|
|
21016
|
-
"pipelineExecutor.
|
|
21455
|
+
"pipelineExecutor.deleteTemplate": {
|
|
21017
21456
|
capName: "pipeline-executor",
|
|
21018
21457
|
capScope: "system",
|
|
21019
21458
|
addonId: null,
|
|
21020
|
-
access: "
|
|
21459
|
+
access: "delete"
|
|
21021
21460
|
},
|
|
21022
21461
|
"pipelineExecutor.downloadModel": {
|
|
21023
21462
|
capName: "pipeline-executor",
|
|
@@ -21211,13 +21650,13 @@ Object.freeze({
|
|
|
21211
21650
|
addonId: null,
|
|
21212
21651
|
access: "create"
|
|
21213
21652
|
},
|
|
21214
|
-
"
|
|
21215
|
-
capName: "pipeline-
|
|
21653
|
+
"pipelineExecutor.validatePipeline": {
|
|
21654
|
+
capName: "pipeline-executor",
|
|
21216
21655
|
capScope: "system",
|
|
21217
21656
|
addonId: null,
|
|
21218
|
-
access: "
|
|
21657
|
+
access: "view"
|
|
21219
21658
|
},
|
|
21220
|
-
"pipelineOrchestrator.
|
|
21659
|
+
"pipelineOrchestrator.assignAudio": {
|
|
21221
21660
|
capName: "pipeline-orchestrator",
|
|
21222
21661
|
capScope: "system",
|
|
21223
21662
|
addonId: null,
|
|
@@ -21301,19 +21740,13 @@ Object.freeze({
|
|
|
21301
21740
|
addonId: null,
|
|
21302
21741
|
access: "view"
|
|
21303
21742
|
},
|
|
21304
|
-
"pipelineOrchestrator.
|
|
21305
|
-
capName: "pipeline-orchestrator",
|
|
21306
|
-
capScope: "system",
|
|
21307
|
-
addonId: null,
|
|
21308
|
-
access: "view"
|
|
21309
|
-
},
|
|
21310
|
-
"pipelineOrchestrator.getDecoderAssignments": {
|
|
21743
|
+
"pipelineOrchestrator.getGlobalMetrics": {
|
|
21311
21744
|
capName: "pipeline-orchestrator",
|
|
21312
21745
|
capScope: "system",
|
|
21313
21746
|
addonId: null,
|
|
21314
21747
|
access: "view"
|
|
21315
21748
|
},
|
|
21316
|
-
"pipelineOrchestrator.
|
|
21749
|
+
"pipelineOrchestrator.getIngestOwner": {
|
|
21317
21750
|
capName: "pipeline-orchestrator",
|
|
21318
21751
|
capScope: "system",
|
|
21319
21752
|
addonId: null,
|
|
@@ -21355,6 +21788,12 @@ Object.freeze({
|
|
|
21355
21788
|
addonId: null,
|
|
21356
21789
|
access: "delete"
|
|
21357
21790
|
},
|
|
21791
|
+
"pipelineOrchestrator.resetNodePipelineDefaults": {
|
|
21792
|
+
capName: "pipeline-orchestrator",
|
|
21793
|
+
capScope: "system",
|
|
21794
|
+
addonId: null,
|
|
21795
|
+
access: "delete"
|
|
21796
|
+
},
|
|
21358
21797
|
"pipelineOrchestrator.resolvePipeline": {
|
|
21359
21798
|
capName: "pipeline-orchestrator",
|
|
21360
21799
|
capScope: "system",
|
|
@@ -21391,37 +21830,37 @@ Object.freeze({
|
|
|
21391
21830
|
addonId: null,
|
|
21392
21831
|
access: "create"
|
|
21393
21832
|
},
|
|
21394
|
-
"pipelineOrchestrator.
|
|
21833
|
+
"pipelineOrchestrator.setAgentReachableHost": {
|
|
21395
21834
|
capName: "pipeline-orchestrator",
|
|
21396
21835
|
capScope: "system",
|
|
21397
21836
|
addonId: null,
|
|
21398
21837
|
access: "create"
|
|
21399
21838
|
},
|
|
21400
|
-
"pipelineOrchestrator.
|
|
21839
|
+
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
21401
21840
|
capName: "pipeline-orchestrator",
|
|
21402
21841
|
capScope: "system",
|
|
21403
21842
|
addonId: null,
|
|
21404
21843
|
access: "create"
|
|
21405
21844
|
},
|
|
21406
|
-
"pipelineOrchestrator.
|
|
21845
|
+
"pipelineOrchestrator.setCameraStepOverride": {
|
|
21407
21846
|
capName: "pipeline-orchestrator",
|
|
21408
21847
|
capScope: "system",
|
|
21409
21848
|
addonId: null,
|
|
21410
21849
|
access: "create"
|
|
21411
21850
|
},
|
|
21412
|
-
"pipelineOrchestrator.
|
|
21851
|
+
"pipelineOrchestrator.setCameraStepToggle": {
|
|
21413
21852
|
capName: "pipeline-orchestrator",
|
|
21414
21853
|
capScope: "system",
|
|
21415
21854
|
addonId: null,
|
|
21416
21855
|
access: "create"
|
|
21417
21856
|
},
|
|
21418
|
-
"pipelineOrchestrator.
|
|
21857
|
+
"pipelineOrchestrator.setCapabilityBinding": {
|
|
21419
21858
|
capName: "pipeline-orchestrator",
|
|
21420
21859
|
capScope: "system",
|
|
21421
21860
|
addonId: null,
|
|
21422
21861
|
access: "create"
|
|
21423
21862
|
},
|
|
21424
|
-
"pipelineOrchestrator.
|
|
21863
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
21425
21864
|
capName: "pipeline-orchestrator",
|
|
21426
21865
|
capScope: "system",
|
|
21427
21866
|
addonId: null,
|
|
@@ -21481,6 +21920,12 @@ Object.freeze({
|
|
|
21481
21920
|
addonId: null,
|
|
21482
21921
|
access: "view"
|
|
21483
21922
|
},
|
|
21923
|
+
"pipelineRunner.getNativeCrop": {
|
|
21924
|
+
capName: "pipeline-runner",
|
|
21925
|
+
capScope: "system",
|
|
21926
|
+
addonId: null,
|
|
21927
|
+
access: "view"
|
|
21928
|
+
},
|
|
21484
21929
|
"pipelineRunner.reportMotion": {
|
|
21485
21930
|
capName: "pipeline-runner",
|
|
21486
21931
|
capScope: "system",
|
|
@@ -21721,33 +22166,45 @@ Object.freeze({
|
|
|
21721
22166
|
addonId: null,
|
|
21722
22167
|
access: "create"
|
|
21723
22168
|
},
|
|
21724
|
-
"
|
|
21725
|
-
capName: "
|
|
22169
|
+
"scriptRunner.run": {
|
|
22170
|
+
capName: "script-runner",
|
|
22171
|
+
capScope: "device",
|
|
22172
|
+
addonId: null,
|
|
22173
|
+
access: "create"
|
|
22174
|
+
},
|
|
22175
|
+
"scriptRunner.stop": {
|
|
22176
|
+
capName: "script-runner",
|
|
22177
|
+
capScope: "device",
|
|
22178
|
+
addonId: null,
|
|
22179
|
+
access: "create"
|
|
22180
|
+
},
|
|
22181
|
+
"serverManagement.applyServerUpdate": {
|
|
22182
|
+
capName: "server-management",
|
|
21726
22183
|
capScope: "system",
|
|
21727
22184
|
addonId: null,
|
|
21728
|
-
access: "
|
|
22185
|
+
access: "create"
|
|
21729
22186
|
},
|
|
21730
|
-
"
|
|
21731
|
-
capName: "
|
|
22187
|
+
"serverManagement.checkServerUpdate": {
|
|
22188
|
+
capName: "server-management",
|
|
21732
22189
|
capScope: "system",
|
|
21733
22190
|
addonId: null,
|
|
21734
22191
|
access: "create"
|
|
21735
22192
|
},
|
|
21736
|
-
"
|
|
21737
|
-
capName: "
|
|
22193
|
+
"serverManagement.getServerPackageStatus": {
|
|
22194
|
+
capName: "server-management",
|
|
21738
22195
|
capScope: "system",
|
|
21739
22196
|
addonId: null,
|
|
21740
|
-
access: "
|
|
22197
|
+
access: "view"
|
|
21741
22198
|
},
|
|
21742
|
-
"
|
|
21743
|
-
capName: "
|
|
21744
|
-
capScope: "
|
|
22199
|
+
"serverManagement.restartServer": {
|
|
22200
|
+
capName: "server-management",
|
|
22201
|
+
capScope: "system",
|
|
21745
22202
|
addonId: null,
|
|
21746
22203
|
access: "create"
|
|
21747
22204
|
},
|
|
21748
|
-
"
|
|
21749
|
-
capName: "
|
|
21750
|
-
capScope: "
|
|
22205
|
+
"serverManagement.rollbackServerUpdate": {
|
|
22206
|
+
capName: "server-management",
|
|
22207
|
+
capScope: "system",
|
|
21751
22208
|
addonId: null,
|
|
21752
22209
|
access: "create"
|
|
21753
22210
|
},
|
|
@@ -21835,23 +22292,17 @@ Object.freeze({
|
|
|
21835
22292
|
addonId: null,
|
|
21836
22293
|
access: "view"
|
|
21837
22294
|
},
|
|
21838
|
-
"snapshot.
|
|
22295
|
+
"snapshot.getSnapshotOverview": {
|
|
21839
22296
|
capName: "snapshot",
|
|
21840
22297
|
capScope: "device",
|
|
21841
22298
|
addonId: null,
|
|
21842
|
-
access: "create"
|
|
21843
|
-
},
|
|
21844
|
-
"snapshotProvider.getSnapshot": {
|
|
21845
|
-
capName: "snapshot-provider",
|
|
21846
|
-
capScope: "system",
|
|
21847
|
-
addonId: null,
|
|
21848
22299
|
access: "view"
|
|
21849
22300
|
},
|
|
21850
|
-
"
|
|
21851
|
-
capName: "snapshot
|
|
21852
|
-
capScope: "
|
|
22301
|
+
"snapshot.invalidateCache": {
|
|
22302
|
+
capName: "snapshot",
|
|
22303
|
+
capScope: "device",
|
|
21853
22304
|
addonId: null,
|
|
21854
|
-
access: "
|
|
22305
|
+
access: "create"
|
|
21855
22306
|
},
|
|
21856
22307
|
"ssoBridge.signBridgeToken": {
|
|
21857
22308
|
capName: "sso-bridge",
|
|
@@ -22279,30 +22730,6 @@ Object.freeze({
|
|
|
22279
22730
|
addonId: null,
|
|
22280
22731
|
access: "view"
|
|
22281
22732
|
},
|
|
22282
|
-
"streamingEngine.getStreamUrl": {
|
|
22283
|
-
capName: "streaming-engine",
|
|
22284
|
-
capScope: "system",
|
|
22285
|
-
addonId: null,
|
|
22286
|
-
access: "view"
|
|
22287
|
-
},
|
|
22288
|
-
"streamingEngine.listStreams": {
|
|
22289
|
-
capName: "streaming-engine",
|
|
22290
|
-
capScope: "system",
|
|
22291
|
-
addonId: null,
|
|
22292
|
-
access: "view"
|
|
22293
|
-
},
|
|
22294
|
-
"streamingEngine.registerStream": {
|
|
22295
|
-
capName: "streaming-engine",
|
|
22296
|
-
capScope: "system",
|
|
22297
|
-
addonId: null,
|
|
22298
|
-
access: "create"
|
|
22299
|
-
},
|
|
22300
|
-
"streamingEngine.unregisterStream": {
|
|
22301
|
-
capName: "streaming-engine",
|
|
22302
|
-
capScope: "system",
|
|
22303
|
-
addonId: null,
|
|
22304
|
-
access: "delete"
|
|
22305
|
-
},
|
|
22306
22733
|
"streamParams.getConfigSchema": {
|
|
22307
22734
|
capName: "stream-params",
|
|
22308
22735
|
capScope: "device",
|
|
@@ -22549,6 +22976,12 @@ Object.freeze({
|
|
|
22549
22976
|
addonId: null,
|
|
22550
22977
|
access: "view"
|
|
22551
22978
|
},
|
|
22979
|
+
"userPasskeys.beginDiscoverableAuthentication": {
|
|
22980
|
+
capName: "user-passkeys",
|
|
22981
|
+
capScope: "system",
|
|
22982
|
+
addonId: null,
|
|
22983
|
+
access: "view"
|
|
22984
|
+
},
|
|
22552
22985
|
"userPasskeys.beginRegistration": {
|
|
22553
22986
|
capName: "user-passkeys",
|
|
22554
22987
|
capScope: "system",
|
|
@@ -22561,12 +22994,24 @@ Object.freeze({
|
|
|
22561
22994
|
addonId: null,
|
|
22562
22995
|
access: "view"
|
|
22563
22996
|
},
|
|
22997
|
+
"userPasskeys.finishDiscoverableAuthentication": {
|
|
22998
|
+
capName: "user-passkeys",
|
|
22999
|
+
capScope: "system",
|
|
23000
|
+
addonId: null,
|
|
23001
|
+
access: "view"
|
|
23002
|
+
},
|
|
22564
23003
|
"userPasskeys.finishRegistration": {
|
|
22565
23004
|
capName: "user-passkeys",
|
|
22566
23005
|
capScope: "system",
|
|
22567
23006
|
addonId: null,
|
|
22568
23007
|
access: "create"
|
|
22569
23008
|
},
|
|
23009
|
+
"userPasskeys.getSecondFactorPreference": {
|
|
23010
|
+
capName: "user-passkeys",
|
|
23011
|
+
capScope: "system",
|
|
23012
|
+
addonId: null,
|
|
23013
|
+
access: "view"
|
|
23014
|
+
},
|
|
22570
23015
|
"userPasskeys.listPasskeys": {
|
|
22571
23016
|
capName: "user-passkeys",
|
|
22572
23017
|
capScope: "system",
|
|
@@ -22579,6 +23024,12 @@ Object.freeze({
|
|
|
22579
23024
|
addonId: null,
|
|
22580
23025
|
access: "delete"
|
|
22581
23026
|
},
|
|
23027
|
+
"userPasskeys.setSecondFactorPreference": {
|
|
23028
|
+
capName: "user-passkeys",
|
|
23029
|
+
capScope: "system",
|
|
23030
|
+
addonId: null,
|
|
23031
|
+
access: "create"
|
|
23032
|
+
},
|
|
22582
23033
|
"vacuumControl.locate": {
|
|
22583
23034
|
capName: "vacuum-control",
|
|
22584
23035
|
capScope: "device",
|
|
@@ -22651,6 +23102,18 @@ Object.freeze({
|
|
|
22651
23102
|
addonId: null,
|
|
22652
23103
|
access: "view"
|
|
22653
23104
|
},
|
|
23105
|
+
"viewerUi.getStaticDir": {
|
|
23106
|
+
capName: "viewer-ui",
|
|
23107
|
+
capScope: "system",
|
|
23108
|
+
addonId: null,
|
|
23109
|
+
access: "view"
|
|
23110
|
+
},
|
|
23111
|
+
"viewerUi.getVersion": {
|
|
23112
|
+
capName: "viewer-ui",
|
|
23113
|
+
capScope: "system",
|
|
23114
|
+
addonId: null,
|
|
23115
|
+
access: "view"
|
|
23116
|
+
},
|
|
22654
23117
|
"waterHeater.setAway": {
|
|
22655
23118
|
capName: "water-heater",
|
|
22656
23119
|
capScope: "device",
|
|
@@ -22669,54 +23132,6 @@ Object.freeze({
|
|
|
22669
23132
|
addonId: null,
|
|
22670
23133
|
access: "create"
|
|
22671
23134
|
},
|
|
22672
|
-
"webrtc.closeSession": {
|
|
22673
|
-
capName: "webrtc",
|
|
22674
|
-
capScope: "system",
|
|
22675
|
-
addonId: null,
|
|
22676
|
-
access: "create"
|
|
22677
|
-
},
|
|
22678
|
-
"webrtc.createSession": {
|
|
22679
|
-
capName: "webrtc",
|
|
22680
|
-
capScope: "system",
|
|
22681
|
-
addonId: null,
|
|
22682
|
-
access: "create"
|
|
22683
|
-
},
|
|
22684
|
-
"webrtc.handleAnswer": {
|
|
22685
|
-
capName: "webrtc",
|
|
22686
|
-
capScope: "system",
|
|
22687
|
-
addonId: null,
|
|
22688
|
-
access: "create"
|
|
22689
|
-
},
|
|
22690
|
-
"webrtc.handleOffer": {
|
|
22691
|
-
capName: "webrtc",
|
|
22692
|
-
capScope: "system",
|
|
22693
|
-
addonId: null,
|
|
22694
|
-
access: "create"
|
|
22695
|
-
},
|
|
22696
|
-
"webrtc.hasAdaptiveBitrate": {
|
|
22697
|
-
capName: "webrtc",
|
|
22698
|
-
capScope: "system",
|
|
22699
|
-
addonId: null,
|
|
22700
|
-
access: "view"
|
|
22701
|
-
},
|
|
22702
|
-
"webrtc.registerStream": {
|
|
22703
|
-
capName: "webrtc",
|
|
22704
|
-
capScope: "system",
|
|
22705
|
-
addonId: null,
|
|
22706
|
-
access: "create"
|
|
22707
|
-
},
|
|
22708
|
-
"webrtc.supportsStream": {
|
|
22709
|
-
capName: "webrtc",
|
|
22710
|
-
capScope: "system",
|
|
22711
|
-
addonId: null,
|
|
22712
|
-
access: "view"
|
|
22713
|
-
},
|
|
22714
|
-
"webrtc.unregisterStream": {
|
|
22715
|
-
capName: "webrtc",
|
|
22716
|
-
capScope: "system",
|
|
22717
|
-
addonId: null,
|
|
22718
|
-
access: "delete"
|
|
22719
|
-
},
|
|
22720
23135
|
"webrtcSession.addIceCandidate": {
|
|
22721
23136
|
capName: "webrtc-session",
|
|
22722
23137
|
capScope: "device",
|