@camstack/addon-import-alexa 0.2.132 → 0.2.133

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
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5589
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -17551,7 +17551,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17551
17551
  kind: literal("node"),
17552
17552
  nodeId: string().min(1)
17553
17553
  })]);
17554
+ /**
17555
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17556
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17557
+ * meaning); a rollup keeps the time spent in each state (`states`).
17558
+ */
17554
17559
  var DeviceHistoryKindSchema = _enum([
17560
+ "gauge",
17561
+ "counter",
17562
+ "boolean",
17563
+ "enum"
17564
+ ]);
17565
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17566
+ var DeviceHistoryProducerKindSchema = _enum([
17555
17567
  "gauge",
17556
17568
  "counter",
17557
17569
  "boolean"
@@ -17588,7 +17600,13 @@ var SeriesInfoSchema = object({
17588
17600
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17589
17601
  unit: string().nullable(),
17590
17602
  displayName: string(),
17591
- source: _enum(["cap", "addon"]),
17603
+ source: _enum([
17604
+ "cap",
17605
+ "addon",
17606
+ "derived"
17607
+ ]),
17608
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17609
+ values: array(string()).readonly().nullable(),
17592
17610
  firstTs: number(),
17593
17611
  lastTs: number()
17594
17612
  });
@@ -17602,17 +17620,31 @@ var QueryPointSchema = object({
17602
17620
  twMean: number().nullable(),
17603
17621
  min: number(),
17604
17622
  max: number(),
17605
- /** `null` is unknown, never zero (D393). */
17606
- last: number().nullable()
17623
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17624
+ last: number().nullable(),
17625
+ /**
17626
+ * The increase over the point: a `counter`'s growth since the previous point
17627
+ * or bucket (a drop is a reset, counted from zero), and for
17628
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17629
+ * every other kind, and when it cannot be known.
17630
+ */
17631
+ delta: number().nullable(),
17632
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17633
+ state: string().nullable(),
17634
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17635
+ states: record(string(), number()).nullable()
17607
17636
  });
17608
17637
  var QuerySeriesSchema = object({
17609
17638
  scope: string(),
17610
17639
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17611
17640
  before: object({
17612
17641
  t: number(),
17613
- value: number().nullable()
17642
+ value: number().nullable(),
17643
+ state: string().nullable()
17614
17644
  }).nullable(),
17615
- points: array(QueryPointSchema).readonly()
17645
+ points: array(QueryPointSchema).readonly(),
17646
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17647
+ derivedFrom: string().nullable()
17616
17648
  });
17617
17649
  /** The window part of a query, shared by the device and node forms. */
17618
17650
  var QueryWindowShape = {
@@ -17628,6 +17660,23 @@ var QueryResultSchema = object({
17628
17660
  series: array(QuerySeriesSchema).readonly(),
17629
17661
  truncated: boolean()
17630
17662
  });
17663
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17664
+ var QueryManyItemSchema = union([object({
17665
+ deviceId: number().int(),
17666
+ key: string(),
17667
+ scope: string().optional()
17668
+ }), object({
17669
+ forNodeId: string().min(1),
17670
+ key: string(),
17671
+ scope: string().optional()
17672
+ })]);
17673
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17674
+ ok: literal(true),
17675
+ result: QueryResultSchema
17676
+ }), object({
17677
+ ok: literal(false),
17678
+ error: string()
17679
+ })]);
17631
17680
  var TierStatusSchema = object({
17632
17681
  tier: DeviceHistoryResolutionSchema,
17633
17682
  /** `null` until the first background count answered. */
@@ -17683,16 +17732,22 @@ var DeviceHistoryStatusSchema = object({
17683
17732
  lastRefreshAt: number().nullable()
17684
17733
  })
17685
17734
  });
17686
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17735
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17687
17736
  deviceId: number().int(),
17688
17737
  ...QueryWindowShape
17689
17738
  }), QueryResultSchema), method(object({
17690
- nodeId: string().min(1),
17739
+ forNodeId: string().min(1),
17691
17740
  ...QueryWindowShape
17692
17741
  }), QueryResultSchema, { auth: "admin" }), method(object({
17742
+ items: array(QueryManyItemSchema).min(1).max(24),
17743
+ from: QueryWindowShape.from,
17744
+ to: QueryWindowShape.to,
17745
+ resolution: QueryWindowShape.resolution,
17746
+ maxPoints: QueryWindowShape.maxPoints
17747
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17693
17748
  name: string().regex(/^[a-z0-9-]+$/),
17694
17749
  subjectKind: _enum(["device", "node"]),
17695
- kind: DeviceHistoryKindSchema,
17750
+ kind: DeviceHistoryProducerKindSchema,
17696
17751
  unit: string().optional(),
17697
17752
  displayName: string().min(1),
17698
17753
  ingest: _enum(["points", "buckets"])
@@ -40918,14 +40973,106 @@ var LogEntrySchema = object({
40918
40973
  meta: record(string(), unknown()).optional(),
40919
40974
  tags: record(string(), string()).optional()
40920
40975
  });
40921
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40922
- scope: array(string()).optional(),
40976
+ /**
40977
+ * A history READ against one destination (D898).
40978
+ *
40979
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40980
+ * browser applied after the limit is what made a rare device's lines
40981
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40982
+ * minted (opaque to everyone else): a file position for the rotated files, a
40983
+ * nanosecond timestamp for Loki.
40984
+ *
40985
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40986
+ * store answers `done: false` with the cursor it reached and the bytes it
40987
+ * scanned, and the caller decides whether to go on. That is what makes a long
40988
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40989
+ * flight, and not asking for the next slice ends the scan.
40990
+ */
40991
+ var LogReadQuerySchema = object({
40992
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40993
+ requestId: string().min(1).max(64).optional(),
40994
+ /** The device the line is about (`tags.deviceId`, numeric). */
40995
+ deviceId: number().int().optional(),
40996
+ /**
40997
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40998
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40999
+ */
41000
+ fromAddonId: string().min(1).max(200).optional(),
41001
+ /**
41002
+ * The emitting node: matches the agent that emitted the line, the node
41003
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41004
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41005
+ * name as "which node's provider".
41006
+ */
41007
+ fromNodeId: string().min(1).max(200).optional(),
41008
+ /** Any other tag, exact match (AND). */
41009
+ tags: record(string(), union([string(), number()])).optional(),
41010
+ /** Severity FLOOR: this level and above. */
40923
41011
  level: LogLevelSchema.optional(),
40924
- since: date().optional(),
40925
- until: date().optional(),
40926
- limit: number().optional(),
40927
- tags: record(string(), string()).optional()
40928
- }), array(LogEntrySchema).readonly());
41012
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41013
+ text: string().min(1).max(200).optional(),
41014
+ /** Epoch ms, inclusive. */
41015
+ since: number().optional(),
41016
+ /** Epoch ms, inclusive. */
41017
+ until: number().optional(),
41018
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41019
+ before: string().min(1).max(1024).optional(),
41020
+ /** Newer than this cursor (exclusive). */
41021
+ after: string().min(1).max(1024).optional(),
41022
+ limit: number().int().min(1).max(1e3).optional(),
41023
+ /** Wall-clock bound of this slice. The provider caps it. */
41024
+ budgetMs: number().int().min(50).max(1e4).optional()
41025
+ });
41026
+ var LogReadResultSchema = object({
41027
+ /** Newest first. */
41028
+ entries: array(object({
41029
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41030
+ id: string().optional(),
41031
+ /** Epoch ms. */
41032
+ timestamp: number(),
41033
+ level: LogLevelSchema,
41034
+ scope: string().optional(),
41035
+ message: string(),
41036
+ tags: record(string(), union([string(), number()])).optional(),
41037
+ meta: record(string(), unknown()).optional()
41038
+ })),
41039
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41040
+ nextBefore: string().nullable(),
41041
+ /** Pass as `after` to read what arrived since; null when unknown. */
41042
+ nextAfter: string().nullable(),
41043
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41044
+ scannedBytes: number().int().nonnegative(),
41045
+ /**
41046
+ * True when the scan in this direction reached the end of the store.
41047
+ * False with fewer than `limit` entries means the budget ran out first —
41048
+ * call again with `nextBefore` to go on.
41049
+ */
41050
+ done: boolean(),
41051
+ /** True when `cancelRead` ended this slice early. */
41052
+ cancelled: boolean().optional()
41053
+ });
41054
+ var LogReadCapabilitiesSchema = object({
41055
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41056
+ readable: boolean(),
41057
+ /** Why not, when `readable` is false — rendered next to the source. */
41058
+ reason: string().nullable(),
41059
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41060
+ filters: object({
41061
+ deviceId: boolean(),
41062
+ addonId: boolean(),
41063
+ nodeId: boolean(),
41064
+ tags: boolean(),
41065
+ level: boolean(),
41066
+ text: boolean(),
41067
+ timeRange: boolean()
41068
+ }),
41069
+ /** How far back the store reaches, when the provider knows (days). */
41070
+ retentionDays: number().nullable()
41071
+ });
41072
+ 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() }), {
41073
+ kind: "mutation",
41074
+ auth: "admin"
41075
+ });
40929
41076
  /**
40930
41077
  * `login-method` — collection cap through which auth addons contribute
40931
41078
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42643,9 +42790,11 @@ var alarmPanelCapability = {
42643
42790
  */
42644
42791
  durability: "restored",
42645
42792
  /**
42646
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42793
+ * History (D850): the panel's lifecycle state as an `enum` series —
42794
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42795
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42647
42796
  */
42648
- history: "none",
42797
+ history: { fields: { state: { kind: "enum" } } },
42649
42798
  /** Clock fields: written, but excluded from the compare that decides
42650
42799
  * whether persisting is worth a SQLite commit. */
42651
42800
  volatileStateFields: ["lastChangedAt"]
@@ -43523,6 +43672,33 @@ var NcRuleTargetSchema = object({
43523
43672
  params: record(string(), unknown()).optional()
43524
43673
  });
43525
43674
  /**
43675
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43676
+ *
43677
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43678
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43679
+ * to the zone that fired the rule) and renders it once at send time:
43680
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43681
+ * colour and every OTHER track visible at that instant outlined thin, each
43682
+ * labelled with class and confidence ("dog 87%").
43683
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43684
+ * - `clean` — the whole scene with nothing drawn on it.
43685
+ * - `none` — no picture.
43686
+ *
43687
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43688
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43689
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43690
+ * ship a crop on one event and a boxed scene on the next depending on which
43691
+ * stored kind had landed.
43692
+ */
43693
+ var NcMediaImageSchema = _enum([
43694
+ "scene-boxes",
43695
+ "crop",
43696
+ "clean",
43697
+ "none"
43698
+ ]);
43699
+ /**
43700
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43701
+ *
43526
43702
  * Media attachment policy (P1 still-image subset).
43527
43703
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43528
43704
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43536,6 +43712,8 @@ var NcRuleTargetSchema = object({
43536
43712
  * - `none` — no attachment.
43537
43713
  */
43538
43714
  /**
43715
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43716
+ *
43539
43717
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43540
43718
  * conflate it with the selection strategy and betray the request: asking for
43541
43719
  * the clean scene frame on an object-event owner used to start at
@@ -43564,16 +43742,29 @@ var NcMediaFrameSchema = _enum([
43564
43742
  */
43565
43743
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43566
43744
  var NcMediaPolicySchema = object({
43745
+ /**
43746
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43747
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43748
+ * triple below, at load and at every write, and the store keeps only this.
43749
+ */
43750
+ image: NcMediaImageSchema.optional(),
43751
+ /**
43752
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43753
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43754
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43755
+ * Replaces `zoneCrop`.
43756
+ */
43757
+ showTriggerZone: boolean().optional(),
43758
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43567
43759
  attach: _enum([
43568
43760
  "best",
43569
43761
  "best-matching",
43570
43762
  "keyFrame",
43571
43763
  "none"
43572
- ]).default("best"),
43573
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43764
+ ]).optional(),
43765
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43574
43766
  frame: NcMediaFrameSchema.optional(),
43575
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43576
- * "show me the ZONE", not the whole scene or the subject crop. */
43767
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43577
43768
  zoneCrop: boolean().optional(),
43578
43769
  /**
43579
43770
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43745,7 +43936,9 @@ var NcRuleInputSchema = object({
43745
43936
  * targets.
43746
43937
  */
43747
43938
  targetUsers: array(string()).optional(),
43748
- media: NcMediaPolicySchema.default({ attach: "best" }),
43939
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43940
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43941
+ media: NcMediaPolicySchema.default({}),
43749
43942
  throttle: NcThrottleSchema.default({
43750
43943
  cooldownSec: 60,
43751
43944
  scope: "rule-device"
@@ -44682,13 +44875,37 @@ var NcAlarmModeOpeningsSchema = object({
44682
44875
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44683
44876
  unknown: array(number().int())
44684
44877
  });
44878
+ /**
44879
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44880
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44881
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44882
+ * never looks fully armed (D62: off must never look like broken).
44883
+ */
44884
+ var NcAlarmInputBypassViewSchema = object({
44885
+ ruleId: string(),
44886
+ /** The rule's current name (its frozen name when the rule is gone). */
44887
+ ruleName: string(),
44888
+ /** The input: the sensor of the match, else its camera. */
44889
+ deviceId: number().int(),
44890
+ /** The input's current name. */
44891
+ name: string(),
44892
+ /** When it was bypassed (ms epoch). */
44893
+ since: number(),
44894
+ /** Triggers from this input dropped since. */
44895
+ dropped: number().int().min(0)
44896
+ });
44685
44897
  var NcAlarmLiveSchema = object({
44686
44898
  state: AlarmStateSchema,
44687
44899
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44688
44900
  targetMode: AlarmArmModeSchema.nullable(),
44689
44901
  availableModes: array(AlarmArmModeSchema),
44690
44902
  openings: array(NcAlarmModeOpeningsSchema),
44691
- exclusions: array(NcAlarmExclusionViewSchema)
44903
+ exclusions: array(NcAlarmExclusionViewSchema),
44904
+ /**
44905
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44906
+ * Defaulted so an older hub answer still parses (as "none known").
44907
+ */
44908
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44692
44909
  });
44693
44910
  var NcAlarmConfigSchema = object({
44694
44911
  /**
@@ -55424,9 +55641,11 @@ var connectivityCapability = {
55424
55641
  */
55425
55642
  durability: "restored",
55426
55643
  /**
55427
- * History (D850): none — duplicates device-status.online (one authority for availability).
55644
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55645
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55646
+ * device's reachability, which stays `device-status.online`.
55428
55647
  */
55429
- history: "none",
55648
+ history: { fields: { connected: { kind: "boolean" } } },
55430
55649
  /** Clock fields: written, but excluded from the compare that decides
55431
55650
  * whether persisting is worth a SQLite commit. */
55432
55651
  volatileStateFields: ["lastChangedAt"]
@@ -56250,11 +56469,22 @@ var dishwasherCapability = {
56250
56469
  },
56251
56470
  runtimeState: DishwasherStatusSchema,
56252
56471
  durability: "session",
56253
- history: { fields: { progressPercent: {
56254
- kind: "gauge",
56255
- unit: "%",
56256
- deadband: 2
56257
- } } }
56472
+ history: { fields: {
56473
+ progressPercent: {
56474
+ kind: "gauge",
56475
+ unit: "%",
56476
+ deadband: 2
56477
+ },
56478
+ state: { kind: "enum" },
56479
+ operationState: { kind: "enum" },
56480
+ remainingSeconds: {
56481
+ kind: "gauge",
56482
+ unit: "s",
56483
+ minIntervalMs: 6e4
56484
+ },
56485
+ doorOpen: { kind: "boolean" },
56486
+ powerOn: { kind: "boolean" }
56487
+ } }
56258
56488
  };
56259
56489
  var DoorbellStatusSchema = object({
56260
56490
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56371,9 +56601,15 @@ var enumSensorCapability = {
56371
56601
  */
56372
56602
  durability: "restored",
56373
56603
  /**
56374
- * History (D850): none — text/enum state has no history (non-goal).
56604
+ * History (D850): the value as an `enum` series (an appliance's program or
56605
+ * operation state, an HVAC action). The option set is per device, so the
56606
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56607
+ * `format` carries a timestamp, not a state, and is not recorded.
56375
56608
  */
56376
- history: "none",
56609
+ history: { fields: { value: {
56610
+ kind: "enum",
56611
+ skipWhenSet: "format"
56612
+ } } },
56377
56613
  /** Clock fields: written, but excluded from the compare that decides
56378
56614
  * whether persisting is worth a SQLite commit. */
56379
56615
  volatileStateFields: ["lastFetchedAt"]
@@ -58347,9 +58583,10 @@ var lockControlCapability = {
58347
58583
  */
58348
58584
  durability: "restored",
58349
58585
  /**
58350
- * History (D850): none — enum state; lock events belong in the events ledger.
58586
+ * History (D850): the lock's state as an `enum` series — change-only, no
58587
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58351
58588
  */
58352
- history: "none",
58589
+ history: { fields: { state: { kind: "enum" } } },
58353
58590
  /** Clock fields: written, but excluded from the compare that decides
58354
58591
  * whether persisting is worth a SQLite commit. */
58355
58592
  volatileStateFields: ["lastChangedAt"]
@@ -58523,9 +58760,18 @@ var mediaPlayerCapability = {
58523
58760
  */
58524
58761
  durability: "session",
58525
58762
  /**
58526
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58763
+ * History (D850): volume (a level an operator or an automation sets; the
58764
+ * default 10 s floor folds a slider drag into its end value) and mute.
58765
+ * `positionMs` is not recorded: it moves continuously while playing.
58527
58766
  */
58528
- history: "none"
58767
+ history: { fields: {
58768
+ volumeLevel: {
58769
+ kind: "gauge",
58770
+ unit: "%",
58771
+ deadband: 1
58772
+ },
58773
+ isMuted: { kind: "boolean" }
58774
+ } }
58529
58775
  };
58530
58776
  /**
58531
58777
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63818,9 +64064,29 @@ var streamParamsCapability = {
63818
64064
  */
63819
64065
  durability: "restored",
63820
64066
  /**
63821
- * History (D850): none — encoder configuration.
64067
+ * History (D850): the configured bitrate and frame rate of the main and sub
64068
+ * profiles. Configuration, so change-only on the default floor: a point is an
64069
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64070
+ * quality over time must show.
63822
64071
  */
63823
- history: "none",
64072
+ history: { fields: {
64073
+ "main.bitrate": {
64074
+ kind: "gauge",
64075
+ unit: "kbps"
64076
+ },
64077
+ "main.framerate": {
64078
+ kind: "gauge",
64079
+ unit: "fps"
64080
+ },
64081
+ "sub.bitrate": {
64082
+ kind: "gauge",
64083
+ unit: "kbps"
64084
+ },
64085
+ "sub.framerate": {
64086
+ kind: "gauge",
64087
+ unit: "fps"
64088
+ }
64089
+ } },
63824
64090
  /** Clock fields: written, but excluded from the compare that decides
63825
64091
  * whether persisting is worth a SQLite commit. */
63826
64092
  volatileStateFields: ["lastFetchedAt"]
@@ -66998,6 +67264,15 @@ var BaseDevice = class {
66998
67264
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66999
67265
  * with a typed cast.
67000
67266
  *
67267
+ * Answer what you KNOW. A plain array is read as the complete list only
67268
+ * while this device is `online` and probed; return
67269
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67270
+ * now (no credentials, parent not connected, a failed or partial read) —
67271
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67272
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67273
+ * deleted only after a second agreeing complete read on a later probe (D49;
67274
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67275
+ *
67001
67276
  * Default: no children.
67002
67277
  */
67003
67278
  getAccessoryChildren() {
@@ -71129,7 +71404,19 @@ Object.freeze({
71129
71404
  addonId: null,
71130
71405
  access: "view"
71131
71406
  },
71132
- "logDestination.query": {
71407
+ "logDestination.cancelRead": {
71408
+ capName: "log-destination",
71409
+ capScope: "system",
71410
+ addonId: null,
71411
+ access: "create"
71412
+ },
71413
+ "logDestination.describeRead": {
71414
+ capName: "log-destination",
71415
+ capScope: "system",
71416
+ addonId: null,
71417
+ access: "view"
71418
+ },
71419
+ "logDestination.read": {
71133
71420
  capName: "log-destination",
71134
71421
  capScope: "system",
71135
71422
  addonId: null,
@@ -77136,6 +77423,11 @@ Object.freeze({
77136
77423
  form: "single",
77137
77424
  optional: false
77138
77425
  }],
77426
+ "logDestination.read": [{
77427
+ name: "deviceId",
77428
+ form: "single",
77429
+ optional: true
77430
+ }],
77139
77431
  "mediaPlayer.getStatus": [{
77140
77432
  name: "deviceId",
77141
77433
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5589
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -17551,7 +17551,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17551
17551
  kind: literal("node"),
17552
17552
  nodeId: string().min(1)
17553
17553
  })]);
17554
+ /**
17555
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17556
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17557
+ * meaning); a rollup keeps the time spent in each state (`states`).
17558
+ */
17554
17559
  var DeviceHistoryKindSchema = _enum([
17560
+ "gauge",
17561
+ "counter",
17562
+ "boolean",
17563
+ "enum"
17564
+ ]);
17565
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17566
+ var DeviceHistoryProducerKindSchema = _enum([
17555
17567
  "gauge",
17556
17568
  "counter",
17557
17569
  "boolean"
@@ -17588,7 +17600,13 @@ var SeriesInfoSchema = object({
17588
17600
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17589
17601
  unit: string().nullable(),
17590
17602
  displayName: string(),
17591
- source: _enum(["cap", "addon"]),
17603
+ source: _enum([
17604
+ "cap",
17605
+ "addon",
17606
+ "derived"
17607
+ ]),
17608
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17609
+ values: array(string()).readonly().nullable(),
17592
17610
  firstTs: number(),
17593
17611
  lastTs: number()
17594
17612
  });
@@ -17602,17 +17620,31 @@ var QueryPointSchema = object({
17602
17620
  twMean: number().nullable(),
17603
17621
  min: number(),
17604
17622
  max: number(),
17605
- /** `null` is unknown, never zero (D393). */
17606
- last: number().nullable()
17623
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17624
+ last: number().nullable(),
17625
+ /**
17626
+ * The increase over the point: a `counter`'s growth since the previous point
17627
+ * or bucket (a drop is a reset, counted from zero), and for
17628
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17629
+ * every other kind, and when it cannot be known.
17630
+ */
17631
+ delta: number().nullable(),
17632
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17633
+ state: string().nullable(),
17634
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17635
+ states: record(string(), number()).nullable()
17607
17636
  });
17608
17637
  var QuerySeriesSchema = object({
17609
17638
  scope: string(),
17610
17639
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17611
17640
  before: object({
17612
17641
  t: number(),
17613
- value: number().nullable()
17642
+ value: number().nullable(),
17643
+ state: string().nullable()
17614
17644
  }).nullable(),
17615
- points: array(QueryPointSchema).readonly()
17645
+ points: array(QueryPointSchema).readonly(),
17646
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17647
+ derivedFrom: string().nullable()
17616
17648
  });
17617
17649
  /** The window part of a query, shared by the device and node forms. */
17618
17650
  var QueryWindowShape = {
@@ -17628,6 +17660,23 @@ var QueryResultSchema = object({
17628
17660
  series: array(QuerySeriesSchema).readonly(),
17629
17661
  truncated: boolean()
17630
17662
  });
17663
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17664
+ var QueryManyItemSchema = union([object({
17665
+ deviceId: number().int(),
17666
+ key: string(),
17667
+ scope: string().optional()
17668
+ }), object({
17669
+ forNodeId: string().min(1),
17670
+ key: string(),
17671
+ scope: string().optional()
17672
+ })]);
17673
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17674
+ ok: literal(true),
17675
+ result: QueryResultSchema
17676
+ }), object({
17677
+ ok: literal(false),
17678
+ error: string()
17679
+ })]);
17631
17680
  var TierStatusSchema = object({
17632
17681
  tier: DeviceHistoryResolutionSchema,
17633
17682
  /** `null` until the first background count answered. */
@@ -17683,16 +17732,22 @@ var DeviceHistoryStatusSchema = object({
17683
17732
  lastRefreshAt: number().nullable()
17684
17733
  })
17685
17734
  });
17686
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17735
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17687
17736
  deviceId: number().int(),
17688
17737
  ...QueryWindowShape
17689
17738
  }), QueryResultSchema), method(object({
17690
- nodeId: string().min(1),
17739
+ forNodeId: string().min(1),
17691
17740
  ...QueryWindowShape
17692
17741
  }), QueryResultSchema, { auth: "admin" }), method(object({
17742
+ items: array(QueryManyItemSchema).min(1).max(24),
17743
+ from: QueryWindowShape.from,
17744
+ to: QueryWindowShape.to,
17745
+ resolution: QueryWindowShape.resolution,
17746
+ maxPoints: QueryWindowShape.maxPoints
17747
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17693
17748
  name: string().regex(/^[a-z0-9-]+$/),
17694
17749
  subjectKind: _enum(["device", "node"]),
17695
- kind: DeviceHistoryKindSchema,
17750
+ kind: DeviceHistoryProducerKindSchema,
17696
17751
  unit: string().optional(),
17697
17752
  displayName: string().min(1),
17698
17753
  ingest: _enum(["points", "buckets"])
@@ -40918,14 +40973,106 @@ var LogEntrySchema = object({
40918
40973
  meta: record(string(), unknown()).optional(),
40919
40974
  tags: record(string(), string()).optional()
40920
40975
  });
40921
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40922
- scope: array(string()).optional(),
40976
+ /**
40977
+ * A history READ against one destination (D898).
40978
+ *
40979
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40980
+ * browser applied after the limit is what made a rare device's lines
40981
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40982
+ * minted (opaque to everyone else): a file position for the rotated files, a
40983
+ * nanosecond timestamp for Loki.
40984
+ *
40985
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40986
+ * store answers `done: false` with the cursor it reached and the bytes it
40987
+ * scanned, and the caller decides whether to go on. That is what makes a long
40988
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40989
+ * flight, and not asking for the next slice ends the scan.
40990
+ */
40991
+ var LogReadQuerySchema = object({
40992
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40993
+ requestId: string().min(1).max(64).optional(),
40994
+ /** The device the line is about (`tags.deviceId`, numeric). */
40995
+ deviceId: number().int().optional(),
40996
+ /**
40997
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40998
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40999
+ */
41000
+ fromAddonId: string().min(1).max(200).optional(),
41001
+ /**
41002
+ * The emitting node: matches the agent that emitted the line, the node
41003
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41004
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41005
+ * name as "which node's provider".
41006
+ */
41007
+ fromNodeId: string().min(1).max(200).optional(),
41008
+ /** Any other tag, exact match (AND). */
41009
+ tags: record(string(), union([string(), number()])).optional(),
41010
+ /** Severity FLOOR: this level and above. */
40923
41011
  level: LogLevelSchema.optional(),
40924
- since: date().optional(),
40925
- until: date().optional(),
40926
- limit: number().optional(),
40927
- tags: record(string(), string()).optional()
40928
- }), array(LogEntrySchema).readonly());
41012
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41013
+ text: string().min(1).max(200).optional(),
41014
+ /** Epoch ms, inclusive. */
41015
+ since: number().optional(),
41016
+ /** Epoch ms, inclusive. */
41017
+ until: number().optional(),
41018
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41019
+ before: string().min(1).max(1024).optional(),
41020
+ /** Newer than this cursor (exclusive). */
41021
+ after: string().min(1).max(1024).optional(),
41022
+ limit: number().int().min(1).max(1e3).optional(),
41023
+ /** Wall-clock bound of this slice. The provider caps it. */
41024
+ budgetMs: number().int().min(50).max(1e4).optional()
41025
+ });
41026
+ var LogReadResultSchema = object({
41027
+ /** Newest first. */
41028
+ entries: array(object({
41029
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41030
+ id: string().optional(),
41031
+ /** Epoch ms. */
41032
+ timestamp: number(),
41033
+ level: LogLevelSchema,
41034
+ scope: string().optional(),
41035
+ message: string(),
41036
+ tags: record(string(), union([string(), number()])).optional(),
41037
+ meta: record(string(), unknown()).optional()
41038
+ })),
41039
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41040
+ nextBefore: string().nullable(),
41041
+ /** Pass as `after` to read what arrived since; null when unknown. */
41042
+ nextAfter: string().nullable(),
41043
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41044
+ scannedBytes: number().int().nonnegative(),
41045
+ /**
41046
+ * True when the scan in this direction reached the end of the store.
41047
+ * False with fewer than `limit` entries means the budget ran out first —
41048
+ * call again with `nextBefore` to go on.
41049
+ */
41050
+ done: boolean(),
41051
+ /** True when `cancelRead` ended this slice early. */
41052
+ cancelled: boolean().optional()
41053
+ });
41054
+ var LogReadCapabilitiesSchema = object({
41055
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41056
+ readable: boolean(),
41057
+ /** Why not, when `readable` is false — rendered next to the source. */
41058
+ reason: string().nullable(),
41059
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41060
+ filters: object({
41061
+ deviceId: boolean(),
41062
+ addonId: boolean(),
41063
+ nodeId: boolean(),
41064
+ tags: boolean(),
41065
+ level: boolean(),
41066
+ text: boolean(),
41067
+ timeRange: boolean()
41068
+ }),
41069
+ /** How far back the store reaches, when the provider knows (days). */
41070
+ retentionDays: number().nullable()
41071
+ });
41072
+ 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() }), {
41073
+ kind: "mutation",
41074
+ auth: "admin"
41075
+ });
40929
41076
  /**
40930
41077
  * `login-method` — collection cap through which auth addons contribute
40931
41078
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42643,9 +42790,11 @@ var alarmPanelCapability = {
42643
42790
  */
42644
42791
  durability: "restored",
42645
42792
  /**
42646
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42793
+ * History (D850): the panel's lifecycle state as an `enum` series —
42794
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42795
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42647
42796
  */
42648
- history: "none",
42797
+ history: { fields: { state: { kind: "enum" } } },
42649
42798
  /** Clock fields: written, but excluded from the compare that decides
42650
42799
  * whether persisting is worth a SQLite commit. */
42651
42800
  volatileStateFields: ["lastChangedAt"]
@@ -43523,6 +43672,33 @@ var NcRuleTargetSchema = object({
43523
43672
  params: record(string(), unknown()).optional()
43524
43673
  });
43525
43674
  /**
43675
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43676
+ *
43677
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43678
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43679
+ * to the zone that fired the rule) and renders it once at send time:
43680
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43681
+ * colour and every OTHER track visible at that instant outlined thin, each
43682
+ * labelled with class and confidence ("dog 87%").
43683
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43684
+ * - `clean` — the whole scene with nothing drawn on it.
43685
+ * - `none` — no picture.
43686
+ *
43687
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43688
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43689
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43690
+ * ship a crop on one event and a boxed scene on the next depending on which
43691
+ * stored kind had landed.
43692
+ */
43693
+ var NcMediaImageSchema = _enum([
43694
+ "scene-boxes",
43695
+ "crop",
43696
+ "clean",
43697
+ "none"
43698
+ ]);
43699
+ /**
43700
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43701
+ *
43526
43702
  * Media attachment policy (P1 still-image subset).
43527
43703
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43528
43704
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43536,6 +43712,8 @@ var NcRuleTargetSchema = object({
43536
43712
  * - `none` — no attachment.
43537
43713
  */
43538
43714
  /**
43715
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43716
+ *
43539
43717
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43540
43718
  * conflate it with the selection strategy and betray the request: asking for
43541
43719
  * the clean scene frame on an object-event owner used to start at
@@ -43564,16 +43742,29 @@ var NcMediaFrameSchema = _enum([
43564
43742
  */
43565
43743
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43566
43744
  var NcMediaPolicySchema = object({
43745
+ /**
43746
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43747
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43748
+ * triple below, at load and at every write, and the store keeps only this.
43749
+ */
43750
+ image: NcMediaImageSchema.optional(),
43751
+ /**
43752
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43753
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43754
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43755
+ * Replaces `zoneCrop`.
43756
+ */
43757
+ showTriggerZone: boolean().optional(),
43758
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43567
43759
  attach: _enum([
43568
43760
  "best",
43569
43761
  "best-matching",
43570
43762
  "keyFrame",
43571
43763
  "none"
43572
- ]).default("best"),
43573
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43764
+ ]).optional(),
43765
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43574
43766
  frame: NcMediaFrameSchema.optional(),
43575
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43576
- * "show me the ZONE", not the whole scene or the subject crop. */
43767
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43577
43768
  zoneCrop: boolean().optional(),
43578
43769
  /**
43579
43770
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43745,7 +43936,9 @@ var NcRuleInputSchema = object({
43745
43936
  * targets.
43746
43937
  */
43747
43938
  targetUsers: array(string()).optional(),
43748
- media: NcMediaPolicySchema.default({ attach: "best" }),
43939
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43940
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43941
+ media: NcMediaPolicySchema.default({}),
43749
43942
  throttle: NcThrottleSchema.default({
43750
43943
  cooldownSec: 60,
43751
43944
  scope: "rule-device"
@@ -44682,13 +44875,37 @@ var NcAlarmModeOpeningsSchema = object({
44682
44875
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44683
44876
  unknown: array(number().int())
44684
44877
  });
44878
+ /**
44879
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44880
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44881
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44882
+ * never looks fully armed (D62: off must never look like broken).
44883
+ */
44884
+ var NcAlarmInputBypassViewSchema = object({
44885
+ ruleId: string(),
44886
+ /** The rule's current name (its frozen name when the rule is gone). */
44887
+ ruleName: string(),
44888
+ /** The input: the sensor of the match, else its camera. */
44889
+ deviceId: number().int(),
44890
+ /** The input's current name. */
44891
+ name: string(),
44892
+ /** When it was bypassed (ms epoch). */
44893
+ since: number(),
44894
+ /** Triggers from this input dropped since. */
44895
+ dropped: number().int().min(0)
44896
+ });
44685
44897
  var NcAlarmLiveSchema = object({
44686
44898
  state: AlarmStateSchema,
44687
44899
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44688
44900
  targetMode: AlarmArmModeSchema.nullable(),
44689
44901
  availableModes: array(AlarmArmModeSchema),
44690
44902
  openings: array(NcAlarmModeOpeningsSchema),
44691
- exclusions: array(NcAlarmExclusionViewSchema)
44903
+ exclusions: array(NcAlarmExclusionViewSchema),
44904
+ /**
44905
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44906
+ * Defaulted so an older hub answer still parses (as "none known").
44907
+ */
44908
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44692
44909
  });
44693
44910
  var NcAlarmConfigSchema = object({
44694
44911
  /**
@@ -55424,9 +55641,11 @@ var connectivityCapability = {
55424
55641
  */
55425
55642
  durability: "restored",
55426
55643
  /**
55427
- * History (D850): none — duplicates device-status.online (one authority for availability).
55644
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55645
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55646
+ * device's reachability, which stays `device-status.online`.
55428
55647
  */
55429
- history: "none",
55648
+ history: { fields: { connected: { kind: "boolean" } } },
55430
55649
  /** Clock fields: written, but excluded from the compare that decides
55431
55650
  * whether persisting is worth a SQLite commit. */
55432
55651
  volatileStateFields: ["lastChangedAt"]
@@ -56250,11 +56469,22 @@ var dishwasherCapability = {
56250
56469
  },
56251
56470
  runtimeState: DishwasherStatusSchema,
56252
56471
  durability: "session",
56253
- history: { fields: { progressPercent: {
56254
- kind: "gauge",
56255
- unit: "%",
56256
- deadband: 2
56257
- } } }
56472
+ history: { fields: {
56473
+ progressPercent: {
56474
+ kind: "gauge",
56475
+ unit: "%",
56476
+ deadband: 2
56477
+ },
56478
+ state: { kind: "enum" },
56479
+ operationState: { kind: "enum" },
56480
+ remainingSeconds: {
56481
+ kind: "gauge",
56482
+ unit: "s",
56483
+ minIntervalMs: 6e4
56484
+ },
56485
+ doorOpen: { kind: "boolean" },
56486
+ powerOn: { kind: "boolean" }
56487
+ } }
56258
56488
  };
56259
56489
  var DoorbellStatusSchema = object({
56260
56490
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56371,9 +56601,15 @@ var enumSensorCapability = {
56371
56601
  */
56372
56602
  durability: "restored",
56373
56603
  /**
56374
- * History (D850): none — text/enum state has no history (non-goal).
56604
+ * History (D850): the value as an `enum` series (an appliance's program or
56605
+ * operation state, an HVAC action). The option set is per device, so the
56606
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56607
+ * `format` carries a timestamp, not a state, and is not recorded.
56375
56608
  */
56376
- history: "none",
56609
+ history: { fields: { value: {
56610
+ kind: "enum",
56611
+ skipWhenSet: "format"
56612
+ } } },
56377
56613
  /** Clock fields: written, but excluded from the compare that decides
56378
56614
  * whether persisting is worth a SQLite commit. */
56379
56615
  volatileStateFields: ["lastFetchedAt"]
@@ -58347,9 +58583,10 @@ var lockControlCapability = {
58347
58583
  */
58348
58584
  durability: "restored",
58349
58585
  /**
58350
- * History (D850): none — enum state; lock events belong in the events ledger.
58586
+ * History (D850): the lock's state as an `enum` series — change-only, no
58587
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58351
58588
  */
58352
- history: "none",
58589
+ history: { fields: { state: { kind: "enum" } } },
58353
58590
  /** Clock fields: written, but excluded from the compare that decides
58354
58591
  * whether persisting is worth a SQLite commit. */
58355
58592
  volatileStateFields: ["lastChangedAt"]
@@ -58523,9 +58760,18 @@ var mediaPlayerCapability = {
58523
58760
  */
58524
58761
  durability: "session",
58525
58762
  /**
58526
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58763
+ * History (D850): volume (a level an operator or an automation sets; the
58764
+ * default 10 s floor folds a slider drag into its end value) and mute.
58765
+ * `positionMs` is not recorded: it moves continuously while playing.
58527
58766
  */
58528
- history: "none"
58767
+ history: { fields: {
58768
+ volumeLevel: {
58769
+ kind: "gauge",
58770
+ unit: "%",
58771
+ deadband: 1
58772
+ },
58773
+ isMuted: { kind: "boolean" }
58774
+ } }
58529
58775
  };
58530
58776
  /**
58531
58777
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63818,9 +64064,29 @@ var streamParamsCapability = {
63818
64064
  */
63819
64065
  durability: "restored",
63820
64066
  /**
63821
- * History (D850): none — encoder configuration.
64067
+ * History (D850): the configured bitrate and frame rate of the main and sub
64068
+ * profiles. Configuration, so change-only on the default floor: a point is an
64069
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64070
+ * quality over time must show.
63822
64071
  */
63823
- history: "none",
64072
+ history: { fields: {
64073
+ "main.bitrate": {
64074
+ kind: "gauge",
64075
+ unit: "kbps"
64076
+ },
64077
+ "main.framerate": {
64078
+ kind: "gauge",
64079
+ unit: "fps"
64080
+ },
64081
+ "sub.bitrate": {
64082
+ kind: "gauge",
64083
+ unit: "kbps"
64084
+ },
64085
+ "sub.framerate": {
64086
+ kind: "gauge",
64087
+ unit: "fps"
64088
+ }
64089
+ } },
63824
64090
  /** Clock fields: written, but excluded from the compare that decides
63825
64091
  * whether persisting is worth a SQLite commit. */
63826
64092
  volatileStateFields: ["lastFetchedAt"]
@@ -66998,6 +67264,15 @@ var BaseDevice = class {
66998
67264
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66999
67265
  * with a typed cast.
67000
67266
  *
67267
+ * Answer what you KNOW. A plain array is read as the complete list only
67268
+ * while this device is `online` and probed; return
67269
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67270
+ * now (no credentials, parent not connected, a failed or partial read) —
67271
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67272
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67273
+ * deleted only after a second agreeing complete read on a later probe (D49;
67274
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67275
+ *
67001
67276
  * Default: no children.
67002
67277
  */
67003
67278
  getAccessoryChildren() {
@@ -71129,7 +71404,19 @@ Object.freeze({
71129
71404
  addonId: null,
71130
71405
  access: "view"
71131
71406
  },
71132
- "logDestination.query": {
71407
+ "logDestination.cancelRead": {
71408
+ capName: "log-destination",
71409
+ capScope: "system",
71410
+ addonId: null,
71411
+ access: "create"
71412
+ },
71413
+ "logDestination.describeRead": {
71414
+ capName: "log-destination",
71415
+ capScope: "system",
71416
+ addonId: null,
71417
+ access: "view"
71418
+ },
71419
+ "logDestination.read": {
71133
71420
  capName: "log-destination",
71134
71421
  capScope: "system",
71135
71422
  addonId: null,
@@ -77136,6 +77423,11 @@ Object.freeze({
77136
77423
  form: "single",
77137
77424
  optional: false
77138
77425
  }],
77426
+ "logDestination.read": [{
77427
+ name: "deviceId",
77428
+ form: "single",
77429
+ optional: true
77430
+ }],
77139
77431
  "mediaPlayer.getStatus": [{
77140
77432
  name: "deviceId",
77141
77433
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.132",
3
+ "version": "0.2.133",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",