@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.js CHANGED
@@ -34,7 +34,7 @@ let node_os = require("node:os");
34
34
  let node_net = require("node:net");
35
35
  let node_http = require("node:http");
36
36
  let node_https = require("node:https");
37
- //#region ../types/dist/event-category-BfJwUd2S.mjs
37
+ //#region ../types/dist/event-category-Ceif8n-v.mjs
38
38
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
39
39
  EventCategory["SystemBoot"] = "system.boot";
40
40
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -361,9 +361,8 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
361
361
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
362
362
  /**
363
363
  * Per-camera pipeline config was mutated by the orchestrator
364
- * (3-level settings change via `setAgentAddonDefaults` /
365
- * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
366
- * pipeline-scoped `applyDeviceSettingsPatch`). Orchestrator
364
+ * (a settings change via `setAgentInferenceDevices` /
365
+ * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
367
366
  * subscribes to its own emission to hot-reload the assigned runner
368
367
  * via `attachCamera` so the next frame executes against the new
369
368
  * engine/steps without waiting for a rebalance or the next
@@ -507,6 +506,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
507
506
  * on the device detail page.
508
507
  */
509
508
  EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
509
+ /** Mirrors `runningStateCapability.events.onStarted`. */
510
+ EventCategory["RunningStarted"] = "running.started";
511
+ /** Mirrors `runningStateCapability.events.onFinished`. */
512
+ EventCategory["RunningFinished"] = "running.finished";
510
513
  /**
511
514
  * Cap event fired by every device that registers the `event-emitter`
512
515
  * capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
@@ -5466,7 +5469,7 @@ var ZodIssueCode = {
5466
5469
  var ZodFirstPartyTypeKind;
5467
5470
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5468
5471
  //#endregion
5469
- //#region ../types/dist/sleep-6AqUnQIT.mjs
5472
+ //#region ../types/dist/sleep-CYfIZzGv.mjs
5470
5473
  /**
5471
5474
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5472
5475
  * window to float samples (D455).
@@ -5805,7 +5808,7 @@ Object.fromEntries([
5805
5808
  * `hydrateSchema` to skip the `value` injection for structural-only fields.
5806
5809
  */
5807
5810
  function isValuelessField(field) {
5808
- 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";
5811
+ 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";
5809
5812
  }
5810
5813
  function hydrateSchema(schema, values, options = {}) {
5811
5814
  return {
@@ -8863,7 +8866,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8863
8866
  return DeviceRole;
8864
8867
  }({});
8865
8868
  //#endregion
8866
- //#region ../types/dist/composition-CB6PMT9p.mjs
8869
+ //#region ../types/dist/composition-xz-ud5EQ.mjs
8867
8870
  /**
8868
8871
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8869
8872
  *
@@ -9164,6 +9167,20 @@ var table = {
9164
9167
  apply: () => {
9165
9168
  throw new ExpressionEvalError("count: stateful evaluation context is required");
9166
9169
  }
9170
+ },
9171
+ dwell: {
9172
+ minArgs: 3,
9173
+ maxArgs: 3,
9174
+ apply: () => {
9175
+ throw new ExpressionEvalError("dwell: stateful evaluation context is required");
9176
+ }
9177
+ },
9178
+ latchedAt: {
9179
+ minArgs: 1,
9180
+ maxArgs: 1,
9181
+ apply: () => {
9182
+ throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
9183
+ }
9167
9184
  }
9168
9185
  };
9169
9186
  Object.freeze(Object.assign(Object.create(null), table));
@@ -10603,13 +10620,22 @@ var BirthDecisionRecordSchema = object({
10603
10620
  decidedByBirthEvidence: boolean(),
10604
10621
  /** Best class-compatible crop score, or `null` when nothing compatible was
10605
10622
  * found — deliberately not 0, which would be a measurement that never was.
10606
- * Includes a box the detector's own per-class floor refused (reason
10607
- * `below-detector-floor`, D922): that box never confirms, but it is the
10608
- * score the crop really held. */
10623
+ * Includes a box the detector's own per-class floor refused (D922): since
10624
+ * D925 the gate's bar, not that floor, decides whether it confirms. */
10609
10625
  bestScore: number().nullable(),
10610
10626
  /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
10611
10627
  appliedMinConfidence: number().nullable(),
10612
10628
  /**
10629
+ * The detector the gate re-judged the birth WITH (D925): the session's own
10630
+ * root model, inference-device pool and node — never a node default. `null`
10631
+ * when the frame named no session detector or no gate ran, and on rows
10632
+ * written before D925. A `session-device-unavailable` row names the session
10633
+ * detector that could not be reached.
10634
+ */
10635
+ detectorModelId: string().nullable().default(null),
10636
+ detectorDeviceKey: string().nullable().default(null),
10637
+ detectorNodeId: string().nullable().default(null),
10638
+ /**
10613
10639
  * The track's own `firstSeen` — the candidate's first frame, which is where
10614
10640
  * the timeline starts. `null` for a suppressed birth, which has no track.
10615
10641
  */
@@ -16423,7 +16449,15 @@ Object.freeze({
16423
16449
  kind: "fixed",
16424
16450
  result: ["number", "null"]
16425
16451
  },
16426
- count: NUMBER
16452
+ count: NUMBER,
16453
+ dwell: {
16454
+ kind: "fixed",
16455
+ result: ["boolean", "null"]
16456
+ },
16457
+ latchedAt: {
16458
+ kind: "fixed",
16459
+ result: ["number", "null"]
16460
+ }
16427
16461
  });
16428
16462
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
16429
16463
  /**
@@ -42985,9 +43019,6 @@ var NcSystemEventKindSchema = _enum([
42985
43019
  "device-battery-normal",
42986
43020
  "device-consumable-low",
42987
43021
  "device-consumable-normal",
42988
- "device-tank-low",
42989
- "device-tank-full",
42990
- "device-tank-normal",
42991
43022
  "stream-online",
42992
43023
  "stream-offline",
42993
43024
  "node-online",
@@ -43034,13 +43065,14 @@ var NcSystemEventKindSchema = _enum([
43034
43065
  "camera-enabled"
43035
43066
  ]);
43036
43067
  /** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
43037
- var NC_LEGACY_SYSTEM_EVENT_KINDS = new Set([
43068
+ var NC_LEGACY_SYSTEM_EVENT_KINDS = [
43038
43069
  "camera-online",
43039
43070
  "camera-offline",
43040
43071
  "camera-disabled",
43041
43072
  "camera-enabled"
43042
- ]);
43043
- NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KINDS.has(kind));
43073
+ ];
43074
+ var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
43075
+ NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
43044
43076
  /**
43045
43077
  * The panel's transitions, as ONE list.
43046
43078
  *
@@ -44159,18 +44191,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
44159
44191
  */
44160
44192
  disabledTargetIds: array(string()).default([])
44161
44193
  });
44162
- /**
44163
- * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
44164
- * report a still-true state. `addons` is the crash-looped addons only and
44165
- * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
44166
- * job is not an open state, and the alarm stays instant.
44167
- */
44168
44194
  var NcStateSummarySectionIdSchema = _enum([
44169
44195
  "device-state",
44170
44196
  "streams",
44171
44197
  "battery",
44172
44198
  "consumables",
44173
- "tanks",
44174
44199
  "detection-blind",
44175
44200
  "nodes",
44176
44201
  "addons",
@@ -45471,6 +45496,18 @@ Object.freeze({
45471
45496
  reason: "camera sensor mappings not loaded"
45472
45497
  });
45473
45498
  /**
45499
+ * What the vision model must answer before a package event is emitted
45500
+ * when a packages rule has "Confirm with the LLM" on.
45501
+ *
45502
+ * `package` is the verdict. `confidence` is 0..1. `reason` is the model's
45503
+ * one-line explanation, stored on the event so a drop is not silent.
45504
+ */
45505
+ var PackageLlmVerdictSchema = object({
45506
+ package: boolean(),
45507
+ confidence: number().min(0).max(1),
45508
+ reason: string().min(1)
45509
+ });
45510
+ /**
45474
45511
  * A model choice has a SCOPE, and a scope change has a workflow.
45475
45512
  *
45476
45513
  * ## The two scopes
@@ -46407,6 +46444,21 @@ var ObjectEventSchema = object({
46407
46444
  * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
46408
46445
  */
46409
46446
  observedAt: number().optional(),
46447
+ /**
46448
+ * The delivery was emitted without a vision-model yes (D931).
46449
+ *
46450
+ * Set only when the packages rule asked for an LLM confirm and the model
46451
+ * was unreachable, timed out, or answered something that did not parse.
46452
+ * A notification reads it so it can say "possible" instead of a definite
46453
+ * delivery. Absent on every other row, and on a confirm that said yes.
46454
+ */
46455
+ packagePossible: boolean().optional(),
46456
+ /**
46457
+ * The vision model's verdict, when a packages rule asked for one and the
46458
+ * model answered the schema (D931). A "no" never becomes a row — the
46459
+ * detector drops it and logs the reason. Present on a yes.
46460
+ */
46461
+ packageLlmVerdict: PackageLlmVerdictSchema.optional(),
46410
46462
  /** The parent track's key-event importance [0,1], propagated to every object
46411
46463
  * event of the track (so an event row can be sorted by importance without a
46412
46464
  * track join). Absent on legacy rows / before the track was scored. */
@@ -48204,7 +48256,6 @@ var PipelineAddonSchemaSchema = object({
48204
48256
  defaultModelId: string(),
48205
48257
  defaultModelIdByFormat: record(string(), string()).optional(),
48206
48258
  enabledByDefault: boolean().optional(),
48207
- backfillIntoExistingOverrides: boolean().optional(),
48208
48259
  defaultConfidence: number(),
48209
48260
  group: string().optional(),
48210
48261
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -48331,13 +48382,12 @@ var AudioTestResultSchema = object({
48331
48382
  error: string().optional(),
48332
48383
  frame: custom().optional()
48333
48384
  });
48334
- var PipelineConfigBridge = custom();
48335
48385
  var ConfigUISchemaBridge = custom();
48336
48386
  var ConfigUISchemaNullableBridge = custom();
48337
48387
  var InferenceCapabilitiesBridge = custom();
48338
48388
  var ModelAvailabilityListBridge = custom();
48339
48389
  var PipelineRunResultBridge = custom();
48340
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
48390
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
48341
48391
  modelId: string(),
48342
48392
  settings: record(string(), unknown()).readonly()
48343
48393
  }))), method(object({ steps: record(string(), object({
@@ -48346,28 +48396,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48346
48396
  })) }), object({ success: literal(true) }), {
48347
48397
  kind: "mutation",
48348
48398
  auth: "admin"
48349
- }), method(object({ nodeId: string() }), object({
48350
- success: literal(true),
48351
- clearedDevices: number()
48352
- }), {
48353
- kind: "mutation",
48354
- auth: "admin"
48355
- }), method(object({
48356
- nodeId: string(),
48357
- deviceIds: array(number()).readonly().optional(),
48358
- dryRun: boolean()
48359
- }), object({
48360
- entries: array(object({
48361
- deviceId: number(),
48362
- keys: array(string()).readonly()
48363
- })).readonly(),
48364
- refused: array(object({
48365
- deviceId: number(),
48366
- reason: string()
48367
- })).readonly()
48368
- }), {
48369
- kind: "mutation",
48370
- auth: "admin"
48371
48399
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
48372
48400
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
48373
48401
  deviceKey: string(),
@@ -48390,7 +48418,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48390
48418
  }), object({ rearmed: boolean() }), {
48391
48419
  kind: "mutation",
48392
48420
  auth: "admin"
48393
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
48421
+ }), method(_void(), PipelineSchemaSchema), method(_void(), ConfigUISchemaBridge), method(object({
48394
48422
  steps: array(PipelineStepInputSchema),
48395
48423
  deviceKey: string().optional()
48396
48424
  }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
@@ -48638,11 +48666,18 @@ var KeptReasonSchema = _enum(["custom-pin"]);
48638
48666
  * Where a choice's latency came from (D791): this node's own benchmark
48639
48667
  * result, or the hardware-class table. Measured on the node beats the table.
48640
48668
  */
48641
- var LatencySourceSchema = discriminatedUnion("kind", [object({ kind: literal("table") }), object({
48642
- kind: literal("node-benchmark"),
48643
- resultId: string(),
48644
- measuredAtMs: number()
48645
- })]);
48669
+ var LatencySourceSchema = discriminatedUnion("kind", [
48670
+ object({ kind: literal("table") }),
48671
+ object({
48672
+ kind: literal("node-benchmark"),
48673
+ resultId: string(),
48674
+ measuredAtMs: number()
48675
+ }),
48676
+ object({
48677
+ kind: literal("estimated"),
48678
+ estimatedFrom: HardwareClassIdSchema
48679
+ })
48680
+ ]);
48646
48681
  var DeviceModelChoiceSchema = object({
48647
48682
  modelId: string(),
48648
48683
  p50Ms: number(),
@@ -48650,6 +48685,11 @@ var DeviceModelChoiceSchema = object({
48650
48685
  measured: boolean(),
48651
48686
  /** Absent on a plan from before D791 — read as the table. */
48652
48687
  source: LatencySourceSchema.optional(),
48688
+ /**
48689
+ * The measured class this latency was scaled from (D930). Absent when the
48690
+ * cell is the table or a node benchmark.
48691
+ */
48692
+ estimatedFrom: HardwareClassIdSchema.optional(),
48653
48693
  /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
48654
48694
  capacitySessions: number(),
48655
48695
  personRecall: number()
@@ -48689,40 +48729,20 @@ var NodeDeviceChangeSchema = object({
48689
48729
  keys: array(string()).readonly()
48690
48730
  })).readonly()
48691
48731
  });
48692
- var CameraOverrideClearSchema = object({
48693
- deviceId: number(),
48694
- source: _enum(["step-override", "wholesale"]),
48732
+ /**
48733
+ * Every model and model-bound threshold lives on the accelerator that runs it
48734
+ * (D927), so the plan writes node / device entries only — there is no camera
48735
+ * layer for it to clear.
48736
+ */
48737
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [object({
48738
+ kind: literal("custom-pin-kept"),
48695
48739
  nodeId: string(),
48696
- deviceKey: string().nullable(),
48697
- stepId: string(),
48698
- modelIdBefore: string().nullable(),
48699
- keys: array(string()).readonly()
48700
- });
48701
- var DetectorStoreClearSchema = object({
48702
- deviceId: number(),
48703
- keys: array(string()).readonly()
48704
- });
48705
- var AutoTuneWarningSchema = discriminatedUnion("kind", [
48706
- object({
48707
- kind: literal("detector-store-cluster-wide"),
48708
- skippedNodes: array(string()).readonly()
48709
- }),
48710
- object({
48711
- kind: literal("detector-store-unreadable"),
48712
- error: string()
48713
- }),
48714
- object({
48715
- kind: literal("custom-pin-kept"),
48716
- nodeId: string(),
48717
- deviceKey: string().nullable(),
48718
- deviceId: number().nullable(),
48719
- modelId: string()
48720
- }),
48721
- object({
48722
- kind: literal("custom-registry-unreadable"),
48723
- error: string()
48724
- })
48725
- ]);
48740
+ deviceKey: string(),
48741
+ modelId: string()
48742
+ }), object({
48743
+ kind: literal("custom-registry-unreadable"),
48744
+ error: string()
48745
+ })]);
48726
48746
  var AutoTuneOptionsSchema = object({
48727
48747
  /** Share of each accelerator's throughput kept free (0.3–0.5). */
48728
48748
  headroom: number().min(.3).max(.5).default(.4),
@@ -48744,8 +48764,6 @@ var AutoTunePlanSchema = object({
48744
48764
  generatedAt: number(),
48745
48765
  nodes: array(NodeRecommendationSchema).readonly(),
48746
48766
  nodeChanges: array(NodeDeviceChangeSchema).readonly(),
48747
- cameraClears: array(CameraOverrideClearSchema).readonly(),
48748
- detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
48749
48767
  warnings: array(AutoTuneWarningSchema).readonly()
48750
48768
  });
48751
48769
  var AutoTuneApplyInputSchema = object({
@@ -48756,8 +48774,6 @@ var AutoTuneApplyInputSchema = object({
48756
48774
  var AutoTunePhaseResultSchema = object({
48757
48775
  phase: _enum([
48758
48776
  "download",
48759
- "camera-overrides",
48760
- "detector-thresholds",
48761
48777
  "node-models",
48762
48778
  "redispatch"
48763
48779
  ]),
@@ -50512,6 +50528,12 @@ var AgentPipelineSettingsSchema = object({
50512
50528
  /** Hub-persisted UI colour (`--color-node-*` theme tokens). */
50513
50529
  color: NodeColorIdSchema.optional(),
50514
50530
  /**
50531
+ * NODE-wide step settings (D927): `stepId → { key → value }`, applied on
50532
+ * every accelerator of the node under the device's own settings. Never a
50533
+ * model or a model-bound threshold. Written by `setNodeStepSettings`.
50534
+ */
50535
+ stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
50536
+ /**
50515
50537
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
50516
50538
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
50517
50539
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -50527,17 +50549,6 @@ var AgentPipelineSettingsSchema = object({
50527
50549
  steps: record(string(), DeviceStepConfigSchema).optional()
50528
50550
  })).optional()
50529
50551
  });
50530
- var CameraPipelineForAgentSchema = object({
50531
- steps: array(PipelineStepInputSchema).readonly(),
50532
- audio: object({
50533
- modelId: string(),
50534
- enabled: boolean()
50535
- }).nullable()
50536
- });
50537
- var CameraStepOverridePatchSchema = object({
50538
- modelId: string().optional(),
50539
- settings: record(string(), unknown()).readonly().optional()
50540
- });
50541
50552
  var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
50542
50553
  /** The three root-detector choices a camera has (D507: at most one root). */
50543
50554
  var CameraDetectionSourceSchema = _enum([
@@ -50547,9 +50558,7 @@ var CameraDetectionSourceSchema = _enum([
50547
50558
  ]);
50548
50559
  var CameraPipelineSettingsSchema = object({
50549
50560
  stepToggles: record(string(), boolean()).optional(),
50550
- stepSettings: CameraStepSettingsSchema.optional(),
50551
- stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
50552
- pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
50561
+ stepSettings: CameraStepSettingsSchema.optional()
50553
50562
  });
50554
50563
  /**
50555
50564
  * Pipeline placement record persisted by `addon-pipeline-orchestrator` via
@@ -51095,6 +51104,13 @@ method(object({
51095
51104
  }), object({ success: literal(true) }), {
51096
51105
  kind: "mutation",
51097
51106
  auth: "admin"
51107
+ }), method(object({
51108
+ agentNodeId: string(),
51109
+ addonId: string(),
51110
+ settings: record(string(), unknown()).nullable()
51111
+ }), object({ success: literal(true) }), {
51112
+ kind: "mutation",
51113
+ auth: "admin"
51098
51114
  }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51099
51115
  agentNodeId: string(),
51100
51116
  deviceKey: string()
@@ -51104,9 +51120,7 @@ method(object({
51104
51120
  }), method(object({ agentNodeId: string() }), object({
51105
51121
  success: literal(true),
51106
51122
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
51107
- effectiveModelId: string().nullable(),
51108
- /** Number of cameras whose node-scoped overrides were cleared. */
51109
- clearedCameraOverrides: number()
51123
+ effectiveModelId: string().nullable()
51110
51124
  }), {
51111
51125
  kind: "mutation",
51112
51126
  auth: "admin"
@@ -51161,15 +51175,6 @@ method(object({
51161
51175
  }), object({ success: literal(true) }), {
51162
51176
  kind: "mutation",
51163
51177
  auth: "admin"
51164
- }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
51165
- deviceId: number(),
51166
- agentNodeId: string(),
51167
- deviceKey: string(),
51168
- addonId: string(),
51169
- patch: CameraStepOverridePatchSchema.nullable()
51170
- }), object({ success: literal(true) }), {
51171
- kind: "mutation",
51172
- auth: "admin"
51173
51178
  }), method(object({
51174
51179
  deviceId: number(),
51175
51180
  addonId: string(),
@@ -51177,13 +51182,6 @@ method(object({
51177
51182
  }), object({ success: literal(true) }), {
51178
51183
  kind: "mutation",
51179
51184
  auth: "admin"
51180
- }), method(object({
51181
- deviceId: number(),
51182
- agentNodeId: string(),
51183
- pipeline: CameraPipelineForAgentSchema.nullable()
51184
- }), object({ success: literal(true) }), {
51185
- kind: "mutation",
51186
- auth: "admin"
51187
51185
  }), method(object({
51188
51186
  deviceId: number(),
51189
51187
  agentNodeId: string().optional()
@@ -61614,6 +61612,30 @@ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly(
61614
61612
  kind: "mutation",
61615
61613
  auth: "admin"
61616
61614
  });
61615
+ var CORE_ULTRA_265K_IGPU_CLOCK_MHZ = 2e3;
61616
+ var positiveOrNull = number().nullable().transform((value) => value !== null && Number.isFinite(value) && value > 0 ? value : null);
61617
+ var textOrNull = string().nullable().transform((value) => value !== null && value.trim() !== "" ? value : null);
61618
+ var PrecisionGopsSchema = object({
61619
+ int8: positiveOrNull,
61620
+ fp16: positiveOrNull
61621
+ });
61622
+ /** What one accelerator device reported. Every failed query is null. */
61623
+ var AcceleratorComputeSchema = object({
61624
+ deviceKey: string(),
61625
+ fullDeviceName: textOrNull,
61626
+ executionUnits: positiveOrNull,
61627
+ clockMHz: positiveOrNull,
61628
+ gops: PrecisionGopsSchema.nullable(),
61629
+ architecture: textOrNull,
61630
+ npuName: textOrNull,
61631
+ tops: positiveOrNull,
61632
+ vendor: textOrNull,
61633
+ webgpuArchitecture: textOrNull,
61634
+ webgpuDevice: textOrNull,
61635
+ computeUnits: positiveOrNull
61636
+ });
61637
+ object({ accelerators: array(AcceleratorComputeSchema).nullable() });
61638
+ 64 * CORE_ULTRA_265K_IGPU_CLOCK_MHZ;
61617
61639
  var ModelFormatSchema = _enum(MODEL_FORMATS);
61618
61640
  var HwAccelBackendInputSchema = _enum([
61619
61641
  "videotoolbox",
@@ -61727,7 +61749,12 @@ var HardwareInfoSchema = object({
61727
61749
  availableRAM_MB: number(),
61728
61750
  gpu: GpuInfoSchema.nullable(),
61729
61751
  npu: NpuInfoSchema.nullable(),
61730
- coral: CoralInfoSchema.nullable().optional()
61752
+ coral: CoralInfoSchema.nullable().optional(),
61753
+ /**
61754
+ * Per-accelerator compute (D930). Omitted by a node that has not probed it.
61755
+ * `null` fields inside an entry are a failed query, never a zero.
61756
+ */
61757
+ accelerators: array(AcceleratorComputeSchema).readonly().optional()
61731
61758
  });
61732
61759
  var PlatformScoreSchema = object({
61733
61760
  runtime: literal("python"),
@@ -62670,6 +62697,41 @@ var ptzAutotrackCapability = {
62670
62697
  */
62671
62698
  history: "none"
62672
62699
  };
62700
+ var RunningStateSourceSchema = _enum(["native", "assigned"]);
62701
+ var RunningStateStatusSchema = object({
62702
+ /** null = unknown — never coerced to false (D393). */
62703
+ running: boolean().nullable(),
62704
+ /** Epoch ms the current boolean began; null while `running` is null. */
62705
+ since: number().nullable(),
62706
+ source: RunningStateSourceSchema,
62707
+ phase: string().nullable(),
62708
+ lastFetchedAt: number()
62709
+ });
62710
+ var RunningFlipEventDataSchema = object({
62711
+ deviceId: number(),
62712
+ since: number().nullable(),
62713
+ phase: string().nullable()
62714
+ });
62715
+ var runningStateCapability = {
62716
+ name: "running-state",
62717
+ scope: "device",
62718
+ deviceNative: true,
62719
+ mode: "singleton",
62720
+ deviceTypes: Object.values(DeviceType),
62721
+ methods: {},
62722
+ events: {
62723
+ onStarted: { data: RunningFlipEventDataSchema },
62724
+ onFinished: { data: RunningFlipEventDataSchema }
62725
+ },
62726
+ status: {
62727
+ schema: RunningStateStatusSchema,
62728
+ kind: "push"
62729
+ },
62730
+ runtimeState: RunningStateStatusSchema,
62731
+ durability: "restored",
62732
+ history: { fields: { running: { kind: "boolean" } } },
62733
+ volatileStateFields: ["lastFetchedAt"]
62734
+ };
62673
62735
  /**
62674
62736
  * reboot — device-scoped capability for "soft" device reboots (firmware
62675
62737
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
@@ -64852,7 +64914,20 @@ var ZoneRuleSchema = object({
64852
64914
  * Defaults to `true` so operators creating a rule via the UI
64853
64915
  * see it active immediately.
64854
64916
  */
64855
- enabled: boolean().default(true)
64917
+ enabled: boolean().default(true),
64918
+ /**
64919
+ * Package stage only. When true, a package candidate may open from a
64920
+ * scene difference in this rule's zone after a person leaves. The
64921
+ * package model, when it boxes something overlapping, is extra evidence
64922
+ * and is not the gate. Absent or false keeps today's model path.
64923
+ */
64924
+ detectBySceneDifference: boolean().optional(),
64925
+ /**
64926
+ * Package stage only. When true, a promoted package is shown to the
64927
+ * `llm` cap before the delivery event is emitted. Absent or false emits
64928
+ * as today. Usable with or without `detectBySceneDifference`.
64929
+ */
64930
+ confirmWithLlm: boolean().optional()
64856
64931
  });
64857
64932
  array(ZoneRuleSchema).readonly();
64858
64933
  /**
@@ -67408,7 +67483,7 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
67408
67483
  * - **Jobs.** A persisted state machine, a reconcile loop against the
67409
67484
  * provider, a cost guard, a daily orphan sweep and the retention rules.
67410
67485
  * - **The return flow.** Verified artefacts → Model Studio
67411
- * (`custom-model-registry.importModelBundle`) → canary on cameras →
67486
+ * (`custom-model-registry.importModelBundle`) → canary on accelerators →
67412
67487
  * rollback. Nothing is ever registered automatically.
67413
67488
  *
67414
67489
  * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
@@ -67545,20 +67620,24 @@ var TrainingProgressPointSchema = object({
67545
67620
  map50: number().nullable(),
67546
67621
  map50_95: number().nullable()
67547
67622
  });
67623
+ /** One accelerator: a `(node, inference device)` that runs the root detector. */
67624
+ var TrainingAcceleratorRefSchema = object({
67625
+ nodeId: string(),
67626
+ deviceKey: string()
67627
+ });
67628
+ /**
67629
+ * A canary pins the registered model on chosen ACCELERATORS — a model is
67630
+ * chosen by the accelerator that runs it (D927); every camera balanced onto
67631
+ * one runs it. `previous` is the root-detector pin each one had (`null` = it
67632
+ * ran its default), exactly, so rollback restores it.
67633
+ */
67548
67634
  var TrainingCanarySchema = object({
67549
- deviceIds: array(number().int()).readonly(),
67635
+ accelerators: array(TrainingAcceleratorRefSchema).readonly(),
67550
67636
  since: number(),
67551
- /** Every override the canary replaced, exactly, so rollback restores it. */
67552
- previous: array(object({
67553
- deviceId: number().int(),
67554
- nodeId: string(),
67555
- deviceKey: string(),
67556
- patch: object({
67557
- modelId: string().optional(),
67558
- settings: record(string(), unknown()).readonly().optional()
67559
- }).nullable()
67560
- })).readonly()
67637
+ previous: array(TrainingAcceleratorRefSchema.extend({ modelId: string().nullable() })).readonly()
67561
67638
  });
67639
+ /** An accelerator a canary may pin: it runs the root detector, on this model now. */
67640
+ var TrainingCanaryTargetSchema = TrainingAcceleratorRefSchema.extend({ pinnedModelId: string().nullable() });
67562
67641
  var TrainingJobSchema = object({
67563
67642
  id: string(),
67564
67643
  idempotencyKey: string(),
@@ -67670,11 +67749,11 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
67670
67749
  kind: "mutation",
67671
67750
  auth: "admin",
67672
67751
  timeoutMs: 12e4
67673
- }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(IdInput.extend({ canaryDeviceIds: array(number().int()).readonly() }), TrainingJobSchema, {
67752
+ }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(_void(), array(TrainingCanaryTargetSchema).readonly(), { auth: "admin" }), method(IdInput.extend({ canaryAccelerators: array(TrainingAcceleratorRefSchema).readonly() }), TrainingJobSchema, {
67674
67753
  kind: "mutation",
67675
67754
  auth: "admin",
67676
67755
  timeoutMs: 30 * 6e4
67677
- }), method(IdInput.extend({ deviceIds: array(number().int()).min(1).readonly() }), TrainingJobSchema, {
67756
+ }), method(IdInput.extend({ accelerators: array(TrainingAcceleratorRefSchema).min(1).readonly() }), TrainingJobSchema, {
67678
67757
  kind: "mutation",
67679
67758
  auth: "admin",
67680
67759
  timeoutMs: 12e4
@@ -68185,6 +68264,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
68185
68264
  ptzAutotrack: ptzAutotrackCapability,
68186
68265
  recordingOnboard: recordingOnboardCapability,
68187
68266
  recordingSignal: recordingSignalCapability,
68267
+ runningState: runningStateCapability,
68188
68268
  sceneMonitor: sceneMonitorCapability,
68189
68269
  scriptRunner: scriptRunnerCapability,
68190
68270
  smoke: smokeCapability,
@@ -75300,20 +75380,6 @@ Object.freeze({
75300
75380
  access: "create",
75301
75381
  role: "admin"
75302
75382
  },
75303
- "pipelineExecutor.clearDeviceOverrides": {
75304
- capName: "pipeline-executor",
75305
- capScope: "system",
75306
- addonId: null,
75307
- access: "delete",
75308
- role: "admin"
75309
- },
75310
- "pipelineExecutor.clearModelBoundDeviceOverrides": {
75311
- capName: "pipeline-executor",
75312
- capScope: "system",
75313
- addonId: null,
75314
- access: "delete",
75315
- role: "admin"
75316
- },
75317
75383
  "pipelineExecutor.deleteModel": {
75318
75384
  capName: "pipeline-executor",
75319
75385
  capScope: "system",
@@ -75356,13 +75422,6 @@ Object.freeze({
75356
75422
  access: "view",
75357
75423
  role: "admin"
75358
75424
  },
75359
- "pipelineExecutor.getDefaultSteps": {
75360
- capName: "pipeline-executor",
75361
- capScope: "system",
75362
- addonId: null,
75363
- access: "view",
75364
- role: "admin"
75365
- },
75366
75425
  "pipelineExecutor.getDetectionConfigSchema": {
75367
75426
  capName: "pipeline-executor",
75368
75427
  capScope: "system",
@@ -75384,20 +75443,6 @@ Object.freeze({
75384
75443
  access: "view",
75385
75444
  role: "admin"
75386
75445
  },
75387
- "pipelineExecutor.getGlobalPipelineConfig": {
75388
- capName: "pipeline-executor",
75389
- capScope: "system",
75390
- addonId: null,
75391
- access: "view",
75392
- role: "admin"
75393
- },
75394
- "pipelineExecutor.getGlobalSteps": {
75395
- capName: "pipeline-executor",
75396
- capScope: "system",
75397
- addonId: null,
75398
- access: "view",
75399
- role: "admin"
75400
- },
75401
75446
  "pipelineExecutor.getInferenceDeviceHealth": {
75402
75447
  capName: "pipeline-executor",
75403
75448
  capScope: "system",
@@ -75657,13 +75702,6 @@ Object.freeze({
75657
75702
  access: "view",
75658
75703
  role: "admin"
75659
75704
  },
75660
- "pipelineOrchestrator.getCameraStepOverrides": {
75661
- capName: "pipeline-orchestrator",
75662
- capScope: "system",
75663
- addonId: null,
75664
- access: "view",
75665
- role: "admin"
75666
- },
75667
75705
  "pipelineOrchestrator.getCameraSwitches": {
75668
75706
  capName: "pipeline-orchestrator",
75669
75707
  capScope: "system",
@@ -75902,13 +75940,6 @@ Object.freeze({
75902
75940
  access: "create",
75903
75941
  role: "admin"
75904
75942
  },
75905
- "pipelineOrchestrator.setCameraPipelineForAgent": {
75906
- capName: "pipeline-orchestrator",
75907
- capScope: "system",
75908
- addonId: null,
75909
- access: "create",
75910
- role: "admin"
75911
- },
75912
75943
  "pipelineOrchestrator.setCameraSensors": {
75913
75944
  capName: "pipeline-orchestrator",
75914
75945
  capScope: "system",
@@ -75916,42 +75947,42 @@ Object.freeze({
75916
75947
  access: "create",
75917
75948
  role: "admin"
75918
75949
  },
75919
- "pipelineOrchestrator.setCameraStepOverride": {
75950
+ "pipelineOrchestrator.setCameraStepSettings": {
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.setCameraStepSettings": {
75957
+ "pipelineOrchestrator.setCameraStepToggle": {
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.setCameraStepToggle": {
75964
+ "pipelineOrchestrator.setCameraSwitch": {
75934
75965
  capName: "pipeline-orchestrator",
75935
75966
  capScope: "system",
75936
75967
  addonId: null,
75937
75968
  access: "create",
75938
75969
  role: "admin"
75939
75970
  },
75940
- "pipelineOrchestrator.setCameraSwitch": {
75971
+ "pipelineOrchestrator.setCapabilityBinding": {
75941
75972
  capName: "pipeline-orchestrator",
75942
75973
  capScope: "system",
75943
75974
  addonId: null,
75944
75975
  access: "create",
75945
75976
  role: "admin"
75946
75977
  },
75947
- "pipelineOrchestrator.setCapabilityBinding": {
75978
+ "pipelineOrchestrator.setLoadBalancingShares": {
75948
75979
  capName: "pipeline-orchestrator",
75949
75980
  capScope: "system",
75950
75981
  addonId: null,
75951
75982
  access: "create",
75952
75983
  role: "admin"
75953
75984
  },
75954
- "pipelineOrchestrator.setLoadBalancingShares": {
75985
+ "pipelineOrchestrator.setNodeStepSettings": {
75955
75986
  capName: "pipeline-orchestrator",
75956
75987
  capScope: "system",
75957
75988
  addonId: null,
@@ -76980,6 +77011,13 @@ Object.freeze({
76980
77011
  access: "create",
76981
77012
  role: "admin"
76982
77013
  },
77014
+ "runningState.getStatus": {
77015
+ capName: "running-state",
77016
+ capScope: "device",
77017
+ addonId: null,
77018
+ access: "view",
77019
+ role: "viewer"
77020
+ },
76983
77021
  "sceneMonitor.captureReference": {
76984
77022
  capName: "scene-monitor",
76985
77023
  capScope: "device",
@@ -78310,6 +78348,13 @@ Object.freeze({
78310
78348
  access: "view",
78311
78349
  role: "admin"
78312
78350
  },
78351
+ "training.listCanaryTargets": {
78352
+ capName: "training",
78353
+ capScope: "system",
78354
+ addonId: null,
78355
+ access: "view",
78356
+ role: "admin"
78357
+ },
78313
78358
  "training.listJobs": {
78314
78359
  capName: "training",
78315
78360
  capScope: "system",
@@ -81687,6 +81732,32 @@ var APPLIANCE_CAP_VOCABULARY = {
81687
81732
  }],
81688
81733
  events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
81689
81734
  },
81735
+ "running-state": {
81736
+ scope: "device",
81737
+ noun: t("Running", "In funzione"),
81738
+ state: [{
81739
+ kind: "boolean",
81740
+ field: "running",
81741
+ label: t("Running", "In funzione"),
81742
+ whenTrue: t("When {device} starts", "Quando {device} inizia"),
81743
+ whenFalse: t("When {device} finishes", "Quando {device} finisce"),
81744
+ icon: "play"
81745
+ }],
81746
+ events: {
81747
+ onStarted: {
81748
+ category: EventCategory.RunningStarted,
81749
+ label: t("Started running", "Ha iniziato a funzionare"),
81750
+ phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
81751
+ icon: "play"
81752
+ },
81753
+ onFinished: {
81754
+ category: EventCategory.RunningFinished,
81755
+ label: t("Finished", "Ha finito"),
81756
+ phrase: t("When {device} finishes", "Quando {device} finisce"),
81757
+ icon: "square"
81758
+ }
81759
+ }
81760
+ },
81690
81761
  update: {
81691
81762
  scope: "device",
81692
81763
  noun: t("Firmware update", "Aggiornamento firmware"),
@@ -84914,11 +84985,6 @@ Object.freeze({
84914
84985
  form: "single",
84915
84986
  optional: false
84916
84987
  }],
84917
- "pipelineExecutor.clearModelBoundDeviceOverrides": [{
84918
- name: "deviceIds",
84919
- form: "array",
84920
- optional: true
84921
- }],
84922
84988
  "pipelineExecutor.runPipeline": [{
84923
84989
  name: "deviceId",
84924
84990
  form: "single",
@@ -84974,11 +85040,6 @@ Object.freeze({
84974
85040
  form: "array",
84975
85041
  optional: true
84976
85042
  }],
84977
- "pipelineOrchestrator.getCameraStepOverrides": [{
84978
- name: "deviceId",
84979
- form: "single",
84980
- optional: false
84981
- }],
84982
85043
  "pipelineOrchestrator.getCameraSwitches": [{
84983
85044
  name: "deviceId",
84984
85045
  form: "single",
@@ -85019,21 +85080,11 @@ Object.freeze({
85019
85080
  form: "single",
85020
85081
  optional: false
85021
85082
  }],
85022
- "pipelineOrchestrator.setCameraPipelineForAgent": [{
85023
- name: "deviceId",
85024
- form: "single",
85025
- optional: false
85026
- }],
85027
85083
  "pipelineOrchestrator.setCameraSensors": [{
85028
85084
  name: "deviceId",
85029
85085
  form: "single",
85030
85086
  optional: false
85031
85087
  }],
85032
- "pipelineOrchestrator.setCameraStepOverride": [{
85033
- name: "deviceId",
85034
- form: "single",
85035
- optional: false
85036
- }],
85037
85088
  "pipelineOrchestrator.setCameraStepSettings": [{
85038
85089
  name: "deviceId",
85039
85090
  form: "single",
@@ -85465,6 +85516,11 @@ Object.freeze({
85465
85516
  form: "single",
85466
85517
  optional: true
85467
85518
  }],
85519
+ "runningState.getStatus": [{
85520
+ name: "deviceId",
85521
+ form: "single",
85522
+ optional: false
85523
+ }],
85468
85524
  "sceneMonitor.captureReference": [{
85469
85525
  name: "deviceId",
85470
85526
  form: "single",
@@ -85711,11 +85767,6 @@ Object.freeze({
85711
85767
  form: "single",
85712
85768
  optional: false
85713
85769
  }],
85714
- "training.canaryResult": [{
85715
- name: "deviceIds",
85716
- form: "array",
85717
- optional: false
85718
- }],
85719
85770
  "update.getStatus": [{
85720
85771
  name: "deviceId",
85721
85772
  form: "single",
@@ -86020,40 +86071,7 @@ var NC_AUDIO_DEFAULTS = {
86020
86071
  samplingSeconds: 10
86021
86072
  };
86022
86073
  new Set(["devices", "classes"]);
86023
- /**
86024
- * WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
86025
- * consumed by the rule ENGINE and by every rule EDITOR.
86026
- *
86027
- * ── The failure this file exists for ───────────────────────────────────────
86028
- * `NcSystemEventConditionSchema` carries four optional narrowing lists
86029
- * (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
86030
- * `kinds` gate. They are not four filters over one vocabulary: each belongs to
86031
- * a FAMILY of kinds and is meaningless outside it. A node going away has no
86032
- * device type; a completed export has no package; `stream-offline` deliberately
86033
- * carries no device type at all (a stream belongs to a camera by construction).
86034
- *
86035
- * The engine applied all four to every kind, so a filter from one family failed
86036
- * a kind from another family CLOSED. The operator's live rule "Eventi di
86037
- * sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
86038
- * way to say "only my cameras" about the two liveness kinds — and NINE of the
86039
- * eleven silently stopped being deliverable. Four days of history contained
86040
- * `device-online` and `device-offline` and nothing else, across a window in
86041
- * which agents were restarted and addons were updated.
86042
- *
86043
- * Both editors already computed this scoping, to decide which filter boxes to
86044
- * render; the cap's own docblock already promised it ("Narrow a `device-*` kind
86045
- * to these device TYPES"). Only the engine disagreed, and it disagreed in the
86046
- * destructive direction. So the rule is stated ONCE, here, and the engine and
86047
- * the editors are readers of it rather than three independent authors.
86048
- *
86049
- * ── The direction ─────────────────────────────────────────────────────────
86050
- * Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
86051
- * hides a box has already told the operator this filter does not speak about
86052
- * these kinds, so honouring it as an exclusion contradicts the only
86053
- * explanation the operator was ever given. Inside its family the filter still
86054
- * narrows, and still fails CLOSED on a subject that cannot produce the identity
86055
- * it tests (a device the mirror cannot name is not evidence of a camera).
86056
- */
86074
+ new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
86057
86075
  /**
86058
86076
  * Every filter, for the callers that must cover all of them (guards, tests).
86059
86077
  *
@@ -86079,9 +86097,6 @@ new Map(Object.entries({
86079
86097
  "device-battery-normal": "device-events",
86080
86098
  "device-consumable-low": "device-events",
86081
86099
  "device-consumable-normal": "device-events",
86082
- "device-tank-low": "device-events",
86083
- "device-tank-full": "device-events",
86084
- "device-tank-normal": "device-events",
86085
86100
  "stream-online": "device-events",
86086
86101
  "stream-offline": "device-events",
86087
86102
  "detection-blind": "device-events",
@@ -86158,16 +86173,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
86158
86173
  label: "Consumables",
86159
86174
  kinds: ["device-consumable-low", "device-consumable-normal"]
86160
86175
  },
86161
- {
86162
- id: "tanks",
86163
- family: "device-events",
86164
- label: "Tanks",
86165
- kinds: [
86166
- "device-tank-low",
86167
- "device-tank-full",
86168
- "device-tank-normal"
86169
- ]
86170
- },
86171
86176
  {
86172
86177
  id: "detection-blind",
86173
86178
  family: "device-events",
@@ -86325,11 +86330,6 @@ var RULE_BODY_ONLY = ["body"];
86325
86330
  var RULE_TEXT = ["title", "body"];
86326
86331
  var BATTERY = ["device-battery-low", "device-battery-normal"];
86327
86332
  var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
86328
- var TANK = [
86329
- "device-tank-low",
86330
- "device-tank-full",
86331
- "device-tank-normal"
86332
- ];
86333
86333
  var ALERT_EPISODE = [
86334
86334
  "alert-critical",
86335
86335
  "alert-error",
@@ -86361,7 +86361,6 @@ var DEVICE_EVENTS = [
86361
86361
  "device-enabled",
86362
86362
  ...BATTERY,
86363
86363
  ...CONSUMABLE,
86364
- ...TANK,
86365
86364
  "stream-online",
86366
86365
  "stream-offline",
86367
86366
  "detection-blind",
@@ -86407,12 +86406,6 @@ var STATE_SUMMARY_SECTION_VARS = [
86407
86406
  example: "Robot — filter 10 %",
86408
86407
  kinds: CONSUMABLE
86409
86408
  },
86410
- {
86411
- name: "summaryTanks",
86412
- label: "Summary: tanks",
86413
- example: "Robot — clean water low",
86414
- kinds: TANK
86415
- },
86416
86409
  {
86417
86410
  name: "summaryDetection",
86418
86411
  label: "Summary: cameras detecting nothing",
@@ -86528,8 +86521,7 @@ var STATE_SUMMARY_VARS = [
86528
86521
  ([...RULE_TEXT], [...COMBINED_ALARM]),
86529
86522
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
86530
86523
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
86531
- ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
86532
- ([...RULE_TEXT], [...TANK]),
86524
+ ([...RULE_TEXT], [...CONSUMABLE]),
86533
86525
  [...RULE_TEXT],
86534
86526
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
86535
86527
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -86633,15 +86625,6 @@ new Map([
86633
86625
  snapshotLabel: "Consumables low now",
86634
86626
  snapshotSection: "consumables"
86635
86627
  },
86636
- {
86637
- id: "tanks",
86638
- family: "device-events",
86639
- label: "Tanks (low or full / back to normal)",
86640
- bad: ["device-tank-low", "device-tank-full"],
86641
- recovery: ["device-tank-normal"],
86642
- snapshotLabel: "Tanks low or full now",
86643
- snapshotSection: "tanks"
86644
- },
86645
86628
  {
86646
86629
  id: "motion-noise",
86647
86630
  family: "device-events",
@@ -87094,6 +87077,10 @@ MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
87094
87077
  function providerMotionEvent(source, data) {
87095
87078
  return createEvent(EventCategory.ProviderMotion, source, data);
87096
87079
  }
87080
+ Object.freeze({
87081
+ person: .8,
87082
+ vehicle: .8
87083
+ });
87097
87084
  object({
87098
87085
  /**
87099
87086
  * Fraction of the box's own size added on EACH side before cutting.