@camstack/addon-pipeline 1.2.605 → 1.2.606

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.
Files changed (35) hide show
  1. package/dist/audio-analyzer/index.js +3 -3
  2. package/dist/audio-analyzer/index.mjs +3 -3
  3. package/dist/{custom-model-catalog-CEwbRUr7.js → custom-model-catalog-C0iqe95s.js} +2 -2
  4. package/dist/{custom-model-catalog-G0HvRpSn.mjs → custom-model-catalog-DHRYJ8gg.mjs} +2 -2
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-C_81FQSz.mjs → dist-DfLtNHaL.mjs} +255 -23
  8. package/dist/{dist-7LlEAfx1.js → dist-PmCvE63K.js} +255 -23
  9. package/dist/{model-catalogs-CWnvAqRN.mjs → model-catalogs-Bt-V_vgh.mjs} +1 -1
  10. package/dist/{model-catalogs-PZwyhy-6.js → model-catalogs-CVq3QMHq.js} +1 -1
  11. package/dist/motion-wasm/index.js +1 -1
  12. package/dist/motion-wasm/index.mjs +1 -1
  13. package/dist/{node-Du8pLNm0.mjs → node-BYIY09HD.mjs} +1 -1
  14. package/dist/{node-B8vaXwjz.js → node-D_-1oz36.js} +1 -1
  15. package/dist/pipeline-runner/index.js +3 -3
  16. package/dist/pipeline-runner/index.mjs +3 -3
  17. package/dist/{process-memory-BekNMmIb.js → process-memory-CZdWXAgA.js} +1 -1
  18. package/dist/{process-memory-BpmFzpGK.mjs → process-memory-DivoZCn9.mjs} +1 -1
  19. package/dist/recorder/index.js +22 -12
  20. package/dist/recorder/index.mjs +22 -12
  21. package/dist/{segment-demux-js-DgTOmmSE.mjs → segment-demux-js-COgPamTd.mjs} +1 -1
  22. package/dist/{segment-demux-js-CAVgSBfN.js → segment-demux-js-CyvSyRQL.js} +1 -1
  23. package/dist/stream-broker/_stub.js +2 -2
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Bcv9Iadt.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CaAWIXhV.mjs} +3 -3
  25. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C_vhSCZn.mjs +26 -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-DxEZc0T0.mjs +26 -0
  27. package/dist/stream-broker/demux-worker-child.js +1 -1
  28. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  29. package/dist/stream-broker/{hostInit-BPTm2pJj.mjs → hostInit-yUSpE3wl.mjs} +3 -3
  30. package/dist/stream-broker/index.js +3 -3
  31. package/dist/stream-broker/index.mjs +3 -3
  32. package/dist/stream-broker/remoteEntry.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-UQheneKm.mjs +0 -26
  35. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CSyOD5De.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-7LlEAfx1.js");
7
- const require_model_catalogs = require("../model-catalogs-PZwyhy-6.js");
8
- const require_process_memory = require("../process-memory-BekNMmIb.js");
6
+ const require_dist = require("../dist-PmCvE63K.js");
7
+ const require_model_catalogs = require("../model-catalogs-CVq3QMHq.js");
8
+ const require_process_memory = require("../process-memory-CZdWXAgA.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 { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog, Gn as hydrateSchema, Lt as mapAudioLabelToMacro, Nn as BaseAddon, Q as audioAnalysisCapability, Rn as audioChunkBytesPerSample, Un as expandAudioChunkToF32le, Zn as nodePin, cn as resolvePoolMemoryPolicy, h as DEFAULT_AUDIO_ANALYZER_CONFIG, jn as errMsg, mr as EventCategory, r as AUDIO_BACKEND_CHOICES } from "../dist-C_81FQSz.mjs";
3
- import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-CWnvAqRN.mjs";
4
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BpmFzpGK.mjs";
2
+ import { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog, Gn as hydrateSchema, Lt as mapAudioLabelToMacro, Nn as BaseAddon, Q as audioAnalysisCapability, Rn as audioChunkBytesPerSample, Un as expandAudioChunkToF32le, Zn as nodePin, cn as resolvePoolMemoryPolicy, h as DEFAULT_AUDIO_ANALYZER_CONFIG, jn as errMsg, mr as EventCategory, r as AUDIO_BACKEND_CHOICES } from "../dist-DfLtNHaL.mjs";
3
+ import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-Bt-V_vgh.mjs";
4
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-DivoZCn9.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-7LlEAfx1.js");
2
- const require_model_catalogs = require("./model-catalogs-PZwyhy-6.js");
1
+ const require_dist = require("./dist-PmCvE63K.js");
2
+ const require_model_catalogs = require("./model-catalogs-CVq3QMHq.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 { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, jt as inferModelProvider, k as LABEL_SUPPLY_VOCABULARIES, mn as stepModelRunsOnFormat, p as COCO_TO_MACRO } from "./dist-C_81FQSz.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-CWnvAqRN.mjs";
1
+ import { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, jt as inferModelProvider, k as LABEL_SUPPLY_VOCABULARIES, mn as stepModelRunsOnFormat, p as COCO_TO_MACRO } from "./dist-DfLtNHaL.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-Bt-V_vgh.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-7LlEAfx1.js");
7
- const require_node = require("../node-B8vaXwjz.js");
8
- const require_custom_model_catalog = require("../custom-model-catalog-CEwbRUr7.js");
6
+ const require_dist = require("../dist-PmCvE63K.js");
7
+ const require_node = require("../node-D_-1oz36.js");
8
+ const require_custom_model_catalog = require("../custom-model-catalog-C0iqe95s.js");
9
9
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
10
- const require_process_memory = require("../process-memory-BekNMmIb.js");
10
+ const require_process_memory = require("../process-memory-CZdWXAgA.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 { F as PoolMemoryWatchdog, Ft as loadContributionCapability, Gn as hydrateSchema, Gt as overlayClusterStepSettings, Nn as BaseAddon, Nt as linkedLabelStepId, O as LABEL_SUPPLY_MACRO, St as evaluateZoneRules, Ut as modelBindingKey, Wn as hfModelUrl, X as applyModelBoundSettings, Xt as pipelineExecutorCapability, Zn as nodePin, _t as detectionPipelineCapability, cn as resolvePoolMemoryPolicy, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, dn as rootSuppliesOf, er as sleep, fn as runtimeDevices$1, fr as string, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, jn as errMsg$1, lr as object, mn as stepModelRunsOnFormat, mr as EventCategory, n as APPLE_SA_TO_MACRO, pr as union, q as YAMNET_TO_MACRO, qt as pickClusterStepSettings, rn as resolveClusterStepModelId, rr as array, st as collectModelBoundKeys, xt as enumerateInferenceDevices, yn as supportedRuntimes$1, zn as createEvent } from "../dist-C_81FQSz.mjs";
3
- import { c as readProcessCost } from "../node-Du8pLNm0.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-G0HvRpSn.mjs";
2
+ import { F as PoolMemoryWatchdog, Ft as loadContributionCapability, Gn as hydrateSchema, Gt as overlayClusterStepSettings, Nn as BaseAddon, Nt as linkedLabelStepId, O as LABEL_SUPPLY_MACRO, St as evaluateZoneRules, Ut as modelBindingKey, Wn as hfModelUrl, X as applyModelBoundSettings, Xt as pipelineExecutorCapability, Zn as nodePin, _t as detectionPipelineCapability, cn as resolvePoolMemoryPolicy, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, dn as rootSuppliesOf, er as sleep, fn as runtimeDevices$1, fr as string, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, jn as errMsg$1, lr as object, mn as stepModelRunsOnFormat, mr as EventCategory, n as APPLE_SA_TO_MACRO, pr as union, q as YAMNET_TO_MACRO, qt as pickClusterStepSettings, rn as resolveClusterStepModelId, rr as array, st as collectModelBoundKeys, xt as enumerateInferenceDevices, yn as supportedRuntimes$1, zn as createEvent } from "../dist-DfLtNHaL.mjs";
3
+ import { c as readProcessCost } from "../node-BYIY09HD.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-DHRYJ8gg.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-BpmFzpGK.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-DivoZCn9.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";
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
5547
5547
  var ZodFirstPartyTypeKind;
5548
5548
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5549
5549
  //#endregion
5550
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5550
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5551
5551
  /**
5552
5552
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5553
5553
  * window to float samples (D455).
@@ -20177,7 +20177,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
20177
20177
  kind: literal("node"),
20178
20178
  nodeId: string().min(1)
20179
20179
  })]);
20180
+ /**
20181
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
20182
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
20183
+ * meaning); a rollup keeps the time spent in each state (`states`).
20184
+ */
20180
20185
  var DeviceHistoryKindSchema = _enum([
20186
+ "gauge",
20187
+ "counter",
20188
+ "boolean",
20189
+ "enum"
20190
+ ]);
20191
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
20192
+ var DeviceHistoryProducerKindSchema = _enum([
20181
20193
  "gauge",
20182
20194
  "counter",
20183
20195
  "boolean"
@@ -20214,7 +20226,13 @@ var SeriesInfoSchema = object({
20214
20226
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
20215
20227
  unit: string().nullable(),
20216
20228
  displayName: string(),
20217
- source: _enum(["cap", "addon"]),
20229
+ source: _enum([
20230
+ "cap",
20231
+ "addon",
20232
+ "derived"
20233
+ ]),
20234
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
20235
+ values: array(string()).readonly().nullable(),
20218
20236
  firstTs: number(),
20219
20237
  lastTs: number()
20220
20238
  });
@@ -20228,17 +20246,31 @@ var QueryPointSchema = object({
20228
20246
  twMean: number().nullable(),
20229
20247
  min: number(),
20230
20248
  max: number(),
20231
- /** `null` is unknown, never zero (D393). */
20232
- last: number().nullable()
20249
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
20250
+ last: number().nullable(),
20251
+ /**
20252
+ * The increase over the point: a `counter`'s growth since the previous point
20253
+ * or bucket (a drop is a reset, counted from zero), and for
20254
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
20255
+ * every other kind, and when it cannot be known.
20256
+ */
20257
+ delta: number().nullable(),
20258
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
20259
+ state: string().nullable(),
20260
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
20261
+ states: record(string(), number()).nullable()
20233
20262
  });
20234
20263
  var QuerySeriesSchema = object({
20235
20264
  scope: string(),
20236
20265
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
20237
20266
  before: object({
20238
20267
  t: number(),
20239
- value: number().nullable()
20268
+ value: number().nullable(),
20269
+ state: string().nullable()
20240
20270
  }).nullable(),
20241
- points: array(QueryPointSchema).readonly()
20271
+ points: array(QueryPointSchema).readonly(),
20272
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
20273
+ derivedFrom: string().nullable()
20242
20274
  });
20243
20275
  /** The window part of a query, shared by the device and node forms. */
20244
20276
  var QueryWindowShape = {
@@ -20254,6 +20286,23 @@ var QueryResultSchema = object({
20254
20286
  series: array(QuerySeriesSchema).readonly(),
20255
20287
  truncated: boolean()
20256
20288
  });
20289
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
20290
+ var QueryManyItemSchema = union([object({
20291
+ deviceId: number().int(),
20292
+ key: string(),
20293
+ scope: string().optional()
20294
+ }), object({
20295
+ forNodeId: string().min(1),
20296
+ key: string(),
20297
+ scope: string().optional()
20298
+ })]);
20299
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
20300
+ ok: literal(true),
20301
+ result: QueryResultSchema
20302
+ }), object({
20303
+ ok: literal(false),
20304
+ error: string()
20305
+ })]);
20257
20306
  var TierStatusSchema = object({
20258
20307
  tier: DeviceHistoryResolutionSchema,
20259
20308
  /** `null` until the first background count answered. */
@@ -20309,16 +20358,22 @@ var DeviceHistoryStatusSchema = object({
20309
20358
  lastRefreshAt: number().nullable()
20310
20359
  })
20311
20360
  });
20312
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
20361
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
20313
20362
  deviceId: number().int(),
20314
20363
  ...QueryWindowShape
20315
20364
  }), QueryResultSchema), method(object({
20316
- nodeId: string().min(1),
20365
+ forNodeId: string().min(1),
20317
20366
  ...QueryWindowShape
20318
20367
  }), QueryResultSchema, { auth: "admin" }), method(object({
20368
+ items: array(QueryManyItemSchema).min(1).max(24),
20369
+ from: QueryWindowShape.from,
20370
+ to: QueryWindowShape.to,
20371
+ resolution: QueryWindowShape.resolution,
20372
+ maxPoints: QueryWindowShape.maxPoints
20373
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
20319
20374
  name: string().regex(/^[a-z0-9-]+$/),
20320
20375
  subjectKind: _enum(["device", "node"]),
20321
- kind: DeviceHistoryKindSchema,
20376
+ kind: DeviceHistoryProducerKindSchema,
20322
20377
  unit: string().optional(),
20323
20378
  displayName: string().min(1),
20324
20379
  ingest: _enum(["points", "buckets"])
@@ -43437,14 +43492,106 @@ var LogEntrySchema = object({
43437
43492
  meta: record(string(), unknown()).optional(),
43438
43493
  tags: record(string(), string()).optional()
43439
43494
  });
43440
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
43441
- scope: array(string()).optional(),
43495
+ /**
43496
+ * A history READ against one destination (D898).
43497
+ *
43498
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
43499
+ * browser applied after the limit is what made a rare device's lines
43500
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
43501
+ * minted (opaque to everyone else): a file position for the rotated files, a
43502
+ * nanosecond timestamp for Loki.
43503
+ *
43504
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
43505
+ * store answers `done: false` with the cursor it reached and the bytes it
43506
+ * scanned, and the caller decides whether to go on. That is what makes a long
43507
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
43508
+ * flight, and not asking for the next slice ends the scan.
43509
+ */
43510
+ var LogReadQuerySchema = object({
43511
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
43512
+ requestId: string().min(1).max(64).optional(),
43513
+ /** The device the line is about (`tags.deviceId`, numeric). */
43514
+ deviceId: number().int().optional(),
43515
+ /**
43516
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
43517
+ * match. Not `addonId`: a cap router reads that name as "which provider".
43518
+ */
43519
+ fromAddonId: string().min(1).max(200).optional(),
43520
+ /**
43521
+ * The emitting node: matches the agent that emitted the line, the node
43522
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
43523
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
43524
+ * name as "which node's provider".
43525
+ */
43526
+ fromNodeId: string().min(1).max(200).optional(),
43527
+ /** Any other tag, exact match (AND). */
43528
+ tags: record(string(), union([string(), number()])).optional(),
43529
+ /** Severity FLOOR: this level and above. */
43442
43530
  level: LogLevelSchema.optional(),
43443
- since: date().optional(),
43444
- until: date().optional(),
43445
- limit: number().optional(),
43446
- tags: record(string(), string()).optional()
43447
- }), array(LogEntrySchema).readonly());
43531
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
43532
+ text: string().min(1).max(200).optional(),
43533
+ /** Epoch ms, inclusive. */
43534
+ since: number().optional(),
43535
+ /** Epoch ms, inclusive. */
43536
+ until: number().optional(),
43537
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
43538
+ before: string().min(1).max(1024).optional(),
43539
+ /** Newer than this cursor (exclusive). */
43540
+ after: string().min(1).max(1024).optional(),
43541
+ limit: number().int().min(1).max(1e3).optional(),
43542
+ /** Wall-clock bound of this slice. The provider caps it. */
43543
+ budgetMs: number().int().min(50).max(1e4).optional()
43544
+ });
43545
+ var LogReadResultSchema = object({
43546
+ /** Newest first. */
43547
+ entries: array(object({
43548
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
43549
+ id: string().optional(),
43550
+ /** Epoch ms. */
43551
+ timestamp: number(),
43552
+ level: LogLevelSchema,
43553
+ scope: string().optional(),
43554
+ message: string(),
43555
+ tags: record(string(), union([string(), number()])).optional(),
43556
+ meta: record(string(), unknown()).optional()
43557
+ })),
43558
+ /** Pass as `before` for the next older page; null when nothing older exists. */
43559
+ nextBefore: string().nullable(),
43560
+ /** Pass as `after` to read what arrived since; null when unknown. */
43561
+ nextAfter: string().nullable(),
43562
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
43563
+ scannedBytes: number().int().nonnegative(),
43564
+ /**
43565
+ * True when the scan in this direction reached the end of the store.
43566
+ * False with fewer than `limit` entries means the budget ran out first —
43567
+ * call again with `nextBefore` to go on.
43568
+ */
43569
+ done: boolean(),
43570
+ /** True when `cancelRead` ended this slice early. */
43571
+ cancelled: boolean().optional()
43572
+ });
43573
+ var LogReadCapabilitiesSchema = object({
43574
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
43575
+ readable: boolean(),
43576
+ /** Why not, when `readable` is false — rendered next to the source. */
43577
+ reason: string().nullable(),
43578
+ /** Filters the provider applies itself. A false one is applied by nobody. */
43579
+ filters: object({
43580
+ deviceId: boolean(),
43581
+ addonId: boolean(),
43582
+ nodeId: boolean(),
43583
+ tags: boolean(),
43584
+ level: boolean(),
43585
+ text: boolean(),
43586
+ timeRange: boolean()
43587
+ }),
43588
+ /** How far back the store reaches, when the provider knows (days). */
43589
+ retentionDays: number().nullable()
43590
+ });
43591
+ method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
43592
+ kind: "mutation",
43593
+ auth: "admin"
43594
+ });
43448
43595
  /**
43449
43596
  * `login-method` — collection cap through which auth addons contribute
43450
43597
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -46343,6 +46490,33 @@ var NcRuleTargetSchema = object({
46343
46490
  params: record(string(), unknown()).optional()
46344
46491
  });
46345
46492
  /**
46493
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
46494
+ *
46495
+ * Every mode starts from the same CLEAN source frame of the trigger moment
46496
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
46497
+ * to the zone that fired the rule) and renders it once at send time:
46498
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
46499
+ * colour and every OTHER track visible at that instant outlined thin, each
46500
+ * labelled with class and confidence ("dog 87%").
46501
+ * - `crop` — the subject cut out of that frame around its box at that instant.
46502
+ * - `clean` — the whole scene with nothing drawn on it.
46503
+ * - `none` — no picture.
46504
+ *
46505
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
46506
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
46507
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
46508
+ * ship a crop on one event and a boxed scene on the next depending on which
46509
+ * stored kind had landed.
46510
+ */
46511
+ var NcMediaImageSchema = _enum([
46512
+ "scene-boxes",
46513
+ "crop",
46514
+ "clean",
46515
+ "none"
46516
+ ]);
46517
+ /**
46518
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
46519
+ *
46346
46520
  * Media attachment policy (P1 still-image subset).
46347
46521
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
46348
46522
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -46356,6 +46530,8 @@ var NcRuleTargetSchema = object({
46356
46530
  * - `none` — no attachment.
46357
46531
  */
46358
46532
  /**
46533
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
46534
+ *
46359
46535
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
46360
46536
  * conflate it with the selection strategy and betray the request: asking for
46361
46537
  * the clean scene frame on an object-event owner used to start at
@@ -46384,16 +46560,29 @@ var NcMediaFrameSchema = _enum([
46384
46560
  */
46385
46561
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
46386
46562
  var NcMediaPolicySchema = object({
46563
+ /**
46564
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
46565
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
46566
+ * triple below, at load and at every write, and the store keeps only this.
46567
+ */
46568
+ image: NcMediaImageSchema.optional(),
46569
+ /**
46570
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
46571
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
46572
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
46573
+ * Replaces `zoneCrop`.
46574
+ */
46575
+ showTriggerZone: boolean().optional(),
46576
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
46387
46577
  attach: _enum([
46388
46578
  "best",
46389
46579
  "best-matching",
46390
46580
  "keyFrame",
46391
46581
  "none"
46392
- ]).default("best"),
46393
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
46582
+ ]).optional(),
46583
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
46394
46584
  frame: NcMediaFrameSchema.optional(),
46395
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
46396
- * "show me the ZONE", not the whole scene or the subject crop. */
46585
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
46397
46586
  zoneCrop: boolean().optional(),
46398
46587
  /**
46399
46588
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -46565,7 +46754,9 @@ var NcRuleInputSchema = object({
46565
46754
  * targets.
46566
46755
  */
46567
46756
  targetUsers: array(string()).optional(),
46568
- media: NcMediaPolicySchema.default({ attach: "best" }),
46757
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
46758
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
46759
+ media: NcMediaPolicySchema.default({}),
46569
46760
  throttle: NcThrottleSchema.default({
46570
46761
  cooldownSec: 60,
46571
46762
  scope: "rule-device"
@@ -47502,13 +47693,37 @@ var NcAlarmModeOpeningsSchema = object({
47502
47693
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
47503
47694
  unknown: array(number().int())
47504
47695
  });
47696
+ /**
47697
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
47698
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
47699
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
47700
+ * never looks fully armed (D62: off must never look like broken).
47701
+ */
47702
+ var NcAlarmInputBypassViewSchema = object({
47703
+ ruleId: string(),
47704
+ /** The rule's current name (its frozen name when the rule is gone). */
47705
+ ruleName: string(),
47706
+ /** The input: the sensor of the match, else its camera. */
47707
+ deviceId: number().int(),
47708
+ /** The input's current name. */
47709
+ name: string(),
47710
+ /** When it was bypassed (ms epoch). */
47711
+ since: number(),
47712
+ /** Triggers from this input dropped since. */
47713
+ dropped: number().int().min(0)
47714
+ });
47505
47715
  var NcAlarmLiveSchema = object({
47506
47716
  state: AlarmStateSchema,
47507
47717
  /** The mode being armed into (exit delay) or held; null when disarmed. */
47508
47718
  targetMode: AlarmArmModeSchema.nullable(),
47509
47719
  availableModes: array(AlarmArmModeSchema),
47510
47720
  openings: array(NcAlarmModeOpeningsSchema),
47511
- exclusions: array(NcAlarmExclusionViewSchema)
47721
+ exclusions: array(NcAlarmExclusionViewSchema),
47722
+ /**
47723
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
47724
+ * Defaulted so an older hub answer still parses (as "none known").
47725
+ */
47726
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
47512
47727
  });
47513
47728
  var NcAlarmConfigSchema = object({
47514
47729
  /**
@@ -70648,7 +70863,19 @@ Object.freeze({
70648
70863
  addonId: null,
70649
70864
  access: "view"
70650
70865
  },
70651
- "logDestination.query": {
70866
+ "logDestination.cancelRead": {
70867
+ capName: "log-destination",
70868
+ capScope: "system",
70869
+ addonId: null,
70870
+ access: "create"
70871
+ },
70872
+ "logDestination.describeRead": {
70873
+ capName: "log-destination",
70874
+ capScope: "system",
70875
+ addonId: null,
70876
+ access: "view"
70877
+ },
70878
+ "logDestination.read": {
70652
70879
  capName: "log-destination",
70653
70880
  capScope: "system",
70654
70881
  addonId: null,
@@ -76655,6 +76882,11 @@ Object.freeze({
76655
76882
  form: "single",
76656
76883
  optional: false
76657
76884
  }],
76885
+ "logDestination.read": [{
76886
+ name: "deviceId",
76887
+ form: "single",
76888
+ optional: true
76889
+ }],
76658
76890
  "mediaPlayer.getStatus": [{
76659
76891
  name: "deviceId",
76660
76892
  form: "single",