@camstack/addon-provider-hikvision 1.2.172 → 1.2.173

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/addon.mjs CHANGED
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
13
13
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  //#endregion
16
- //#region ../types/dist/event-category-BfJwUd2S.mjs
16
+ //#region ../types/dist/event-category-Ceif8n-v.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -340,9 +340,8 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
340
340
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
341
341
  /**
342
342
  * Per-camera pipeline config was mutated by the orchestrator
343
- * (3-level settings change via `setAgentAddonDefaults` /
344
- * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
345
- * pipeline-scoped `applyDeviceSettingsPatch`). Orchestrator
343
+ * (a settings change via `setAgentInferenceDevices` /
344
+ * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
346
345
  * subscribes to its own emission to hot-reload the assigned runner
347
346
  * via `attachCamera` so the next frame executes against the new
348
347
  * engine/steps without waiting for a rebalance or the next
@@ -486,6 +485,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
486
485
  * on the device detail page.
487
486
  */
488
487
  EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
488
+ /** Mirrors `runningStateCapability.events.onStarted`. */
489
+ EventCategory["RunningStarted"] = "running.started";
490
+ /** Mirrors `runningStateCapability.events.onFinished`. */
491
+ EventCategory["RunningFinished"] = "running.finished";
489
492
  /**
490
493
  * Cap event fired by every device that registers the `event-emitter`
491
494
  * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
@@ -5445,7 +5448,7 @@ var ZodIssueCode = {
5445
5448
  var ZodFirstPartyTypeKind;
5446
5449
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5447
5450
  //#endregion
5448
- //#region ../types/dist/sleep-6AqUnQIT.mjs
5451
+ //#region ../types/dist/sleep-CYfIZzGv.mjs
5449
5452
  /**
5450
5453
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5451
5454
  * window to float samples (D455).
@@ -5784,7 +5787,7 @@ Object.fromEntries([
5784
5787
  * `hydrateSchema` to skip the `value` injection for structural-only fields.
5785
5788
  */
5786
5789
  function isValuelessField(field) {
5787
- return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button";
5790
+ return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button" || field.type === "account-sign-in" || field.type === "secret-presence";
5788
5791
  }
5789
5792
  function hydrateSchema(schema, values, options = {}) {
5790
5793
  return {
@@ -8842,7 +8845,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8842
8845
  return DeviceRole;
8843
8846
  }({});
8844
8847
  //#endregion
8845
- //#region ../types/dist/composition-CB6PMT9p.mjs
8848
+ //#region ../types/dist/composition-xz-ud5EQ.mjs
8846
8849
  /**
8847
8850
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8848
8851
  *
@@ -9143,6 +9146,20 @@ var table = {
9143
9146
  apply: () => {
9144
9147
  throw new ExpressionEvalError("count: stateful evaluation context is required");
9145
9148
  }
9149
+ },
9150
+ dwell: {
9151
+ minArgs: 3,
9152
+ maxArgs: 3,
9153
+ apply: () => {
9154
+ throw new ExpressionEvalError("dwell: stateful evaluation context is required");
9155
+ }
9156
+ },
9157
+ latchedAt: {
9158
+ minArgs: 1,
9159
+ maxArgs: 1,
9160
+ apply: () => {
9161
+ throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
9162
+ }
9146
9163
  }
9147
9164
  };
9148
9165
  Object.freeze(Object.assign(Object.create(null), table));
@@ -10582,13 +10599,22 @@ var BirthDecisionRecordSchema = object({
10582
10599
  decidedByBirthEvidence: boolean(),
10583
10600
  /** Best class-compatible crop score, or `null` when nothing compatible was
10584
10601
  * found — deliberately not 0, which would be a measurement that never was.
10585
- * Includes a box the detector's own per-class floor refused (reason
10586
- * `below-detector-floor`, D922): that box never confirms, but it is the
10587
- * score the crop really held. */
10602
+ * Includes a box the detector's own per-class floor refused (D922): since
10603
+ * D925 the gate's bar, not that floor, decides whether it confirms. */
10588
10604
  bestScore: number().nullable(),
10589
10605
  /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
10590
10606
  appliedMinConfidence: number().nullable(),
10591
10607
  /**
10608
+ * The detector the gate re-judged the birth WITH (D925): the session's own
10609
+ * root model, inference-device pool and node — never a node default. `null`
10610
+ * when the frame named no session detector or no gate ran, and on rows
10611
+ * written before D925. A `session-device-unavailable` row names the session
10612
+ * detector that could not be reached.
10613
+ */
10614
+ detectorModelId: string().nullable().default(null),
10615
+ detectorDeviceKey: string().nullable().default(null),
10616
+ detectorNodeId: string().nullable().default(null),
10617
+ /**
10592
10618
  * The track's own `firstSeen` — the candidate's first frame, which is where
10593
10619
  * the timeline starts. `null` for a suppressed birth, which has no track.
10594
10620
  */
@@ -16402,7 +16428,15 @@ Object.freeze({
16402
16428
  kind: "fixed",
16403
16429
  result: ["number", "null"]
16404
16430
  },
16405
- count: NUMBER
16431
+ count: NUMBER,
16432
+ dwell: {
16433
+ kind: "fixed",
16434
+ result: ["boolean", "null"]
16435
+ },
16436
+ latchedAt: {
16437
+ kind: "fixed",
16438
+ result: ["number", "null"]
16439
+ }
16406
16440
  });
16407
16441
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
16408
16442
  /**
@@ -42964,9 +42998,6 @@ var NcSystemEventKindSchema = _enum([
42964
42998
  "device-battery-normal",
42965
42999
  "device-consumable-low",
42966
43000
  "device-consumable-normal",
42967
- "device-tank-low",
42968
- "device-tank-full",
42969
- "device-tank-normal",
42970
43001
  "stream-online",
42971
43002
  "stream-offline",
42972
43003
  "node-online",
@@ -43013,13 +43044,14 @@ var NcSystemEventKindSchema = _enum([
43013
43044
  "camera-enabled"
43014
43045
  ]);
43015
43046
  /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
43016
- var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
43047
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = [
43017
43048
  "camera-online",
43018
43049
  "camera-offline",
43019
43050
  "camera-disabled",
43020
43051
  "camera-enabled"
43021
- ]);
43022
- NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
43052
+ ];
43053
+ var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
43054
+ NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
43023
43055
  /**
43024
43056
  * The panel's transitions, as ONE list.
43025
43057
  *
@@ -44138,18 +44170,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
44138
44170
  */
44139
44171
  disabledTargetIds: array(string()).default([])
44140
44172
  });
44141
- /**
44142
- * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
44143
- * report a still-true state. `addons` is the crash-looped addons only and
44144
- * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
44145
- * job is not an open state, and the alarm stays instant.
44146
- */
44147
44173
  var NcStateSummarySectionIdSchema = _enum([
44148
44174
  "device-state",
44149
44175
  "streams",
44150
44176
  "battery",
44151
44177
  "consumables",
44152
- "tanks",
44153
44178
  "detection-blind",
44154
44179
  "nodes",
44155
44180
  "addons",
@@ -45450,6 +45475,18 @@ Object.freeze({
45450
45475
  reason: "camera sensor mappings not loaded"
45451
45476
  });
45452
45477
  /**
45478
+ * What the vision model must answer before a package event is emitted
45479
+ * when a packages rule has "Confirm with the LLM" on.
45480
+ *
45481
+ * `package` is the verdict. `confidence` is 0..1. `reason` is the model's
45482
+ * one-line explanation, stored on the event so a drop is not silent.
45483
+ */
45484
+ var PackageLlmVerdictSchema = object({
45485
+ package: boolean(),
45486
+ confidence: number().min(0).max(1),
45487
+ reason: string().min(1)
45488
+ });
45489
+ /**
45453
45490
  * A model choice has a SCOPE, and a scope change has a workflow.
45454
45491
  *
45455
45492
  * ## The two scopes
@@ -46386,6 +46423,21 @@ var ObjectEventSchema = object({
46386
46423
  * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
46387
46424
  */
46388
46425
  observedAt: number().optional(),
46426
+ /**
46427
+ * The delivery was emitted without a vision-model yes (D931).
46428
+ *
46429
+ * Set only when the packages rule asked for an LLM confirm and the model
46430
+ * was unreachable, timed out, or answered something that did not parse.
46431
+ * A notification reads it so it can say "possible" instead of a definite
46432
+ * delivery. Absent on every other row, and on a confirm that said yes.
46433
+ */
46434
+ packagePossible: boolean().optional(),
46435
+ /**
46436
+ * The vision model's verdict, when a packages rule asked for one and the
46437
+ * model answered the schema (D931). A "no" never becomes a row — the
46438
+ * detector drops it and logs the reason. Present on a yes.
46439
+ */
46440
+ packageLlmVerdict: PackageLlmVerdictSchema.optional(),
46389
46441
  /** The parent track's key-event importance [0,1], propagated to every object
46390
46442
  * event of the track (so an event row can be sorted by importance without a
46391
46443
  * track join). Absent on legacy rows / before the track was scored. */
@@ -48183,7 +48235,6 @@ var PipelineAddonSchemaSchema = object({
48183
48235
  defaultModelId: string(),
48184
48236
  defaultModelIdByFormat: record(string(), string()).optional(),
48185
48237
  enabledByDefault: boolean().optional(),
48186
- backfillIntoExistingOverrides: boolean().optional(),
48187
48238
  defaultConfidence: number(),
48188
48239
  group: string().optional(),
48189
48240
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -48310,13 +48361,12 @@ var AudioTestResultSchema = object({
48310
48361
  error: string().optional(),
48311
48362
  frame: custom().optional()
48312
48363
  });
48313
- var PipelineConfigBridge = custom();
48314
48364
  var ConfigUISchemaBridge = custom();
48315
48365
  var ConfigUISchemaNullableBridge = custom();
48316
48366
  var InferenceCapabilitiesBridge = custom();
48317
48367
  var ModelAvailabilityListBridge = custom();
48318
48368
  var PipelineRunResultBridge = custom();
48319
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
48369
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
48320
48370
  modelId: string(),
48321
48371
  settings: record(string(), unknown()).readonly()
48322
48372
  }))), method(object({ steps: record(string(), object({
@@ -48325,28 +48375,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48325
48375
  })) }), object({ success: literal(true) }), {
48326
48376
  kind: "mutation",
48327
48377
  auth: "admin"
48328
- }), method(object({ nodeId: string() }), object({
48329
- success: literal(true),
48330
- clearedDevices: number()
48331
- }), {
48332
- kind: "mutation",
48333
- auth: "admin"
48334
- }), method(object({
48335
- nodeId: string(),
48336
- deviceIds: array(number()).readonly().optional(),
48337
- dryRun: boolean()
48338
- }), object({
48339
- entries: array(object({
48340
- deviceId: number(),
48341
- keys: array(string()).readonly()
48342
- })).readonly(),
48343
- refused: array(object({
48344
- deviceId: number(),
48345
- reason: string()
48346
- })).readonly()
48347
- }), {
48348
- kind: "mutation",
48349
- auth: "admin"
48350
48378
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
48351
48379
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
48352
48380
  deviceKey: string(),
@@ -48369,7 +48397,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48369
48397
  }), object({ rearmed: boolean() }), {
48370
48398
  kind: "mutation",
48371
48399
  auth: "admin"
48372
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
48400
+ }), method(_void(), PipelineSchemaSchema), method(_void(), ConfigUISchemaBridge), method(object({
48373
48401
  steps: array(PipelineStepInputSchema),
48374
48402
  deviceKey: string().optional()
48375
48403
  }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
@@ -48617,11 +48645,18 @@ var KeptReasonSchema = _enum(["custom-pin"]);
48617
48645
  * Where a choice's latency came from (D791): this node's own benchmark
48618
48646
  * result, or the hardware-class table. Measured on the node beats the table.
48619
48647
  */
48620
- var LatencySourceSchema = discriminatedUnion("kind", [object({ kind: literal("table") }), object({
48621
- kind: literal("node-benchmark"),
48622
- resultId: string(),
48623
- measuredAtMs: number()
48624
- })]);
48648
+ var LatencySourceSchema = discriminatedUnion("kind", [
48649
+ object({ kind: literal("table") }),
48650
+ object({
48651
+ kind: literal("node-benchmark"),
48652
+ resultId: string(),
48653
+ measuredAtMs: number()
48654
+ }),
48655
+ object({
48656
+ kind: literal("estimated"),
48657
+ estimatedFrom: HardwareClassIdSchema
48658
+ })
48659
+ ]);
48625
48660
  var DeviceModelChoiceSchema = object({
48626
48661
  modelId: string(),
48627
48662
  p50Ms: number(),
@@ -48629,6 +48664,11 @@ var DeviceModelChoiceSchema = object({
48629
48664
  measured: boolean(),
48630
48665
  /** Absent on a plan from before D791 — read as the table. */
48631
48666
  source: LatencySourceSchema.optional(),
48667
+ /**
48668
+ * The measured class this latency was scaled from (D930). Absent when the
48669
+ * cell is the table or a node benchmark.
48670
+ */
48671
+ estimatedFrom: HardwareClassIdSchema.optional(),
48632
48672
  /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
48633
48673
  capacitySessions: number(),
48634
48674
  personRecall: number()
@@ -48668,40 +48708,20 @@ var NodeDeviceChangeSchema = object({
48668
48708
  keys: array(string()).readonly()
48669
48709
  })).readonly()
48670
48710
  });
48671
- var CameraOverrideClearSchema = object({
48672
- deviceId: number(),
48673
- source: _enum(["step-override", "wholesale"]),
48711
+ /**
48712
+ * Every model and model-bound threshold lives on the accelerator that runs it
48713
+ * (D927), so the plan writes node / device entries only — there is no camera
48714
+ * layer for it to clear.
48715
+ */
48716
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [object({
48717
+ kind: literal("custom-pin-kept"),
48674
48718
  nodeId: string(),
48675
- deviceKey: string().nullable(),
48676
- stepId: string(),
48677
- modelIdBefore: string().nullable(),
48678
- keys: array(string()).readonly()
48679
- });
48680
- var DetectorStoreClearSchema = object({
48681
- deviceId: number(),
48682
- keys: array(string()).readonly()
48683
- });
48684
- var AutoTuneWarningSchema = discriminatedUnion("kind", [
48685
- object({
48686
- kind: literal("detector-store-cluster-wide"),
48687
- skippedNodes: array(string()).readonly()
48688
- }),
48689
- object({
48690
- kind: literal("detector-store-unreadable"),
48691
- error: string()
48692
- }),
48693
- object({
48694
- kind: literal("custom-pin-kept"),
48695
- nodeId: string(),
48696
- deviceKey: string().nullable(),
48697
- deviceId: number().nullable(),
48698
- modelId: string()
48699
- }),
48700
- object({
48701
- kind: literal("custom-registry-unreadable"),
48702
- error: string()
48703
- })
48704
- ]);
48719
+ deviceKey: string(),
48720
+ modelId: string()
48721
+ }), object({
48722
+ kind: literal("custom-registry-unreadable"),
48723
+ error: string()
48724
+ })]);
48705
48725
  var AutoTuneOptionsSchema = object({
48706
48726
  /** Share of each accelerator's throughput kept free (0.3–0.5). */
48707
48727
  headroom: number().min(.3).max(.5).default(.4),
@@ -48723,8 +48743,6 @@ var AutoTunePlanSchema = object({
48723
48743
  generatedAt: number(),
48724
48744
  nodes: array(NodeRecommendationSchema).readonly(),
48725
48745
  nodeChanges: array(NodeDeviceChangeSchema).readonly(),
48726
- cameraClears: array(CameraOverrideClearSchema).readonly(),
48727
- detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
48728
48746
  warnings: array(AutoTuneWarningSchema).readonly()
48729
48747
  });
48730
48748
  var AutoTuneApplyInputSchema = object({
@@ -48735,8 +48753,6 @@ var AutoTuneApplyInputSchema = object({
48735
48753
  var AutoTunePhaseResultSchema = object({
48736
48754
  phase: _enum([
48737
48755
  "download",
48738
- "camera-overrides",
48739
- "detector-thresholds",
48740
48756
  "node-models",
48741
48757
  "redispatch"
48742
48758
  ]),
@@ -50491,6 +50507,12 @@ var AgentPipelineSettingsSchema = object({
50491
50507
  /** Hub-persisted UI colour (`--color-node-*` theme tokens). */
50492
50508
  color: NodeColorIdSchema.optional(),
50493
50509
  /**
50510
+ * NODE-wide step settings (D927): `stepId → { key → value }`, applied on
50511
+ * every accelerator of the node under the device's own settings. Never a
50512
+ * model or a model-bound threshold. Written by `setNodeStepSettings`.
50513
+ */
50514
+ stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
50515
+ /**
50494
50516
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
50495
50517
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
50496
50518
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -50506,17 +50528,6 @@ var AgentPipelineSettingsSchema = object({
50506
50528
  steps: record(string(), DeviceStepConfigSchema).optional()
50507
50529
  })).optional()
50508
50530
  });
50509
- var CameraPipelineForAgentSchema = object({
50510
- steps: array(PipelineStepInputSchema).readonly(),
50511
- audio: object({
50512
- modelId: string(),
50513
- enabled: boolean()
50514
- }).nullable()
50515
- });
50516
- var CameraStepOverridePatchSchema = object({
50517
- modelId: string().optional(),
50518
- settings: record(string(), unknown()).readonly().optional()
50519
- });
50520
50531
  var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
50521
50532
  /** The three root-detector choices a camera has (D507: at most one root). */
50522
50533
  var CameraDetectionSourceSchema = _enum([
@@ -50526,9 +50537,7 @@ var CameraDetectionSourceSchema = _enum([
50526
50537
  ]);
50527
50538
  var CameraPipelineSettingsSchema = object({
50528
50539
  stepToggles: record(string(), boolean()).optional(),
50529
- stepSettings: CameraStepSettingsSchema.optional(),
50530
- stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
50531
- pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
50540
+ stepSettings: CameraStepSettingsSchema.optional()
50532
50541
  });
50533
50542
  /**
50534
50543
  * Pipeline placement record persisted by `addon-pipeline-orchestrator` via
@@ -51074,6 +51083,13 @@ method(object({
51074
51083
  }), object({ success: literal(true) }), {
51075
51084
  kind: "mutation",
51076
51085
  auth: "admin"
51086
+ }), method(object({
51087
+ agentNodeId: string(),
51088
+ addonId: string(),
51089
+ settings: record(string(), unknown()).nullable()
51090
+ }), object({ success: literal(true) }), {
51091
+ kind: "mutation",
51092
+ auth: "admin"
51077
51093
  }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51078
51094
  agentNodeId: string(),
51079
51095
  deviceKey: string()
@@ -51083,9 +51099,7 @@ method(object({
51083
51099
  }), method(object({ agentNodeId: string() }), object({
51084
51100
  success: literal(true),
51085
51101
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
51086
- effectiveModelId: string().nullable(),
51087
- /** Number of cameras whose node-scoped overrides were cleared. */
51088
- clearedCameraOverrides: number()
51102
+ effectiveModelId: string().nullable()
51089
51103
  }), {
51090
51104
  kind: "mutation",
51091
51105
  auth: "admin"
@@ -51140,15 +51154,6 @@ method(object({
51140
51154
  }), object({ success: literal(true) }), {
51141
51155
  kind: "mutation",
51142
51156
  auth: "admin"
51143
- }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
51144
- deviceId: number(),
51145
- agentNodeId: string(),
51146
- deviceKey: string(),
51147
- addonId: string(),
51148
- patch: CameraStepOverridePatchSchema.nullable()
51149
- }), object({ success: literal(true) }), {
51150
- kind: "mutation",
51151
- auth: "admin"
51152
51157
  }), method(object({
51153
51158
  deviceId: number(),
51154
51159
  addonId: string(),
@@ -51156,13 +51161,6 @@ method(object({
51156
51161
  }), object({ success: literal(true) }), {
51157
51162
  kind: "mutation",
51158
51163
  auth: "admin"
51159
- }), method(object({
51160
- deviceId: number(),
51161
- agentNodeId: string(),
51162
- pipeline: CameraPipelineForAgentSchema.nullable()
51163
- }), object({ success: literal(true) }), {
51164
- kind: "mutation",
51165
- auth: "admin"
51166
51164
  }), method(object({
51167
51165
  deviceId: number(),
51168
51166
  agentNodeId: string().optional()
@@ -61593,6 +61591,30 @@ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly(
61593
61591
  kind: "mutation",
61594
61592
  auth: "admin"
61595
61593
  });
61594
+ var CORE_ULTRA_265K_IGPU_CLOCK_MHZ = 2e3;
61595
+ var positiveOrNull = number().nullable().transform((value) => value !== null && Number.isFinite(value) && value > 0 ? value : null);
61596
+ var textOrNull = string().nullable().transform((value) => value !== null && value.trim() !== "" ? value : null);
61597
+ var PrecisionGopsSchema = object({
61598
+ int8: positiveOrNull,
61599
+ fp16: positiveOrNull
61600
+ });
61601
+ /** What one accelerator device reported. Every failed query is null. */
61602
+ var AcceleratorComputeSchema = object({
61603
+ deviceKey: string(),
61604
+ fullDeviceName: textOrNull,
61605
+ executionUnits: positiveOrNull,
61606
+ clockMHz: positiveOrNull,
61607
+ gops: PrecisionGopsSchema.nullable(),
61608
+ architecture: textOrNull,
61609
+ npuName: textOrNull,
61610
+ tops: positiveOrNull,
61611
+ vendor: textOrNull,
61612
+ webgpuArchitecture: textOrNull,
61613
+ webgpuDevice: textOrNull,
61614
+ computeUnits: positiveOrNull
61615
+ });
61616
+ object({ accelerators: array(AcceleratorComputeSchema).nullable() });
61617
+ 64 * CORE_ULTRA_265K_IGPU_CLOCK_MHZ;
61596
61618
  var ModelFormatSchema = _enum(MODEL_FORMATS);
61597
61619
  var HwAccelBackendInputSchema = _enum([
61598
61620
  "videotoolbox",
@@ -61706,7 +61728,12 @@ var HardwareInfoSchema = object({
61706
61728
  availableRAM_MB: number(),
61707
61729
  gpu: GpuInfoSchema.nullable(),
61708
61730
  npu: NpuInfoSchema.nullable(),
61709
- coral: CoralInfoSchema.nullable().optional()
61731
+ coral: CoralInfoSchema.nullable().optional(),
61732
+ /**
61733
+ * Per-accelerator compute (D930). Omitted by a node that has not probed it.
61734
+ * `null` fields inside an entry are a failed query, never a zero.
61735
+ */
61736
+ accelerators: array(AcceleratorComputeSchema).readonly().optional()
61710
61737
  });
61711
61738
  var PlatformScoreSchema = object({
61712
61739
  runtime: literal("python"),
@@ -62649,6 +62676,41 @@ var ptzAutotrackCapability = {
62649
62676
  */
62650
62677
  history: "none"
62651
62678
  };
62679
+ var RunningStateSourceSchema = _enum(["native", "assigned"]);
62680
+ var RunningStateStatusSchema = object({
62681
+ /** null = unknown — never coerced to false (D393). */
62682
+ running: boolean().nullable(),
62683
+ /** Epoch ms the current boolean began; null while `running` is null. */
62684
+ since: number().nullable(),
62685
+ source: RunningStateSourceSchema,
62686
+ phase: string().nullable(),
62687
+ lastFetchedAt: number()
62688
+ });
62689
+ var RunningFlipEventDataSchema = object({
62690
+ deviceId: number(),
62691
+ since: number().nullable(),
62692
+ phase: string().nullable()
62693
+ });
62694
+ var runningStateCapability = {
62695
+ name: "running-state",
62696
+ scope: "device",
62697
+ deviceNative: true,
62698
+ mode: "singleton",
62699
+ deviceTypes: Object.values(DeviceType),
62700
+ methods: {},
62701
+ events: {
62702
+ onStarted: { data: RunningFlipEventDataSchema },
62703
+ onFinished: { data: RunningFlipEventDataSchema }
62704
+ },
62705
+ status: {
62706
+ schema: RunningStateStatusSchema,
62707
+ kind: "push"
62708
+ },
62709
+ runtimeState: RunningStateStatusSchema,
62710
+ durability: "restored",
62711
+ history: { fields: { running: { kind: "boolean" } } },
62712
+ volatileStateFields: ["lastFetchedAt"]
62713
+ };
62652
62714
  /**
62653
62715
  * reboot — device-scoped capability for "soft" device reboots (firmware
62654
62716
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
@@ -64831,7 +64893,20 @@ var ZoneRuleSchema = object({
64831
64893
  * Defaults to `true` so operators creating a rule via the UI
64832
64894
  * see it active immediately.
64833
64895
  */
64834
- enabled: boolean().default(true)
64896
+ enabled: boolean().default(true),
64897
+ /**
64898
+ * Package stage only. When true, a package candidate may open from a
64899
+ * scene difference in this rule's zone after a person leaves. The
64900
+ * package model, when it boxes something overlapping, is extra evidence
64901
+ * and is not the gate. Absent or false keeps today's model path.
64902
+ */
64903
+ detectBySceneDifference: boolean().optional(),
64904
+ /**
64905
+ * Package stage only. When true, a promoted package is shown to the
64906
+ * `llm` cap before the delivery event is emitted. Absent or false emits
64907
+ * as today. Usable with or without `detectBySceneDifference`.
64908
+ */
64909
+ confirmWithLlm: boolean().optional()
64835
64910
  });
64836
64911
  array(ZoneRuleSchema).readonly();
64837
64912
  /**
@@ -67387,7 +67462,7 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
67387
67462
  * - **Jobs.** A persisted state machine, a reconcile loop against the
67388
67463
  * provider, a cost guard, a daily orphan sweep and the retention rules.
67389
67464
  * - **The return flow.** Verified artefacts → Model Studio
67390
- * (`custom-model-registry.importModelBundle`) → canary on cameras →
67465
+ * (`custom-model-registry.importModelBundle`) → canary on accelerators →
67391
67466
  * rollback. Nothing is ever registered automatically.
67392
67467
  *
67393
67468
  * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
@@ -67524,20 +67599,24 @@ var TrainingProgressPointSchema = object({
67524
67599
  map50: number().nullable(),
67525
67600
  map50_95: number().nullable()
67526
67601
  });
67602
+ /** One accelerator: a `(node, inference device)` that runs the root detector. */
67603
+ var TrainingAcceleratorRefSchema = object({
67604
+ nodeId: string(),
67605
+ deviceKey: string()
67606
+ });
67607
+ /**
67608
+ * A canary pins the registered model on chosen ACCELERATORS — a model is
67609
+ * chosen by the accelerator that runs it (D927); every camera balanced onto
67610
+ * one runs it. `previous` is the root-detector pin each one had (`null` = it
67611
+ * ran its default), exactly, so rollback restores it.
67612
+ */
67527
67613
  var TrainingCanarySchema = object({
67528
- deviceIds: array(number().int()).readonly(),
67614
+ accelerators: array(TrainingAcceleratorRefSchema).readonly(),
67529
67615
  since: number(),
67530
- /** Every override the canary replaced, exactly, so rollback restores it. */
67531
- previous: array(object({
67532
- deviceId: number().int(),
67533
- nodeId: string(),
67534
- deviceKey: string(),
67535
- patch: object({
67536
- modelId: string().optional(),
67537
- settings: record(string(), unknown()).readonly().optional()
67538
- }).nullable()
67539
- })).readonly()
67616
+ previous: array(TrainingAcceleratorRefSchema.extend({ modelId: string().nullable() })).readonly()
67540
67617
  });
67618
+ /** An accelerator a canary may pin: it runs the root detector, on this model now. */
67619
+ var TrainingCanaryTargetSchema = TrainingAcceleratorRefSchema.extend({ pinnedModelId: string().nullable() });
67541
67620
  var TrainingJobSchema = object({
67542
67621
  id: string(),
67543
67622
  idempotencyKey: string(),
@@ -67649,11 +67728,11 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
67649
67728
  kind: "mutation",
67650
67729
  auth: "admin",
67651
67730
  timeoutMs: 12e4
67652
- }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(IdInput.extend({ canaryDeviceIds: array(number().int()).readonly() }), TrainingJobSchema, {
67731
+ }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(_void(), array(TrainingCanaryTargetSchema).readonly(), { auth: "admin" }), method(IdInput.extend({ canaryAccelerators: array(TrainingAcceleratorRefSchema).readonly() }), TrainingJobSchema, {
67653
67732
  kind: "mutation",
67654
67733
  auth: "admin",
67655
67734
  timeoutMs: 30 * 6e4
67656
- }), method(IdInput.extend({ deviceIds: array(number().int()).min(1).readonly() }), TrainingJobSchema, {
67735
+ }), method(IdInput.extend({ accelerators: array(TrainingAcceleratorRefSchema).min(1).readonly() }), TrainingJobSchema, {
67657
67736
  kind: "mutation",
67658
67737
  auth: "admin",
67659
67738
  timeoutMs: 12e4
@@ -68164,6 +68243,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
68164
68243
  ptzAutotrack: ptzAutotrackCapability,
68165
68244
  recordingOnboard: recordingOnboardCapability,
68166
68245
  recordingSignal: recordingSignalCapability,
68246
+ runningState: runningStateCapability,
68167
68247
  sceneMonitor: sceneMonitorCapability,
68168
68248
  scriptRunner: scriptRunnerCapability,
68169
68249
  smoke: smokeCapability,
@@ -75279,20 +75359,6 @@ Object.freeze({
75279
75359
  access: "create",
75280
75360
  role: "admin"
75281
75361
  },
75282
- "pipelineExecutor.clearDeviceOverrides": {
75283
- capName: "pipeline-executor",
75284
- capScope: "system",
75285
- addonId: null,
75286
- access: "delete",
75287
- role: "admin"
75288
- },
75289
- "pipelineExecutor.clearModelBoundDeviceOverrides": {
75290
- capName: "pipeline-executor",
75291
- capScope: "system",
75292
- addonId: null,
75293
- access: "delete",
75294
- role: "admin"
75295
- },
75296
75362
  "pipelineExecutor.deleteModel": {
75297
75363
  capName: "pipeline-executor",
75298
75364
  capScope: "system",
@@ -75335,13 +75401,6 @@ Object.freeze({
75335
75401
  access: "view",
75336
75402
  role: "admin"
75337
75403
  },
75338
- "pipelineExecutor.getDefaultSteps": {
75339
- capName: "pipeline-executor",
75340
- capScope: "system",
75341
- addonId: null,
75342
- access: "view",
75343
- role: "admin"
75344
- },
75345
75404
  "pipelineExecutor.getDetectionConfigSchema": {
75346
75405
  capName: "pipeline-executor",
75347
75406
  capScope: "system",
@@ -75363,20 +75422,6 @@ Object.freeze({
75363
75422
  access: "view",
75364
75423
  role: "admin"
75365
75424
  },
75366
- "pipelineExecutor.getGlobalPipelineConfig": {
75367
- capName: "pipeline-executor",
75368
- capScope: "system",
75369
- addonId: null,
75370
- access: "view",
75371
- role: "admin"
75372
- },
75373
- "pipelineExecutor.getGlobalSteps": {
75374
- capName: "pipeline-executor",
75375
- capScope: "system",
75376
- addonId: null,
75377
- access: "view",
75378
- role: "admin"
75379
- },
75380
75425
  "pipelineExecutor.getInferenceDeviceHealth": {
75381
75426
  capName: "pipeline-executor",
75382
75427
  capScope: "system",
@@ -75636,13 +75681,6 @@ Object.freeze({
75636
75681
  access: "view",
75637
75682
  role: "admin"
75638
75683
  },
75639
- "pipelineOrchestrator.getCameraStepOverrides": {
75640
- capName: "pipeline-orchestrator",
75641
- capScope: "system",
75642
- addonId: null,
75643
- access: "view",
75644
- role: "admin"
75645
- },
75646
75684
  "pipelineOrchestrator.getCameraSwitches": {
75647
75685
  capName: "pipeline-orchestrator",
75648
75686
  capScope: "system",
@@ -75881,13 +75919,6 @@ Object.freeze({
75881
75919
  access: "create",
75882
75920
  role: "admin"
75883
75921
  },
75884
- "pipelineOrchestrator.setCameraPipelineForAgent": {
75885
- capName: "pipeline-orchestrator",
75886
- capScope: "system",
75887
- addonId: null,
75888
- access: "create",
75889
- role: "admin"
75890
- },
75891
75922
  "pipelineOrchestrator.setCameraSensors": {
75892
75923
  capName: "pipeline-orchestrator",
75893
75924
  capScope: "system",
@@ -75895,42 +75926,42 @@ Object.freeze({
75895
75926
  access: "create",
75896
75927
  role: "admin"
75897
75928
  },
75898
- "pipelineOrchestrator.setCameraStepOverride": {
75929
+ "pipelineOrchestrator.setCameraStepSettings": {
75899
75930
  capName: "pipeline-orchestrator",
75900
75931
  capScope: "system",
75901
75932
  addonId: null,
75902
75933
  access: "create",
75903
75934
  role: "admin"
75904
75935
  },
75905
- "pipelineOrchestrator.setCameraStepSettings": {
75936
+ "pipelineOrchestrator.setCameraStepToggle": {
75906
75937
  capName: "pipeline-orchestrator",
75907
75938
  capScope: "system",
75908
75939
  addonId: null,
75909
75940
  access: "create",
75910
75941
  role: "admin"
75911
75942
  },
75912
- "pipelineOrchestrator.setCameraStepToggle": {
75943
+ "pipelineOrchestrator.setCameraSwitch": {
75913
75944
  capName: "pipeline-orchestrator",
75914
75945
  capScope: "system",
75915
75946
  addonId: null,
75916
75947
  access: "create",
75917
75948
  role: "admin"
75918
75949
  },
75919
- "pipelineOrchestrator.setCameraSwitch": {
75950
+ "pipelineOrchestrator.setCapabilityBinding": {
75920
75951
  capName: "pipeline-orchestrator",
75921
75952
  capScope: "system",
75922
75953
  addonId: null,
75923
75954
  access: "create",
75924
75955
  role: "admin"
75925
75956
  },
75926
- "pipelineOrchestrator.setCapabilityBinding": {
75957
+ "pipelineOrchestrator.setLoadBalancingShares": {
75927
75958
  capName: "pipeline-orchestrator",
75928
75959
  capScope: "system",
75929
75960
  addonId: null,
75930
75961
  access: "create",
75931
75962
  role: "admin"
75932
75963
  },
75933
- "pipelineOrchestrator.setLoadBalancingShares": {
75964
+ "pipelineOrchestrator.setNodeStepSettings": {
75934
75965
  capName: "pipeline-orchestrator",
75935
75966
  capScope: "system",
75936
75967
  addonId: null,
@@ -76959,6 +76990,13 @@ Object.freeze({
76959
76990
  access: "create",
76960
76991
  role: "admin"
76961
76992
  },
76993
+ "runningState.getStatus": {
76994
+ capName: "running-state",
76995
+ capScope: "device",
76996
+ addonId: null,
76997
+ access: "view",
76998
+ role: "viewer"
76999
+ },
76962
77000
  "sceneMonitor.captureReference": {
76963
77001
  capName: "scene-monitor",
76964
77002
  capScope: "device",
@@ -78289,6 +78327,13 @@ Object.freeze({
78289
78327
  access: "view",
78290
78328
  role: "admin"
78291
78329
  },
78330
+ "training.listCanaryTargets": {
78331
+ capName: "training",
78332
+ capScope: "system",
78333
+ addonId: null,
78334
+ access: "view",
78335
+ role: "admin"
78336
+ },
78292
78337
  "training.listJobs": {
78293
78338
  capName: "training",
78294
78339
  capScope: "system",
@@ -81666,6 +81711,32 @@ var APPLIANCE_CAP_VOCABULARY = {
81666
81711
  }],
81667
81712
  events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
81668
81713
  },
81714
+ "running-state": {
81715
+ scope: "device",
81716
+ noun: t("Running", "In funzione"),
81717
+ state: [{
81718
+ kind: "boolean",
81719
+ field: "running",
81720
+ label: t("Running", "In funzione"),
81721
+ whenTrue: t("When {device} starts", "Quando {device} inizia"),
81722
+ whenFalse: t("When {device} finishes", "Quando {device} finisce"),
81723
+ icon: "play"
81724
+ }],
81725
+ events: {
81726
+ onStarted: {
81727
+ category: EventCategory.RunningStarted,
81728
+ label: t("Started running", "Ha iniziato a funzionare"),
81729
+ phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
81730
+ icon: "play"
81731
+ },
81732
+ onFinished: {
81733
+ category: EventCategory.RunningFinished,
81734
+ label: t("Finished", "Ha finito"),
81735
+ phrase: t("When {device} finishes", "Quando {device} finisce"),
81736
+ icon: "square"
81737
+ }
81738
+ }
81739
+ },
81669
81740
  update: {
81670
81741
  scope: "device",
81671
81742
  noun: t("Firmware update", "Aggiornamento firmware"),
@@ -84893,11 +84964,6 @@ Object.freeze({
84893
84964
  form: "single",
84894
84965
  optional: false
84895
84966
  }],
84896
- "pipelineExecutor.clearModelBoundDeviceOverrides": [{
84897
- name: "deviceIds",
84898
- form: "array",
84899
- optional: true
84900
- }],
84901
84967
  "pipelineExecutor.runPipeline": [{
84902
84968
  name: "deviceId",
84903
84969
  form: "single",
@@ -84953,11 +85019,6 @@ Object.freeze({
84953
85019
  form: "array",
84954
85020
  optional: true
84955
85021
  }],
84956
- "pipelineOrchestrator.getCameraStepOverrides": [{
84957
- name: "deviceId",
84958
- form: "single",
84959
- optional: false
84960
- }],
84961
85022
  "pipelineOrchestrator.getCameraSwitches": [{
84962
85023
  name: "deviceId",
84963
85024
  form: "single",
@@ -84998,21 +85059,11 @@ Object.freeze({
84998
85059
  form: "single",
84999
85060
  optional: false
85000
85061
  }],
85001
- "pipelineOrchestrator.setCameraPipelineForAgent": [{
85002
- name: "deviceId",
85003
- form: "single",
85004
- optional: false
85005
- }],
85006
85062
  "pipelineOrchestrator.setCameraSensors": [{
85007
85063
  name: "deviceId",
85008
85064
  form: "single",
85009
85065
  optional: false
85010
85066
  }],
85011
- "pipelineOrchestrator.setCameraStepOverride": [{
85012
- name: "deviceId",
85013
- form: "single",
85014
- optional: false
85015
- }],
85016
85067
  "pipelineOrchestrator.setCameraStepSettings": [{
85017
85068
  name: "deviceId",
85018
85069
  form: "single",
@@ -85444,6 +85495,11 @@ Object.freeze({
85444
85495
  form: "single",
85445
85496
  optional: true
85446
85497
  }],
85498
+ "runningState.getStatus": [{
85499
+ name: "deviceId",
85500
+ form: "single",
85501
+ optional: false
85502
+ }],
85447
85503
  "sceneMonitor.captureReference": [{
85448
85504
  name: "deviceId",
85449
85505
  form: "single",
@@ -85690,11 +85746,6 @@ Object.freeze({
85690
85746
  form: "single",
85691
85747
  optional: false
85692
85748
  }],
85693
- "training.canaryResult": [{
85694
- name: "deviceIds",
85695
- form: "array",
85696
- optional: false
85697
- }],
85698
85749
  "update.getStatus": [{
85699
85750
  name: "deviceId",
85700
85751
  form: "single",
@@ -85999,40 +86050,7 @@ var NC_AUDIO_DEFAULTS = {
85999
86050
  samplingSeconds: 10
86000
86051
  };
86001
86052
  new Set(["devices", "classes"]);
86002
- /**
86003
- * WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
86004
- * consumed by the rule ENGINE and by every rule EDITOR.
86005
- *
86006
- * ── The failure this file exists for ───────────────────────────────────────
86007
- * `NcSystemEventConditionSchema` carries four optional narrowing lists
86008
- * (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
86009
- * `kinds` gate. They are not four filters over one vocabulary: each belongs to
86010
- * a FAMILY of kinds and is meaningless outside it. A node going away has no
86011
- * device type; a completed export has no package; `stream-offline` deliberately
86012
- * carries no device type at all (a stream belongs to a camera by construction).
86013
- *
86014
- * The engine applied all four to every kind, so a filter from one family failed
86015
- * a kind from another family CLOSED. The operator's live rule "Eventi di
86016
- * sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
86017
- * way to say "only my cameras" about the two liveness kinds — and NINE of the
86018
- * eleven silently stopped being deliverable. Four days of history contained
86019
- * `device-online` and `device-offline` and nothing else, across a window in
86020
- * which agents were restarted and addons were updated.
86021
- *
86022
- * Both editors already computed this scoping, to decide which filter boxes to
86023
- * render; the cap's own docblock already promised it ("Narrow a `device-*` kind
86024
- * to these device TYPES"). Only the engine disagreed, and it disagreed in the
86025
- * destructive direction. So the rule is stated ONCE, here, and the engine and
86026
- * the editors are readers of it rather than three independent authors.
86027
- *
86028
- * ── The direction ─────────────────────────────────────────────────────────
86029
- * Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
86030
- * hides a box has already told the operator this filter does not speak about
86031
- * these kinds, so honouring it as an exclusion contradicts the only
86032
- * explanation the operator was ever given. Inside its family the filter still
86033
- * narrows, and still fails CLOSED on a subject that cannot produce the identity
86034
- * it tests (a device the mirror cannot name is not evidence of a camera).
86035
- */
86053
+ new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
86036
86054
  /**
86037
86055
  * Every filter, for the callers that must cover all of them (guards, tests).
86038
86056
  *
@@ -86058,9 +86076,6 @@ new Map(Object.entries({
86058
86076
  "device-battery-normal": "device-events",
86059
86077
  "device-consumable-low": "device-events",
86060
86078
  "device-consumable-normal": "device-events",
86061
- "device-tank-low": "device-events",
86062
- "device-tank-full": "device-events",
86063
- "device-tank-normal": "device-events",
86064
86079
  "stream-online": "device-events",
86065
86080
  "stream-offline": "device-events",
86066
86081
  "detection-blind": "device-events",
@@ -86137,16 +86152,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
86137
86152
  label: "Consumables",
86138
86153
  kinds: ["device-consumable-low", "device-consumable-normal"]
86139
86154
  },
86140
- {
86141
- id: "tanks",
86142
- family: "device-events",
86143
- label: "Tanks",
86144
- kinds: [
86145
- "device-tank-low",
86146
- "device-tank-full",
86147
- "device-tank-normal"
86148
- ]
86149
- },
86150
86155
  {
86151
86156
  id: "detection-blind",
86152
86157
  family: "device-events",
@@ -86304,11 +86309,6 @@ var RULE_BODY_ONLY = ["body"];
86304
86309
  var RULE_TEXT = ["title", "body"];
86305
86310
  var BATTERY = ["device-battery-low", "device-battery-normal"];
86306
86311
  var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
86307
- var TANK = [
86308
- "device-tank-low",
86309
- "device-tank-full",
86310
- "device-tank-normal"
86311
- ];
86312
86312
  var ALERT_EPISODE = [
86313
86313
  "alert-critical",
86314
86314
  "alert-error",
@@ -86340,7 +86340,6 @@ var DEVICE_EVENTS = [
86340
86340
  "device-enabled",
86341
86341
  ...BATTERY,
86342
86342
  ...CONSUMABLE,
86343
- ...TANK,
86344
86343
  "stream-online",
86345
86344
  "stream-offline",
86346
86345
  "detection-blind",
@@ -86386,12 +86385,6 @@ var STATE_SUMMARY_SECTION_VARS = [
86386
86385
  example: "Robot — filter 10 %",
86387
86386
  kinds: CONSUMABLE
86388
86387
  },
86389
- {
86390
- name: "summaryTanks",
86391
- label: "Summary: tanks",
86392
- example: "Robot — clean water low",
86393
- kinds: TANK
86394
- },
86395
86388
  {
86396
86389
  name: "summaryDetection",
86397
86390
  label: "Summary: cameras detecting nothing",
@@ -86507,8 +86500,7 @@ var STATE_SUMMARY_VARS = [
86507
86500
  ([...RULE_TEXT], [...COMBINED_ALARM]),
86508
86501
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
86509
86502
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
86510
- ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
86511
- ([...RULE_TEXT], [...TANK]),
86503
+ ([...RULE_TEXT], [...CONSUMABLE]),
86512
86504
  [...RULE_TEXT],
86513
86505
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
86514
86506
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -86612,15 +86604,6 @@ new Map([
86612
86604
  snapshotLabel: "Consumables low now",
86613
86605
  snapshotSection: "consumables"
86614
86606
  },
86615
- {
86616
- id: "tanks",
86617
- family: "device-events",
86618
- label: "Tanks (low or full / back to normal)",
86619
- bad: ["device-tank-low", "device-tank-full"],
86620
- recovery: ["device-tank-normal"],
86621
- snapshotLabel: "Tanks low or full now",
86622
- snapshotSection: "tanks"
86623
- },
86624
86607
  {
86625
86608
  id: "motion-noise",
86626
86609
  family: "device-events",
@@ -87073,6 +87056,10 @@ MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
87073
87056
  function providerMotionEvent(source, data) {
87074
87057
  return createEvent(EventCategory.ProviderMotion, source, data);
87075
87058
  }
87059
+ Object.freeze({
87060
+ person: .8,
87061
+ vehicle: .8
87062
+ });
87076
87063
  object({
87077
87064
  /**
87078
87065
  * Fraction of the box's own size added on EACH side before cutting.