@camstack/addon-provider-wyze 0.2.143 → 0.2.144

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
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
5446
5446
  var ZodFirstPartyTypeKind;
5447
5447
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5448
  //#endregion
5449
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5449
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5450
5450
  /**
5451
5451
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5452
  * window to float samples (D455).
@@ -17060,7 +17060,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17060
17060
  kind: literal("node"),
17061
17061
  nodeId: string().min(1)
17062
17062
  })]);
17063
+ /**
17064
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17065
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17066
+ * meaning); a rollup keeps the time spent in each state (`states`).
17067
+ */
17063
17068
  var DeviceHistoryKindSchema = _enum([
17069
+ "gauge",
17070
+ "counter",
17071
+ "boolean",
17072
+ "enum"
17073
+ ]);
17074
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17075
+ var DeviceHistoryProducerKindSchema = _enum([
17064
17076
  "gauge",
17065
17077
  "counter",
17066
17078
  "boolean"
@@ -17097,7 +17109,13 @@ var SeriesInfoSchema = object({
17097
17109
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17098
17110
  unit: string().nullable(),
17099
17111
  displayName: string(),
17100
- source: _enum(["cap", "addon"]),
17112
+ source: _enum([
17113
+ "cap",
17114
+ "addon",
17115
+ "derived"
17116
+ ]),
17117
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17118
+ values: array(string()).readonly().nullable(),
17101
17119
  firstTs: number(),
17102
17120
  lastTs: number()
17103
17121
  });
@@ -17111,17 +17129,31 @@ var QueryPointSchema = object({
17111
17129
  twMean: number().nullable(),
17112
17130
  min: number(),
17113
17131
  max: number(),
17114
- /** `null` is unknown, never zero (D393). */
17115
- last: number().nullable()
17132
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17133
+ last: number().nullable(),
17134
+ /**
17135
+ * The increase over the point: a `counter`'s growth since the previous point
17136
+ * or bucket (a drop is a reset, counted from zero), and for
17137
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17138
+ * every other kind, and when it cannot be known.
17139
+ */
17140
+ delta: number().nullable(),
17141
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17142
+ state: string().nullable(),
17143
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17144
+ states: record(string(), number()).nullable()
17116
17145
  });
17117
17146
  var QuerySeriesSchema = object({
17118
17147
  scope: string(),
17119
17148
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17120
17149
  before: object({
17121
17150
  t: number(),
17122
- value: number().nullable()
17151
+ value: number().nullable(),
17152
+ state: string().nullable()
17123
17153
  }).nullable(),
17124
- points: array(QueryPointSchema).readonly()
17154
+ points: array(QueryPointSchema).readonly(),
17155
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17156
+ derivedFrom: string().nullable()
17125
17157
  });
17126
17158
  /** The window part of a query, shared by the device and node forms. */
17127
17159
  var QueryWindowShape = {
@@ -17137,6 +17169,23 @@ var QueryResultSchema = object({
17137
17169
  series: array(QuerySeriesSchema).readonly(),
17138
17170
  truncated: boolean()
17139
17171
  });
17172
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17173
+ var QueryManyItemSchema = union([object({
17174
+ deviceId: number().int(),
17175
+ key: string(),
17176
+ scope: string().optional()
17177
+ }), object({
17178
+ forNodeId: string().min(1),
17179
+ key: string(),
17180
+ scope: string().optional()
17181
+ })]);
17182
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17183
+ ok: literal(true),
17184
+ result: QueryResultSchema
17185
+ }), object({
17186
+ ok: literal(false),
17187
+ error: string()
17188
+ })]);
17140
17189
  var TierStatusSchema = object({
17141
17190
  tier: DeviceHistoryResolutionSchema,
17142
17191
  /** `null` until the first background count answered. */
@@ -17192,16 +17241,22 @@ var DeviceHistoryStatusSchema = object({
17192
17241
  lastRefreshAt: number().nullable()
17193
17242
  })
17194
17243
  });
17195
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17244
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17196
17245
  deviceId: number().int(),
17197
17246
  ...QueryWindowShape
17198
17247
  }), QueryResultSchema), method(object({
17199
- nodeId: string().min(1),
17248
+ forNodeId: string().min(1),
17200
17249
  ...QueryWindowShape
17201
17250
  }), QueryResultSchema, { auth: "admin" }), method(object({
17251
+ items: array(QueryManyItemSchema).min(1).max(24),
17252
+ from: QueryWindowShape.from,
17253
+ to: QueryWindowShape.to,
17254
+ resolution: QueryWindowShape.resolution,
17255
+ maxPoints: QueryWindowShape.maxPoints
17256
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17202
17257
  name: string().regex(/^[a-z0-9-]+$/),
17203
17258
  subjectKind: _enum(["device", "node"]),
17204
- kind: DeviceHistoryKindSchema,
17259
+ kind: DeviceHistoryProducerKindSchema,
17205
17260
  unit: string().optional(),
17206
17261
  displayName: string().min(1),
17207
17262
  ingest: _enum(["points", "buckets"])
@@ -40427,14 +40482,106 @@ var LogEntrySchema = object({
40427
40482
  meta: record(string(), unknown()).optional(),
40428
40483
  tags: record(string(), string()).optional()
40429
40484
  });
40430
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40431
- scope: array(string()).optional(),
40485
+ /**
40486
+ * A history READ against one destination (D898).
40487
+ *
40488
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40489
+ * browser applied after the limit is what made a rare device's lines
40490
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40491
+ * minted (opaque to everyone else): a file position for the rotated files, a
40492
+ * nanosecond timestamp for Loki.
40493
+ *
40494
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40495
+ * store answers `done: false` with the cursor it reached and the bytes it
40496
+ * scanned, and the caller decides whether to go on. That is what makes a long
40497
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40498
+ * flight, and not asking for the next slice ends the scan.
40499
+ */
40500
+ var LogReadQuerySchema = object({
40501
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40502
+ requestId: string().min(1).max(64).optional(),
40503
+ /** The device the line is about (`tags.deviceId`, numeric). */
40504
+ deviceId: number().int().optional(),
40505
+ /**
40506
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40507
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40508
+ */
40509
+ fromAddonId: string().min(1).max(200).optional(),
40510
+ /**
40511
+ * The emitting node: matches the agent that emitted the line, the node
40512
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40513
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40514
+ * name as "which node's provider".
40515
+ */
40516
+ fromNodeId: string().min(1).max(200).optional(),
40517
+ /** Any other tag, exact match (AND). */
40518
+ tags: record(string(), union([string(), number()])).optional(),
40519
+ /** Severity FLOOR: this level and above. */
40432
40520
  level: LogLevelSchema.optional(),
40433
- since: date().optional(),
40434
- until: date().optional(),
40435
- limit: number().optional(),
40436
- tags: record(string(), string()).optional()
40437
- }), array(LogEntrySchema).readonly());
40521
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40522
+ text: string().min(1).max(200).optional(),
40523
+ /** Epoch ms, inclusive. */
40524
+ since: number().optional(),
40525
+ /** Epoch ms, inclusive. */
40526
+ until: number().optional(),
40527
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40528
+ before: string().min(1).max(1024).optional(),
40529
+ /** Newer than this cursor (exclusive). */
40530
+ after: string().min(1).max(1024).optional(),
40531
+ limit: number().int().min(1).max(1e3).optional(),
40532
+ /** Wall-clock bound of this slice. The provider caps it. */
40533
+ budgetMs: number().int().min(50).max(1e4).optional()
40534
+ });
40535
+ var LogReadResultSchema = object({
40536
+ /** Newest first. */
40537
+ entries: array(object({
40538
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40539
+ id: string().optional(),
40540
+ /** Epoch ms. */
40541
+ timestamp: number(),
40542
+ level: LogLevelSchema,
40543
+ scope: string().optional(),
40544
+ message: string(),
40545
+ tags: record(string(), union([string(), number()])).optional(),
40546
+ meta: record(string(), unknown()).optional()
40547
+ })),
40548
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40549
+ nextBefore: string().nullable(),
40550
+ /** Pass as `after` to read what arrived since; null when unknown. */
40551
+ nextAfter: string().nullable(),
40552
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40553
+ scannedBytes: number().int().nonnegative(),
40554
+ /**
40555
+ * True when the scan in this direction reached the end of the store.
40556
+ * False with fewer than `limit` entries means the budget ran out first —
40557
+ * call again with `nextBefore` to go on.
40558
+ */
40559
+ done: boolean(),
40560
+ /** True when `cancelRead` ended this slice early. */
40561
+ cancelled: boolean().optional()
40562
+ });
40563
+ var LogReadCapabilitiesSchema = object({
40564
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40565
+ readable: boolean(),
40566
+ /** Why not, when `readable` is false — rendered next to the source. */
40567
+ reason: string().nullable(),
40568
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40569
+ filters: object({
40570
+ deviceId: boolean(),
40571
+ addonId: boolean(),
40572
+ nodeId: boolean(),
40573
+ tags: boolean(),
40574
+ level: boolean(),
40575
+ text: boolean(),
40576
+ timeRange: boolean()
40577
+ }),
40578
+ /** How far back the store reaches, when the provider knows (days). */
40579
+ retentionDays: number().nullable()
40580
+ });
40581
+ 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() }), {
40582
+ kind: "mutation",
40583
+ auth: "admin"
40584
+ });
40438
40585
  /**
40439
40586
  * `login-method` — collection cap through which auth addons contribute
40440
40587
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42152,9 +42299,11 @@ var alarmPanelCapability = {
42152
42299
  */
42153
42300
  durability: "restored",
42154
42301
  /**
42155
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42302
+ * History (D850): the panel's lifecycle state as an `enum` series —
42303
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42304
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42156
42305
  */
42157
- history: "none",
42306
+ history: { fields: { state: { kind: "enum" } } },
42158
42307
  /** Clock fields: written, but excluded from the compare that decides
42159
42308
  * whether persisting is worth a SQLite commit. */
42160
42309
  volatileStateFields: ["lastChangedAt"]
@@ -43032,6 +43181,33 @@ var NcRuleTargetSchema = object({
43032
43181
  params: record(string(), unknown()).optional()
43033
43182
  });
43034
43183
  /**
43184
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43185
+ *
43186
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43187
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43188
+ * to the zone that fired the rule) and renders it once at send time:
43189
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43190
+ * colour and every OTHER track visible at that instant outlined thin, each
43191
+ * labelled with class and confidence ("dog 87%").
43192
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43193
+ * - `clean` — the whole scene with nothing drawn on it.
43194
+ * - `none` — no picture.
43195
+ *
43196
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43197
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43198
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43199
+ * ship a crop on one event and a boxed scene on the next depending on which
43200
+ * stored kind had landed.
43201
+ */
43202
+ var NcMediaImageSchema = _enum([
43203
+ "scene-boxes",
43204
+ "crop",
43205
+ "clean",
43206
+ "none"
43207
+ ]);
43208
+ /**
43209
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43210
+ *
43035
43211
  * Media attachment policy (P1 still-image subset).
43036
43212
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43037
43213
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43045,6 +43221,8 @@ var NcRuleTargetSchema = object({
43045
43221
  * - `none` — no attachment.
43046
43222
  */
43047
43223
  /**
43224
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43225
+ *
43048
43226
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43049
43227
  * conflate it with the selection strategy and betray the request: asking for
43050
43228
  * the clean scene frame on an object-event owner used to start at
@@ -43073,16 +43251,29 @@ var NcMediaFrameSchema = _enum([
43073
43251
  */
43074
43252
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43075
43253
  var NcMediaPolicySchema = object({
43254
+ /**
43255
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43256
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43257
+ * triple below, at load and at every write, and the store keeps only this.
43258
+ */
43259
+ image: NcMediaImageSchema.optional(),
43260
+ /**
43261
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43262
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43263
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43264
+ * Replaces `zoneCrop`.
43265
+ */
43266
+ showTriggerZone: boolean().optional(),
43267
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43076
43268
  attach: _enum([
43077
43269
  "best",
43078
43270
  "best-matching",
43079
43271
  "keyFrame",
43080
43272
  "none"
43081
- ]).default("best"),
43082
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43273
+ ]).optional(),
43274
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43083
43275
  frame: NcMediaFrameSchema.optional(),
43084
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43085
- * "show me the ZONE", not the whole scene or the subject crop. */
43276
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43086
43277
  zoneCrop: boolean().optional(),
43087
43278
  /**
43088
43279
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43254,7 +43445,9 @@ var NcRuleInputSchema = object({
43254
43445
  * targets.
43255
43446
  */
43256
43447
  targetUsers: array(string()).optional(),
43257
- media: NcMediaPolicySchema.default({ attach: "best" }),
43448
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43449
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43450
+ media: NcMediaPolicySchema.default({}),
43258
43451
  throttle: NcThrottleSchema.default({
43259
43452
  cooldownSec: 60,
43260
43453
  scope: "rule-device"
@@ -44191,13 +44384,37 @@ var NcAlarmModeOpeningsSchema = object({
44191
44384
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44192
44385
  unknown: array(number().int())
44193
44386
  });
44387
+ /**
44388
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44389
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44390
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44391
+ * never looks fully armed (D62: off must never look like broken).
44392
+ */
44393
+ var NcAlarmInputBypassViewSchema = object({
44394
+ ruleId: string(),
44395
+ /** The rule's current name (its frozen name when the rule is gone). */
44396
+ ruleName: string(),
44397
+ /** The input: the sensor of the match, else its camera. */
44398
+ deviceId: number().int(),
44399
+ /** The input's current name. */
44400
+ name: string(),
44401
+ /** When it was bypassed (ms epoch). */
44402
+ since: number(),
44403
+ /** Triggers from this input dropped since. */
44404
+ dropped: number().int().min(0)
44405
+ });
44194
44406
  var NcAlarmLiveSchema = object({
44195
44407
  state: AlarmStateSchema,
44196
44408
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44197
44409
  targetMode: AlarmArmModeSchema.nullable(),
44198
44410
  availableModes: array(AlarmArmModeSchema),
44199
44411
  openings: array(NcAlarmModeOpeningsSchema),
44200
- exclusions: array(NcAlarmExclusionViewSchema)
44412
+ exclusions: array(NcAlarmExclusionViewSchema),
44413
+ /**
44414
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44415
+ * Defaulted so an older hub answer still parses (as "none known").
44416
+ */
44417
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44201
44418
  });
44202
44419
  var NcAlarmConfigSchema = object({
44203
44420
  /**
@@ -55028,9 +55245,11 @@ var connectivityCapability = {
55028
55245
  */
55029
55246
  durability: "restored",
55030
55247
  /**
55031
- * History (D850): none — duplicates device-status.online (one authority for availability).
55248
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55249
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55250
+ * device's reachability, which stays `device-status.online`.
55032
55251
  */
55033
- history: "none",
55252
+ history: { fields: { connected: { kind: "boolean" } } },
55034
55253
  /** Clock fields: written, but excluded from the compare that decides
55035
55254
  * whether persisting is worth a SQLite commit. */
55036
55255
  volatileStateFields: ["lastChangedAt"]
@@ -55854,11 +56073,22 @@ var dishwasherCapability = {
55854
56073
  },
55855
56074
  runtimeState: DishwasherStatusSchema,
55856
56075
  durability: "session",
55857
- history: { fields: { progressPercent: {
55858
- kind: "gauge",
55859
- unit: "%",
55860
- deadband: 2
55861
- } } }
56076
+ history: { fields: {
56077
+ progressPercent: {
56078
+ kind: "gauge",
56079
+ unit: "%",
56080
+ deadband: 2
56081
+ },
56082
+ state: { kind: "enum" },
56083
+ operationState: { kind: "enum" },
56084
+ remainingSeconds: {
56085
+ kind: "gauge",
56086
+ unit: "s",
56087
+ minIntervalMs: 6e4
56088
+ },
56089
+ doorOpen: { kind: "boolean" },
56090
+ powerOn: { kind: "boolean" }
56091
+ } }
55862
56092
  };
55863
56093
  var DoorbellStatusSchema = object({
55864
56094
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55975,9 +56205,15 @@ var enumSensorCapability = {
55975
56205
  */
55976
56206
  durability: "restored",
55977
56207
  /**
55978
- * History (D850): none — text/enum state has no history (non-goal).
56208
+ * History (D850): the value as an `enum` series (an appliance's program or
56209
+ * operation state, an HVAC action). The option set is per device, so the
56210
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56211
+ * `format` carries a timestamp, not a state, and is not recorded.
55979
56212
  */
55980
- history: "none",
56213
+ history: { fields: { value: {
56214
+ kind: "enum",
56215
+ skipWhenSet: "format"
56216
+ } } },
55981
56217
  /** Clock fields: written, but excluded from the compare that decides
55982
56218
  * whether persisting is worth a SQLite commit. */
55983
56219
  volatileStateFields: ["lastFetchedAt"]
@@ -57951,9 +58187,10 @@ var lockControlCapability = {
57951
58187
  */
57952
58188
  durability: "restored",
57953
58189
  /**
57954
- * History (D850): none — enum state; lock events belong in the events ledger.
58190
+ * History (D850): the lock's state as an `enum` series — change-only, no
58191
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57955
58192
  */
57956
- history: "none",
58193
+ history: { fields: { state: { kind: "enum" } } },
57957
58194
  /** Clock fields: written, but excluded from the compare that decides
57958
58195
  * whether persisting is worth a SQLite commit. */
57959
58196
  volatileStateFields: ["lastChangedAt"]
@@ -58127,9 +58364,18 @@ var mediaPlayerCapability = {
58127
58364
  */
58128
58365
  durability: "session",
58129
58366
  /**
58130
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58367
+ * History (D850): volume (a level an operator or an automation sets; the
58368
+ * default 10 s floor folds a slider drag into its end value) and mute.
58369
+ * `positionMs` is not recorded: it moves continuously while playing.
58131
58370
  */
58132
- history: "none"
58371
+ history: { fields: {
58372
+ volumeLevel: {
58373
+ kind: "gauge",
58374
+ unit: "%",
58375
+ deadband: 1
58376
+ },
58377
+ isMuted: { kind: "boolean" }
58378
+ } }
58133
58379
  };
58134
58380
  /**
58135
58381
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63422,9 +63668,29 @@ var streamParamsCapability = {
63422
63668
  */
63423
63669
  durability: "restored",
63424
63670
  /**
63425
- * History (D850): none — encoder configuration.
63671
+ * History (D850): the configured bitrate and frame rate of the main and sub
63672
+ * profiles. Configuration, so change-only on the default floor: a point is an
63673
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63674
+ * quality over time must show.
63426
63675
  */
63427
- history: "none",
63676
+ history: { fields: {
63677
+ "main.bitrate": {
63678
+ kind: "gauge",
63679
+ unit: "kbps"
63680
+ },
63681
+ "main.framerate": {
63682
+ kind: "gauge",
63683
+ unit: "fps"
63684
+ },
63685
+ "sub.bitrate": {
63686
+ kind: "gauge",
63687
+ unit: "kbps"
63688
+ },
63689
+ "sub.framerate": {
63690
+ kind: "gauge",
63691
+ unit: "fps"
63692
+ }
63693
+ } },
63428
63694
  /** Clock fields: written, but excluded from the compare that decides
63429
63695
  * whether persisting is worth a SQLite commit. */
63430
63696
  volatileStateFields: ["lastFetchedAt"]
@@ -66602,6 +66868,15 @@ var BaseDevice = class {
66602
66868
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66603
66869
  * with a typed cast.
66604
66870
  *
66871
+ * Answer what you KNOW. A plain array is read as the complete list only
66872
+ * while this device is `online` and probed; return
66873
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66874
+ * now (no credentials, parent not connected, a failed or partial read) —
66875
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66876
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66877
+ * deleted only after a second agreeing complete read on a later probe (D49;
66878
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66879
+ *
66605
66880
  * Default: no children.
66606
66881
  */
66607
66882
  getAccessoryChildren() {
@@ -70733,7 +71008,19 @@ Object.freeze({
70733
71008
  addonId: null,
70734
71009
  access: "view"
70735
71010
  },
70736
- "logDestination.query": {
71011
+ "logDestination.cancelRead": {
71012
+ capName: "log-destination",
71013
+ capScope: "system",
71014
+ addonId: null,
71015
+ access: "create"
71016
+ },
71017
+ "logDestination.describeRead": {
71018
+ capName: "log-destination",
71019
+ capScope: "system",
71020
+ addonId: null,
71021
+ access: "view"
71022
+ },
71023
+ "logDestination.read": {
70737
71024
  capName: "log-destination",
70738
71025
  capScope: "system",
70739
71026
  addonId: null,
@@ -76740,6 +77027,11 @@ Object.freeze({
76740
77027
  form: "single",
76741
77028
  optional: false
76742
77029
  }],
77030
+ "logDestination.read": [{
77031
+ name: "deviceId",
77032
+ form: "single",
77033
+ optional: true
77034
+ }],
76743
77035
  "mediaPlayer.getStatus": [{
76744
77036
  name: "deviceId",
76745
77037
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5425,7 +5425,7 @@ var ZodIssueCode = {
5425
5425
  var ZodFirstPartyTypeKind;
5426
5426
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5427
5427
  //#endregion
5428
- //#region ../types/dist/sleep-yKL5gfrH.mjs
5428
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5429
5429
  /**
5430
5430
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5431
5431
  * window to float samples (D455).
@@ -17039,7 +17039,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17039
17039
  kind: literal("node"),
17040
17040
  nodeId: string().min(1)
17041
17041
  })]);
17042
+ /**
17043
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17044
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17045
+ * meaning); a rollup keeps the time spent in each state (`states`).
17046
+ */
17042
17047
  var DeviceHistoryKindSchema = _enum([
17048
+ "gauge",
17049
+ "counter",
17050
+ "boolean",
17051
+ "enum"
17052
+ ]);
17053
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17054
+ var DeviceHistoryProducerKindSchema = _enum([
17043
17055
  "gauge",
17044
17056
  "counter",
17045
17057
  "boolean"
@@ -17076,7 +17088,13 @@ var SeriesInfoSchema = object({
17076
17088
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17077
17089
  unit: string().nullable(),
17078
17090
  displayName: string(),
17079
- source: _enum(["cap", "addon"]),
17091
+ source: _enum([
17092
+ "cap",
17093
+ "addon",
17094
+ "derived"
17095
+ ]),
17096
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17097
+ values: array(string()).readonly().nullable(),
17080
17098
  firstTs: number(),
17081
17099
  lastTs: number()
17082
17100
  });
@@ -17090,17 +17108,31 @@ var QueryPointSchema = object({
17090
17108
  twMean: number().nullable(),
17091
17109
  min: number(),
17092
17110
  max: number(),
17093
- /** `null` is unknown, never zero (D393). */
17094
- last: number().nullable()
17111
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17112
+ last: number().nullable(),
17113
+ /**
17114
+ * The increase over the point: a `counter`'s growth since the previous point
17115
+ * or bucket (a drop is a reset, counted from zero), and for
17116
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17117
+ * every other kind, and when it cannot be known.
17118
+ */
17119
+ delta: number().nullable(),
17120
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17121
+ state: string().nullable(),
17122
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17123
+ states: record(string(), number()).nullable()
17095
17124
  });
17096
17125
  var QuerySeriesSchema = object({
17097
17126
  scope: string(),
17098
17127
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17099
17128
  before: object({
17100
17129
  t: number(),
17101
- value: number().nullable()
17130
+ value: number().nullable(),
17131
+ state: string().nullable()
17102
17132
  }).nullable(),
17103
- points: array(QueryPointSchema).readonly()
17133
+ points: array(QueryPointSchema).readonly(),
17134
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17135
+ derivedFrom: string().nullable()
17104
17136
  });
17105
17137
  /** The window part of a query, shared by the device and node forms. */
17106
17138
  var QueryWindowShape = {
@@ -17116,6 +17148,23 @@ var QueryResultSchema = object({
17116
17148
  series: array(QuerySeriesSchema).readonly(),
17117
17149
  truncated: boolean()
17118
17150
  });
17151
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17152
+ var QueryManyItemSchema = union([object({
17153
+ deviceId: number().int(),
17154
+ key: string(),
17155
+ scope: string().optional()
17156
+ }), object({
17157
+ forNodeId: string().min(1),
17158
+ key: string(),
17159
+ scope: string().optional()
17160
+ })]);
17161
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17162
+ ok: literal(true),
17163
+ result: QueryResultSchema
17164
+ }), object({
17165
+ ok: literal(false),
17166
+ error: string()
17167
+ })]);
17119
17168
  var TierStatusSchema = object({
17120
17169
  tier: DeviceHistoryResolutionSchema,
17121
17170
  /** `null` until the first background count answered. */
@@ -17171,16 +17220,22 @@ var DeviceHistoryStatusSchema = object({
17171
17220
  lastRefreshAt: number().nullable()
17172
17221
  })
17173
17222
  });
17174
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17223
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17175
17224
  deviceId: number().int(),
17176
17225
  ...QueryWindowShape
17177
17226
  }), QueryResultSchema), method(object({
17178
- nodeId: string().min(1),
17227
+ forNodeId: string().min(1),
17179
17228
  ...QueryWindowShape
17180
17229
  }), QueryResultSchema, { auth: "admin" }), method(object({
17230
+ items: array(QueryManyItemSchema).min(1).max(24),
17231
+ from: QueryWindowShape.from,
17232
+ to: QueryWindowShape.to,
17233
+ resolution: QueryWindowShape.resolution,
17234
+ maxPoints: QueryWindowShape.maxPoints
17235
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17181
17236
  name: string().regex(/^[a-z0-9-]+$/),
17182
17237
  subjectKind: _enum(["device", "node"]),
17183
- kind: DeviceHistoryKindSchema,
17238
+ kind: DeviceHistoryProducerKindSchema,
17184
17239
  unit: string().optional(),
17185
17240
  displayName: string().min(1),
17186
17241
  ingest: _enum(["points", "buckets"])
@@ -40406,14 +40461,106 @@ var LogEntrySchema = object({
40406
40461
  meta: record(string(), unknown()).optional(),
40407
40462
  tags: record(string(), string()).optional()
40408
40463
  });
40409
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40410
- scope: array(string()).optional(),
40464
+ /**
40465
+ * A history READ against one destination (D898).
40466
+ *
40467
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40468
+ * browser applied after the limit is what made a rare device's lines
40469
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40470
+ * minted (opaque to everyone else): a file position for the rotated files, a
40471
+ * nanosecond timestamp for Loki.
40472
+ *
40473
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40474
+ * store answers `done: false` with the cursor it reached and the bytes it
40475
+ * scanned, and the caller decides whether to go on. That is what makes a long
40476
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40477
+ * flight, and not asking for the next slice ends the scan.
40478
+ */
40479
+ var LogReadQuerySchema = object({
40480
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40481
+ requestId: string().min(1).max(64).optional(),
40482
+ /** The device the line is about (`tags.deviceId`, numeric). */
40483
+ deviceId: number().int().optional(),
40484
+ /**
40485
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40486
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40487
+ */
40488
+ fromAddonId: string().min(1).max(200).optional(),
40489
+ /**
40490
+ * The emitting node: matches the agent that emitted the line, the node
40491
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40492
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40493
+ * name as "which node's provider".
40494
+ */
40495
+ fromNodeId: string().min(1).max(200).optional(),
40496
+ /** Any other tag, exact match (AND). */
40497
+ tags: record(string(), union([string(), number()])).optional(),
40498
+ /** Severity FLOOR: this level and above. */
40411
40499
  level: LogLevelSchema.optional(),
40412
- since: date().optional(),
40413
- until: date().optional(),
40414
- limit: number().optional(),
40415
- tags: record(string(), string()).optional()
40416
- }), array(LogEntrySchema).readonly());
40500
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40501
+ text: string().min(1).max(200).optional(),
40502
+ /** Epoch ms, inclusive. */
40503
+ since: number().optional(),
40504
+ /** Epoch ms, inclusive. */
40505
+ until: number().optional(),
40506
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40507
+ before: string().min(1).max(1024).optional(),
40508
+ /** Newer than this cursor (exclusive). */
40509
+ after: string().min(1).max(1024).optional(),
40510
+ limit: number().int().min(1).max(1e3).optional(),
40511
+ /** Wall-clock bound of this slice. The provider caps it. */
40512
+ budgetMs: number().int().min(50).max(1e4).optional()
40513
+ });
40514
+ var LogReadResultSchema = object({
40515
+ /** Newest first. */
40516
+ entries: array(object({
40517
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40518
+ id: string().optional(),
40519
+ /** Epoch ms. */
40520
+ timestamp: number(),
40521
+ level: LogLevelSchema,
40522
+ scope: string().optional(),
40523
+ message: string(),
40524
+ tags: record(string(), union([string(), number()])).optional(),
40525
+ meta: record(string(), unknown()).optional()
40526
+ })),
40527
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40528
+ nextBefore: string().nullable(),
40529
+ /** Pass as `after` to read what arrived since; null when unknown. */
40530
+ nextAfter: string().nullable(),
40531
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40532
+ scannedBytes: number().int().nonnegative(),
40533
+ /**
40534
+ * True when the scan in this direction reached the end of the store.
40535
+ * False with fewer than `limit` entries means the budget ran out first —
40536
+ * call again with `nextBefore` to go on.
40537
+ */
40538
+ done: boolean(),
40539
+ /** True when `cancelRead` ended this slice early. */
40540
+ cancelled: boolean().optional()
40541
+ });
40542
+ var LogReadCapabilitiesSchema = object({
40543
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40544
+ readable: boolean(),
40545
+ /** Why not, when `readable` is false — rendered next to the source. */
40546
+ reason: string().nullable(),
40547
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40548
+ filters: object({
40549
+ deviceId: boolean(),
40550
+ addonId: boolean(),
40551
+ nodeId: boolean(),
40552
+ tags: boolean(),
40553
+ level: boolean(),
40554
+ text: boolean(),
40555
+ timeRange: boolean()
40556
+ }),
40557
+ /** How far back the store reaches, when the provider knows (days). */
40558
+ retentionDays: number().nullable()
40559
+ });
40560
+ 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() }), {
40561
+ kind: "mutation",
40562
+ auth: "admin"
40563
+ });
40417
40564
  /**
40418
40565
  * `login-method` — collection cap through which auth addons contribute
40419
40566
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42131,9 +42278,11 @@ var alarmPanelCapability = {
42131
42278
  */
42132
42279
  durability: "restored",
42133
42280
  /**
42134
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42281
+ * History (D850): the panel's lifecycle state as an `enum` series —
42282
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42283
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42135
42284
  */
42136
- history: "none",
42285
+ history: { fields: { state: { kind: "enum" } } },
42137
42286
  /** Clock fields: written, but excluded from the compare that decides
42138
42287
  * whether persisting is worth a SQLite commit. */
42139
42288
  volatileStateFields: ["lastChangedAt"]
@@ -43011,6 +43160,33 @@ var NcRuleTargetSchema = object({
43011
43160
  params: record(string(), unknown()).optional()
43012
43161
  });
43013
43162
  /**
43163
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43164
+ *
43165
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43166
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43167
+ * to the zone that fired the rule) and renders it once at send time:
43168
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43169
+ * colour and every OTHER track visible at that instant outlined thin, each
43170
+ * labelled with class and confidence ("dog 87%").
43171
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43172
+ * - `clean` — the whole scene with nothing drawn on it.
43173
+ * - `none` — no picture.
43174
+ *
43175
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43176
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43177
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43178
+ * ship a crop on one event and a boxed scene on the next depending on which
43179
+ * stored kind had landed.
43180
+ */
43181
+ var NcMediaImageSchema = _enum([
43182
+ "scene-boxes",
43183
+ "crop",
43184
+ "clean",
43185
+ "none"
43186
+ ]);
43187
+ /**
43188
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43189
+ *
43014
43190
  * Media attachment policy (P1 still-image subset).
43015
43191
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43016
43192
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43024,6 +43200,8 @@ var NcRuleTargetSchema = object({
43024
43200
  * - `none` — no attachment.
43025
43201
  */
43026
43202
  /**
43203
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43204
+ *
43027
43205
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43028
43206
  * conflate it with the selection strategy and betray the request: asking for
43029
43207
  * the clean scene frame on an object-event owner used to start at
@@ -43052,16 +43230,29 @@ var NcMediaFrameSchema = _enum([
43052
43230
  */
43053
43231
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43054
43232
  var NcMediaPolicySchema = object({
43233
+ /**
43234
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43235
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43236
+ * triple below, at load and at every write, and the store keeps only this.
43237
+ */
43238
+ image: NcMediaImageSchema.optional(),
43239
+ /**
43240
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43241
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43242
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43243
+ * Replaces `zoneCrop`.
43244
+ */
43245
+ showTriggerZone: boolean().optional(),
43246
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43055
43247
  attach: _enum([
43056
43248
  "best",
43057
43249
  "best-matching",
43058
43250
  "keyFrame",
43059
43251
  "none"
43060
- ]).default("best"),
43061
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43252
+ ]).optional(),
43253
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43062
43254
  frame: NcMediaFrameSchema.optional(),
43063
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43064
- * "show me the ZONE", not the whole scene or the subject crop. */
43255
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43065
43256
  zoneCrop: boolean().optional(),
43066
43257
  /**
43067
43258
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43233,7 +43424,9 @@ var NcRuleInputSchema = object({
43233
43424
  * targets.
43234
43425
  */
43235
43426
  targetUsers: array(string()).optional(),
43236
- media: NcMediaPolicySchema.default({ attach: "best" }),
43427
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43428
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43429
+ media: NcMediaPolicySchema.default({}),
43237
43430
  throttle: NcThrottleSchema.default({
43238
43431
  cooldownSec: 60,
43239
43432
  scope: "rule-device"
@@ -44170,13 +44363,37 @@ var NcAlarmModeOpeningsSchema = object({
44170
44363
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44171
44364
  unknown: array(number().int())
44172
44365
  });
44366
+ /**
44367
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44368
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44369
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44370
+ * never looks fully armed (D62: off must never look like broken).
44371
+ */
44372
+ var NcAlarmInputBypassViewSchema = object({
44373
+ ruleId: string(),
44374
+ /** The rule's current name (its frozen name when the rule is gone). */
44375
+ ruleName: string(),
44376
+ /** The input: the sensor of the match, else its camera. */
44377
+ deviceId: number().int(),
44378
+ /** The input's current name. */
44379
+ name: string(),
44380
+ /** When it was bypassed (ms epoch). */
44381
+ since: number(),
44382
+ /** Triggers from this input dropped since. */
44383
+ dropped: number().int().min(0)
44384
+ });
44173
44385
  var NcAlarmLiveSchema = object({
44174
44386
  state: AlarmStateSchema,
44175
44387
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44176
44388
  targetMode: AlarmArmModeSchema.nullable(),
44177
44389
  availableModes: array(AlarmArmModeSchema),
44178
44390
  openings: array(NcAlarmModeOpeningsSchema),
44179
- exclusions: array(NcAlarmExclusionViewSchema)
44391
+ exclusions: array(NcAlarmExclusionViewSchema),
44392
+ /**
44393
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44394
+ * Defaulted so an older hub answer still parses (as "none known").
44395
+ */
44396
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44180
44397
  });
44181
44398
  var NcAlarmConfigSchema = object({
44182
44399
  /**
@@ -55007,9 +55224,11 @@ var connectivityCapability = {
55007
55224
  */
55008
55225
  durability: "restored",
55009
55226
  /**
55010
- * History (D850): none — duplicates device-status.online (one authority for availability).
55227
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55228
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55229
+ * device's reachability, which stays `device-status.online`.
55011
55230
  */
55012
- history: "none",
55231
+ history: { fields: { connected: { kind: "boolean" } } },
55013
55232
  /** Clock fields: written, but excluded from the compare that decides
55014
55233
  * whether persisting is worth a SQLite commit. */
55015
55234
  volatileStateFields: ["lastChangedAt"]
@@ -55833,11 +56052,22 @@ var dishwasherCapability = {
55833
56052
  },
55834
56053
  runtimeState: DishwasherStatusSchema,
55835
56054
  durability: "session",
55836
- history: { fields: { progressPercent: {
55837
- kind: "gauge",
55838
- unit: "%",
55839
- deadband: 2
55840
- } } }
56055
+ history: { fields: {
56056
+ progressPercent: {
56057
+ kind: "gauge",
56058
+ unit: "%",
56059
+ deadband: 2
56060
+ },
56061
+ state: { kind: "enum" },
56062
+ operationState: { kind: "enum" },
56063
+ remainingSeconds: {
56064
+ kind: "gauge",
56065
+ unit: "s",
56066
+ minIntervalMs: 6e4
56067
+ },
56068
+ doorOpen: { kind: "boolean" },
56069
+ powerOn: { kind: "boolean" }
56070
+ } }
55841
56071
  };
55842
56072
  var DoorbellStatusSchema = object({
55843
56073
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55954,9 +56184,15 @@ var enumSensorCapability = {
55954
56184
  */
55955
56185
  durability: "restored",
55956
56186
  /**
55957
- * History (D850): none — text/enum state has no history (non-goal).
56187
+ * History (D850): the value as an `enum` series (an appliance's program or
56188
+ * operation state, an HVAC action). The option set is per device, so the
56189
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56190
+ * `format` carries a timestamp, not a state, and is not recorded.
55958
56191
  */
55959
- history: "none",
56192
+ history: { fields: { value: {
56193
+ kind: "enum",
56194
+ skipWhenSet: "format"
56195
+ } } },
55960
56196
  /** Clock fields: written, but excluded from the compare that decides
55961
56197
  * whether persisting is worth a SQLite commit. */
55962
56198
  volatileStateFields: ["lastFetchedAt"]
@@ -57930,9 +58166,10 @@ var lockControlCapability = {
57930
58166
  */
57931
58167
  durability: "restored",
57932
58168
  /**
57933
- * History (D850): none — enum state; lock events belong in the events ledger.
58169
+ * History (D850): the lock's state as an `enum` series — change-only, no
58170
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57934
58171
  */
57935
- history: "none",
58172
+ history: { fields: { state: { kind: "enum" } } },
57936
58173
  /** Clock fields: written, but excluded from the compare that decides
57937
58174
  * whether persisting is worth a SQLite commit. */
57938
58175
  volatileStateFields: ["lastChangedAt"]
@@ -58106,9 +58343,18 @@ var mediaPlayerCapability = {
58106
58343
  */
58107
58344
  durability: "session",
58108
58345
  /**
58109
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58346
+ * History (D850): volume (a level an operator or an automation sets; the
58347
+ * default 10 s floor folds a slider drag into its end value) and mute.
58348
+ * `positionMs` is not recorded: it moves continuously while playing.
58110
58349
  */
58111
- history: "none"
58350
+ history: { fields: {
58351
+ volumeLevel: {
58352
+ kind: "gauge",
58353
+ unit: "%",
58354
+ deadband: 1
58355
+ },
58356
+ isMuted: { kind: "boolean" }
58357
+ } }
58112
58358
  };
58113
58359
  /**
58114
58360
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63401,9 +63647,29 @@ var streamParamsCapability = {
63401
63647
  */
63402
63648
  durability: "restored",
63403
63649
  /**
63404
- * History (D850): none — encoder configuration.
63650
+ * History (D850): the configured bitrate and frame rate of the main and sub
63651
+ * profiles. Configuration, so change-only on the default floor: a point is an
63652
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63653
+ * quality over time must show.
63405
63654
  */
63406
- history: "none",
63655
+ history: { fields: {
63656
+ "main.bitrate": {
63657
+ kind: "gauge",
63658
+ unit: "kbps"
63659
+ },
63660
+ "main.framerate": {
63661
+ kind: "gauge",
63662
+ unit: "fps"
63663
+ },
63664
+ "sub.bitrate": {
63665
+ kind: "gauge",
63666
+ unit: "kbps"
63667
+ },
63668
+ "sub.framerate": {
63669
+ kind: "gauge",
63670
+ unit: "fps"
63671
+ }
63672
+ } },
63407
63673
  /** Clock fields: written, but excluded from the compare that decides
63408
63674
  * whether persisting is worth a SQLite commit. */
63409
63675
  volatileStateFields: ["lastFetchedAt"]
@@ -66581,6 +66847,15 @@ var BaseDevice = class {
66581
66847
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66582
66848
  * with a typed cast.
66583
66849
  *
66850
+ * Answer what you KNOW. A plain array is read as the complete list only
66851
+ * while this device is `online` and probed; return
66852
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66853
+ * now (no credentials, parent not connected, a failed or partial read) —
66854
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66855
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66856
+ * deleted only after a second agreeing complete read on a later probe (D49;
66857
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66858
+ *
66584
66859
  * Default: no children.
66585
66860
  */
66586
66861
  getAccessoryChildren() {
@@ -70712,7 +70987,19 @@ Object.freeze({
70712
70987
  addonId: null,
70713
70988
  access: "view"
70714
70989
  },
70715
- "logDestination.query": {
70990
+ "logDestination.cancelRead": {
70991
+ capName: "log-destination",
70992
+ capScope: "system",
70993
+ addonId: null,
70994
+ access: "create"
70995
+ },
70996
+ "logDestination.describeRead": {
70997
+ capName: "log-destination",
70998
+ capScope: "system",
70999
+ addonId: null,
71000
+ access: "view"
71001
+ },
71002
+ "logDestination.read": {
70716
71003
  capName: "log-destination",
70717
71004
  capScope: "system",
70718
71005
  addonId: null,
@@ -76719,6 +77006,11 @@ Object.freeze({
76719
77006
  form: "single",
76720
77007
  optional: false
76721
77008
  }],
77009
+ "logDestination.read": [{
77010
+ name: "deviceId",
77011
+ form: "single",
77012
+ optional: true
77013
+ }],
76722
77014
  "mediaPlayer.getStatus": [{
76723
77015
  name: "deviceId",
76724
77016
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.143",
3
+ "version": "0.2.144",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",