@camstack/addon-pipeline 1.2.368 → 1.2.369
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/audio-analyzer/index.js +3 -3
- package/dist/audio-analyzer/index.mjs +3 -3
- package/dist/{custom-model-catalog-BY-aEI2s.js → custom-model-catalog-C3PYjN8c.js} +2 -2
- package/dist/{custom-model-catalog-Bnel86hH.mjs → custom-model-catalog-uHzR2xWY.mjs} +2 -2
- package/dist/detection-pipeline/index.js +4 -4
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-DDXsZaRH.js → dist-D3PtiAhd.js} +311 -4
- package/dist/{dist-5AhGOWWu.mjs → dist-DKSwif2M.mjs} +311 -4
- package/dist/{model-catalogs-DWR9EsGI.mjs → model-catalogs-CVd4TcTQ.mjs} +1 -1
- package/dist/{model-catalogs-DJN58c_U.js → model-catalogs-kGqNkIuV.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-CiciZWts.js → node--15m1sN3.js} +1 -1
- package/dist/{node-DqZJFOzR.mjs → node-C_Fqti3A.mjs} +1 -1
- package/dist/pipeline-runner/index.js +3 -3
- package/dist/pipeline-runner/index.mjs +3 -3
- package/dist/{process-memory-BRu19Dgr.js → process-memory-DELcKfDf.js} +1 -1
- package/dist/{process-memory-Batknjjt.mjs → process-memory-Dq_Omilr.mjs} +1 -1
- package/dist/recorder/index.js +12 -2
- package/dist/recorder/index.mjs +12 -2
- package/dist/{segment-demux-js-dlhO3Q8W.mjs → segment-demux-js-BTUbXt7b.mjs} +1 -1
- package/dist/{segment-demux-js-0CRf7GAb.js → segment-demux-js-DSYbEqvj.js} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CSajlHKC.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CMHYV8dG.mjs} +2 -2
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DBku2n1V.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DNC4tvrD.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-KJ1eka58.mjs → hostInit-Cz1kTtGe.mjs} +2 -2
- package/dist/stream-broker/index.js +3 -3
- package/dist/stream-broker/index.mjs +3 -3
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BfVREmhg.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-5KL24-a_.mjs +0 -26
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-emK7D4bc.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_model_catalogs = require("../model-catalogs-
|
|
8
|
-
const require_process_memory = require("../process-memory-
|
|
6
|
+
const require_dist = require("../dist-D3PtiAhd.js");
|
|
7
|
+
const require_model_catalogs = require("../model-catalogs-kGqNkIuV.js");
|
|
8
|
+
const require_process_memory = require("../process-memory-DELcKfDf.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
11
|
let node_path = require("node:path");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { An as BaseAddon, F as PoolMemoryWatchdog, Fn as audioChunkBytesPerSample, Ft as mapAudioLabelToMacro, Kn as nodePin, On as errMsg, Q as audioAnalyzerCapability, Vn as hydrateSchema, Z as audioAnalysisCapability, cr as EventCategory, h as DEFAULT_AUDIO_ANALYZER_CONFIG, on as resolvePoolMemoryPolicy, r as AUDIO_BACKEND_CHOICES, zn as expandAudioChunkToF32le } from "../dist-
|
|
3
|
-
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-
|
|
4
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
2
|
+
import { An as BaseAddon, F as PoolMemoryWatchdog, Fn as audioChunkBytesPerSample, Ft as mapAudioLabelToMacro, Kn as nodePin, On as errMsg, Q as audioAnalyzerCapability, Vn as hydrateSchema, Z as audioAnalysisCapability, cr as EventCategory, h as DEFAULT_AUDIO_ANALYZER_CONFIG, on as resolvePoolMemoryPolicy, r as AUDIO_BACKEND_CHOICES, zn as expandAudioChunkToF32le } from "../dist-DKSwif2M.mjs";
|
|
3
|
+
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-CVd4TcTQ.mjs";
|
|
4
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Dq_Omilr.mjs";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import { ensureModel } from "@camstack/system/addon-utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
2
|
-
const require_model_catalogs = require("./model-catalogs-
|
|
1
|
+
const require_dist = require("./dist-D3PtiAhd.js");
|
|
2
|
+
const require_model_catalogs = require("./model-catalogs-kGqNkIuV.js");
|
|
3
3
|
const require_worker_protocol = require("./worker-protocol-C-G8qmye.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
//#region src/detection-pipeline/registry/effective-confidence.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as audioKindId, b as DEVICE_BACKEND_TO_FORMAT, dn as stepModelRunsOnFormat, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, k as LABEL_SUPPLY_VOCABULARIES, kt as inferModelProvider, p as COCO_TO_MACRO } from "./dist-
|
|
2
|
-
import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-
|
|
1
|
+
import { $ as audioKindId, b as DEVICE_BACKEND_TO_FORMAT, dn as stepModelRunsOnFormat, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, k as LABEL_SUPPLY_VOCABULARIES, kt as inferModelProvider, p as COCO_TO_MACRO } from "./dist-DKSwif2M.mjs";
|
|
2
|
+
import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-CVd4TcTQ.mjs";
|
|
3
3
|
import { t as isWorkerReply } from "./worker-protocol-D_NzPcnh.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/detection-pipeline/registry/effective-confidence.ts
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-emK7D4bc.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_node = require("../node
|
|
8
|
-
const require_custom_model_catalog = require("../custom-model-catalog-
|
|
6
|
+
const require_dist = require("../dist-D3PtiAhd.js");
|
|
7
|
+
const require_node = require("../node--15m1sN3.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-C3PYjN8c.js");
|
|
9
9
|
const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
|
|
10
|
-
const require_process_memory = require("../process-memory-
|
|
10
|
+
const require_process_memory = require("../process-memory-DELcKfDf.js");
|
|
11
11
|
let node_os = require("node:os");
|
|
12
12
|
node_os = require_chunk.__toESM(node_os);
|
|
13
13
|
let node_fs = require("node:fs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { An as BaseAddon, Bn as hfModelUrl, F as PoolMemoryWatchdog, Gt as pickClusterStepSettings, In as createEvent, Jt as pipelineExecutorCapability, Kn as nodePin, Nt as loadContributionCapability, O as LABEL_SUPPLY_MACRO, On as errMsg$1, Ut as overlayClusterStepSettings, Vn as hydrateSchema, Vt as modelBindingKey, X as applyModelBoundSettings, Yn as sleep, Zn as array, bt as evaluateZoneRules, cr as EventCategory, d as CLUSTER_MODEL_SCOPED_STEPS, dn as stepModelRunsOnFormat, dt as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, gn as supportedRuntimes$1, gt as detectionPipelineCapability, jt as linkedLabelStepId, ln as rootSuppliesOf, n as APPLE_SA_TO_MACRO, on as resolvePoolMemoryPolicy, or as string, ot as collectModelBoundKeys, q as YAMNET_TO_MACRO, rr as object, sr as union, st as containingParentIndex, tn as resolveClusterStepModelId, un as runtimeDevices$1, yt as enumerateInferenceDevices } from "../dist-
|
|
3
|
-
import { s as readProcessCost } from "../node-
|
|
4
|
-
import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-
|
|
2
|
+
import { An as BaseAddon, Bn as hfModelUrl, F as PoolMemoryWatchdog, Gt as pickClusterStepSettings, In as createEvent, Jt as pipelineExecutorCapability, Kn as nodePin, Nt as loadContributionCapability, O as LABEL_SUPPLY_MACRO, On as errMsg$1, Ut as overlayClusterStepSettings, Vn as hydrateSchema, Vt as modelBindingKey, X as applyModelBoundSettings, Yn as sleep, Zn as array, bt as evaluateZoneRules, cr as EventCategory, d as CLUSTER_MODEL_SCOPED_STEPS, dn as stepModelRunsOnFormat, dt as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, gn as supportedRuntimes$1, gt as detectionPipelineCapability, jt as linkedLabelStepId, ln as rootSuppliesOf, n as APPLE_SA_TO_MACRO, on as resolvePoolMemoryPolicy, or as string, ot as collectModelBoundKeys, q as YAMNET_TO_MACRO, rr as object, sr as union, st as containingParentIndex, tn as resolveClusterStepModelId, un as runtimeDevices$1, yt as enumerateInferenceDevices } from "../dist-DKSwif2M.mjs";
|
|
3
|
+
import { s as readProcessCost } from "../node-C_Fqti3A.mjs";
|
|
4
|
+
import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-uHzR2xWY.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
6
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
6
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Dq_Omilr.mjs";
|
|
7
7
|
import * as os$1 from "node:os";
|
|
8
8
|
import * as fs from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
|
|
|
5387
5387
|
var ZodFirstPartyTypeKind;
|
|
5388
5388
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5389
5389
|
//#endregion
|
|
5390
|
-
//#region ../types/dist/sleep-
|
|
5390
|
+
//#region ../types/dist/sleep--g-h2_c_.mjs
|
|
5391
5391
|
/**
|
|
5392
5392
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5393
5393
|
* window to float samples (D455).
|
|
@@ -18003,7 +18003,11 @@ var cameraStreamsCapability = {
|
|
|
18003
18003
|
* See `RuntimeStateDurability`. Enforced by
|
|
18004
18004
|
* `scripts/check-runtime-state-durability.ts`.
|
|
18005
18005
|
*/
|
|
18006
|
-
durability: "session"
|
|
18006
|
+
durability: "session",
|
|
18007
|
+
/**
|
|
18008
|
+
* History (D850): none — `online` duplicates device-status.online (one authority); slot data is nested enum/string.
|
|
18009
|
+
*/
|
|
18010
|
+
history: "none"
|
|
18007
18011
|
};
|
|
18008
18012
|
EventCategory.DoorbellOnPressed;
|
|
18009
18013
|
var CompositionEventPlanSchema = object({
|
|
@@ -18836,6 +18840,208 @@ method(object({
|
|
|
18836
18840
|
kind: "mutation",
|
|
18837
18841
|
auth: "admin"
|
|
18838
18842
|
}), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
|
|
18843
|
+
/**
|
|
18844
|
+
* device-history — the ONE mechanism for numeric history (D850).
|
|
18845
|
+
*
|
|
18846
|
+
* A device value is recorded because its capability says so (the `history`
|
|
18847
|
+
* block of a `*.cap.ts`, captured hub-side from `DeviceStateChanged`); any
|
|
18848
|
+
* other series is DECLARED by the addon that produces it and fed with points
|
|
18849
|
+
* (`record`) or closed five-minute buckets (`recordBuckets`). Rollups 5m / 1h /
|
|
18850
|
+
* 1d are computed here and nowhere else. Storage is `history.db` (D851).
|
|
18851
|
+
*
|
|
18852
|
+
* Who the PRODUCER is: `declareSeries`, `record` and `recordBuckets` are owner
|
|
18853
|
+
* checked against the `callerAddonId` the transport stamps into a call that
|
|
18854
|
+
* crossed a process (never in an input schema, so a session cannot supply it).
|
|
18855
|
+
* A call with no stamp is refused `not-owner`. The methods are `admin` so a
|
|
18856
|
+
* non-admin session never reaches them; an addon's `ctx.api` call bypasses the
|
|
18857
|
+
* tier by design.
|
|
18858
|
+
*/
|
|
18859
|
+
/** Whose history: a real device, or a cluster node (load, memory). */
|
|
18860
|
+
var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
18861
|
+
kind: literal("device"),
|
|
18862
|
+
deviceId: number().int()
|
|
18863
|
+
}), object({
|
|
18864
|
+
kind: literal("node"),
|
|
18865
|
+
nodeId: string().min(1)
|
|
18866
|
+
})]);
|
|
18867
|
+
var DeviceHistoryKindSchema = _enum([
|
|
18868
|
+
"gauge",
|
|
18869
|
+
"counter",
|
|
18870
|
+
"boolean"
|
|
18871
|
+
]);
|
|
18872
|
+
var DeviceHistoryResolutionSchema = _enum([
|
|
18873
|
+
"raw",
|
|
18874
|
+
"5m",
|
|
18875
|
+
"1h",
|
|
18876
|
+
"1d"
|
|
18877
|
+
]);
|
|
18878
|
+
/** Why a producer's point or bucket was not stored. Counted, never silent (D391). */
|
|
18879
|
+
var DeviceHistoryRefusalReasonSchema = _enum([
|
|
18880
|
+
"undeclared",
|
|
18881
|
+
"not-owner",
|
|
18882
|
+
"opted-out",
|
|
18883
|
+
"not-a-real-device",
|
|
18884
|
+
"rate",
|
|
18885
|
+
"ingest-mismatch",
|
|
18886
|
+
"out-of-range"
|
|
18887
|
+
]);
|
|
18888
|
+
var RefusalSchema = object({
|
|
18889
|
+
key: string(),
|
|
18890
|
+
reason: DeviceHistoryRefusalReasonSchema,
|
|
18891
|
+
count: number().int()
|
|
18892
|
+
});
|
|
18893
|
+
var IngestResultSchema = object({
|
|
18894
|
+
accepted: number().int(),
|
|
18895
|
+
refused: array(RefusalSchema).readonly()
|
|
18896
|
+
});
|
|
18897
|
+
var SeriesInfoSchema = object({
|
|
18898
|
+
key: string(),
|
|
18899
|
+
scope: string(),
|
|
18900
|
+
kind: DeviceHistoryKindSchema,
|
|
18901
|
+
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
18902
|
+
unit: string().nullable(),
|
|
18903
|
+
displayName: string(),
|
|
18904
|
+
source: _enum(["cap", "addon"]),
|
|
18905
|
+
firstTs: number(),
|
|
18906
|
+
lastTs: number()
|
|
18907
|
+
});
|
|
18908
|
+
var QueryPointSchema = object({
|
|
18909
|
+
/** Raw: the point's time. Rollup: the bucket start. */
|
|
18910
|
+
t: number(),
|
|
18911
|
+
samples: number().int(),
|
|
18912
|
+
/** `sum / samples`. */
|
|
18913
|
+
mean: number().nullable(),
|
|
18914
|
+
/** Time-weighted mean (`tw_sum / tw_ms`); `null` for bucket-ingested series. For a boolean: the fraction of time true. */
|
|
18915
|
+
twMean: number().nullable(),
|
|
18916
|
+
min: number(),
|
|
18917
|
+
max: number(),
|
|
18918
|
+
/** `null` is unknown, never zero (D393). */
|
|
18919
|
+
last: number().nullable()
|
|
18920
|
+
});
|
|
18921
|
+
var QuerySeriesSchema = object({
|
|
18922
|
+
scope: string(),
|
|
18923
|
+
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
18924
|
+
before: object({
|
|
18925
|
+
t: number(),
|
|
18926
|
+
value: number().nullable()
|
|
18927
|
+
}).nullable(),
|
|
18928
|
+
points: array(QueryPointSchema).readonly()
|
|
18929
|
+
});
|
|
18930
|
+
/** The window part of a query, shared by the device and node forms. */
|
|
18931
|
+
var QueryWindowShape = {
|
|
18932
|
+
key: string(),
|
|
18933
|
+
scope: string().optional(),
|
|
18934
|
+
from: number(),
|
|
18935
|
+
to: number(),
|
|
18936
|
+
resolution: union([DeviceHistoryResolutionSchema, literal("auto")]).default("auto"),
|
|
18937
|
+
maxPoints: number().int().positive().max(5e3).default(1e3)
|
|
18938
|
+
};
|
|
18939
|
+
var QueryResultSchema = object({
|
|
18940
|
+
resolution: DeviceHistoryResolutionSchema,
|
|
18941
|
+
series: array(QuerySeriesSchema).readonly(),
|
|
18942
|
+
truncated: boolean()
|
|
18943
|
+
});
|
|
18944
|
+
var TierStatusSchema = object({
|
|
18945
|
+
tier: DeviceHistoryResolutionSchema,
|
|
18946
|
+
/** `null` until the first background count answered. */
|
|
18947
|
+
rows: number().int().nullable(),
|
|
18948
|
+
/** `rows` times a fixed per-row estimate — approximate, labelled so. */
|
|
18949
|
+
approxBytes: number().nullable(),
|
|
18950
|
+
countedAt: number().nullable()
|
|
18951
|
+
});
|
|
18952
|
+
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
18953
|
+
var DeviceHistoryStatusSchema = object({
|
|
18954
|
+
startedAt: number(),
|
|
18955
|
+
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
18956
|
+
ready: boolean(),
|
|
18957
|
+
series: number().int(),
|
|
18958
|
+
metrics: number().int(),
|
|
18959
|
+
optedOutDevices: number().int(),
|
|
18960
|
+
tiers: array(TierStatusSchema).readonly(),
|
|
18961
|
+
capture: object({
|
|
18962
|
+
eventsSeen: number().int(),
|
|
18963
|
+
pointsEmitted: number().int(),
|
|
18964
|
+
pointsWritten: number().int(),
|
|
18965
|
+
pointsDropped: number().int(),
|
|
18966
|
+
bufferDepth: number().int(),
|
|
18967
|
+
trailingEmitted: number().int(),
|
|
18968
|
+
reconciledPoints: number().int(),
|
|
18969
|
+
reconcileRuns: number().int(),
|
|
18970
|
+
reconcileFailures: number().int(),
|
|
18971
|
+
lastReconcileAt: number().nullable(),
|
|
18972
|
+
lastFlushAt: number().nullable(),
|
|
18973
|
+
flushFailures: number().int(),
|
|
18974
|
+
skipped: record(string(), number().int())
|
|
18975
|
+
}),
|
|
18976
|
+
ingest: object({
|
|
18977
|
+
accepted: number().int(),
|
|
18978
|
+
refused: record(string(), number().int())
|
|
18979
|
+
}),
|
|
18980
|
+
rollup: object({
|
|
18981
|
+
last5mAt: number().nullable(),
|
|
18982
|
+
last1hAt: number().nullable(),
|
|
18983
|
+
last1dAt: number().nullable(),
|
|
18984
|
+
errors: number().int(),
|
|
18985
|
+
dirty5m: number().int(),
|
|
18986
|
+
dirty1h: number().int(),
|
|
18987
|
+
dirty1d: number().int()
|
|
18988
|
+
}),
|
|
18989
|
+
retention: object({
|
|
18990
|
+
lastRunAt: number().nullable(),
|
|
18991
|
+
deleted: record(string(), number().int()),
|
|
18992
|
+
purgedSeries: number().int()
|
|
18993
|
+
}),
|
|
18994
|
+
directory: object({
|
|
18995
|
+
devices: number().int(),
|
|
18996
|
+
lastRefreshAt: number().nullable()
|
|
18997
|
+
})
|
|
18998
|
+
});
|
|
18999
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19000
|
+
deviceId: number().int(),
|
|
19001
|
+
...QueryWindowShape
|
|
19002
|
+
}), QueryResultSchema), method(object({
|
|
19003
|
+
nodeId: string().min(1),
|
|
19004
|
+
...QueryWindowShape
|
|
19005
|
+
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
19006
|
+
name: string().regex(/^[a-z0-9-]+$/),
|
|
19007
|
+
subjectKind: _enum(["device", "node"]),
|
|
19008
|
+
kind: DeviceHistoryKindSchema,
|
|
19009
|
+
unit: string().optional(),
|
|
19010
|
+
displayName: string().min(1),
|
|
19011
|
+
ingest: _enum(["points", "buckets"])
|
|
19012
|
+
}), object({ key: string() }), {
|
|
19013
|
+
kind: "mutation",
|
|
19014
|
+
auth: "admin"
|
|
19015
|
+
}), method(object({ points: array(object({
|
|
19016
|
+
key: string(),
|
|
19017
|
+
subject: DeviceHistorySubjectSchema,
|
|
19018
|
+
scope: string().default(""),
|
|
19019
|
+
ts: number(),
|
|
19020
|
+
value: number()
|
|
19021
|
+
})).max(5e3) }), IngestResultSchema, {
|
|
19022
|
+
kind: "mutation",
|
|
19023
|
+
auth: "admin"
|
|
19024
|
+
}), method(object({ buckets: array(object({
|
|
19025
|
+
key: string(),
|
|
19026
|
+
subject: DeviceHistorySubjectSchema,
|
|
19027
|
+
scope: string().default(""),
|
|
19028
|
+
bucketStart: number(),
|
|
19029
|
+
samples: number().int().positive(),
|
|
19030
|
+
sum: number(),
|
|
19031
|
+
min: number(),
|
|
19032
|
+
max: number(),
|
|
19033
|
+
last: number().nullable(),
|
|
19034
|
+
lastTs: number().nullable()
|
|
19035
|
+
})).max(5e3) }), IngestResultSchema, {
|
|
19036
|
+
kind: "mutation",
|
|
19037
|
+
auth: "admin"
|
|
19038
|
+
}), method(object({ deviceId: number().int() }), object({ enabled: boolean() })), method(object({
|
|
19039
|
+
deviceId: number().int(),
|
|
19040
|
+
enabled: boolean()
|
|
19041
|
+
}), object({ enabled: boolean() }), {
|
|
19042
|
+
kind: "mutation",
|
|
19043
|
+
auth: "admin"
|
|
19044
|
+
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
|
|
18839
19045
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
18840
19046
|
object({ state: literal("absent") }),
|
|
18841
19047
|
object({
|
|
@@ -18953,6 +19159,9 @@ method(object({}), object({
|
|
|
18953
19159
|
}), {
|
|
18954
19160
|
kind: "mutation",
|
|
18955
19161
|
auth: "admin"
|
|
19162
|
+
}), method(object({}), object({ ok: literal(true) }), {
|
|
19163
|
+
kind: "mutation",
|
|
19164
|
+
auth: "admin"
|
|
18956
19165
|
}), method(object({
|
|
18957
19166
|
certPem: string().min(1),
|
|
18958
19167
|
caCertPem: string().min(1),
|
|
@@ -56345,6 +56554,13 @@ onStatusChanged: { data: object({
|
|
|
56345
56554
|
* `scripts/check-runtime-state-durability.ts`.
|
|
56346
56555
|
*/
|
|
56347
56556
|
durability: "restored",
|
|
56557
|
+
/**
|
|
56558
|
+
* History (D850): recorded series. The generic capture replaces the `battery` series of `pipeline-analytics:stats-5m`.
|
|
56559
|
+
*/
|
|
56560
|
+
history: { fields: { percentage: {
|
|
56561
|
+
kind: "gauge",
|
|
56562
|
+
unit: "%"
|
|
56563
|
+
} } },
|
|
56348
56564
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56349
56565
|
* whether persisting is worth a SQLite commit. */
|
|
56350
56566
|
volatileStateFields: ["lastUpdated"]
|
|
@@ -59041,7 +59257,7 @@ var MotionOnMotionChangedDataSchema = object({
|
|
|
59041
59257
|
/** Who started it (D672). Absent = the camera itself. Only `onboard` carries `sensor`. */
|
|
59042
59258
|
triggeredBy: MotionTriggeredBySchema.optional()
|
|
59043
59259
|
});
|
|
59044
|
-
DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean());
|
|
59260
|
+
DeviceType.Camera, DeviceType.Sensor, method(object({ deviceId: number() }), boolean()), DeviceType.Camera;
|
|
59045
59261
|
object({
|
|
59046
59262
|
enabled: boolean(),
|
|
59047
59263
|
/** Ms epoch of the last operator-driven change. */
|
|
@@ -62905,7 +63121,11 @@ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) }
|
|
|
62905
63121
|
* See `RuntimeStateDurability`. Enforced by
|
|
62906
63122
|
* `scripts/check-runtime-state-durability.ts`.
|
|
62907
63123
|
*/
|
|
62908
|
-
durability: "session"
|
|
63124
|
+
durability: "session",
|
|
63125
|
+
/**
|
|
63126
|
+
* History (D850): none — recording intent is already in the recordings ledger.
|
|
63127
|
+
*/
|
|
63128
|
+
history: "none"
|
|
62909
63129
|
};
|
|
62910
63130
|
/**
|
|
62911
63131
|
* scene-monitor — device-scoped reference-region state cap. An operator marks
|
|
@@ -66936,6 +67156,66 @@ Object.freeze({
|
|
|
66936
67156
|
addonId: null,
|
|
66937
67157
|
access: "create"
|
|
66938
67158
|
},
|
|
67159
|
+
"deviceHistory.declareSeries": {
|
|
67160
|
+
capName: "device-history",
|
|
67161
|
+
capScope: "system",
|
|
67162
|
+
addonId: null,
|
|
67163
|
+
access: "create"
|
|
67164
|
+
},
|
|
67165
|
+
"deviceHistory.getDeviceEnabled": {
|
|
67166
|
+
capName: "device-history",
|
|
67167
|
+
capScope: "system",
|
|
67168
|
+
addonId: null,
|
|
67169
|
+
access: "view"
|
|
67170
|
+
},
|
|
67171
|
+
"deviceHistory.getStatus": {
|
|
67172
|
+
capName: "device-history",
|
|
67173
|
+
capScope: "system",
|
|
67174
|
+
addonId: null,
|
|
67175
|
+
access: "view"
|
|
67176
|
+
},
|
|
67177
|
+
"deviceHistory.listNodeSeries": {
|
|
67178
|
+
capName: "device-history",
|
|
67179
|
+
capScope: "system",
|
|
67180
|
+
addonId: null,
|
|
67181
|
+
access: "view"
|
|
67182
|
+
},
|
|
67183
|
+
"deviceHistory.listSeries": {
|
|
67184
|
+
capName: "device-history",
|
|
67185
|
+
capScope: "system",
|
|
67186
|
+
addonId: null,
|
|
67187
|
+
access: "view"
|
|
67188
|
+
},
|
|
67189
|
+
"deviceHistory.query": {
|
|
67190
|
+
capName: "device-history",
|
|
67191
|
+
capScope: "system",
|
|
67192
|
+
addonId: null,
|
|
67193
|
+
access: "view"
|
|
67194
|
+
},
|
|
67195
|
+
"deviceHistory.queryNode": {
|
|
67196
|
+
capName: "device-history",
|
|
67197
|
+
capScope: "system",
|
|
67198
|
+
addonId: null,
|
|
67199
|
+
access: "view"
|
|
67200
|
+
},
|
|
67201
|
+
"deviceHistory.record": {
|
|
67202
|
+
capName: "device-history",
|
|
67203
|
+
capScope: "system",
|
|
67204
|
+
addonId: null,
|
|
67205
|
+
access: "create"
|
|
67206
|
+
},
|
|
67207
|
+
"deviceHistory.recordBuckets": {
|
|
67208
|
+
capName: "device-history",
|
|
67209
|
+
capScope: "system",
|
|
67210
|
+
addonId: null,
|
|
67211
|
+
access: "create"
|
|
67212
|
+
},
|
|
67213
|
+
"deviceHistory.setDeviceEnabled": {
|
|
67214
|
+
capName: "device-history",
|
|
67215
|
+
capScope: "system",
|
|
67216
|
+
addonId: null,
|
|
67217
|
+
access: "create"
|
|
67218
|
+
},
|
|
66939
67219
|
"deviceManager.addLocation": {
|
|
66940
67220
|
capName: "device-manager",
|
|
66941
67221
|
capScope: "system",
|
|
@@ -69000,6 +69280,12 @@ Object.freeze({
|
|
|
69000
69280
|
addonId: null,
|
|
69001
69281
|
access: "create"
|
|
69002
69282
|
},
|
|
69283
|
+
"nodeCertificates.forgetHub": {
|
|
69284
|
+
capName: "node-certificates",
|
|
69285
|
+
capScope: "system",
|
|
69286
|
+
addonId: null,
|
|
69287
|
+
access: "delete"
|
|
69288
|
+
},
|
|
69003
69289
|
"nodeCertificates.getCertificates": {
|
|
69004
69290
|
capName: "node-certificates",
|
|
69005
69291
|
capScope: "system",
|
|
@@ -73727,6 +74013,26 @@ Object.freeze({
|
|
|
73727
74013
|
form: "single",
|
|
73728
74014
|
optional: false
|
|
73729
74015
|
}],
|
|
74016
|
+
"deviceHistory.getDeviceEnabled": [{
|
|
74017
|
+
name: "deviceId",
|
|
74018
|
+
form: "single",
|
|
74019
|
+
optional: false
|
|
74020
|
+
}],
|
|
74021
|
+
"deviceHistory.listSeries": [{
|
|
74022
|
+
name: "deviceId",
|
|
74023
|
+
form: "single",
|
|
74024
|
+
optional: false
|
|
74025
|
+
}],
|
|
74026
|
+
"deviceHistory.query": [{
|
|
74027
|
+
name: "deviceId",
|
|
74028
|
+
form: "single",
|
|
74029
|
+
optional: false
|
|
74030
|
+
}],
|
|
74031
|
+
"deviceHistory.setDeviceEnabled": [{
|
|
74032
|
+
name: "deviceId",
|
|
74033
|
+
form: "single",
|
|
74034
|
+
optional: false
|
|
74035
|
+
}],
|
|
73730
74036
|
"deviceManager.adoptionRelease": [{
|
|
73731
74037
|
name: "camDeviceId",
|
|
73732
74038
|
form: "single",
|
|
@@ -75905,6 +76211,7 @@ Object.freeze({
|
|
|
75905
76211
|
"network-access": "ingress",
|
|
75906
76212
|
"smtp-provider": "email"
|
|
75907
76213
|
});
|
|
76214
|
+
DeviceType.Camera;
|
|
75908
76215
|
var G711_SCALE_CORRECTION_DB = {
|
|
75909
76216
|
PCMU: 20 * Math.log10(4),
|
|
75910
76217
|
PCMA: 20 * Math.log10(8)
|