@camstack/addon-agent-ui 1.2.158 → 1.2.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/addon.js +89 -5
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -18357,8 +18357,14 @@ var NcSensorTransitionSchema = _enum(["raised", "cleared"]);
18357
18357
  /** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
18358
18358
  var NcZoneConditionSchema = object({
18359
18359
  ids: array(string().min(1)).min(1),
18360
- /** Quantifier over `ids` — at least one / every one visited. */
18361
- match: _enum(["any", "all"]).default("any")
18360
+ /**
18361
+ * LEGACY quantifier over `ids`. Absent = `any` (at least one visited), which
18362
+ * is what both editors mean and all they write since D690: "all of" was
18363
+ * removed from the editors because on an immediate rule it asked one
18364
+ * detection to stand in every zone at once. Still ACCEPTED, and `all` still
18365
+ * evaluated, so a stored rule keeps parsing and meaning what it meant.
18366
+ */
18367
+ match: _enum(["any", "all"]).optional()
18362
18368
  });
18363
18369
  /**
18364
18370
  * The P1 condition set — a flat AND of groups; absent group = pass;
@@ -22138,7 +22144,8 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22138
22144
  trackIds: array(string()).min(1)
22139
22145
  }), object({
22140
22146
  deleted: number().int(),
22141
- failed: array(string()).readonly()
22147
+ failed: array(string()).readonly(),
22148
+ sparedMediaIds: array(number().int()).readonly().optional()
22142
22149
  }), {
22143
22150
  kind: "mutation",
22144
22151
  auth: "admin"
@@ -24327,7 +24334,42 @@ var SetCameraSensorsInputSchema = object({
24327
24334
  /** `null` removes the attachment: the camera goes back to `not-configured`. */
24328
24335
  config: CameraSensorsConfigSchema.nullable()
24329
24336
  });
24330
- method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
24337
+ /**
24338
+ * Why an early occupancy look (D691) was not scheduled.
24339
+ *
24340
+ * - `unknown-camera` — no session was ever dispatched for it, so there is no
24341
+ * node and no config to attach a burst with.
24342
+ * - `out-of-range` — the ask is negative or further out than the orchestrator
24343
+ * will hold a timer for; the parked-object cadence is the answer there.
24344
+ * - `no-burst-producer` — this build has no burst producer at all.
24345
+ * - `already-looked` — this camera's ONE early look since its last session has
24346
+ * been spent. A look's own burst can re-arm a flickering flip, and a look
24347
+ * per arm would chain a burst every ~30 s forever (review H2); the next
24348
+ * real session re-arms the budget.
24349
+ */
24350
+ var OccupancyLookRefusalSchema = _enum([
24351
+ "unknown-camera",
24352
+ "out-of-range",
24353
+ "no-burst-producer",
24354
+ "already-looked"
24355
+ ]);
24356
+ method(object({
24357
+ deviceId: number().int().nonnegative(),
24358
+ /** How long from NOW until the pending flip's sustain window ends. RELATIVE,
24359
+ * so the caller's clock and the orchestrator's never have to agree. */
24360
+ afterMs: number().finite(),
24361
+ /** Why, for the log. */
24362
+ reason: string()
24363
+ }), object({
24364
+ scheduled: boolean(),
24365
+ /** When `scheduled`: how long until the burst is dialled. */
24366
+ dueInMs: number().optional(),
24367
+ /** When not `scheduled`: why. */
24368
+ refusedBecause: OccupancyLookRefusalSchema.optional()
24369
+ }), {
24370
+ kind: "mutation",
24371
+ auth: "admin"
24372
+ }), method(StorageMigrationLeaseInputSchema, object({ paused: literal(true) }), {
24331
24373
  kind: "mutation",
24332
24374
  auth: "admin"
24333
24375
  }), method(StorageMigrationLeaseInputSchema, object({ resumed: literal(true) }), {
@@ -41455,6 +41497,12 @@ Object.freeze({
41455
41497
  addonId: null,
41456
41498
  access: "delete"
41457
41499
  },
41500
+ "pipelineOrchestrator.requestOccupancyLook": {
41501
+ capName: "pipeline-orchestrator",
41502
+ capScope: "system",
41503
+ addonId: null,
41504
+ access: "create"
41505
+ },
41458
41506
  "pipelineOrchestrator.resetNodePipelineDefaults": {
41459
41507
  capName: "pipeline-orchestrator",
41460
41508
  capScope: "system",
@@ -45247,6 +45295,11 @@ Object.freeze({
45247
45295
  form: "single",
45248
45296
  optional: false
45249
45297
  }],
45298
+ "pipelineOrchestrator.requestOccupancyLook": [{
45299
+ name: "deviceId",
45300
+ form: "single",
45301
+ optional: false
45302
+ }],
45250
45303
  "pipelineOrchestrator.resolvePipeline": [{
45251
45304
  name: "deviceId",
45252
45305
  form: "single",
@@ -46484,6 +46537,37 @@ var STATE_SUMMARY_VARS = [
46484
46537
  [...RULE_TEXT],
46485
46538
  ...STATE_SUMMARY_VARS
46486
46539
  ];
46540
+ new Set([
46541
+ "disarmed",
46542
+ "armed_home",
46543
+ "armed_away",
46544
+ "armed_night",
46545
+ "armed_vacation",
46546
+ "armed_custom_bypass",
46547
+ "arming",
46548
+ "disarming",
46549
+ "pending",
46550
+ "triggered",
46551
+ "open",
46552
+ "opening",
46553
+ "closing",
46554
+ "closed",
46555
+ "stopped",
46556
+ "locked",
46557
+ "unlocked",
46558
+ "locking",
46559
+ "unlocking",
46560
+ "jammed",
46561
+ "on",
46562
+ "off",
46563
+ "home",
46564
+ "not_home",
46565
+ "matched",
46566
+ "diverged",
46567
+ "unknown",
46568
+ "latched",
46569
+ "live"
46570
+ ]);
46487
46571
  /**
46488
46572
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
46489
46573
  *
@@ -46918,7 +47002,7 @@ var AgentUIAddon = class extends BaseAddon {
46918
47002
  capability: adminUiCapability,
46919
47003
  provider: {
46920
47004
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
46921
- getVersion: async () => ({ version: "1.2.158" })
47005
+ getVersion: async () => ({ version: "1.2.159" })
46922
47006
  }
46923
47007
  }];
46924
47008
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.158",
3
+ "version": "1.2.159",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",