@camstack/addon-provider-ecowitt 0.2.131 → 0.2.132

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 (3) hide show
  1. package/dist/addon.js +332 -40
  2. package/dist/addon.mjs +332 -40
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5417,7 +5417,7 @@ var ZodIssueCode$1 = {
5417
5417
  var ZodFirstPartyTypeKind$1;
5418
5418
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5419
5419
  //#endregion
5420
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5420
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5421
5421
  /**
5422
5422
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5423
5423
  * window to float samples (D455).
@@ -17011,7 +17011,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17011
17011
  kind: literal("node"),
17012
17012
  nodeId: string().min(1)
17013
17013
  })]);
17014
+ /**
17015
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17016
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17017
+ * meaning); a rollup keeps the time spent in each state (`states`).
17018
+ */
17014
17019
  var DeviceHistoryKindSchema = _enum([
17020
+ "gauge",
17021
+ "counter",
17022
+ "boolean",
17023
+ "enum"
17024
+ ]);
17025
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17026
+ var DeviceHistoryProducerKindSchema = _enum([
17015
17027
  "gauge",
17016
17028
  "counter",
17017
17029
  "boolean"
@@ -17048,7 +17060,13 @@ var SeriesInfoSchema = object({
17048
17060
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17049
17061
  unit: string().nullable(),
17050
17062
  displayName: string(),
17051
- source: _enum(["cap", "addon"]),
17063
+ source: _enum([
17064
+ "cap",
17065
+ "addon",
17066
+ "derived"
17067
+ ]),
17068
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17069
+ values: array(string()).readonly().nullable(),
17052
17070
  firstTs: number(),
17053
17071
  lastTs: number()
17054
17072
  });
@@ -17062,17 +17080,31 @@ var QueryPointSchema = object({
17062
17080
  twMean: number().nullable(),
17063
17081
  min: number(),
17064
17082
  max: number(),
17065
- /** `null` is unknown, never zero (D393). */
17066
- last: number().nullable()
17083
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17084
+ last: number().nullable(),
17085
+ /**
17086
+ * The increase over the point: a `counter`'s growth since the previous point
17087
+ * or bucket (a drop is a reset, counted from zero), and for
17088
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17089
+ * every other kind, and when it cannot be known.
17090
+ */
17091
+ delta: number().nullable(),
17092
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17093
+ state: string().nullable(),
17094
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17095
+ states: record(string(), number()).nullable()
17067
17096
  });
17068
17097
  var QuerySeriesSchema = object({
17069
17098
  scope: string(),
17070
17099
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17071
17100
  before: object({
17072
17101
  t: number(),
17073
- value: number().nullable()
17102
+ value: number().nullable(),
17103
+ state: string().nullable()
17074
17104
  }).nullable(),
17075
- points: array(QueryPointSchema).readonly()
17105
+ points: array(QueryPointSchema).readonly(),
17106
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17107
+ derivedFrom: string().nullable()
17076
17108
  });
17077
17109
  /** The window part of a query, shared by the device and node forms. */
17078
17110
  var QueryWindowShape = {
@@ -17088,6 +17120,23 @@ var QueryResultSchema = object({
17088
17120
  series: array(QuerySeriesSchema).readonly(),
17089
17121
  truncated: boolean()
17090
17122
  });
17123
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17124
+ var QueryManyItemSchema = union([object({
17125
+ deviceId: number().int(),
17126
+ key: string(),
17127
+ scope: string().optional()
17128
+ }), object({
17129
+ forNodeId: string().min(1),
17130
+ key: string(),
17131
+ scope: string().optional()
17132
+ })]);
17133
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17134
+ ok: literal(true),
17135
+ result: QueryResultSchema
17136
+ }), object({
17137
+ ok: literal(false),
17138
+ error: string()
17139
+ })]);
17091
17140
  var TierStatusSchema = object({
17092
17141
  tier: DeviceHistoryResolutionSchema,
17093
17142
  /** `null` until the first background count answered. */
@@ -17143,16 +17192,22 @@ var DeviceHistoryStatusSchema = object({
17143
17192
  lastRefreshAt: number().nullable()
17144
17193
  })
17145
17194
  });
17146
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17195
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17147
17196
  deviceId: number().int(),
17148
17197
  ...QueryWindowShape
17149
17198
  }), QueryResultSchema), method(object({
17150
- nodeId: string().min(1),
17199
+ forNodeId: string().min(1),
17151
17200
  ...QueryWindowShape
17152
17201
  }), QueryResultSchema, { auth: "admin" }), method(object({
17202
+ items: array(QueryManyItemSchema).min(1).max(24),
17203
+ from: QueryWindowShape.from,
17204
+ to: QueryWindowShape.to,
17205
+ resolution: QueryWindowShape.resolution,
17206
+ maxPoints: QueryWindowShape.maxPoints
17207
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17153
17208
  name: string().regex(/^[a-z0-9-]+$/),
17154
17209
  subjectKind: _enum(["device", "node"]),
17155
- kind: DeviceHistoryKindSchema,
17210
+ kind: DeviceHistoryProducerKindSchema,
17156
17211
  unit: string().optional(),
17157
17212
  displayName: string().min(1),
17158
17213
  ingest: _enum(["points", "buckets"])
@@ -40474,14 +40529,106 @@ var LogEntrySchema = object({
40474
40529
  meta: record(string(), unknown()).optional(),
40475
40530
  tags: record(string(), string()).optional()
40476
40531
  });
40477
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40478
- scope: array(string()).optional(),
40532
+ /**
40533
+ * A history READ against one destination (D898).
40534
+ *
40535
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40536
+ * browser applied after the limit is what made a rare device's lines
40537
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40538
+ * minted (opaque to everyone else): a file position for the rotated files, a
40539
+ * nanosecond timestamp for Loki.
40540
+ *
40541
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40542
+ * store answers `done: false` with the cursor it reached and the bytes it
40543
+ * scanned, and the caller decides whether to go on. That is what makes a long
40544
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40545
+ * flight, and not asking for the next slice ends the scan.
40546
+ */
40547
+ var LogReadQuerySchema = object({
40548
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40549
+ requestId: string().min(1).max(64).optional(),
40550
+ /** The device the line is about (`tags.deviceId`, numeric). */
40551
+ deviceId: number().int().optional(),
40552
+ /**
40553
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40554
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40555
+ */
40556
+ fromAddonId: string().min(1).max(200).optional(),
40557
+ /**
40558
+ * The emitting node: matches the agent that emitted the line, the node
40559
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40560
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40561
+ * name as "which node's provider".
40562
+ */
40563
+ fromNodeId: string().min(1).max(200).optional(),
40564
+ /** Any other tag, exact match (AND). */
40565
+ tags: record(string(), union([string(), number()])).optional(),
40566
+ /** Severity FLOOR: this level and above. */
40479
40567
  level: LogLevelSchema.optional(),
40480
- since: date().optional(),
40481
- until: date().optional(),
40482
- limit: number().optional(),
40483
- tags: record(string(), string()).optional()
40484
- }), array(LogEntrySchema).readonly());
40568
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40569
+ text: string().min(1).max(200).optional(),
40570
+ /** Epoch ms, inclusive. */
40571
+ since: number().optional(),
40572
+ /** Epoch ms, inclusive. */
40573
+ until: number().optional(),
40574
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40575
+ before: string().min(1).max(1024).optional(),
40576
+ /** Newer than this cursor (exclusive). */
40577
+ after: string().min(1).max(1024).optional(),
40578
+ limit: number().int().min(1).max(1e3).optional(),
40579
+ /** Wall-clock bound of this slice. The provider caps it. */
40580
+ budgetMs: number().int().min(50).max(1e4).optional()
40581
+ });
40582
+ var LogReadResultSchema = object({
40583
+ /** Newest first. */
40584
+ entries: array(object({
40585
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40586
+ id: string().optional(),
40587
+ /** Epoch ms. */
40588
+ timestamp: number(),
40589
+ level: LogLevelSchema,
40590
+ scope: string().optional(),
40591
+ message: string(),
40592
+ tags: record(string(), union([string(), number()])).optional(),
40593
+ meta: record(string(), unknown()).optional()
40594
+ })),
40595
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40596
+ nextBefore: string().nullable(),
40597
+ /** Pass as `after` to read what arrived since; null when unknown. */
40598
+ nextAfter: string().nullable(),
40599
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40600
+ scannedBytes: number().int().nonnegative(),
40601
+ /**
40602
+ * True when the scan in this direction reached the end of the store.
40603
+ * False with fewer than `limit` entries means the budget ran out first —
40604
+ * call again with `nextBefore` to go on.
40605
+ */
40606
+ done: boolean(),
40607
+ /** True when `cancelRead` ended this slice early. */
40608
+ cancelled: boolean().optional()
40609
+ });
40610
+ var LogReadCapabilitiesSchema = object({
40611
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40612
+ readable: boolean(),
40613
+ /** Why not, when `readable` is false — rendered next to the source. */
40614
+ reason: string().nullable(),
40615
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40616
+ filters: object({
40617
+ deviceId: boolean(),
40618
+ addonId: boolean(),
40619
+ nodeId: boolean(),
40620
+ tags: boolean(),
40621
+ level: boolean(),
40622
+ text: boolean(),
40623
+ timeRange: boolean()
40624
+ }),
40625
+ /** How far back the store reaches, when the provider knows (days). */
40626
+ retentionDays: number().nullable()
40627
+ });
40628
+ method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
40629
+ kind: "mutation",
40630
+ auth: "admin"
40631
+ });
40485
40632
  /**
40486
40633
  * `login-method` — collection cap through which auth addons contribute
40487
40634
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42199,9 +42346,11 @@ var alarmPanelCapability = {
42199
42346
  */
42200
42347
  durability: "restored",
42201
42348
  /**
42202
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42349
+ * History (D850): the panel's lifecycle state as an `enum` series —
42350
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42351
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42203
42352
  */
42204
- history: "none",
42353
+ history: { fields: { state: { kind: "enum" } } },
42205
42354
  /** Clock fields: written, but excluded from the compare that decides
42206
42355
  * whether persisting is worth a SQLite commit. */
42207
42356
  volatileStateFields: ["lastChangedAt"]
@@ -43079,6 +43228,33 @@ var NcRuleTargetSchema = object({
43079
43228
  params: record(string(), unknown()).optional()
43080
43229
  });
43081
43230
  /**
43231
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43232
+ *
43233
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43234
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43235
+ * to the zone that fired the rule) and renders it once at send time:
43236
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43237
+ * colour and every OTHER track visible at that instant outlined thin, each
43238
+ * labelled with class and confidence ("dog 87%").
43239
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43240
+ * - `clean` — the whole scene with nothing drawn on it.
43241
+ * - `none` — no picture.
43242
+ *
43243
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43244
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43245
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43246
+ * ship a crop on one event and a boxed scene on the next depending on which
43247
+ * stored kind had landed.
43248
+ */
43249
+ var NcMediaImageSchema = _enum([
43250
+ "scene-boxes",
43251
+ "crop",
43252
+ "clean",
43253
+ "none"
43254
+ ]);
43255
+ /**
43256
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43257
+ *
43082
43258
  * Media attachment policy (P1 still-image subset).
43083
43259
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43084
43260
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43092,6 +43268,8 @@ var NcRuleTargetSchema = object({
43092
43268
  * - `none` — no attachment.
43093
43269
  */
43094
43270
  /**
43271
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43272
+ *
43095
43273
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43096
43274
  * conflate it with the selection strategy and betray the request: asking for
43097
43275
  * the clean scene frame on an object-event owner used to start at
@@ -43120,16 +43298,29 @@ var NcMediaFrameSchema = _enum([
43120
43298
  */
43121
43299
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43122
43300
  var NcMediaPolicySchema = object({
43301
+ /**
43302
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43303
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43304
+ * triple below, at load and at every write, and the store keeps only this.
43305
+ */
43306
+ image: NcMediaImageSchema.optional(),
43307
+ /**
43308
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43309
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43310
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43311
+ * Replaces `zoneCrop`.
43312
+ */
43313
+ showTriggerZone: boolean().optional(),
43314
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43123
43315
  attach: _enum([
43124
43316
  "best",
43125
43317
  "best-matching",
43126
43318
  "keyFrame",
43127
43319
  "none"
43128
- ]).default("best"),
43129
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43320
+ ]).optional(),
43321
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43130
43322
  frame: NcMediaFrameSchema.optional(),
43131
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43132
- * "show me the ZONE", not the whole scene or the subject crop. */
43323
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43133
43324
  zoneCrop: boolean().optional(),
43134
43325
  /**
43135
43326
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43301,7 +43492,9 @@ var NcRuleInputSchema = object({
43301
43492
  * targets.
43302
43493
  */
43303
43494
  targetUsers: array(string()).optional(),
43304
- media: NcMediaPolicySchema.default({ attach: "best" }),
43495
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43496
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43497
+ media: NcMediaPolicySchema.default({}),
43305
43498
  throttle: NcThrottleSchema.default({
43306
43499
  cooldownSec: 60,
43307
43500
  scope: "rule-device"
@@ -44238,13 +44431,37 @@ var NcAlarmModeOpeningsSchema = object({
44238
44431
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44239
44432
  unknown: array(number().int())
44240
44433
  });
44434
+ /**
44435
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44436
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44437
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44438
+ * never looks fully armed (D62: off must never look like broken).
44439
+ */
44440
+ var NcAlarmInputBypassViewSchema = object({
44441
+ ruleId: string(),
44442
+ /** The rule's current name (its frozen name when the rule is gone). */
44443
+ ruleName: string(),
44444
+ /** The input: the sensor of the match, else its camera. */
44445
+ deviceId: number().int(),
44446
+ /** The input's current name. */
44447
+ name: string(),
44448
+ /** When it was bypassed (ms epoch). */
44449
+ since: number(),
44450
+ /** Triggers from this input dropped since. */
44451
+ dropped: number().int().min(0)
44452
+ });
44241
44453
  var NcAlarmLiveSchema = object({
44242
44454
  state: AlarmStateSchema,
44243
44455
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44244
44456
  targetMode: AlarmArmModeSchema.nullable(),
44245
44457
  availableModes: array(AlarmArmModeSchema),
44246
44458
  openings: array(NcAlarmModeOpeningsSchema),
44247
- exclusions: array(NcAlarmExclusionViewSchema)
44459
+ exclusions: array(NcAlarmExclusionViewSchema),
44460
+ /**
44461
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44462
+ * Defaulted so an older hub answer still parses (as "none known").
44463
+ */
44464
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44248
44465
  });
44249
44466
  var NcAlarmConfigSchema = object({
44250
44467
  /**
@@ -54963,9 +55180,11 @@ var connectivityCapability = {
54963
55180
  */
54964
55181
  durability: "restored",
54965
55182
  /**
54966
- * History (D850): none — duplicates device-status.online (one authority for availability).
55183
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55184
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55185
+ * device's reachability, which stays `device-status.online`.
54967
55186
  */
54968
- history: "none",
55187
+ history: { fields: { connected: { kind: "boolean" } } },
54969
55188
  /** Clock fields: written, but excluded from the compare that decides
54970
55189
  * whether persisting is worth a SQLite commit. */
54971
55190
  volatileStateFields: ["lastChangedAt"]
@@ -55789,11 +56008,22 @@ var dishwasherCapability = {
55789
56008
  },
55790
56009
  runtimeState: DishwasherStatusSchema,
55791
56010
  durability: "session",
55792
- history: { fields: { progressPercent: {
55793
- kind: "gauge",
55794
- unit: "%",
55795
- deadband: 2
55796
- } } }
56011
+ history: { fields: {
56012
+ progressPercent: {
56013
+ kind: "gauge",
56014
+ unit: "%",
56015
+ deadband: 2
56016
+ },
56017
+ state: { kind: "enum" },
56018
+ operationState: { kind: "enum" },
56019
+ remainingSeconds: {
56020
+ kind: "gauge",
56021
+ unit: "s",
56022
+ minIntervalMs: 6e4
56023
+ },
56024
+ doorOpen: { kind: "boolean" },
56025
+ powerOn: { kind: "boolean" }
56026
+ } }
55797
56027
  };
55798
56028
  var DoorbellStatusSchema = object({
55799
56029
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55910,9 +56140,15 @@ var enumSensorCapability = {
55910
56140
  */
55911
56141
  durability: "restored",
55912
56142
  /**
55913
- * History (D850): none — text/enum state has no history (non-goal).
56143
+ * History (D850): the value as an `enum` series (an appliance's program or
56144
+ * operation state, an HVAC action). The option set is per device, so the
56145
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56146
+ * `format` carries a timestamp, not a state, and is not recorded.
55914
56147
  */
55915
- history: "none",
56148
+ history: { fields: { value: {
56149
+ kind: "enum",
56150
+ skipWhenSet: "format"
56151
+ } } },
55916
56152
  /** Clock fields: written, but excluded from the compare that decides
55917
56153
  * whether persisting is worth a SQLite commit. */
55918
56154
  volatileStateFields: ["lastFetchedAt"]
@@ -57886,9 +58122,10 @@ var lockControlCapability = {
57886
58122
  */
57887
58123
  durability: "restored",
57888
58124
  /**
57889
- * History (D850): none — enum state; lock events belong in the events ledger.
58125
+ * History (D850): the lock's state as an `enum` series — change-only, no
58126
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57890
58127
  */
57891
- history: "none",
58128
+ history: { fields: { state: { kind: "enum" } } },
57892
58129
  /** Clock fields: written, but excluded from the compare that decides
57893
58130
  * whether persisting is worth a SQLite commit. */
57894
58131
  volatileStateFields: ["lastChangedAt"]
@@ -58062,9 +58299,18 @@ var mediaPlayerCapability = {
58062
58299
  */
58063
58300
  durability: "session",
58064
58301
  /**
58065
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58302
+ * History (D850): volume (a level an operator or an automation sets; the
58303
+ * default 10 s floor folds a slider drag into its end value) and mute.
58304
+ * `positionMs` is not recorded: it moves continuously while playing.
58066
58305
  */
58067
- history: "none"
58306
+ history: { fields: {
58307
+ volumeLevel: {
58308
+ kind: "gauge",
58309
+ unit: "%",
58310
+ deadband: 1
58311
+ },
58312
+ isMuted: { kind: "boolean" }
58313
+ } }
58068
58314
  };
58069
58315
  /**
58070
58316
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63357,9 +63603,29 @@ var streamParamsCapability = {
63357
63603
  */
63358
63604
  durability: "restored",
63359
63605
  /**
63360
- * History (D850): none — encoder configuration.
63606
+ * History (D850): the configured bitrate and frame rate of the main and sub
63607
+ * profiles. Configuration, so change-only on the default floor: a point is an
63608
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63609
+ * quality over time must show.
63361
63610
  */
63362
- history: "none",
63611
+ history: { fields: {
63612
+ "main.bitrate": {
63613
+ kind: "gauge",
63614
+ unit: "kbps"
63615
+ },
63616
+ "main.framerate": {
63617
+ kind: "gauge",
63618
+ unit: "fps"
63619
+ },
63620
+ "sub.bitrate": {
63621
+ kind: "gauge",
63622
+ unit: "kbps"
63623
+ },
63624
+ "sub.framerate": {
63625
+ kind: "gauge",
63626
+ unit: "fps"
63627
+ }
63628
+ } },
63363
63629
  /** Clock fields: written, but excluded from the compare that decides
63364
63630
  * whether persisting is worth a SQLite commit. */
63365
63631
  volatileStateFields: ["lastFetchedAt"]
@@ -66537,6 +66803,15 @@ var BaseDevice = class {
66537
66803
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66538
66804
  * with a typed cast.
66539
66805
  *
66806
+ * Answer what you KNOW. A plain array is read as the complete list only
66807
+ * while this device is `online` and probed; return
66808
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66809
+ * now (no credentials, parent not connected, a failed or partial read) —
66810
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66811
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66812
+ * deleted only after a second agreeing complete read on a later probe (D49;
66813
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66814
+ *
66540
66815
  * Default: no children.
66541
66816
  */
66542
66817
  getAccessoryChildren() {
@@ -70668,7 +70943,19 @@ Object.freeze({
70668
70943
  addonId: null,
70669
70944
  access: "view"
70670
70945
  },
70671
- "logDestination.query": {
70946
+ "logDestination.cancelRead": {
70947
+ capName: "log-destination",
70948
+ capScope: "system",
70949
+ addonId: null,
70950
+ access: "create"
70951
+ },
70952
+ "logDestination.describeRead": {
70953
+ capName: "log-destination",
70954
+ capScope: "system",
70955
+ addonId: null,
70956
+ access: "view"
70957
+ },
70958
+ "logDestination.read": {
70672
70959
  capName: "log-destination",
70673
70960
  capScope: "system",
70674
70961
  addonId: null,
@@ -76675,6 +76962,11 @@ Object.freeze({
76675
76962
  form: "single",
76676
76963
  optional: false
76677
76964
  }],
76965
+ "logDestination.read": [{
76966
+ name: "deviceId",
76967
+ form: "single",
76968
+ optional: true
76969
+ }],
76678
76970
  "mediaPlayer.getStatus": [{
76679
76971
  name: "deviceId",
76680
76972
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5416,7 +5416,7 @@ var ZodIssueCode$1 = {
5416
5416
  var ZodFirstPartyTypeKind$1;
5417
5417
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5418
5418
  //#endregion
5419
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5419
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5420
5420
  /**
5421
5421
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5422
5422
  * window to float samples (D455).
@@ -17010,7 +17010,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17010
17010
  kind: literal("node"),
17011
17011
  nodeId: string().min(1)
17012
17012
  })]);
17013
+ /**
17014
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17015
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17016
+ * meaning); a rollup keeps the time spent in each state (`states`).
17017
+ */
17013
17018
  var DeviceHistoryKindSchema = _enum([
17019
+ "gauge",
17020
+ "counter",
17021
+ "boolean",
17022
+ "enum"
17023
+ ]);
17024
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17025
+ var DeviceHistoryProducerKindSchema = _enum([
17014
17026
  "gauge",
17015
17027
  "counter",
17016
17028
  "boolean"
@@ -17047,7 +17059,13 @@ var SeriesInfoSchema = object({
17047
17059
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17048
17060
  unit: string().nullable(),
17049
17061
  displayName: string(),
17050
- source: _enum(["cap", "addon"]),
17062
+ source: _enum([
17063
+ "cap",
17064
+ "addon",
17065
+ "derived"
17066
+ ]),
17067
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17068
+ values: array(string()).readonly().nullable(),
17051
17069
  firstTs: number(),
17052
17070
  lastTs: number()
17053
17071
  });
@@ -17061,17 +17079,31 @@ var QueryPointSchema = object({
17061
17079
  twMean: number().nullable(),
17062
17080
  min: number(),
17063
17081
  max: number(),
17064
- /** `null` is unknown, never zero (D393). */
17065
- last: number().nullable()
17082
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17083
+ last: number().nullable(),
17084
+ /**
17085
+ * The increase over the point: a `counter`'s growth since the previous point
17086
+ * or bucket (a drop is a reset, counted from zero), and for
17087
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17088
+ * every other kind, and when it cannot be known.
17089
+ */
17090
+ delta: number().nullable(),
17091
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17092
+ state: string().nullable(),
17093
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17094
+ states: record(string(), number()).nullable()
17066
17095
  });
17067
17096
  var QuerySeriesSchema = object({
17068
17097
  scope: string(),
17069
17098
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17070
17099
  before: object({
17071
17100
  t: number(),
17072
- value: number().nullable()
17101
+ value: number().nullable(),
17102
+ state: string().nullable()
17073
17103
  }).nullable(),
17074
- points: array(QueryPointSchema).readonly()
17104
+ points: array(QueryPointSchema).readonly(),
17105
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17106
+ derivedFrom: string().nullable()
17075
17107
  });
17076
17108
  /** The window part of a query, shared by the device and node forms. */
17077
17109
  var QueryWindowShape = {
@@ -17087,6 +17119,23 @@ var QueryResultSchema = object({
17087
17119
  series: array(QuerySeriesSchema).readonly(),
17088
17120
  truncated: boolean()
17089
17121
  });
17122
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17123
+ var QueryManyItemSchema = union([object({
17124
+ deviceId: number().int(),
17125
+ key: string(),
17126
+ scope: string().optional()
17127
+ }), object({
17128
+ forNodeId: string().min(1),
17129
+ key: string(),
17130
+ scope: string().optional()
17131
+ })]);
17132
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17133
+ ok: literal(true),
17134
+ result: QueryResultSchema
17135
+ }), object({
17136
+ ok: literal(false),
17137
+ error: string()
17138
+ })]);
17090
17139
  var TierStatusSchema = object({
17091
17140
  tier: DeviceHistoryResolutionSchema,
17092
17141
  /** `null` until the first background count answered. */
@@ -17142,16 +17191,22 @@ var DeviceHistoryStatusSchema = object({
17142
17191
  lastRefreshAt: number().nullable()
17143
17192
  })
17144
17193
  });
17145
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17194
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17146
17195
  deviceId: number().int(),
17147
17196
  ...QueryWindowShape
17148
17197
  }), QueryResultSchema), method(object({
17149
- nodeId: string().min(1),
17198
+ forNodeId: string().min(1),
17150
17199
  ...QueryWindowShape
17151
17200
  }), QueryResultSchema, { auth: "admin" }), method(object({
17201
+ items: array(QueryManyItemSchema).min(1).max(24),
17202
+ from: QueryWindowShape.from,
17203
+ to: QueryWindowShape.to,
17204
+ resolution: QueryWindowShape.resolution,
17205
+ maxPoints: QueryWindowShape.maxPoints
17206
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17152
17207
  name: string().regex(/^[a-z0-9-]+$/),
17153
17208
  subjectKind: _enum(["device", "node"]),
17154
- kind: DeviceHistoryKindSchema,
17209
+ kind: DeviceHistoryProducerKindSchema,
17155
17210
  unit: string().optional(),
17156
17211
  displayName: string().min(1),
17157
17212
  ingest: _enum(["points", "buckets"])
@@ -40473,14 +40528,106 @@ var LogEntrySchema = object({
40473
40528
  meta: record(string(), unknown()).optional(),
40474
40529
  tags: record(string(), string()).optional()
40475
40530
  });
40476
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40477
- scope: array(string()).optional(),
40531
+ /**
40532
+ * A history READ against one destination (D898).
40533
+ *
40534
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40535
+ * browser applied after the limit is what made a rare device's lines
40536
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40537
+ * minted (opaque to everyone else): a file position for the rotated files, a
40538
+ * nanosecond timestamp for Loki.
40539
+ *
40540
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40541
+ * store answers `done: false` with the cursor it reached and the bytes it
40542
+ * scanned, and the caller decides whether to go on. That is what makes a long
40543
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40544
+ * flight, and not asking for the next slice ends the scan.
40545
+ */
40546
+ var LogReadQuerySchema = object({
40547
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40548
+ requestId: string().min(1).max(64).optional(),
40549
+ /** The device the line is about (`tags.deviceId`, numeric). */
40550
+ deviceId: number().int().optional(),
40551
+ /**
40552
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40553
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40554
+ */
40555
+ fromAddonId: string().min(1).max(200).optional(),
40556
+ /**
40557
+ * The emitting node: matches the agent that emitted the line, the node
40558
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40559
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40560
+ * name as "which node's provider".
40561
+ */
40562
+ fromNodeId: string().min(1).max(200).optional(),
40563
+ /** Any other tag, exact match (AND). */
40564
+ tags: record(string(), union([string(), number()])).optional(),
40565
+ /** Severity FLOOR: this level and above. */
40478
40566
  level: LogLevelSchema.optional(),
40479
- since: date().optional(),
40480
- until: date().optional(),
40481
- limit: number().optional(),
40482
- tags: record(string(), string()).optional()
40483
- }), array(LogEntrySchema).readonly());
40567
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40568
+ text: string().min(1).max(200).optional(),
40569
+ /** Epoch ms, inclusive. */
40570
+ since: number().optional(),
40571
+ /** Epoch ms, inclusive. */
40572
+ until: number().optional(),
40573
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40574
+ before: string().min(1).max(1024).optional(),
40575
+ /** Newer than this cursor (exclusive). */
40576
+ after: string().min(1).max(1024).optional(),
40577
+ limit: number().int().min(1).max(1e3).optional(),
40578
+ /** Wall-clock bound of this slice. The provider caps it. */
40579
+ budgetMs: number().int().min(50).max(1e4).optional()
40580
+ });
40581
+ var LogReadResultSchema = object({
40582
+ /** Newest first. */
40583
+ entries: array(object({
40584
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40585
+ id: string().optional(),
40586
+ /** Epoch ms. */
40587
+ timestamp: number(),
40588
+ level: LogLevelSchema,
40589
+ scope: string().optional(),
40590
+ message: string(),
40591
+ tags: record(string(), union([string(), number()])).optional(),
40592
+ meta: record(string(), unknown()).optional()
40593
+ })),
40594
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40595
+ nextBefore: string().nullable(),
40596
+ /** Pass as `after` to read what arrived since; null when unknown. */
40597
+ nextAfter: string().nullable(),
40598
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40599
+ scannedBytes: number().int().nonnegative(),
40600
+ /**
40601
+ * True when the scan in this direction reached the end of the store.
40602
+ * False with fewer than `limit` entries means the budget ran out first —
40603
+ * call again with `nextBefore` to go on.
40604
+ */
40605
+ done: boolean(),
40606
+ /** True when `cancelRead` ended this slice early. */
40607
+ cancelled: boolean().optional()
40608
+ });
40609
+ var LogReadCapabilitiesSchema = object({
40610
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40611
+ readable: boolean(),
40612
+ /** Why not, when `readable` is false — rendered next to the source. */
40613
+ reason: string().nullable(),
40614
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40615
+ filters: object({
40616
+ deviceId: boolean(),
40617
+ addonId: boolean(),
40618
+ nodeId: boolean(),
40619
+ tags: boolean(),
40620
+ level: boolean(),
40621
+ text: boolean(),
40622
+ timeRange: boolean()
40623
+ }),
40624
+ /** How far back the store reaches, when the provider knows (days). */
40625
+ retentionDays: number().nullable()
40626
+ });
40627
+ method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
40628
+ kind: "mutation",
40629
+ auth: "admin"
40630
+ });
40484
40631
  /**
40485
40632
  * `login-method` — collection cap through which auth addons contribute
40486
40633
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42198,9 +42345,11 @@ var alarmPanelCapability = {
42198
42345
  */
42199
42346
  durability: "restored",
42200
42347
  /**
42201
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42348
+ * History (D850): the panel's lifecycle state as an `enum` series —
42349
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42350
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42202
42351
  */
42203
- history: "none",
42352
+ history: { fields: { state: { kind: "enum" } } },
42204
42353
  /** Clock fields: written, but excluded from the compare that decides
42205
42354
  * whether persisting is worth a SQLite commit. */
42206
42355
  volatileStateFields: ["lastChangedAt"]
@@ -43078,6 +43227,33 @@ var NcRuleTargetSchema = object({
43078
43227
  params: record(string(), unknown()).optional()
43079
43228
  });
43080
43229
  /**
43230
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43231
+ *
43232
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43233
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43234
+ * to the zone that fired the rule) and renders it once at send time:
43235
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43236
+ * colour and every OTHER track visible at that instant outlined thin, each
43237
+ * labelled with class and confidence ("dog 87%").
43238
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43239
+ * - `clean` — the whole scene with nothing drawn on it.
43240
+ * - `none` — no picture.
43241
+ *
43242
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43243
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43244
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43245
+ * ship a crop on one event and a boxed scene on the next depending on which
43246
+ * stored kind had landed.
43247
+ */
43248
+ var NcMediaImageSchema = _enum([
43249
+ "scene-boxes",
43250
+ "crop",
43251
+ "clean",
43252
+ "none"
43253
+ ]);
43254
+ /**
43255
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43256
+ *
43081
43257
  * Media attachment policy (P1 still-image subset).
43082
43258
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43083
43259
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43091,6 +43267,8 @@ var NcRuleTargetSchema = object({
43091
43267
  * - `none` — no attachment.
43092
43268
  */
43093
43269
  /**
43270
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43271
+ *
43094
43272
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43095
43273
  * conflate it with the selection strategy and betray the request: asking for
43096
43274
  * the clean scene frame on an object-event owner used to start at
@@ -43119,16 +43297,29 @@ var NcMediaFrameSchema = _enum([
43119
43297
  */
43120
43298
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43121
43299
  var NcMediaPolicySchema = object({
43300
+ /**
43301
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43302
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43303
+ * triple below, at load and at every write, and the store keeps only this.
43304
+ */
43305
+ image: NcMediaImageSchema.optional(),
43306
+ /**
43307
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43308
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43309
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43310
+ * Replaces `zoneCrop`.
43311
+ */
43312
+ showTriggerZone: boolean().optional(),
43313
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43122
43314
  attach: _enum([
43123
43315
  "best",
43124
43316
  "best-matching",
43125
43317
  "keyFrame",
43126
43318
  "none"
43127
- ]).default("best"),
43128
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43319
+ ]).optional(),
43320
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43129
43321
  frame: NcMediaFrameSchema.optional(),
43130
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43131
- * "show me the ZONE", not the whole scene or the subject crop. */
43322
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43132
43323
  zoneCrop: boolean().optional(),
43133
43324
  /**
43134
43325
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43300,7 +43491,9 @@ var NcRuleInputSchema = object({
43300
43491
  * targets.
43301
43492
  */
43302
43493
  targetUsers: array(string()).optional(),
43303
- media: NcMediaPolicySchema.default({ attach: "best" }),
43494
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43495
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43496
+ media: NcMediaPolicySchema.default({}),
43304
43497
  throttle: NcThrottleSchema.default({
43305
43498
  cooldownSec: 60,
43306
43499
  scope: "rule-device"
@@ -44237,13 +44430,37 @@ var NcAlarmModeOpeningsSchema = object({
44237
44430
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44238
44431
  unknown: array(number().int())
44239
44432
  });
44433
+ /**
44434
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44435
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44436
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44437
+ * never looks fully armed (D62: off must never look like broken).
44438
+ */
44439
+ var NcAlarmInputBypassViewSchema = object({
44440
+ ruleId: string(),
44441
+ /** The rule's current name (its frozen name when the rule is gone). */
44442
+ ruleName: string(),
44443
+ /** The input: the sensor of the match, else its camera. */
44444
+ deviceId: number().int(),
44445
+ /** The input's current name. */
44446
+ name: string(),
44447
+ /** When it was bypassed (ms epoch). */
44448
+ since: number(),
44449
+ /** Triggers from this input dropped since. */
44450
+ dropped: number().int().min(0)
44451
+ });
44240
44452
  var NcAlarmLiveSchema = object({
44241
44453
  state: AlarmStateSchema,
44242
44454
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44243
44455
  targetMode: AlarmArmModeSchema.nullable(),
44244
44456
  availableModes: array(AlarmArmModeSchema),
44245
44457
  openings: array(NcAlarmModeOpeningsSchema),
44246
- exclusions: array(NcAlarmExclusionViewSchema)
44458
+ exclusions: array(NcAlarmExclusionViewSchema),
44459
+ /**
44460
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44461
+ * Defaulted so an older hub answer still parses (as "none known").
44462
+ */
44463
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44247
44464
  });
44248
44465
  var NcAlarmConfigSchema = object({
44249
44466
  /**
@@ -54962,9 +55179,11 @@ var connectivityCapability = {
54962
55179
  */
54963
55180
  durability: "restored",
54964
55181
  /**
54965
- * History (D850): none — duplicates device-status.online (one authority for availability).
55182
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55183
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55184
+ * device's reachability, which stays `device-status.online`.
54966
55185
  */
54967
- history: "none",
55186
+ history: { fields: { connected: { kind: "boolean" } } },
54968
55187
  /** Clock fields: written, but excluded from the compare that decides
54969
55188
  * whether persisting is worth a SQLite commit. */
54970
55189
  volatileStateFields: ["lastChangedAt"]
@@ -55788,11 +56007,22 @@ var dishwasherCapability = {
55788
56007
  },
55789
56008
  runtimeState: DishwasherStatusSchema,
55790
56009
  durability: "session",
55791
- history: { fields: { progressPercent: {
55792
- kind: "gauge",
55793
- unit: "%",
55794
- deadband: 2
55795
- } } }
56010
+ history: { fields: {
56011
+ progressPercent: {
56012
+ kind: "gauge",
56013
+ unit: "%",
56014
+ deadband: 2
56015
+ },
56016
+ state: { kind: "enum" },
56017
+ operationState: { kind: "enum" },
56018
+ remainingSeconds: {
56019
+ kind: "gauge",
56020
+ unit: "s",
56021
+ minIntervalMs: 6e4
56022
+ },
56023
+ doorOpen: { kind: "boolean" },
56024
+ powerOn: { kind: "boolean" }
56025
+ } }
55796
56026
  };
55797
56027
  var DoorbellStatusSchema = object({
55798
56028
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55909,9 +56139,15 @@ var enumSensorCapability = {
55909
56139
  */
55910
56140
  durability: "restored",
55911
56141
  /**
55912
- * History (D850): none — text/enum state has no history (non-goal).
56142
+ * History (D850): the value as an `enum` series (an appliance's program or
56143
+ * operation state, an HVAC action). The option set is per device, so the
56144
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56145
+ * `format` carries a timestamp, not a state, and is not recorded.
55913
56146
  */
55914
- history: "none",
56147
+ history: { fields: { value: {
56148
+ kind: "enum",
56149
+ skipWhenSet: "format"
56150
+ } } },
55915
56151
  /** Clock fields: written, but excluded from the compare that decides
55916
56152
  * whether persisting is worth a SQLite commit. */
55917
56153
  volatileStateFields: ["lastFetchedAt"]
@@ -57885,9 +58121,10 @@ var lockControlCapability = {
57885
58121
  */
57886
58122
  durability: "restored",
57887
58123
  /**
57888
- * History (D850): none — enum state; lock events belong in the events ledger.
58124
+ * History (D850): the lock's state as an `enum` series — change-only, no
58125
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57889
58126
  */
57890
- history: "none",
58127
+ history: { fields: { state: { kind: "enum" } } },
57891
58128
  /** Clock fields: written, but excluded from the compare that decides
57892
58129
  * whether persisting is worth a SQLite commit. */
57893
58130
  volatileStateFields: ["lastChangedAt"]
@@ -58061,9 +58298,18 @@ var mediaPlayerCapability = {
58061
58298
  */
58062
58299
  durability: "session",
58063
58300
  /**
58064
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58301
+ * History (D850): volume (a level an operator or an automation sets; the
58302
+ * default 10 s floor folds a slider drag into its end value) and mute.
58303
+ * `positionMs` is not recorded: it moves continuously while playing.
58065
58304
  */
58066
- history: "none"
58305
+ history: { fields: {
58306
+ volumeLevel: {
58307
+ kind: "gauge",
58308
+ unit: "%",
58309
+ deadband: 1
58310
+ },
58311
+ isMuted: { kind: "boolean" }
58312
+ } }
58067
58313
  };
58068
58314
  /**
58069
58315
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63356,9 +63602,29 @@ var streamParamsCapability = {
63356
63602
  */
63357
63603
  durability: "restored",
63358
63604
  /**
63359
- * History (D850): none — encoder configuration.
63605
+ * History (D850): the configured bitrate and frame rate of the main and sub
63606
+ * profiles. Configuration, so change-only on the default floor: a point is an
63607
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63608
+ * quality over time must show.
63360
63609
  */
63361
- history: "none",
63610
+ history: { fields: {
63611
+ "main.bitrate": {
63612
+ kind: "gauge",
63613
+ unit: "kbps"
63614
+ },
63615
+ "main.framerate": {
63616
+ kind: "gauge",
63617
+ unit: "fps"
63618
+ },
63619
+ "sub.bitrate": {
63620
+ kind: "gauge",
63621
+ unit: "kbps"
63622
+ },
63623
+ "sub.framerate": {
63624
+ kind: "gauge",
63625
+ unit: "fps"
63626
+ }
63627
+ } },
63362
63628
  /** Clock fields: written, but excluded from the compare that decides
63363
63629
  * whether persisting is worth a SQLite commit. */
63364
63630
  volatileStateFields: ["lastFetchedAt"]
@@ -66536,6 +66802,15 @@ var BaseDevice = class {
66536
66802
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66537
66803
  * with a typed cast.
66538
66804
  *
66805
+ * Answer what you KNOW. A plain array is read as the complete list only
66806
+ * while this device is `online` and probed; return
66807
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66808
+ * now (no credentials, parent not connected, a failed or partial read) —
66809
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66810
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66811
+ * deleted only after a second agreeing complete read on a later probe (D49;
66812
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66813
+ *
66539
66814
  * Default: no children.
66540
66815
  */
66541
66816
  getAccessoryChildren() {
@@ -70667,7 +70942,19 @@ Object.freeze({
70667
70942
  addonId: null,
70668
70943
  access: "view"
70669
70944
  },
70670
- "logDestination.query": {
70945
+ "logDestination.cancelRead": {
70946
+ capName: "log-destination",
70947
+ capScope: "system",
70948
+ addonId: null,
70949
+ access: "create"
70950
+ },
70951
+ "logDestination.describeRead": {
70952
+ capName: "log-destination",
70953
+ capScope: "system",
70954
+ addonId: null,
70955
+ access: "view"
70956
+ },
70957
+ "logDestination.read": {
70671
70958
  capName: "log-destination",
70672
70959
  capScope: "system",
70673
70960
  addonId: null,
@@ -76674,6 +76961,11 @@ Object.freeze({
76674
76961
  form: "single",
76675
76962
  optional: false
76676
76963
  }],
76964
+ "logDestination.read": [{
76965
+ name: "deviceId",
76966
+ form: "single",
76967
+ optional: true
76968
+ }],
76677
76969
  "mediaPlayer.getStatus": [{
76678
76970
  name: "deviceId",
76679
76971
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-ecowitt",
3
- "version": "0.2.131",
3
+ "version": "0.2.132",
4
4
  "description": "Ecowitt weather-station device-provider addon for CamStack — wraps the @apocaliss92/nodewitt local-poll / push client",
5
5
  "keywords": [
6
6
  "camstack",