@camstack/types 1.2.216 → 1.2.217
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.
|
@@ -127,6 +127,10 @@ export interface CapabilityEventSchema<TData extends z.ZodType = z.ZodType> {
|
|
|
127
127
|
}
|
|
128
128
|
export type CapabilityStatusKind = 'push' | 'poll' | 'command-driven';
|
|
129
129
|
/**
|
|
130
|
+
* ⚠ NO LIVE CALLER since 2026-08-08 — see the note on
|
|
131
|
+
* {@link CapabilityStatusSchema.empty}. Kept as the shape a future wiring
|
|
132
|
+
* mechanism would need, not as something that runs today.
|
|
133
|
+
*
|
|
130
134
|
* Declares that a cap's status is an ITEM-ARRAY wiring target: the status
|
|
131
135
|
* holds an array of keyed items (`consumables.items`) that device-links can
|
|
132
136
|
* populate per item via `DeviceLink.target.itemKey`. Links sharing an
|
|
@@ -161,6 +165,19 @@ export interface CapabilityStatusSchema<TStatus extends z.ZodType = z.ZodType> {
|
|
|
161
165
|
* this cap (no native provider). Required-but-unlinked fields (enums,
|
|
162
166
|
* timestamps) come from here so the synthesized status validates against
|
|
163
167
|
* `schema`. Omit for caps that are never synthesize targets.
|
|
168
|
+
*
|
|
169
|
+
* ⚠ NO LIVE CALLER since 2026-08-08. The device-link mechanism this seeds was
|
|
170
|
+
* deleted that day — 302 devices, 0 links, a month after it shipped — and the
|
|
171
|
+
* only code that still reads this field is the `includeSynthesizable` branch
|
|
172
|
+
* of `getWireableFields`, which nothing passes `true` to. Four caps declare
|
|
173
|
+
* it (`battery`, `consumables`, `network-link`, `recording-signal`).
|
|
174
|
+
*
|
|
175
|
+
* KEPT, not deleted, and deliberately: the operator has a live request that
|
|
176
|
+
* needs exactly this shape (a Dreame's HA sensors presenting as
|
|
177
|
+
* `consumables`/`battery` on the robot) and has queued the wiring design for
|
|
178
|
+
* discussion. This marker exists so the field is not mistaken for working
|
|
179
|
+
* machinery in the meantime — which is the one thing a leftover must never
|
|
180
|
+
* be allowed to be.
|
|
164
181
|
*/
|
|
165
182
|
readonly empty?: z.infer<TStatus>;
|
|
166
183
|
/**
|