@camstack/addon-provider-mqtt-ha 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +348 -41
- package/dist/addon.mjs +348 -41
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5448,7 +5448,7 @@ var ZodIssueCode = {
|
|
|
5448
5448
|
var ZodFirstPartyTypeKind;
|
|
5449
5449
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5450
5450
|
//#endregion
|
|
5451
|
-
//#region ../types/dist/sleep-
|
|
5451
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5452
5452
|
/**
|
|
5453
5453
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5454
5454
|
* window to float samples (D455).
|
|
@@ -17028,7 +17028,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17028
17028
|
kind: literal("node"),
|
|
17029
17029
|
nodeId: string().min(1)
|
|
17030
17030
|
})]);
|
|
17031
|
+
/**
|
|
17032
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17033
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17034
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17035
|
+
*/
|
|
17031
17036
|
var DeviceHistoryKindSchema = _enum([
|
|
17037
|
+
"gauge",
|
|
17038
|
+
"counter",
|
|
17039
|
+
"boolean",
|
|
17040
|
+
"enum"
|
|
17041
|
+
]);
|
|
17042
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17043
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17032
17044
|
"gauge",
|
|
17033
17045
|
"counter",
|
|
17034
17046
|
"boolean"
|
|
@@ -17065,7 +17077,13 @@ var SeriesInfoSchema = object({
|
|
|
17065
17077
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17066
17078
|
unit: string().nullable(),
|
|
17067
17079
|
displayName: string(),
|
|
17068
|
-
source: _enum([
|
|
17080
|
+
source: _enum([
|
|
17081
|
+
"cap",
|
|
17082
|
+
"addon",
|
|
17083
|
+
"derived"
|
|
17084
|
+
]),
|
|
17085
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17086
|
+
values: array(string()).readonly().nullable(),
|
|
17069
17087
|
firstTs: number(),
|
|
17070
17088
|
lastTs: number()
|
|
17071
17089
|
});
|
|
@@ -17079,17 +17097,31 @@ var QueryPointSchema = object({
|
|
|
17079
17097
|
twMean: number().nullable(),
|
|
17080
17098
|
min: number(),
|
|
17081
17099
|
max: number(),
|
|
17082
|
-
/** `null` is unknown, never zero (D393). */
|
|
17083
|
-
last: number().nullable()
|
|
17100
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17101
|
+
last: number().nullable(),
|
|
17102
|
+
/**
|
|
17103
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17104
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17105
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17106
|
+
* every other kind, and when it cannot be known.
|
|
17107
|
+
*/
|
|
17108
|
+
delta: number().nullable(),
|
|
17109
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17110
|
+
state: string().nullable(),
|
|
17111
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17112
|
+
states: record(string(), number()).nullable()
|
|
17084
17113
|
});
|
|
17085
17114
|
var QuerySeriesSchema = object({
|
|
17086
17115
|
scope: string(),
|
|
17087
17116
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17088
17117
|
before: object({
|
|
17089
17118
|
t: number(),
|
|
17090
|
-
value: number().nullable()
|
|
17119
|
+
value: number().nullable(),
|
|
17120
|
+
state: string().nullable()
|
|
17091
17121
|
}).nullable(),
|
|
17092
|
-
points: array(QueryPointSchema).readonly()
|
|
17122
|
+
points: array(QueryPointSchema).readonly(),
|
|
17123
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17124
|
+
derivedFrom: string().nullable()
|
|
17093
17125
|
});
|
|
17094
17126
|
/** The window part of a query, shared by the device and node forms. */
|
|
17095
17127
|
var QueryWindowShape = {
|
|
@@ -17105,6 +17137,23 @@ var QueryResultSchema = object({
|
|
|
17105
17137
|
series: array(QuerySeriesSchema).readonly(),
|
|
17106
17138
|
truncated: boolean()
|
|
17107
17139
|
});
|
|
17140
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17141
|
+
var QueryManyItemSchema = union([object({
|
|
17142
|
+
deviceId: number().int(),
|
|
17143
|
+
key: string(),
|
|
17144
|
+
scope: string().optional()
|
|
17145
|
+
}), object({
|
|
17146
|
+
forNodeId: string().min(1),
|
|
17147
|
+
key: string(),
|
|
17148
|
+
scope: string().optional()
|
|
17149
|
+
})]);
|
|
17150
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17151
|
+
ok: literal(true),
|
|
17152
|
+
result: QueryResultSchema
|
|
17153
|
+
}), object({
|
|
17154
|
+
ok: literal(false),
|
|
17155
|
+
error: string()
|
|
17156
|
+
})]);
|
|
17108
17157
|
var TierStatusSchema = object({
|
|
17109
17158
|
tier: DeviceHistoryResolutionSchema,
|
|
17110
17159
|
/** `null` until the first background count answered. */
|
|
@@ -17160,16 +17209,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17160
17209
|
lastRefreshAt: number().nullable()
|
|
17161
17210
|
})
|
|
17162
17211
|
});
|
|
17163
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17212
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17164
17213
|
deviceId: number().int(),
|
|
17165
17214
|
...QueryWindowShape
|
|
17166
17215
|
}), QueryResultSchema), method(object({
|
|
17167
|
-
|
|
17216
|
+
forNodeId: string().min(1),
|
|
17168
17217
|
...QueryWindowShape
|
|
17169
17218
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17219
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17220
|
+
from: QueryWindowShape.from,
|
|
17221
|
+
to: QueryWindowShape.to,
|
|
17222
|
+
resolution: QueryWindowShape.resolution,
|
|
17223
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17224
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17170
17225
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17171
17226
|
subjectKind: _enum(["device", "node"]),
|
|
17172
|
-
kind:
|
|
17227
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17173
17228
|
unit: string().optional(),
|
|
17174
17229
|
displayName: string().min(1),
|
|
17175
17230
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40395,14 +40450,106 @@ var LogEntrySchema = object({
|
|
|
40395
40450
|
meta: record(string(), unknown()).optional(),
|
|
40396
40451
|
tags: record(string(), string()).optional()
|
|
40397
40452
|
});
|
|
40398
|
-
|
|
40399
|
-
|
|
40453
|
+
/**
|
|
40454
|
+
* A history READ against one destination (D898).
|
|
40455
|
+
*
|
|
40456
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40457
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40458
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40459
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40460
|
+
* nanosecond timestamp for Loki.
|
|
40461
|
+
*
|
|
40462
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40463
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40464
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40465
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40466
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40467
|
+
*/
|
|
40468
|
+
var LogReadQuerySchema = object({
|
|
40469
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40470
|
+
requestId: string().min(1).max(64).optional(),
|
|
40471
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40472
|
+
deviceId: number().int().optional(),
|
|
40473
|
+
/**
|
|
40474
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40475
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40476
|
+
*/
|
|
40477
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40478
|
+
/**
|
|
40479
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40480
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40481
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40482
|
+
* name as "which node's provider".
|
|
40483
|
+
*/
|
|
40484
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40485
|
+
/** Any other tag, exact match (AND). */
|
|
40486
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40487
|
+
/** Severity FLOOR: this level and above. */
|
|
40400
40488
|
level: LogLevelSchema.optional(),
|
|
40401
|
-
|
|
40402
|
-
|
|
40403
|
-
|
|
40404
|
-
|
|
40405
|
-
|
|
40489
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40490
|
+
text: string().min(1).max(200).optional(),
|
|
40491
|
+
/** Epoch ms, inclusive. */
|
|
40492
|
+
since: number().optional(),
|
|
40493
|
+
/** Epoch ms, inclusive. */
|
|
40494
|
+
until: number().optional(),
|
|
40495
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40496
|
+
before: string().min(1).max(1024).optional(),
|
|
40497
|
+
/** Newer than this cursor (exclusive). */
|
|
40498
|
+
after: string().min(1).max(1024).optional(),
|
|
40499
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40500
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40501
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40502
|
+
});
|
|
40503
|
+
var LogReadResultSchema = object({
|
|
40504
|
+
/** Newest first. */
|
|
40505
|
+
entries: array(object({
|
|
40506
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40507
|
+
id: string().optional(),
|
|
40508
|
+
/** Epoch ms. */
|
|
40509
|
+
timestamp: number(),
|
|
40510
|
+
level: LogLevelSchema,
|
|
40511
|
+
scope: string().optional(),
|
|
40512
|
+
message: string(),
|
|
40513
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40514
|
+
meta: record(string(), unknown()).optional()
|
|
40515
|
+
})),
|
|
40516
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40517
|
+
nextBefore: string().nullable(),
|
|
40518
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40519
|
+
nextAfter: string().nullable(),
|
|
40520
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40521
|
+
scannedBytes: number().int().nonnegative(),
|
|
40522
|
+
/**
|
|
40523
|
+
* True when the scan in this direction reached the end of the store.
|
|
40524
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40525
|
+
* call again with `nextBefore` to go on.
|
|
40526
|
+
*/
|
|
40527
|
+
done: boolean(),
|
|
40528
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40529
|
+
cancelled: boolean().optional()
|
|
40530
|
+
});
|
|
40531
|
+
var LogReadCapabilitiesSchema = object({
|
|
40532
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40533
|
+
readable: boolean(),
|
|
40534
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40535
|
+
reason: string().nullable(),
|
|
40536
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40537
|
+
filters: object({
|
|
40538
|
+
deviceId: boolean(),
|
|
40539
|
+
addonId: boolean(),
|
|
40540
|
+
nodeId: boolean(),
|
|
40541
|
+
tags: boolean(),
|
|
40542
|
+
level: boolean(),
|
|
40543
|
+
text: boolean(),
|
|
40544
|
+
timeRange: boolean()
|
|
40545
|
+
}),
|
|
40546
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40547
|
+
retentionDays: number().nullable()
|
|
40548
|
+
});
|
|
40549
|
+
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() }), {
|
|
40550
|
+
kind: "mutation",
|
|
40551
|
+
auth: "admin"
|
|
40552
|
+
});
|
|
40406
40553
|
/**
|
|
40407
40554
|
* `login-method` — collection cap through which auth addons contribute
|
|
40408
40555
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42120,9 +42267,11 @@ var alarmPanelCapability = {
|
|
|
42120
42267
|
*/
|
|
42121
42268
|
durability: "restored",
|
|
42122
42269
|
/**
|
|
42123
|
-
* History (D850):
|
|
42270
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42271
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42272
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42124
42273
|
*/
|
|
42125
|
-
history: "
|
|
42274
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42126
42275
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42127
42276
|
* whether persisting is worth a SQLite commit. */
|
|
42128
42277
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43000,6 +43149,33 @@ var NcRuleTargetSchema = object({
|
|
|
43000
43149
|
params: record(string(), unknown()).optional()
|
|
43001
43150
|
});
|
|
43002
43151
|
/**
|
|
43152
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43153
|
+
*
|
|
43154
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43155
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43156
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43157
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43158
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43159
|
+
* labelled with class and confidence ("dog 87%").
|
|
43160
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43161
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43162
|
+
* - `none` — no picture.
|
|
43163
|
+
*
|
|
43164
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43165
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43166
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43167
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43168
|
+
* stored kind had landed.
|
|
43169
|
+
*/
|
|
43170
|
+
var NcMediaImageSchema = _enum([
|
|
43171
|
+
"scene-boxes",
|
|
43172
|
+
"crop",
|
|
43173
|
+
"clean",
|
|
43174
|
+
"none"
|
|
43175
|
+
]);
|
|
43176
|
+
/**
|
|
43177
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43178
|
+
*
|
|
43003
43179
|
* Media attachment policy (P1 still-image subset).
|
|
43004
43180
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43005
43181
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43013,6 +43189,8 @@ var NcRuleTargetSchema = object({
|
|
|
43013
43189
|
* - `none` — no attachment.
|
|
43014
43190
|
*/
|
|
43015
43191
|
/**
|
|
43192
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43193
|
+
*
|
|
43016
43194
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43017
43195
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43018
43196
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43041,16 +43219,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43041
43219
|
*/
|
|
43042
43220
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43043
43221
|
var NcMediaPolicySchema = object({
|
|
43222
|
+
/**
|
|
43223
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43224
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43225
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43226
|
+
*/
|
|
43227
|
+
image: NcMediaImageSchema.optional(),
|
|
43228
|
+
/**
|
|
43229
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43230
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43231
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43232
|
+
* Replaces `zoneCrop`.
|
|
43233
|
+
*/
|
|
43234
|
+
showTriggerZone: boolean().optional(),
|
|
43235
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43044
43236
|
attach: _enum([
|
|
43045
43237
|
"best",
|
|
43046
43238
|
"best-matching",
|
|
43047
43239
|
"keyFrame",
|
|
43048
43240
|
"none"
|
|
43049
|
-
]).
|
|
43050
|
-
/**
|
|
43241
|
+
]).optional(),
|
|
43242
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43051
43243
|
frame: NcMediaFrameSchema.optional(),
|
|
43052
|
-
/**
|
|
43053
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43244
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43054
43245
|
zoneCrop: boolean().optional(),
|
|
43055
43246
|
/**
|
|
43056
43247
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43222,7 +43413,9 @@ var NcRuleInputSchema = object({
|
|
|
43222
43413
|
* targets.
|
|
43223
43414
|
*/
|
|
43224
43415
|
targetUsers: array(string()).optional(),
|
|
43225
|
-
|
|
43416
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43417
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43418
|
+
media: NcMediaPolicySchema.default({}),
|
|
43226
43419
|
throttle: NcThrottleSchema.default({
|
|
43227
43420
|
cooldownSec: 60,
|
|
43228
43421
|
scope: "rule-device"
|
|
@@ -44159,13 +44352,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44159
44352
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44160
44353
|
unknown: array(number().int())
|
|
44161
44354
|
});
|
|
44355
|
+
/**
|
|
44356
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44357
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44358
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44359
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44360
|
+
*/
|
|
44361
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44362
|
+
ruleId: string(),
|
|
44363
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44364
|
+
ruleName: string(),
|
|
44365
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44366
|
+
deviceId: number().int(),
|
|
44367
|
+
/** The input's current name. */
|
|
44368
|
+
name: string(),
|
|
44369
|
+
/** When it was bypassed (ms epoch). */
|
|
44370
|
+
since: number(),
|
|
44371
|
+
/** Triggers from this input dropped since. */
|
|
44372
|
+
dropped: number().int().min(0)
|
|
44373
|
+
});
|
|
44162
44374
|
var NcAlarmLiveSchema = object({
|
|
44163
44375
|
state: AlarmStateSchema,
|
|
44164
44376
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44165
44377
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44166
44378
|
availableModes: array(AlarmArmModeSchema),
|
|
44167
44379
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44168
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44380
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44381
|
+
/**
|
|
44382
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44383
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44384
|
+
*/
|
|
44385
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44169
44386
|
});
|
|
44170
44387
|
var NcAlarmConfigSchema = object({
|
|
44171
44388
|
/**
|
|
@@ -54884,9 +55101,11 @@ var connectivityCapability = {
|
|
|
54884
55101
|
*/
|
|
54885
55102
|
durability: "restored",
|
|
54886
55103
|
/**
|
|
54887
|
-
* History (D850):
|
|
55104
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55105
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55106
|
+
* device's reachability, which stays `device-status.online`.
|
|
54888
55107
|
*/
|
|
54889
|
-
history: "
|
|
55108
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54890
55109
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54891
55110
|
* whether persisting is worth a SQLite commit. */
|
|
54892
55111
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55710,11 +55929,22 @@ var dishwasherCapability = {
|
|
|
55710
55929
|
},
|
|
55711
55930
|
runtimeState: DishwasherStatusSchema,
|
|
55712
55931
|
durability: "session",
|
|
55713
|
-
history: { fields: {
|
|
55714
|
-
|
|
55715
|
-
|
|
55716
|
-
|
|
55717
|
-
|
|
55932
|
+
history: { fields: {
|
|
55933
|
+
progressPercent: {
|
|
55934
|
+
kind: "gauge",
|
|
55935
|
+
unit: "%",
|
|
55936
|
+
deadband: 2
|
|
55937
|
+
},
|
|
55938
|
+
state: { kind: "enum" },
|
|
55939
|
+
operationState: { kind: "enum" },
|
|
55940
|
+
remainingSeconds: {
|
|
55941
|
+
kind: "gauge",
|
|
55942
|
+
unit: "s",
|
|
55943
|
+
minIntervalMs: 6e4
|
|
55944
|
+
},
|
|
55945
|
+
doorOpen: { kind: "boolean" },
|
|
55946
|
+
powerOn: { kind: "boolean" }
|
|
55947
|
+
} }
|
|
55718
55948
|
};
|
|
55719
55949
|
var DoorbellStatusSchema = object({
|
|
55720
55950
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55831,9 +56061,15 @@ var enumSensorCapability = {
|
|
|
55831
56061
|
*/
|
|
55832
56062
|
durability: "restored",
|
|
55833
56063
|
/**
|
|
55834
|
-
* History (D850):
|
|
56064
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56065
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56066
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56067
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55835
56068
|
*/
|
|
55836
|
-
history:
|
|
56069
|
+
history: { fields: { value: {
|
|
56070
|
+
kind: "enum",
|
|
56071
|
+
skipWhenSet: "format"
|
|
56072
|
+
} } },
|
|
55837
56073
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55838
56074
|
* whether persisting is worth a SQLite commit. */
|
|
55839
56075
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57807,9 +58043,10 @@ var lockControlCapability = {
|
|
|
57807
58043
|
*/
|
|
57808
58044
|
durability: "restored",
|
|
57809
58045
|
/**
|
|
57810
|
-
* History (D850):
|
|
58046
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58047
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57811
58048
|
*/
|
|
57812
|
-
history: "
|
|
58049
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57813
58050
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57814
58051
|
* whether persisting is worth a SQLite commit. */
|
|
57815
58052
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -57983,9 +58220,18 @@ var mediaPlayerCapability = {
|
|
|
57983
58220
|
*/
|
|
57984
58221
|
durability: "session",
|
|
57985
58222
|
/**
|
|
57986
|
-
* History (D850):
|
|
58223
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58224
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58225
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
57987
58226
|
*/
|
|
57988
|
-
history:
|
|
58227
|
+
history: { fields: {
|
|
58228
|
+
volumeLevel: {
|
|
58229
|
+
kind: "gauge",
|
|
58230
|
+
unit: "%",
|
|
58231
|
+
deadband: 1
|
|
58232
|
+
},
|
|
58233
|
+
isMuted: { kind: "boolean" }
|
|
58234
|
+
} }
|
|
57989
58235
|
};
|
|
57990
58236
|
/**
|
|
57991
58237
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -60129,9 +60375,24 @@ var NpuInfoSchema = object({
|
|
|
60129
60375
|
name: string().optional(),
|
|
60130
60376
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60131
60377
|
});
|
|
60378
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60132
60379
|
var CoralInfoSchema = object({
|
|
60133
60380
|
type: literal("coral-edgetpu"),
|
|
60134
|
-
bus
|
|
60381
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60382
|
+
bus: string().optional(),
|
|
60383
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60384
|
+
count: number().int().nonnegative().optional(),
|
|
60385
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60386
|
+
units: array(object({
|
|
60387
|
+
bus: CoralBusSchema,
|
|
60388
|
+
count: number().int().nonnegative()
|
|
60389
|
+
})).readonly().optional(),
|
|
60390
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60391
|
+
unavailable: array(object({
|
|
60392
|
+
bus: CoralBusSchema,
|
|
60393
|
+
count: number().int().nonnegative(),
|
|
60394
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60395
|
+
})).readonly().optional()
|
|
60135
60396
|
});
|
|
60136
60397
|
var HardwareInfoSchema = object({
|
|
60137
60398
|
platform: HardwarePlatformSchema,
|
|
@@ -63278,9 +63539,29 @@ var streamParamsCapability = {
|
|
|
63278
63539
|
*/
|
|
63279
63540
|
durability: "restored",
|
|
63280
63541
|
/**
|
|
63281
|
-
* History (D850):
|
|
63542
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63543
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63544
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63545
|
+
* quality over time must show.
|
|
63282
63546
|
*/
|
|
63283
|
-
history:
|
|
63547
|
+
history: { fields: {
|
|
63548
|
+
"main.bitrate": {
|
|
63549
|
+
kind: "gauge",
|
|
63550
|
+
unit: "kbps"
|
|
63551
|
+
},
|
|
63552
|
+
"main.framerate": {
|
|
63553
|
+
kind: "gauge",
|
|
63554
|
+
unit: "fps"
|
|
63555
|
+
},
|
|
63556
|
+
"sub.bitrate": {
|
|
63557
|
+
kind: "gauge",
|
|
63558
|
+
unit: "kbps"
|
|
63559
|
+
},
|
|
63560
|
+
"sub.framerate": {
|
|
63561
|
+
kind: "gauge",
|
|
63562
|
+
unit: "fps"
|
|
63563
|
+
}
|
|
63564
|
+
} },
|
|
63284
63565
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63285
63566
|
* whether persisting is worth a SQLite commit. */
|
|
63286
63567
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -66458,6 +66739,15 @@ var BaseDevice = class {
|
|
|
66458
66739
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66459
66740
|
* with a typed cast.
|
|
66460
66741
|
*
|
|
66742
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66743
|
+
* while this device is `online` and probed; return
|
|
66744
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66745
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66746
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66747
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66748
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66749
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66750
|
+
*
|
|
66461
66751
|
* Default: no children.
|
|
66462
66752
|
*/
|
|
66463
66753
|
getAccessoryChildren() {
|
|
@@ -70589,7 +70879,19 @@ Object.freeze({
|
|
|
70589
70879
|
addonId: null,
|
|
70590
70880
|
access: "view"
|
|
70591
70881
|
},
|
|
70592
|
-
"logDestination.
|
|
70882
|
+
"logDestination.cancelRead": {
|
|
70883
|
+
capName: "log-destination",
|
|
70884
|
+
capScope: "system",
|
|
70885
|
+
addonId: null,
|
|
70886
|
+
access: "create"
|
|
70887
|
+
},
|
|
70888
|
+
"logDestination.describeRead": {
|
|
70889
|
+
capName: "log-destination",
|
|
70890
|
+
capScope: "system",
|
|
70891
|
+
addonId: null,
|
|
70892
|
+
access: "view"
|
|
70893
|
+
},
|
|
70894
|
+
"logDestination.read": {
|
|
70593
70895
|
capName: "log-destination",
|
|
70594
70896
|
capScope: "system",
|
|
70595
70897
|
addonId: null,
|
|
@@ -76596,6 +76898,11 @@ Object.freeze({
|
|
|
76596
76898
|
form: "single",
|
|
76597
76899
|
optional: false
|
|
76598
76900
|
}],
|
|
76901
|
+
"logDestination.read": [{
|
|
76902
|
+
name: "deviceId",
|
|
76903
|
+
form: "single",
|
|
76904
|
+
optional: true
|
|
76905
|
+
}],
|
|
76599
76906
|
"mediaPlayer.getStatus": [{
|
|
76600
76907
|
name: "deviceId",
|
|
76601
76908
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
|
|
|
5449
5449
|
var ZodFirstPartyTypeKind;
|
|
5450
5450
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5451
5451
|
//#endregion
|
|
5452
|
-
//#region ../types/dist/sleep-
|
|
5452
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5453
5453
|
/**
|
|
5454
5454
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5455
5455
|
* window to float samples (D455).
|
|
@@ -17029,7 +17029,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17029
17029
|
kind: literal("node"),
|
|
17030
17030
|
nodeId: string().min(1)
|
|
17031
17031
|
})]);
|
|
17032
|
+
/**
|
|
17033
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17034
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17035
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17036
|
+
*/
|
|
17032
17037
|
var DeviceHistoryKindSchema = _enum([
|
|
17038
|
+
"gauge",
|
|
17039
|
+
"counter",
|
|
17040
|
+
"boolean",
|
|
17041
|
+
"enum"
|
|
17042
|
+
]);
|
|
17043
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17044
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17033
17045
|
"gauge",
|
|
17034
17046
|
"counter",
|
|
17035
17047
|
"boolean"
|
|
@@ -17066,7 +17078,13 @@ var SeriesInfoSchema = object({
|
|
|
17066
17078
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17067
17079
|
unit: string().nullable(),
|
|
17068
17080
|
displayName: string(),
|
|
17069
|
-
source: _enum([
|
|
17081
|
+
source: _enum([
|
|
17082
|
+
"cap",
|
|
17083
|
+
"addon",
|
|
17084
|
+
"derived"
|
|
17085
|
+
]),
|
|
17086
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17087
|
+
values: array(string()).readonly().nullable(),
|
|
17070
17088
|
firstTs: number(),
|
|
17071
17089
|
lastTs: number()
|
|
17072
17090
|
});
|
|
@@ -17080,17 +17098,31 @@ var QueryPointSchema = object({
|
|
|
17080
17098
|
twMean: number().nullable(),
|
|
17081
17099
|
min: number(),
|
|
17082
17100
|
max: number(),
|
|
17083
|
-
/** `null` is unknown, never zero (D393). */
|
|
17084
|
-
last: number().nullable()
|
|
17101
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17102
|
+
last: number().nullable(),
|
|
17103
|
+
/**
|
|
17104
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17105
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17106
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17107
|
+
* every other kind, and when it cannot be known.
|
|
17108
|
+
*/
|
|
17109
|
+
delta: number().nullable(),
|
|
17110
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17111
|
+
state: string().nullable(),
|
|
17112
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17113
|
+
states: record(string(), number()).nullable()
|
|
17085
17114
|
});
|
|
17086
17115
|
var QuerySeriesSchema = object({
|
|
17087
17116
|
scope: string(),
|
|
17088
17117
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17089
17118
|
before: object({
|
|
17090
17119
|
t: number(),
|
|
17091
|
-
value: number().nullable()
|
|
17120
|
+
value: number().nullable(),
|
|
17121
|
+
state: string().nullable()
|
|
17092
17122
|
}).nullable(),
|
|
17093
|
-
points: array(QueryPointSchema).readonly()
|
|
17123
|
+
points: array(QueryPointSchema).readonly(),
|
|
17124
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17125
|
+
derivedFrom: string().nullable()
|
|
17094
17126
|
});
|
|
17095
17127
|
/** The window part of a query, shared by the device and node forms. */
|
|
17096
17128
|
var QueryWindowShape = {
|
|
@@ -17106,6 +17138,23 @@ var QueryResultSchema = object({
|
|
|
17106
17138
|
series: array(QuerySeriesSchema).readonly(),
|
|
17107
17139
|
truncated: boolean()
|
|
17108
17140
|
});
|
|
17141
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17142
|
+
var QueryManyItemSchema = union([object({
|
|
17143
|
+
deviceId: number().int(),
|
|
17144
|
+
key: string(),
|
|
17145
|
+
scope: string().optional()
|
|
17146
|
+
}), object({
|
|
17147
|
+
forNodeId: string().min(1),
|
|
17148
|
+
key: string(),
|
|
17149
|
+
scope: string().optional()
|
|
17150
|
+
})]);
|
|
17151
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17152
|
+
ok: literal(true),
|
|
17153
|
+
result: QueryResultSchema
|
|
17154
|
+
}), object({
|
|
17155
|
+
ok: literal(false),
|
|
17156
|
+
error: string()
|
|
17157
|
+
})]);
|
|
17109
17158
|
var TierStatusSchema = object({
|
|
17110
17159
|
tier: DeviceHistoryResolutionSchema,
|
|
17111
17160
|
/** `null` until the first background count answered. */
|
|
@@ -17161,16 +17210,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17161
17210
|
lastRefreshAt: number().nullable()
|
|
17162
17211
|
})
|
|
17163
17212
|
});
|
|
17164
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17213
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17165
17214
|
deviceId: number().int(),
|
|
17166
17215
|
...QueryWindowShape
|
|
17167
17216
|
}), QueryResultSchema), method(object({
|
|
17168
|
-
|
|
17217
|
+
forNodeId: string().min(1),
|
|
17169
17218
|
...QueryWindowShape
|
|
17170
17219
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17220
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17221
|
+
from: QueryWindowShape.from,
|
|
17222
|
+
to: QueryWindowShape.to,
|
|
17223
|
+
resolution: QueryWindowShape.resolution,
|
|
17224
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17225
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17171
17226
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17172
17227
|
subjectKind: _enum(["device", "node"]),
|
|
17173
|
-
kind:
|
|
17228
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17174
17229
|
unit: string().optional(),
|
|
17175
17230
|
displayName: string().min(1),
|
|
17176
17231
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40396,14 +40451,106 @@ var LogEntrySchema = object({
|
|
|
40396
40451
|
meta: record(string(), unknown()).optional(),
|
|
40397
40452
|
tags: record(string(), string()).optional()
|
|
40398
40453
|
});
|
|
40399
|
-
|
|
40400
|
-
|
|
40454
|
+
/**
|
|
40455
|
+
* A history READ against one destination (D898).
|
|
40456
|
+
*
|
|
40457
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40458
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40459
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40460
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40461
|
+
* nanosecond timestamp for Loki.
|
|
40462
|
+
*
|
|
40463
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40464
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40465
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40466
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40467
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40468
|
+
*/
|
|
40469
|
+
var LogReadQuerySchema = object({
|
|
40470
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40471
|
+
requestId: string().min(1).max(64).optional(),
|
|
40472
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40473
|
+
deviceId: number().int().optional(),
|
|
40474
|
+
/**
|
|
40475
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40476
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40477
|
+
*/
|
|
40478
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40479
|
+
/**
|
|
40480
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40481
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40482
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40483
|
+
* name as "which node's provider".
|
|
40484
|
+
*/
|
|
40485
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40486
|
+
/** Any other tag, exact match (AND). */
|
|
40487
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40488
|
+
/** Severity FLOOR: this level and above. */
|
|
40401
40489
|
level: LogLevelSchema.optional(),
|
|
40402
|
-
|
|
40403
|
-
|
|
40404
|
-
|
|
40405
|
-
|
|
40406
|
-
|
|
40490
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40491
|
+
text: string().min(1).max(200).optional(),
|
|
40492
|
+
/** Epoch ms, inclusive. */
|
|
40493
|
+
since: number().optional(),
|
|
40494
|
+
/** Epoch ms, inclusive. */
|
|
40495
|
+
until: number().optional(),
|
|
40496
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40497
|
+
before: string().min(1).max(1024).optional(),
|
|
40498
|
+
/** Newer than this cursor (exclusive). */
|
|
40499
|
+
after: string().min(1).max(1024).optional(),
|
|
40500
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40501
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40502
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40503
|
+
});
|
|
40504
|
+
var LogReadResultSchema = object({
|
|
40505
|
+
/** Newest first. */
|
|
40506
|
+
entries: array(object({
|
|
40507
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40508
|
+
id: string().optional(),
|
|
40509
|
+
/** Epoch ms. */
|
|
40510
|
+
timestamp: number(),
|
|
40511
|
+
level: LogLevelSchema,
|
|
40512
|
+
scope: string().optional(),
|
|
40513
|
+
message: string(),
|
|
40514
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40515
|
+
meta: record(string(), unknown()).optional()
|
|
40516
|
+
})),
|
|
40517
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40518
|
+
nextBefore: string().nullable(),
|
|
40519
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40520
|
+
nextAfter: string().nullable(),
|
|
40521
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40522
|
+
scannedBytes: number().int().nonnegative(),
|
|
40523
|
+
/**
|
|
40524
|
+
* True when the scan in this direction reached the end of the store.
|
|
40525
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40526
|
+
* call again with `nextBefore` to go on.
|
|
40527
|
+
*/
|
|
40528
|
+
done: boolean(),
|
|
40529
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40530
|
+
cancelled: boolean().optional()
|
|
40531
|
+
});
|
|
40532
|
+
var LogReadCapabilitiesSchema = object({
|
|
40533
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40534
|
+
readable: boolean(),
|
|
40535
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40536
|
+
reason: string().nullable(),
|
|
40537
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40538
|
+
filters: object({
|
|
40539
|
+
deviceId: boolean(),
|
|
40540
|
+
addonId: boolean(),
|
|
40541
|
+
nodeId: boolean(),
|
|
40542
|
+
tags: boolean(),
|
|
40543
|
+
level: boolean(),
|
|
40544
|
+
text: boolean(),
|
|
40545
|
+
timeRange: boolean()
|
|
40546
|
+
}),
|
|
40547
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40548
|
+
retentionDays: number().nullable()
|
|
40549
|
+
});
|
|
40550
|
+
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() }), {
|
|
40551
|
+
kind: "mutation",
|
|
40552
|
+
auth: "admin"
|
|
40553
|
+
});
|
|
40407
40554
|
/**
|
|
40408
40555
|
* `login-method` — collection cap through which auth addons contribute
|
|
40409
40556
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42121,9 +42268,11 @@ var alarmPanelCapability = {
|
|
|
42121
42268
|
*/
|
|
42122
42269
|
durability: "restored",
|
|
42123
42270
|
/**
|
|
42124
|
-
* History (D850):
|
|
42271
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42272
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42273
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42125
42274
|
*/
|
|
42126
|
-
history: "
|
|
42275
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42127
42276
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42128
42277
|
* whether persisting is worth a SQLite commit. */
|
|
42129
42278
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43001,6 +43150,33 @@ var NcRuleTargetSchema = object({
|
|
|
43001
43150
|
params: record(string(), unknown()).optional()
|
|
43002
43151
|
});
|
|
43003
43152
|
/**
|
|
43153
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43154
|
+
*
|
|
43155
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43156
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43157
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43158
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43159
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43160
|
+
* labelled with class and confidence ("dog 87%").
|
|
43161
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43162
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43163
|
+
* - `none` — no picture.
|
|
43164
|
+
*
|
|
43165
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43166
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43167
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43168
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43169
|
+
* stored kind had landed.
|
|
43170
|
+
*/
|
|
43171
|
+
var NcMediaImageSchema = _enum([
|
|
43172
|
+
"scene-boxes",
|
|
43173
|
+
"crop",
|
|
43174
|
+
"clean",
|
|
43175
|
+
"none"
|
|
43176
|
+
]);
|
|
43177
|
+
/**
|
|
43178
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43179
|
+
*
|
|
43004
43180
|
* Media attachment policy (P1 still-image subset).
|
|
43005
43181
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43006
43182
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43014,6 +43190,8 @@ var NcRuleTargetSchema = object({
|
|
|
43014
43190
|
* - `none` — no attachment.
|
|
43015
43191
|
*/
|
|
43016
43192
|
/**
|
|
43193
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43194
|
+
*
|
|
43017
43195
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43018
43196
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43019
43197
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43042,16 +43220,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43042
43220
|
*/
|
|
43043
43221
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43044
43222
|
var NcMediaPolicySchema = object({
|
|
43223
|
+
/**
|
|
43224
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43225
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43226
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43227
|
+
*/
|
|
43228
|
+
image: NcMediaImageSchema.optional(),
|
|
43229
|
+
/**
|
|
43230
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43231
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43232
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43233
|
+
* Replaces `zoneCrop`.
|
|
43234
|
+
*/
|
|
43235
|
+
showTriggerZone: boolean().optional(),
|
|
43236
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43045
43237
|
attach: _enum([
|
|
43046
43238
|
"best",
|
|
43047
43239
|
"best-matching",
|
|
43048
43240
|
"keyFrame",
|
|
43049
43241
|
"none"
|
|
43050
|
-
]).
|
|
43051
|
-
/**
|
|
43242
|
+
]).optional(),
|
|
43243
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43052
43244
|
frame: NcMediaFrameSchema.optional(),
|
|
43053
|
-
/**
|
|
43054
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43245
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43055
43246
|
zoneCrop: boolean().optional(),
|
|
43056
43247
|
/**
|
|
43057
43248
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43223,7 +43414,9 @@ var NcRuleInputSchema = object({
|
|
|
43223
43414
|
* targets.
|
|
43224
43415
|
*/
|
|
43225
43416
|
targetUsers: array(string()).optional(),
|
|
43226
|
-
|
|
43417
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43418
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43419
|
+
media: NcMediaPolicySchema.default({}),
|
|
43227
43420
|
throttle: NcThrottleSchema.default({
|
|
43228
43421
|
cooldownSec: 60,
|
|
43229
43422
|
scope: "rule-device"
|
|
@@ -44160,13 +44353,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44160
44353
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44161
44354
|
unknown: array(number().int())
|
|
44162
44355
|
});
|
|
44356
|
+
/**
|
|
44357
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44358
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44359
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44360
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44361
|
+
*/
|
|
44362
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44363
|
+
ruleId: string(),
|
|
44364
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44365
|
+
ruleName: string(),
|
|
44366
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44367
|
+
deviceId: number().int(),
|
|
44368
|
+
/** The input's current name. */
|
|
44369
|
+
name: string(),
|
|
44370
|
+
/** When it was bypassed (ms epoch). */
|
|
44371
|
+
since: number(),
|
|
44372
|
+
/** Triggers from this input dropped since. */
|
|
44373
|
+
dropped: number().int().min(0)
|
|
44374
|
+
});
|
|
44163
44375
|
var NcAlarmLiveSchema = object({
|
|
44164
44376
|
state: AlarmStateSchema,
|
|
44165
44377
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44166
44378
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44167
44379
|
availableModes: array(AlarmArmModeSchema),
|
|
44168
44380
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44169
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44381
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44382
|
+
/**
|
|
44383
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44384
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44385
|
+
*/
|
|
44386
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44170
44387
|
});
|
|
44171
44388
|
var NcAlarmConfigSchema = object({
|
|
44172
44389
|
/**
|
|
@@ -54885,9 +55102,11 @@ var connectivityCapability = {
|
|
|
54885
55102
|
*/
|
|
54886
55103
|
durability: "restored",
|
|
54887
55104
|
/**
|
|
54888
|
-
* History (D850):
|
|
55105
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55106
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55107
|
+
* device's reachability, which stays `device-status.online`.
|
|
54889
55108
|
*/
|
|
54890
|
-
history: "
|
|
55109
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54891
55110
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54892
55111
|
* whether persisting is worth a SQLite commit. */
|
|
54893
55112
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55711,11 +55930,22 @@ var dishwasherCapability = {
|
|
|
55711
55930
|
},
|
|
55712
55931
|
runtimeState: DishwasherStatusSchema,
|
|
55713
55932
|
durability: "session",
|
|
55714
|
-
history: { fields: {
|
|
55715
|
-
|
|
55716
|
-
|
|
55717
|
-
|
|
55718
|
-
|
|
55933
|
+
history: { fields: {
|
|
55934
|
+
progressPercent: {
|
|
55935
|
+
kind: "gauge",
|
|
55936
|
+
unit: "%",
|
|
55937
|
+
deadband: 2
|
|
55938
|
+
},
|
|
55939
|
+
state: { kind: "enum" },
|
|
55940
|
+
operationState: { kind: "enum" },
|
|
55941
|
+
remainingSeconds: {
|
|
55942
|
+
kind: "gauge",
|
|
55943
|
+
unit: "s",
|
|
55944
|
+
minIntervalMs: 6e4
|
|
55945
|
+
},
|
|
55946
|
+
doorOpen: { kind: "boolean" },
|
|
55947
|
+
powerOn: { kind: "boolean" }
|
|
55948
|
+
} }
|
|
55719
55949
|
};
|
|
55720
55950
|
var DoorbellStatusSchema = object({
|
|
55721
55951
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55832,9 +56062,15 @@ var enumSensorCapability = {
|
|
|
55832
56062
|
*/
|
|
55833
56063
|
durability: "restored",
|
|
55834
56064
|
/**
|
|
55835
|
-
* History (D850):
|
|
56065
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56066
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56067
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56068
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55836
56069
|
*/
|
|
55837
|
-
history:
|
|
56070
|
+
history: { fields: { value: {
|
|
56071
|
+
kind: "enum",
|
|
56072
|
+
skipWhenSet: "format"
|
|
56073
|
+
} } },
|
|
55838
56074
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55839
56075
|
* whether persisting is worth a SQLite commit. */
|
|
55840
56076
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57808,9 +58044,10 @@ var lockControlCapability = {
|
|
|
57808
58044
|
*/
|
|
57809
58045
|
durability: "restored",
|
|
57810
58046
|
/**
|
|
57811
|
-
* History (D850):
|
|
58047
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58048
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57812
58049
|
*/
|
|
57813
|
-
history: "
|
|
58050
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57814
58051
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57815
58052
|
* whether persisting is worth a SQLite commit. */
|
|
57816
58053
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -57984,9 +58221,18 @@ var mediaPlayerCapability = {
|
|
|
57984
58221
|
*/
|
|
57985
58222
|
durability: "session",
|
|
57986
58223
|
/**
|
|
57987
|
-
* History (D850):
|
|
58224
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58225
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58226
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
57988
58227
|
*/
|
|
57989
|
-
history:
|
|
58228
|
+
history: { fields: {
|
|
58229
|
+
volumeLevel: {
|
|
58230
|
+
kind: "gauge",
|
|
58231
|
+
unit: "%",
|
|
58232
|
+
deadband: 1
|
|
58233
|
+
},
|
|
58234
|
+
isMuted: { kind: "boolean" }
|
|
58235
|
+
} }
|
|
57990
58236
|
};
|
|
57991
58237
|
/**
|
|
57992
58238
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -60130,9 +60376,24 @@ var NpuInfoSchema = object({
|
|
|
60130
60376
|
name: string().optional(),
|
|
60131
60377
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60132
60378
|
});
|
|
60379
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60133
60380
|
var CoralInfoSchema = object({
|
|
60134
60381
|
type: literal("coral-edgetpu"),
|
|
60135
|
-
bus
|
|
60382
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60383
|
+
bus: string().optional(),
|
|
60384
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60385
|
+
count: number().int().nonnegative().optional(),
|
|
60386
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60387
|
+
units: array(object({
|
|
60388
|
+
bus: CoralBusSchema,
|
|
60389
|
+
count: number().int().nonnegative()
|
|
60390
|
+
})).readonly().optional(),
|
|
60391
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60392
|
+
unavailable: array(object({
|
|
60393
|
+
bus: CoralBusSchema,
|
|
60394
|
+
count: number().int().nonnegative(),
|
|
60395
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60396
|
+
})).readonly().optional()
|
|
60136
60397
|
});
|
|
60137
60398
|
var HardwareInfoSchema = object({
|
|
60138
60399
|
platform: HardwarePlatformSchema,
|
|
@@ -63279,9 +63540,29 @@ var streamParamsCapability = {
|
|
|
63279
63540
|
*/
|
|
63280
63541
|
durability: "restored",
|
|
63281
63542
|
/**
|
|
63282
|
-
* History (D850):
|
|
63543
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63544
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63545
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63546
|
+
* quality over time must show.
|
|
63283
63547
|
*/
|
|
63284
|
-
history:
|
|
63548
|
+
history: { fields: {
|
|
63549
|
+
"main.bitrate": {
|
|
63550
|
+
kind: "gauge",
|
|
63551
|
+
unit: "kbps"
|
|
63552
|
+
},
|
|
63553
|
+
"main.framerate": {
|
|
63554
|
+
kind: "gauge",
|
|
63555
|
+
unit: "fps"
|
|
63556
|
+
},
|
|
63557
|
+
"sub.bitrate": {
|
|
63558
|
+
kind: "gauge",
|
|
63559
|
+
unit: "kbps"
|
|
63560
|
+
},
|
|
63561
|
+
"sub.framerate": {
|
|
63562
|
+
kind: "gauge",
|
|
63563
|
+
unit: "fps"
|
|
63564
|
+
}
|
|
63565
|
+
} },
|
|
63285
63566
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63286
63567
|
* whether persisting is worth a SQLite commit. */
|
|
63287
63568
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -66459,6 +66740,15 @@ var BaseDevice = class {
|
|
|
66459
66740
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66460
66741
|
* with a typed cast.
|
|
66461
66742
|
*
|
|
66743
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66744
|
+
* while this device is `online` and probed; return
|
|
66745
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66746
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66747
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66748
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66749
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66750
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66751
|
+
*
|
|
66462
66752
|
* Default: no children.
|
|
66463
66753
|
*/
|
|
66464
66754
|
getAccessoryChildren() {
|
|
@@ -70590,7 +70880,19 @@ Object.freeze({
|
|
|
70590
70880
|
addonId: null,
|
|
70591
70881
|
access: "view"
|
|
70592
70882
|
},
|
|
70593
|
-
"logDestination.
|
|
70883
|
+
"logDestination.cancelRead": {
|
|
70884
|
+
capName: "log-destination",
|
|
70885
|
+
capScope: "system",
|
|
70886
|
+
addonId: null,
|
|
70887
|
+
access: "create"
|
|
70888
|
+
},
|
|
70889
|
+
"logDestination.describeRead": {
|
|
70890
|
+
capName: "log-destination",
|
|
70891
|
+
capScope: "system",
|
|
70892
|
+
addonId: null,
|
|
70893
|
+
access: "view"
|
|
70894
|
+
},
|
|
70895
|
+
"logDestination.read": {
|
|
70594
70896
|
capName: "log-destination",
|
|
70595
70897
|
capScope: "system",
|
|
70596
70898
|
addonId: null,
|
|
@@ -76597,6 +76899,11 @@ Object.freeze({
|
|
|
76597
76899
|
form: "single",
|
|
76598
76900
|
optional: false
|
|
76599
76901
|
}],
|
|
76902
|
+
"logDestination.read": [{
|
|
76903
|
+
name: "deviceId",
|
|
76904
|
+
form: "single",
|
|
76905
|
+
optional: true
|
|
76906
|
+
}],
|
|
76600
76907
|
"mediaPlayer.getStatus": [{
|
|
76601
76908
|
name: "deviceId",
|
|
76602
76909
|
form: "single",
|
package/package.json
CHANGED