@camstack/types 1.2.575 → 1.2.577

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 (47) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/addon.js +1 -1
  3. package/dist/addon.mjs +1 -1
  4. package/dist/automation/action.d.ts +2 -0
  5. package/dist/automation/scheduler.d.ts +2 -0
  6. package/dist/capabilities/action-source.cap.d.ts +1 -0
  7. package/dist/capabilities/actions.cap.d.ts +7 -0
  8. package/dist/capabilities/air-quality-sensor.cap.d.ts +2 -0
  9. package/dist/capabilities/capability-definition.d.ts +22 -0
  10. package/dist/capabilities/climate-control.cap.d.ts +6 -0
  11. package/dist/capabilities/core-blocks.cap.d.ts +20 -0
  12. package/dist/capabilities/device-manager.cap.d.ts +18 -0
  13. package/dist/capabilities/energy-system.cap.d.ts +7 -0
  14. package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
  15. package/dist/capabilities/humidity-sensor.cap.d.ts +2 -0
  16. package/dist/capabilities/index.d.ts +4 -2
  17. package/dist/capabilities/power-meter.cap.d.ts +2 -0
  18. package/dist/capabilities/schedulers.cap.d.ts +8 -0
  19. package/dist/capabilities/stream-params.cap.d.ts +4 -0
  20. package/dist/capabilities/tags.cap.d.ts +123 -0
  21. package/dist/capabilities/temperature-sensor.cap.d.ts +2 -0
  22. package/dist/capabilities/template.cap.d.ts +8 -0
  23. package/dist/capabilities/water-heater.cap.d.ts +2 -0
  24. package/dist/capabilities/weather-station.cap.d.ts +10 -0
  25. package/dist/client.js +685 -678
  26. package/dist/client.mjs +685 -678
  27. package/dist/device/device-management.d.ts +4 -0
  28. package/dist/device-template-catalogue.d.ts +67 -0
  29. package/dist/device-template-catalogue.js +361 -0
  30. package/dist/device-template-catalogue.mjs +346 -0
  31. package/dist/expression/device-template.d.ts +5 -6
  32. package/dist/generated/addon-api.d.ts +43 -0
  33. package/dist/generated/cap-vocabulary.d.ts +1 -1
  34. package/dist/generated/capability-router-map.d.ts +5 -2
  35. package/dist/generated/device-proxy.d.ts +1 -1
  36. package/dist/generated/history-catalog.d.ts +6 -1
  37. package/dist/generated/method-access-map.d.ts +1 -1
  38. package/dist/generated/method-device-selectors.d.ts +2 -2
  39. package/dist/generated/system-proxy.d.ts +2 -0
  40. package/dist/history/primary-series.d.ts +10 -0
  41. package/dist/index.d.ts +7 -1
  42. package/dist/index.js +4110 -3735
  43. package/dist/index.mjs +4076 -3736
  44. package/dist/{sleep-CsIzA4m_.js → sleep-BURDyp_n.js} +7 -1
  45. package/dist/{sleep-CLDVTB5R.mjs → sleep-C9EWTQr9.mjs} +7 -1
  46. package/dist/tags/tag.d.ts +56 -0
  47. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.577] - 2026-11-15
11
+
12
+ ### Changed
13
+
14
+ - Capability history declares which fields share a chart (group) and which series a device card trends (primary, priority)
15
+
16
+ ## [1.2.576] - 2026-11-15
17
+
18
+ ### Changed
19
+
20
+ - Tags: owner records carry optional tags, and the new tags capability lists, styles, renames and removes a tag everywhere in one call
21
+ - OSD static overlay text may be up to 1024 characters, same as named templates.
22
+ - Device templates share one catalogue of filters, functions and variables; the renderer allow-list is derived from it.
23
+
10
24
  ## [1.2.575] - 2026-11-15
11
25
 
12
26
  ### Changed
@@ -41,6 +55,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
41
55
  ### Added
42
56
 
43
57
  - terminal-session reports whether a node's server shell is enabled, and why it is refused.
58
+ ### Added
59
+
44
60
  - Notification templates can use {{sensorState}}, the sensor, button or lock state in the notification language.
45
61
 
46
62
  ## [1.2.570] - 2026-11-14
@@ -112,6 +128,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
112
128
  - Notification history can show the title and body that were sent.
113
129
  - Email images travel as peerBytes tickets on smtp-provider.sendEmail.
114
130
  - A cluster update can name a server install that stalled or hit its time limit.
131
+ ### Changed
132
+
115
133
 
116
134
  ## [1.2.562] - 2026-11-13
117
135
 
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CsIzA4m_.js");
2
+ const require_sleep = require("./sleep-BURDyp_n.js");
3
3
  const require_event_category = require("./event-category-d9kiqCqC.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
5
5
  //#region src/generated/cap-input-defaults.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-CLDVTB5R.mjs";
1
+ import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-C9EWTQr9.mjs";
2
2
  import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
3
3
  import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
@@ -159,6 +159,7 @@ export declare const ActionEntrySchema: z.ZodObject<{
159
159
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
160
  }, z.core.$strip>>>;
161
161
  minDelaySec: z.ZodOptional<z.ZodNumber>;
162
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
163
  status: z.ZodObject<{
163
164
  isRunning: z.ZodBoolean;
164
165
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -245,6 +246,7 @@ export declare const ActionInputSchema: z.ZodObject<{
245
246
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
246
247
  }, z.core.$strip>>>;
247
248
  minDelaySec: z.ZodOptional<z.ZodNumber>;
249
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
250
  }, z.core.$strip>;
249
251
  export type ActionInput = z.infer<typeof ActionInputSchema>;
250
252
  /** Who started a run. Absent = the operator pressed it. */
@@ -538,6 +538,7 @@ export declare const SchedulerInputSchema: z.ZodObject<{
538
538
  maxHoldAttempts: z.ZodOptional<z.ZodNumber>;
539
539
  }, z.core.$strip>>;
540
540
  }, z.core.$strip>>;
541
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
541
542
  }, z.core.$strip>;
542
543
  export type SchedulerInput = z.infer<typeof SchedulerInputSchema>;
543
544
  export declare const SchedulerSchema: z.ZodObject<{
@@ -694,6 +695,7 @@ export declare const SchedulerSchema: z.ZodObject<{
694
695
  maxHoldAttempts: z.ZodOptional<z.ZodNumber>;
695
696
  }, z.core.$strip>>;
696
697
  }, z.core.$strip>>;
698
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
697
699
  id: z.ZodString;
698
700
  createdAt: z.ZodNumber;
699
701
  updatedAt: z.ZodNumber;
@@ -107,6 +107,7 @@ export declare const actionSourceCapability: {
107
107
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
108
  }, z.core.$strip>>>;
109
109
  minDelaySec: z.ZodOptional<z.ZodNumber>;
110
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
111
  status: z.ZodObject<{
111
112
  isRunning: z.ZodBoolean;
112
113
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -96,6 +96,7 @@ export declare const actionsCapability: {
96
96
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
97
  }, z.core.$strip>>>;
98
98
  minDelaySec: z.ZodOptional<z.ZodNumber>;
99
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
100
  status: z.ZodObject<{
100
101
  isRunning: z.ZodBoolean;
101
102
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -195,6 +196,7 @@ export declare const actionsCapability: {
195
196
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
197
  }, z.core.$strip>>>;
197
198
  minDelaySec: z.ZodOptional<z.ZodNumber>;
199
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
198
200
  status: z.ZodObject<{
199
201
  isRunning: z.ZodBoolean;
200
202
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -330,6 +332,7 @@ export declare const actionsCapability: {
330
332
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
331
333
  }, z.core.$strip>>>;
332
334
  minDelaySec: z.ZodOptional<z.ZodNumber>;
335
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
336
  }, z.core.$strip>;
334
337
  }, z.core.$strip>, z.ZodObject<{
335
338
  action: z.ZodObject<{
@@ -417,6 +420,7 @@ export declare const actionsCapability: {
417
420
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
421
  }, z.core.$strip>>>;
419
422
  minDelaySec: z.ZodOptional<z.ZodNumber>;
423
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
420
424
  status: z.ZodObject<{
421
425
  isRunning: z.ZodBoolean;
422
426
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -512,6 +516,7 @@ export declare const actionsCapability: {
512
516
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
513
517
  }, z.core.$strip>>>>;
514
518
  minDelaySec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
519
+ tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
515
520
  }, z.core.$strip>;
516
521
  }, z.core.$strip>, z.ZodObject<{
517
522
  action: z.ZodObject<{
@@ -599,6 +604,7 @@ export declare const actionsCapability: {
599
604
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
600
605
  }, z.core.$strip>>>;
601
606
  minDelaySec: z.ZodOptional<z.ZodNumber>;
607
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
602
608
  status: z.ZodObject<{
603
609
  isRunning: z.ZodBoolean;
604
610
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -709,6 +715,7 @@ export declare const actionsCapability: {
709
715
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
710
716
  }, z.core.$strip>>>;
711
717
  minDelaySec: z.ZodOptional<z.ZodNumber>;
718
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
712
719
  status: z.ZodObject<{
713
720
  isRunning: z.ZodBoolean;
714
721
  lastRunAt: z.ZodNullable<z.ZodNumber>;
@@ -68,11 +68,13 @@ export declare const airQualitySensorCapability: {
68
68
  readonly deadband: 5;
69
69
  };
70
70
  readonly pm25: {
71
+ readonly group: 'particulates';
71
72
  readonly kind: 'gauge';
72
73
  readonly unit: 'µg/m³';
73
74
  readonly deadband: 1;
74
75
  };
75
76
  readonly pm10: {
77
+ readonly group: 'particulates';
76
78
  readonly kind: 'gauge';
77
79
  readonly unit: 'µg/m³';
78
80
  readonly deadband: 1;
@@ -461,6 +461,15 @@ export interface CapabilityHistoryField {
461
461
  */
462
462
  readonly unitFrom?: string;
463
463
  readonly displayName?: string;
464
+ /**
465
+ * Fields of ONE cap that name the same group share a History chart; a field
466
+ * with no group gets a chart of its own. Only closely related GAUGES belong
467
+ * together (the five `powerW` of an energy system), so the members must share
468
+ * a unit dimension. A counter is always its own per-period bar chart and takes
469
+ * no group; neither does a state, nor a field of a keyed `items` array. Judged
470
+ * by `scripts/check-cap-history-declared.ts`.
471
+ */
472
+ readonly group?: string;
464
473
  /** Drop a change smaller than this (ABSOLUTE) — anti-jitter for noisy gauges. */
465
474
  readonly deadband?: number;
466
475
  /**
@@ -523,7 +532,20 @@ export declare function historyItemFieldPath(itemsPath: string, field: string):
523
532
  export type CapabilityHistory = 'none' | {
524
533
  readonly fields: Readonly<Record<string, CapabilityHistoryField>>;
525
534
  readonly items?: CapabilityHistoryItems;
535
+ /**
536
+ * The field a device card trends: a numeric `fields` key. Declared with
537
+ * {@link priority}; the card shows the primary of the ENABLED cap with the
538
+ * highest priority that has data on the device.
539
+ */
540
+ readonly primary?: string;
541
+ /** Higher wins between the caps of one device; required with `primary`. */
542
+ readonly priority?: number;
526
543
  };
544
+ /** A cap's declared card series: a numeric history field and its rank between caps. */
545
+ export interface CapabilityHistoryPrimary {
546
+ readonly field: string;
547
+ readonly priority: number;
548
+ }
527
549
  /** Capture floor (ms) applied to `gauge` / `counter` series when a field states none. */
528
550
  export declare const HISTORY_DEFAULT_MIN_INTERVAL_MS = 10000;
529
551
  /**
@@ -311,8 +311,11 @@ export declare const climateControlCapability: {
311
311
  * History (D850): recorded series. Celsius by contract; setpoints keep every change (`minIntervalMs: 0`).
312
312
  */
313
313
  readonly history: {
314
+ readonly primary: 'currentTemp';
315
+ readonly priority: 70;
314
316
  readonly fields: {
315
317
  readonly currentTemp: {
318
+ readonly group: 'temperature';
316
319
  readonly kind: 'gauge';
317
320
  readonly unit: '°C';
318
321
  readonly deadband: 0.1;
@@ -323,16 +326,19 @@ export declare const climateControlCapability: {
323
326
  readonly deadband: 0.5;
324
327
  };
325
328
  readonly target: {
329
+ readonly group: 'temperature';
326
330
  readonly kind: 'gauge';
327
331
  readonly unit: '°C';
328
332
  readonly minIntervalMs: 0;
329
333
  };
330
334
  readonly targetHigh: {
335
+ readonly group: 'target-range';
331
336
  readonly kind: 'gauge';
332
337
  readonly unit: '°C';
333
338
  readonly minIntervalMs: 0;
334
339
  };
335
340
  readonly targetLow: {
341
+ readonly group: 'target-range';
336
342
  readonly kind: 'gauge';
337
343
  readonly unit: '°C';
338
344
  readonly minIntervalMs: 0;
@@ -102,6 +102,7 @@ export declare const CoreBlockInputFieldsSchema: z.ZodObject<{
102
102
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
103
103
  integrationId: z.ZodOptional<z.ZodString>;
104
104
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
105
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
106
  }, z.core.$strip>;
106
107
  /** Client-authored fields for create — requires `code` or `files[entry]`. */
107
108
  export declare const CoreBlockInputSchema: z.ZodObject<{
@@ -113,6 +114,7 @@ export declare const CoreBlockInputSchema: z.ZodObject<{
113
114
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
114
115
  integrationId: z.ZodOptional<z.ZodString>;
115
116
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
117
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
116
118
  }, z.core.$strip>;
117
119
  export type CoreBlockInput = z.infer<typeof CoreBlockInputFieldsSchema>;
118
120
  /** Resolve the entry path a block uses (default `main.ts`). */
@@ -607,6 +609,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
607
609
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
608
610
  integrationId: z.ZodOptional<z.ZodString>;
609
611
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
612
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
610
613
  id: z.ZodString;
611
614
  createdAt: z.ZodNumber;
612
615
  updatedAt: z.ZodNumber;
@@ -896,6 +899,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
896
899
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
897
900
  integrationId: z.ZodOptional<z.ZodString>;
898
901
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
902
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
899
903
  id: z.ZodString;
900
904
  createdAt: z.ZodNumber;
901
905
  updatedAt: z.ZodNumber;
@@ -1183,6 +1187,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
1183
1187
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1184
1188
  integrationId: z.ZodOptional<z.ZodString>;
1185
1189
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
1190
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1186
1191
  id: z.ZodString;
1187
1192
  createdAt: z.ZodNumber;
1188
1193
  updatedAt: z.ZodNumber;
@@ -1474,6 +1479,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
1474
1479
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1475
1480
  integrationId: z.ZodOptional<z.ZodString>;
1476
1481
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
1482
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1477
1483
  id: z.ZodString;
1478
1484
  createdAt: z.ZodNumber;
1479
1485
  updatedAt: z.ZodNumber;
@@ -1766,6 +1772,7 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
1766
1772
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1767
1773
  integrationId: z.ZodOptional<z.ZodString>;
1768
1774
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
1775
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1769
1776
  id: z.ZodString;
1770
1777
  createdAt: z.ZodNumber;
1771
1778
  updatedAt: z.ZodNumber;
@@ -2078,6 +2085,7 @@ export declare const coreBlocksCapability: {
2078
2085
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
2079
2086
  integrationId: z.ZodOptional<z.ZodString>;
2080
2087
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
2088
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2081
2089
  id: z.ZodString;
2082
2090
  createdAt: z.ZodNumber;
2083
2091
  updatedAt: z.ZodNumber;
@@ -2328,6 +2336,7 @@ export declare const coreBlocksCapability: {
2328
2336
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
2329
2337
  integrationId: z.ZodOptional<z.ZodString>;
2330
2338
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
2339
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2331
2340
  id: z.ZodString;
2332
2341
  createdAt: z.ZodNumber;
2333
2342
  updatedAt: z.ZodNumber;
@@ -2581,6 +2590,7 @@ export declare const coreBlocksCapability: {
2581
2590
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
2582
2591
  integrationId: z.ZodOptional<z.ZodString>;
2583
2592
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
2593
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2584
2594
  }, z.core.$strip>;
2585
2595
  }, z.core.$strip>, z.ZodObject<{
2586
2596
  block: z.ZodObject<{
@@ -2592,6 +2602,7 @@ export declare const coreBlocksCapability: {
2592
2602
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
2593
2603
  integrationId: z.ZodOptional<z.ZodString>;
2594
2604
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
2605
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2595
2606
  id: z.ZodString;
2596
2607
  createdAt: z.ZodNumber;
2597
2608
  updatedAt: z.ZodNumber;
@@ -2843,6 +2854,7 @@ export declare const coreBlocksCapability: {
2843
2854
  placement: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>>;
2844
2855
  integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2845
2856
  settingsSchema: z.ZodOptional<z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>>;
2857
+ tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2846
2858
  }, z.core.$strip>;
2847
2859
  }, z.core.$strip>, z.ZodObject<{
2848
2860
  block: z.ZodObject<{
@@ -2854,6 +2866,7 @@ export declare const coreBlocksCapability: {
2854
2866
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
2855
2867
  integrationId: z.ZodOptional<z.ZodString>;
2856
2868
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
2869
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2857
2870
  id: z.ZodString;
2858
2871
  createdAt: z.ZodNumber;
2859
2872
  updatedAt: z.ZodNumber;
@@ -3112,6 +3125,7 @@ export declare const coreBlocksCapability: {
3112
3125
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
3113
3126
  integrationId: z.ZodOptional<z.ZodString>;
3114
3127
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
3128
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3115
3129
  id: z.ZodString;
3116
3130
  createdAt: z.ZodNumber;
3117
3131
  updatedAt: z.ZodNumber;
@@ -3375,6 +3389,7 @@ export declare const coreBlocksCapability: {
3375
3389
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
3376
3390
  integrationId: z.ZodOptional<z.ZodString>;
3377
3391
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
3392
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3378
3393
  id: z.ZodString;
3379
3394
  createdAt: z.ZodNumber;
3380
3395
  updatedAt: z.ZodNumber;
@@ -3947,6 +3962,7 @@ export declare const coreBlocksCapability: {
3947
3962
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
3948
3963
  integrationId: z.ZodOptional<z.ZodString>;
3949
3964
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
3965
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3950
3966
  id: z.ZodString;
3951
3967
  createdAt: z.ZodNumber;
3952
3968
  updatedAt: z.ZodNumber;
@@ -4423,6 +4439,7 @@ export declare const coreBlocksCapability: {
4423
4439
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
4424
4440
  integrationId: z.ZodOptional<z.ZodString>;
4425
4441
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
4442
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4426
4443
  id: z.ZodString;
4427
4444
  createdAt: z.ZodNumber;
4428
4445
  updatedAt: z.ZodNumber;
@@ -4678,6 +4695,7 @@ export declare const coreBlocksCapability: {
4678
4695
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
4679
4696
  integrationId: z.ZodOptional<z.ZodString>;
4680
4697
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
4698
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4681
4699
  id: z.ZodString;
4682
4700
  createdAt: z.ZodNumber;
4683
4701
  updatedAt: z.ZodNumber;
@@ -4968,6 +4986,7 @@ export declare const coreBlocksCapability: {
4968
4986
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
4969
4987
  integrationId: z.ZodOptional<z.ZodString>;
4970
4988
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
4989
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4971
4990
  id: z.ZodString;
4972
4991
  createdAt: z.ZodNumber;
4973
4992
  updatedAt: z.ZodNumber;
@@ -5265,6 +5284,7 @@ export declare const coreBlocksCapability: {
5265
5284
  placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
5266
5285
  integrationId: z.ZodOptional<z.ZodString>;
5267
5286
  settingsSchema: z.ZodOptional<z.ZodCustom<ConfigUISchema, ConfigUISchema>>;
5287
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
5268
5288
  id: z.ZodString;
5269
5289
  createdAt: z.ZodNumber;
5270
5290
  updatedAt: z.ZodNumber;
@@ -67,6 +67,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
67
67
  name: z.ZodString;
68
68
  alias: z.ZodOptional<z.ZodString>;
69
69
  location: z.ZodNullable<z.ZodString>;
70
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
71
  disabled: z.ZodBoolean;
71
72
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
72
73
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -243,6 +244,7 @@ export declare const SavedDeviceRowSchema: z.ZodObject<{
243
244
  type: z.ZodString;
244
245
  name: z.ZodString;
245
246
  location: z.ZodNullable<z.ZodString>;
247
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
246
248
  disabled: z.ZodBoolean;
247
249
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
248
250
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -259,6 +261,7 @@ export declare const DeviceMetaSchema: z.ZodObject<{
259
261
  name: z.ZodString;
260
262
  userNamed: z.ZodOptional<z.ZodBoolean>;
261
263
  location: z.ZodNullable<z.ZodString>;
264
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
265
  disabled: z.ZodBoolean;
263
266
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
264
267
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -567,6 +570,7 @@ export declare const deviceManagerCapability: {
567
570
  name: z.ZodString;
568
571
  userNamed: z.ZodOptional<z.ZodBoolean>;
569
572
  location: z.ZodNullable<z.ZodString>;
573
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
574
  disabled: z.ZodBoolean;
571
575
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
572
576
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -743,6 +747,14 @@ export declare const deviceManagerCapability: {
743
747
  deviceId: z.ZodNumber;
744
748
  location: z.ZodNullable<z.ZodString>;
745
749
  }, z.core.$strip>, z.ZodVoid, "mutation">;
750
+ /** Replace the operator tags of one device (D1054). The list is normalised
751
+ * on write (trimmed, deduplicated case-insensitively); `[]` clears them.
752
+ * Tags are not inherited: unlike `setLocation`, nothing cascades to
753
+ * descendants. */
754
+ readonly setTags: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
755
+ deviceId: z.ZodNumber;
756
+ tags: z.ZodArray<z.ZodString>;
757
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
746
758
  /** Update the device type. Writes the meta row, emits a
747
759
  * `DeviceMetaChanged` event. Used by the kernel to apply
748
760
  * `initialMeta.type` before device construction so the device
@@ -898,6 +910,7 @@ export declare const deviceManagerCapability: {
898
910
  deviceId: z.ZodNumber;
899
911
  name: z.ZodOptional<z.ZodString>;
900
912
  location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
901
914
  type: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
902
915
  integrationId: z.ZodOptional<z.ZodString>;
903
916
  linkDeviceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1095,6 +1108,7 @@ export declare const deviceManagerCapability: {
1095
1108
  type: z.ZodString;
1096
1109
  name: z.ZodString;
1097
1110
  location: z.ZodNullable<z.ZodString>;
1111
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1098
1112
  disabled: z.ZodBoolean;
1099
1113
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
1100
1114
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1125,6 +1139,7 @@ export declare const deviceManagerCapability: {
1125
1139
  name: z.ZodString;
1126
1140
  alias: z.ZodOptional<z.ZodString>;
1127
1141
  location: z.ZodNullable<z.ZodString>;
1142
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1128
1143
  disabled: z.ZodBoolean;
1129
1144
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
1130
1145
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1269,6 +1284,7 @@ export declare const deviceManagerCapability: {
1269
1284
  name: z.ZodString;
1270
1285
  alias: z.ZodOptional<z.ZodString>;
1271
1286
  location: z.ZodNullable<z.ZodString>;
1287
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1272
1288
  disabled: z.ZodBoolean;
1273
1289
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
1274
1290
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1324,6 +1340,7 @@ export declare const deviceManagerCapability: {
1324
1340
  name: z.ZodString;
1325
1341
  alias: z.ZodOptional<z.ZodString>;
1326
1342
  location: z.ZodNullable<z.ZodString>;
1343
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1327
1344
  disabled: z.ZodBoolean;
1328
1345
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
1329
1346
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1410,6 +1427,7 @@ export declare const deviceManagerCapability: {
1410
1427
  name: z.ZodString;
1411
1428
  alias: z.ZodOptional<z.ZodString>;
1412
1429
  location: z.ZodNullable<z.ZodString>;
1430
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1413
1431
  disabled: z.ZodBoolean;
1414
1432
  parentDeviceId: z.ZodNullable<z.ZodNumber>;
1415
1433
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -200,8 +200,11 @@ export declare const energySystemCapability: {
200
200
  * counters' difference over the day.
201
201
  */
202
202
  readonly history: {
203
+ readonly primary: 'house.powerW';
204
+ readonly priority: 50;
203
205
  readonly fields: {
204
206
  readonly 'solar.powerW': {
207
+ readonly group: 'power-flow';
205
208
  readonly kind: 'gauge';
206
209
  readonly unit: 'W';
207
210
  readonly deadband: 50;
@@ -213,6 +216,7 @@ export declare const energySystemCapability: {
213
216
  readonly displayName: 'Solar energy';
214
217
  };
215
218
  readonly 'grid.powerW': {
219
+ readonly group: 'power-flow';
216
220
  readonly kind: 'gauge';
217
221
  readonly unit: 'W';
218
222
  readonly deadband: 50;
@@ -229,6 +233,7 @@ export declare const energySystemCapability: {
229
233
  readonly displayName: 'Grid export';
230
234
  };
231
235
  readonly 'house.powerW': {
236
+ readonly group: 'power-flow';
232
237
  readonly kind: 'gauge';
233
238
  readonly unit: 'W';
234
239
  readonly deadband: 50;
@@ -240,6 +245,7 @@ export declare const energySystemCapability: {
240
245
  readonly displayName: 'House energy';
241
246
  };
242
247
  readonly 'heatPump.powerW': {
248
+ readonly group: 'power-flow';
243
249
  readonly kind: 'gauge';
244
250
  readonly unit: 'W';
245
251
  readonly deadband: 50;
@@ -263,6 +269,7 @@ export declare const energySystemCapability: {
263
269
  readonly displayName: 'Stored energy';
264
270
  };
265
271
  readonly 'storage.powerW': {
272
+ readonly group: 'power-flow';
266
273
  readonly kind: 'gauge';
267
274
  readonly unit: 'W';
268
275
  readonly deadband: 50;
@@ -442,12 +442,14 @@ export declare const heatPumpStatusCapability: {
442
442
  readonly history: {
443
443
  readonly fields: {
444
444
  readonly 'power.thermalW': {
445
+ readonly group: 'power';
445
446
  readonly kind: 'gauge';
446
447
  readonly unit: 'W';
447
448
  readonly deadband: 50;
448
449
  readonly displayName: 'Thermal power';
449
450
  };
450
451
  readonly 'power.electricalW': {
452
+ readonly group: 'power';
451
453
  readonly kind: 'gauge';
452
454
  readonly unit: 'W';
453
455
  readonly deadband: 50;
@@ -460,12 +462,14 @@ export declare const heatPumpStatusCapability: {
460
462
  readonly displayName: 'Compressor';
461
463
  };
462
464
  readonly 'temperatures.supply': {
465
+ readonly group: 'loop';
463
466
  readonly kind: 'gauge';
464
467
  readonly unit: '°C';
465
468
  readonly deadband: 0.5;
466
469
  readonly displayName: 'Supply';
467
470
  };
468
471
  readonly 'temperatures.return': {
472
+ readonly group: 'loop';
469
473
  readonly kind: 'gauge';
470
474
  readonly unit: '°C';
471
475
  readonly deadband: 0.5;
@@ -43,6 +43,8 @@ export declare const humiditySensorCapability: {
43
43
  * History (D850): recorded series.
44
44
  */
45
45
  readonly history: {
46
+ readonly primary: 'humidity';
47
+ readonly priority: 90;
46
48
  readonly fields: {
47
49
  readonly humidity: {
48
50
  readonly kind: 'gauge';