@camstack/types 1.2.540 → 1.2.541

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 (32) hide show
  1. package/CHANGELOG.md +12 -4
  2. package/dist/addon.js +1 -1
  3. package/dist/addon.mjs +1 -1
  4. package/dist/capabilities/cluster-update.cap.d.ts +376 -0
  5. package/dist/capabilities/device-manager.cap.d.ts +103 -0
  6. package/dist/capabilities/device-search.d.ts +168 -0
  7. package/dist/capabilities/hero-layout.cap.d.ts +4 -0
  8. package/dist/capabilities/hub-address.d.ts +10 -0
  9. package/dist/capabilities/index.d.ts +6 -3
  10. package/dist/capabilities/notification-rules.cap.d.ts +115 -1
  11. package/dist/client.d.ts +2 -1
  12. package/dist/client.js +54 -8
  13. package/dist/client.mjs +54 -9
  14. package/dist/device/container-primary-child.d.ts +39 -4
  15. package/dist/device/device-management.d.ts +9 -0
  16. package/dist/device/hero/hero-model.d.ts +14 -0
  17. package/dist/device/linked-device-resolve.d.ts +2 -0
  18. package/dist/generated/addon-api.d.ts +43 -0
  19. package/dist/generated/capability-router-map.d.ts +5 -2
  20. package/dist/generated/device-proxy.d.ts +1 -1
  21. package/dist/generated/method-access-map.d.ts +1 -1
  22. package/dist/generated/method-device-selectors.d.ts +2 -2
  23. package/dist/generated/system-proxy.d.ts +3 -1
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +507 -22
  26. package/dist/index.mjs +478 -23
  27. package/dist/notification/degrade-engine.d.ts +7 -1
  28. package/dist/notification/notification-fields.d.ts +20 -2
  29. package/dist/notification/timelapse-rule.d.ts +69 -0
  30. package/dist/{sleep-Dz1P6--1.mjs → sleep-Cw1uUXvl.mjs} +3 -0
  31. package/dist/{sleep-DPMn-Sik.js → sleep-PfAAmxV-.js} +3 -0
  32. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-DPMn-Sik.js");
2
+ const require_sleep = require("./sleep-PfAAmxV-.js");
3
3
  const require_event_category = require("./event-category-BC4RRerT.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-BtaMj_W7.js");
5
5
  const require_implemented_methods = require("./implemented-methods-C_iV6BiP.js");
@@ -42211,6 +42211,162 @@ var climateControlCapability = {
42211
42211
  } }
42212
42212
  };
42213
42213
  //#endregion
42214
+ //#region src/capabilities/cluster-update.cap.ts
42215
+ /**
42216
+ * cluster-update — the ONE flow that brings the whole cluster to a release
42217
+ * (planning#493). Hub-provided (`server-provided`), hub-only: the hub runs
42218
+ * the sequence itself, so the admin UI, the MCP and the CLI all start the same
42219
+ * job and read the same report instead of each driving their own loop.
42220
+ *
42221
+ * 1. backup (`backup.trigger`) — skipped only when the caller says so
42222
+ * 2. the hub's server closure (`applyServerUpdate`); the hub restarts and the
42223
+ * job RESUMES on the new boot, verified against the hub's running version
42224
+ * 3. every online agent behind the target, one at a time, verified: runs the
42225
+ * target, settled, online, and its capabilities registered (D848) — an
42226
+ * agent that comes back capless is a FAILED step, never a done one
42227
+ * 4. every stale addon on the hub (`addons.updatePackage`); agents follow by
42228
+ * reconciliation, which is verified, never pushed
42229
+ *
42230
+ * The job stops on the first failed step with a typed reason (D877). Its state
42231
+ * is durable on the hub and read by RPC (`getClusterUpdateJob`) — events are
42232
+ * telemetry and never carry it (D8, D11).
42233
+ */
42234
+ /** The steps, in the order they run. */
42235
+ var ClusterUpdateStepKindSchema = zod.z.enum([
42236
+ "backup",
42237
+ "hub-server",
42238
+ "agent-server",
42239
+ "addons"
42240
+ ]);
42241
+ /**
42242
+ * - `pending` — not reached yet.
42243
+ * - `running` — in progress (for `hub-server`: possibly across the restart).
42244
+ * - `ok` — done AND verified.
42245
+ * - `failed` — did not land; `reason` + `detail` say why. Stops the job.
42246
+ * - `skipped` — not run: nothing to do, opted out, the node is offline, or a
42247
+ * step before it failed. `detail` says which.
42248
+ */
42249
+ var ClusterUpdateStepStatusSchema = zod.z.enum([
42250
+ "pending",
42251
+ "running",
42252
+ "ok",
42253
+ "failed",
42254
+ "skipped"
42255
+ ]);
42256
+ /**
42257
+ * Why a step (and with it the job) failed. Stable, greppable; `detail` carries
42258
+ * the prose.
42259
+ */
42260
+ var ClusterUpdateFailureReasonSchema = zod.z.enum([
42261
+ "backup-unavailable",
42262
+ "backup-failed",
42263
+ "server-refused",
42264
+ "server-not-on-target",
42265
+ "node-capless",
42266
+ "status-unreadable",
42267
+ "addon-update-failed",
42268
+ "addons-not-converged",
42269
+ "interrupted"
42270
+ ]);
42271
+ var ClusterUpdateStepSchema = zod.z.object({
42272
+ kind: ClusterUpdateStepKindSchema,
42273
+ /** The node the step acts on; absent for `backup` and `addons`. */
42274
+ nodeId: zod.z.string().optional(),
42275
+ status: ClusterUpdateStepStatusSchema,
42276
+ /** One line for the operator: what happened, or why not. */
42277
+ detail: zod.z.string(),
42278
+ reason: ClusterUpdateFailureReasonSchema.optional(),
42279
+ /** `hub-server` / `agent-server`: the version the node ran before. */
42280
+ fromVersion: zod.z.string().nullable().optional(),
42281
+ /** `addons`: the packages this step updates, `name from -> to`. */
42282
+ packages: zod.z.array(zod.z.string()).readonly().optional(),
42283
+ startedAt: zod.z.number().optional(),
42284
+ finishedAt: zod.z.number().optional()
42285
+ });
42286
+ var ClusterUpdateJobStateSchema = zod.z.enum([
42287
+ "running",
42288
+ "succeeded",
42289
+ "failed"
42290
+ ]);
42291
+ var ClusterUpdateJobSchema = zod.z.object({
42292
+ id: zod.z.string(),
42293
+ state: ClusterUpdateJobStateSchema,
42294
+ /** The server version every node is brought to. */
42295
+ targetVersion: zod.z.string(),
42296
+ /** Who started it (the user name, or `system`). */
42297
+ requestedBy: zod.z.string(),
42298
+ startedAt: zod.z.number(),
42299
+ finishedAt: zod.z.number().optional(),
42300
+ /** Every step, in run order; later steps stay `pending` while it runs. */
42301
+ steps: zod.z.array(ClusterUpdateStepSchema).readonly(),
42302
+ /** On `failed`: the step that stopped it (`nodeId` or the step kind). */
42303
+ stoppedAt: zod.z.string().optional(),
42304
+ reason: ClusterUpdateFailureReasonSchema.optional(),
42305
+ /** Agents offline when the plan was read: never touched. */
42306
+ skippedOffline: zod.z.array(zod.z.string()).readonly()
42307
+ });
42308
+ var ClusterUpdateOptionsSchema = zod.z.object({
42309
+ /** Explicit server target; omitted = the hub's latest registry check. */
42310
+ version: zod.z.string().optional(),
42311
+ /** Update the addons too (default true). */
42312
+ addons: zod.z.boolean().optional(),
42313
+ /**
42314
+ * Back up before touching anything (default true). `false` is an explicit
42315
+ * operator opt-out; a missing backup provider is otherwise a failure.
42316
+ */
42317
+ backup: zod.z.boolean().optional()
42318
+ });
42319
+ /** Why a plan cannot start. */
42320
+ var ClusterUpdateBlockerSchema = zod.z.enum([
42321
+ "no-target",
42322
+ "node-busy",
42323
+ "job-running",
42324
+ "nothing-to-do",
42325
+ "status-unreadable"
42326
+ ]);
42327
+ var ClusterUpdatePlanSchema = zod.z.object({
42328
+ /** `null` when no target could be resolved (`blocker: 'no-target'`). */
42329
+ targetVersion: zod.z.string().nullable(),
42330
+ /** The steps the job WOULD run, all `pending` (or `skipped` with a reason). */
42331
+ steps: zod.z.array(ClusterUpdateStepSchema).readonly(),
42332
+ skippedOffline: zod.z.array(zod.z.string()).readonly(),
42333
+ /** `null` = the plan can start. */
42334
+ blocker: ClusterUpdateBlockerSchema.nullable(),
42335
+ /** Prose for `blocker`. */
42336
+ blockerDetail: zod.z.string().nullable()
42337
+ });
42338
+ var StartClusterUpdateResultSchema = zod.z.object({
42339
+ accepted: zod.z.boolean(),
42340
+ /** The job to follow with `getClusterUpdateJob`; `null` when refused. */
42341
+ jobId: zod.z.string().nullable(),
42342
+ blocker: ClusterUpdateBlockerSchema.nullable(),
42343
+ message: zod.z.string()
42344
+ });
42345
+ var clusterUpdateCapability = {
42346
+ name: "cluster-update",
42347
+ scope: "system",
42348
+ mode: "singleton",
42349
+ methods: {
42350
+ /** What `startClusterUpdate` would do now, and whether it can start. Reads only. */
42351
+ previewClusterUpdate: require_sleep.method(ClusterUpdateOptionsSchema, ClusterUpdatePlanSchema, { auth: "admin" }),
42352
+ /**
42353
+ * Start the job and return at once with its id; the job runs on the hub
42354
+ * (minutes to hours, across the hub's own restart). Refused, with a
42355
+ * `blocker`, when the plan cannot start — one job at a time.
42356
+ */
42357
+ startClusterUpdate: require_sleep.method(ClusterUpdateOptionsSchema, StartClusterUpdateResultSchema, {
42358
+ kind: "mutation",
42359
+ auth: "admin"
42360
+ }),
42361
+ /**
42362
+ * A job's state. Without `jobId`: the latest job, or `null` when none ever
42363
+ * ran. Survives the hub restart the job itself causes.
42364
+ */
42365
+ getClusterUpdateJob: require_sleep.method(zod.z.object({ jobId: zod.z.string().optional() }), ClusterUpdateJobSchema.nullable(), { auth: "admin" })
42366
+ },
42367
+ mount: { kind: "server-provided" }
42368
+ };
42369
+ //#endregion
42214
42370
  //#region src/capabilities/color.cap.ts
42215
42371
  /**
42216
42372
  * Color-light cap. Coexists with `switch` (on/off) and `brightness`
@@ -49929,6 +50085,105 @@ function siteZoneKey(label) {
49929
50085
  return label.trim().toLowerCase();
49930
50086
  }
49931
50087
  //#endregion
50088
+ //#region src/capabilities/device-search.ts
50089
+ /**
50090
+ * `deviceManager.search` — the query behind the device → value picker.
50091
+ *
50092
+ * One server-side question answers everything a picker draws: which devices
50093
+ * can supply a value of the required capability(ies), narrowed by text and by
50094
+ * three generic facets, one cursor page at a time, with the facet counts and
50095
+ * the live reading of each matching value. The schemas live here (not in the
50096
+ * cap file) so the UI model files and the provider import one source; types
50097
+ * are `z.infer` of them.
50098
+ */
50099
+ /** Page size when the caller names none, and the ceiling it may ask for. */
50100
+ var DEVICE_SEARCH_DEFAULT_LIMIT = 50;
50101
+ var DEVICE_SEARCH_MAX_LIMIT = 200;
50102
+ var DeviceSearchRequiresSchema = zod.z.object({
50103
+ /** Capability names the field wants a value of. */
50104
+ caps: zod.z.array(zod.z.string()).readonly(),
50105
+ /** `any` (default): a device with one of them is compatible. `all`: it must hold every one. */
50106
+ mode: zod.z.enum(["any", "all"]).optional()
50107
+ });
50108
+ var DeviceSearchFiltersSchema = zod.z.object({
50109
+ locations: zod.z.array(zod.z.string()).readonly().optional(),
50110
+ integrationIds: zod.z.array(zod.z.string()).readonly().optional(),
50111
+ types: zod.z.array(zod.z.string()).readonly().optional()
50112
+ });
50113
+ var DeviceSearchInputSchema = zod.z.object({
50114
+ /** Matches name, location, type, integration (id and label) and id. Case-insensitive. */
50115
+ text: zod.z.string().optional(),
50116
+ requires: DeviceSearchRequiresSchema.optional(),
50117
+ filters: DeviceSearchFiltersSchema.optional(),
50118
+ /** List the devices that do not provide the required cap too (greyed, not pickable). */
50119
+ includeIncompatible: zod.z.boolean().optional(),
50120
+ /** The device the field belongs to: its location drives `suggested`. */
50121
+ contextDeviceId: zod.z.number().optional(),
50122
+ /**
50123
+ * Resolve exactly these devices, regardless of every filter, so a picked
50124
+ * value can be rendered. When given, `items` is these devices in the order
50125
+ * asked (no paging, `nextCursor` null) and the ones that do not exist are
50126
+ * listed in `missingIds`.
50127
+ */
50128
+ ids: zod.z.array(zod.z.number()).readonly().optional(),
50129
+ cursor: zod.z.string().nullable().optional(),
50130
+ limit: zod.z.number().int().min(1).max(200).optional()
50131
+ });
50132
+ var DeviceValueOptionSchema = zod.z.object({
50133
+ cap: zod.z.string(),
50134
+ /** Status-schema field path inside the cap (same paths as `getWireableFields`). */
50135
+ path: zod.z.string(),
50136
+ label: zod.z.string(),
50137
+ /** The current value as text; `null` when it is unknown or the read FAILED — never `0`. */
50138
+ reading: zod.z.string().nullable(),
50139
+ unit: zod.z.string().nullable().optional(),
50140
+ /** The field's measured quantity, when the cap declares one, so a client can format the reading. */
50141
+ quantity: require_sleep.ReadingQuantitySchema.optional()
50142
+ });
50143
+ var DeviceSearchItemSchema = zod.z.object({
50144
+ id: zod.z.number(),
50145
+ name: zod.z.string(),
50146
+ type: zod.z.enum(require_composed_stable_id.DeviceType),
50147
+ location: zod.z.string().nullable(),
50148
+ integrationId: zod.z.string().nullable(),
50149
+ integrationLabel: zod.z.string().nullable(),
50150
+ online: zod.z.boolean().nullable(),
50151
+ disabled: zod.z.boolean(),
50152
+ compatible: zod.z.boolean(),
50153
+ /** Only the required caps' fields; empty when nothing was required or the device is incompatible. */
50154
+ values: zod.z.array(DeviceValueOptionSchema).readonly()
50155
+ });
50156
+ var DeviceSearchFacetValueSchema = zod.z.object({
50157
+ value: zod.z.string(),
50158
+ count: zod.z.number()
50159
+ });
50160
+ var DeviceSearchFacetIntegrationSchema = zod.z.object({
50161
+ id: zod.z.string(),
50162
+ label: zod.z.string(),
50163
+ count: zod.z.number()
50164
+ });
50165
+ var DeviceSearchFacetsSchema = zod.z.object({
50166
+ locations: zod.z.array(DeviceSearchFacetValueSchema).readonly(),
50167
+ integrations: zod.z.array(DeviceSearchFacetIntegrationSchema).readonly(),
50168
+ types: zod.z.array(DeviceSearchFacetValueSchema).readonly()
50169
+ });
50170
+ var DeviceSearchResultSchema = zod.z.object({
50171
+ items: zod.z.array(DeviceSearchItemSchema).readonly(),
50172
+ nextCursor: zod.z.string().nullable(),
50173
+ /** Devices listed by this query across all pages (filters + text applied; incompatible counted only when `includeIncompatible`). */
50174
+ total: zod.z.number(),
50175
+ /** Compatible devices after filters + text. */
50176
+ compatibleTotal: zod.z.number(),
50177
+ /** Every device the caller's fleet holds, before anything is applied. */
50178
+ fleetTotal: zod.z.number(),
50179
+ /** Incompatible devices after filters + text — the K of "show the K that don't". */
50180
+ hiddenIncompatible: zod.z.number(),
50181
+ facets: DeviceSearchFacetsSchema,
50182
+ /** Same location as `contextDeviceId`; first page only. */
50183
+ suggested: zod.z.array(DeviceSearchItemSchema).readonly(),
50184
+ missingIds: zod.z.array(zod.z.number()).readonly()
50185
+ });
50186
+ //#endregion
49932
50187
  //#region src/capabilities/device-provider.cap.ts
49933
50188
  var ProviderStatusSchema = zod.z.object({
49934
50189
  connected: zod.z.boolean(),
@@ -50419,6 +50674,9 @@ var DeviceInfoSchema = zod.z.object({
50419
50674
  * named accordion sections (with optional intra-section order). See
50420
50675
  * `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
50421
50676
  childLayout: zod.z.array(ChildLayoutEntrySchema).readonly().optional(),
50677
+ /** The children a container stands for, most preferred first, by accessory
50678
+ * `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
50679
+ primaryChildPreference: zod.z.array(zod.z.string()).readonly().optional(),
50422
50680
  /** Operator-authored per-device display override. See `DeviceMeta.display`. */
50423
50681
  display: DeviceDisplayOverrideSchema.optional()
50424
50682
  });
@@ -50582,6 +50840,9 @@ var DeviceMetaSchema = zod.z.object({
50582
50840
  * accordion sections (with optional intra-section order). See
50583
50841
  * `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
50584
50842
  childLayout: zod.z.array(ChildLayoutEntrySchema).readonly().optional(),
50843
+ /** The children a container stands for, most preferred first, by accessory
50844
+ * `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
50845
+ primaryChildPreference: zod.z.array(zod.z.string()).readonly().optional(),
50585
50846
  /** Semantic role string (`DeviceRole`) — propagated from the spawn pre-seed.
50586
50847
  * Optional: only present for accessory children that carry a known role. */
50587
50848
  role: zod.z.string().nullable().optional(),
@@ -50909,6 +51170,17 @@ var deviceManagerCapability = {
50909
51170
  kind: "mutation",
50910
51171
  auth: "admin"
50911
51172
  }),
51173
+ /** Set (or replace) a container's provider-declared primary-child
51174
+ * preference: accessory `childKey`s, most preferred first. Mirrors
51175
+ * `setChildLayout`; the operator's `primaryChildEntityId` still wins.
51176
+ * Persisted, projected, and preserved across re-register/restore. Idempotent. */
51177
+ setPrimaryChildPreference: require_sleep.method(zod.z.object({
51178
+ deviceId: zod.z.number(),
51179
+ primaryChildPreference: zod.z.array(zod.z.string()).readonly()
51180
+ }), zod.z.void(), {
51181
+ kind: "mutation",
51182
+ auth: "admin"
51183
+ }),
50912
51184
  /** Set (or clear) the per-device display override on the meta row. Mirrors
50913
51185
  * `setChildLayout` persistence; `null` clears the override entirely. The
50914
51186
  * override unit(s) are normalized (`normalizeUnit`) at write so the render
@@ -51238,6 +51510,15 @@ var deviceManagerCapability = {
51238
51510
  */
51239
51511
  deviceIds: zod.z.array(zod.z.number()).optional()
51240
51512
  }), zod.z.array(DeviceInfoSchema), { role: "viewer" }),
51513
+ /**
51514
+ * The device → value picker's one query: filter by text, capability and
51515
+ * location / integration / type, with faceted counts, cursor pagination,
51516
+ * the live reading of each matching value, suggestions by the context
51517
+ * device's location, and `ids` resolution for already-picked values.
51518
+ * See `device-search.ts`. Not in `DEVICE_ENUMERATION_METHODS`: a
51519
+ * device-scoped token is refused rather than shown the whole fleet.
51520
+ */
51521
+ search: require_sleep.method(DeviceSearchInputSchema, DeviceSearchResultSchema, { role: "viewer" }),
51241
51522
  /** Get a single device by numeric deviceId. */
51242
51523
  getDevice: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), DeviceInfoSchema.nullable()),
51243
51524
  /** List children of a parent device (by parent numeric id). */
@@ -56569,8 +56850,23 @@ var HeroPillSchema = zod.z.object({
56569
56850
  text: HeroTextSchema,
56570
56851
  tone: HeroToneSchema
56571
56852
  });
56853
+ /**
56854
+ * Rows whose action and slider controls belong ON the scene (the curtain's buttons, the
56855
+ * lock's key, the player's transport) and not in a row under it. The model says it, so
56856
+ * every client draws the same placement; a control of another kind stays in a row.
56857
+ */
56858
+ var HERO_SCENE_ROW_IDS = new Set([
56859
+ "cover",
56860
+ "valve",
56861
+ "lock",
56862
+ "vacuum",
56863
+ "playback",
56864
+ "brightness"
56865
+ ]);
56572
56866
  var HeroRowSchema = zod.z.object({
56573
56867
  id: HeroRowIdSchema,
56868
+ /** `scene`: the row's action and slider controls are drawn on the scene. Absent: an ordinary row. */
56869
+ placement: zod.z.enum(["row", "scene"]).optional(),
56574
56870
  /** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
56575
56871
  label: HeroTextSchema.optional(),
56576
56872
  /** A group header drawn above the row when it differs from the previous row's ("System"). */
@@ -59931,10 +60227,22 @@ var HUB_MDNS_TXT_KEYS = {
59931
60227
  nodeId: "nodeId",
59932
60228
  version: "version",
59933
60229
  role: "role",
59934
- url: "url"
60230
+ url: "url",
60231
+ /** The hub's announced identity (`hub-<16 hex>`), see {@link isHubId}. */
60232
+ hubId: "hubId"
59935
60233
  };
59936
60234
  var HUB_MDNS_ROLE = "hub";
59937
60235
  /**
60236
+ * A hub's ANNOUNCED identity: random, generated once on the hub and persisted, never derived
60237
+ * from anything an outsider can see. Two hubs on one LAN are told apart by it, and a paired
60238
+ * agent records it so it can find ITS hub again over mDNS (and refuse another). It is not the
60239
+ * mesh node id (`hub`), which stays the same on every hub.
60240
+ */
60241
+ var HUB_ID_PATTERN = /^hub-[0-9a-f]{16}$/;
60242
+ function isHubId(value) {
60243
+ return typeof value === "string" && HUB_ID_PATTERN.test(value);
60244
+ }
60245
+ /**
59938
60246
  * How a hub finds agents to pair (D857): every agent publishes ONE mDNS service for its API
59939
60247
  * port, paired or not. The TXT record carries only public facts. Finding an agent grants
59940
60248
  * nothing: pairing still needs the six-digit code confirmed on both screens.
@@ -72232,7 +72540,15 @@ var NcRuleTargetSchema = zod.z.object({
72232
72540
  * - `schedule` — deliver to this target only inside these windows. A target
72233
72541
  * outside its window gets no outbox row and the skip is logged; the other
72234
72542
  * targets of the same fire still deliver.
72235
- * - `priority` — this target's canonical ordinal (1..5).
72543
+ * - `priority` — this target's canonical ordinal (1..5). An editor offers the
72544
+ * kind's DECLARED levels (`caps.levels`), each with its own ordinal.
72545
+ * - `attachment` — which of the pictures the rule produced this target
72546
+ * receives: `none`, `image`, `clip` (video) or `gif`. It narrows, never adds:
72547
+ * the rule's media policy decides what exists (#487, operator 2026-11-10).
72548
+ * - `actions: false` — this target gets no action buttons.
72549
+ *
72550
+ * The same settings apply to EVERY delivery a rule makes — an event, a
72551
+ * summary, a timelapse, a calendar digest (D1032).
72236
72552
  *
72237
72553
  * The notifier's own declared knobs (D938 `deliveryParams`: sound, critical,
72238
72554
  * volume…) stay where they already live per target: the rule target's
@@ -72244,13 +72560,23 @@ var NcRuleTargetSchema = zod.z.object({
72244
72560
  * (D1030).
72245
72561
  */
72246
72562
  var NC_TEMPLATE_TITLE_MAX_CHARS = 500;
72563
+ /** Which picture kind one target receives (#487). */
72564
+ var NcTargetAttachmentSchema = zod.z.enum([
72565
+ "none",
72566
+ "image",
72567
+ "clip",
72568
+ "gif"
72569
+ ]);
72247
72570
  var NcTargetOverrideSchema = zod.z.object({
72248
72571
  template: zod.z.object({
72249
72572
  title: zod.z.string().max(500).optional(),
72250
72573
  body: zod.z.string().max(2e3).optional()
72251
72574
  }).optional(),
72252
72575
  schedule: NcScheduleSchema.optional(),
72253
- priority: zod.z.number().int().min(1).max(5).optional()
72576
+ priority: zod.z.number().int().min(1).max(5).optional(),
72577
+ attachment: NcTargetAttachmentSchema.optional(),
72578
+ /** `false` = no buttons for this target; `true` is the same as absent. */
72579
+ actions: zod.z.boolean().optional()
72254
72580
  });
72255
72581
  /** Per-target settings keyed by target id (#487). */
72256
72582
  var NcTargetOverridesSchema = zod.z.record(zod.z.string(), NcTargetOverrideSchema);
@@ -78752,18 +79078,18 @@ var powerSourceCapability = {
78752
79078
  mode: "singleton",
78753
79079
  deviceTypes: POWER_SOURCE_DEVICE_TYPES,
78754
79080
  methods: {
78755
- getStatus: require_sleep.systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "admin" }),
79081
+ getStatus: require_sleep.systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "protected" }),
78756
79082
  powerOn: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
78757
79083
  kind: "mutation",
78758
- auth: "admin"
79084
+ auth: "protected"
78759
79085
  }),
78760
79086
  powerOff: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
78761
79087
  kind: "mutation",
78762
- auth: "admin"
79088
+ auth: "protected"
78763
79089
  }),
78764
79090
  forceRestart: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
78765
79091
  kind: "mutation",
78766
- auth: "admin"
79092
+ auth: "protected"
78767
79093
  })
78768
79094
  },
78769
79095
  runtimeState: PowerSourceStateSchema,
@@ -90531,6 +90857,7 @@ var CAPABILITY_NAMES = {
90531
90857
  cameraStreams: "camera-streams",
90532
90858
  carbonMonoxide: "carbon-monoxide",
90533
90859
  climateControl: "climate-control",
90860
+ clusterUpdate: "cluster-update",
90534
90861
  color: "color",
90535
90862
  composer: "composer",
90536
90863
  connectivity: "connectivity",
@@ -90847,6 +91174,10 @@ var CAPABILITY_ROUTER_KEYS = [
90847
91174
  key: "climateControl",
90848
91175
  name: "climate-control"
90849
91176
  },
91177
+ {
91178
+ key: "clusterUpdate",
91179
+ name: "cluster-update"
91180
+ },
90850
91181
  {
90851
91182
  key: "color",
90852
91183
  name: "color"
@@ -91570,6 +91901,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
91570
91901
  cameraStreamsCapability,
91571
91902
  carbonMonoxideCapability,
91572
91903
  climateControlCapability,
91904
+ clusterUpdateCapability,
91573
91905
  colorCapability,
91574
91906
  composerCapability,
91575
91907
  connectivityCapability,
@@ -100557,9 +100889,11 @@ function isBatteryPresenceFault(presence) {
100557
100889
  * priority-in-sync.ts` fails the build when either drifts — the comment that
100558
100890
  * used to ask for this could not.
100559
100891
  *
100560
- * The rule has three halves and the ORDER matters: an operator's explicit pick
100561
- * wins outright; else a declaration on the device type
100562
- * ({@link CONTAINER_PRIMARY_CHILD_RULES}); else role, namesake, then type
100892
+ * The rule has four steps and the ORDER matters: an operator's explicit pick
100893
+ * wins outright; else the container's own declaration, an ordered list of
100894
+ * child keys its provider stamped at create
100895
+ * ({@link ContainerPrimaryChildPreference}); else a declaration on the device
100896
+ * type ({@link CONTAINER_PRIMARY_CHILD_RULES}); else role, namesake, then type
100563
100897
  * priority. The pick is keyed on the child's re-sync-stable `entityId`, not
100564
100898
  * its numeric id, so it survives a re-sync that reallocates ids.
100565
100899
  */
@@ -100572,6 +100906,25 @@ var CONTAINER_PRIMARY_CHILD_RULES = [{
100572
100906
  deviceType: require_composed_stable_id.DeviceType.HeatPump,
100573
100907
  primary: "self"
100574
100908
  }];
100909
+ /** The declaration of a container read from its meta, or undefined when it declared none. */
100910
+ function primaryChildPreferenceOf(container) {
100911
+ const keys = container.primaryChildPreference;
100912
+ if (container.stableId === void 0 || keys === void 0 || keys === null) return void 0;
100913
+ if (keys.length === 0) return void 0;
100914
+ return {
100915
+ parentStableId: container.stableId,
100916
+ childKeys: keys
100917
+ };
100918
+ }
100919
+ /** The first declared child that exists, or undefined when none does. */
100920
+ function applyPrimaryChildPreference(preference, children) {
100921
+ if (preference === void 0) return void 0;
100922
+ for (const key of preference.childKeys) {
100923
+ const expected = `${preference.parentStableId}-${key}`;
100924
+ const match = children.find((child) => child.stableId === expected);
100925
+ if (match !== void 0) return match;
100926
+ }
100927
+ }
100575
100928
  /**
100576
100929
  * The type declaration, before the heuristic. `fall-through` means the
100577
100930
  * heuristic still decides: the type declared nothing, or it named a child
@@ -100679,7 +101032,8 @@ function rank(type) {
100679
101032
  }
100680
101033
  /**
100681
101034
  * The child a container stands for: the operator's pick when it still exists,
100682
- * else the device type's declaration, else the highest-priority type. `null`
101035
+ * else the container's declared preference, else the device type's
101036
+ * declaration, else the highest-priority type. `null`
100683
101037
  * for a childless container, and for a type that stands for itself — a caller
100684
101038
  * must decide what "no child" means for it, rather than being handed a child
100685
101039
  * that is not the device.
@@ -100711,11 +101065,13 @@ function sameName(childName, containerName) {
100711
101065
  const flatten = (v) => v.toLowerCase().replace(/[-_\s]+/g, " ").trim();
100712
101066
  return flatten(childName) === flatten(containerName);
100713
101067
  }
100714
- function resolveContainerPrimaryChild(children, overrideEntityId, containerName, containerType) {
101068
+ function resolveContainerPrimaryChild(children, overrideEntityId, containerName, containerType, preference) {
100715
101069
  if (overrideEntityId !== void 0 && overrideEntityId !== null) {
100716
101070
  const picked = children.find((c) => c.stableId === overrideEntityId) ?? children.find((c) => c.entityId !== void 0 && c.entityId === overrideEntityId);
100717
101071
  if (picked !== void 0) return picked;
100718
101072
  }
101073
+ const preferred = applyPrimaryChildPreference(preference, children);
101074
+ if (preferred !== void 0) return preferred;
100719
101075
  const declared = applyPrimaryChildRule(CONTAINER_PRIMARY_CHILD_RULES.find((entry) => entry.deviceType === containerType), children);
100720
101076
  if (declared.kind === "none") return null;
100721
101077
  if (declared.kind === "child") return declared.child;
@@ -100768,7 +101124,7 @@ function expandContainer(id, byId, byParent, visited, out) {
100768
101124
  type: c.type,
100769
101125
  ...c.role !== void 0 && c.role !== null ? { role: c.role } : {},
100770
101126
  ...c.name !== void 0 ? { name: c.name } : {}
100771
- })), byId.get(id)?.primaryChildEntityId, byId.get(id)?.name, candidate.type);
101127
+ })), candidate.primaryChildEntityId, candidate.name, candidate.type, primaryChildPreferenceOf(candidate));
100772
101128
  if (primary !== null) expandContainer(primary.id, byId, byParent, nextVisited, out);
100773
101129
  }
100774
101130
  /**
@@ -105303,7 +105659,10 @@ function buildHeroModel(input) {
105303
105659
  };
105304
105660
  const allRows = fragments.flatMap((f) => f.rows ?? []);
105305
105661
  const rows = resolveHeroLayout(device.type).rows.flatMap((id) => {
105306
- return allRows.filter((r) => r.id === id);
105662
+ return allRows.filter((r) => r.id === id).map((r) => HERO_SCENE_ROW_IDS.has(r.id) ? {
105663
+ ...r,
105664
+ placement: "scene"
105665
+ } : r);
105307
105666
  });
105308
105667
  const ownPower = resolveOwnPower(fragments.flatMap((f) => f.ownPower === void 0 ? [] : [f.ownPower]));
105309
105668
  const timedRun = fragments.find((f) => f.timedRun !== void 0)?.timedRun ?? null;
@@ -106707,6 +107066,27 @@ var METHOD_ACCESS_MAP = Object.freeze({
106707
107066
  access: "create",
106708
107067
  role: "viewer"
106709
107068
  },
107069
+ "clusterUpdate.getClusterUpdateJob": {
107070
+ capName: "cluster-update",
107071
+ capScope: "system",
107072
+ addonId: null,
107073
+ access: "view",
107074
+ role: "admin"
107075
+ },
107076
+ "clusterUpdate.previewClusterUpdate": {
107077
+ capName: "cluster-update",
107078
+ capScope: "system",
107079
+ addonId: null,
107080
+ access: "view",
107081
+ role: "admin"
107082
+ },
107083
+ "clusterUpdate.startClusterUpdate": {
107084
+ capName: "cluster-update",
107085
+ capScope: "system",
107086
+ addonId: null,
107087
+ access: "create",
107088
+ role: "admin"
107089
+ },
106710
107090
  "color.getStatus": {
106711
107091
  capName: "color",
106712
107092
  capScope: "device",
@@ -108079,6 +108459,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
108079
108459
  access: "create",
108080
108460
  role: "admin"
108081
108461
  },
108462
+ "deviceManager.search": {
108463
+ capName: "device-manager",
108464
+ capScope: "system",
108465
+ addonId: null,
108466
+ access: "view",
108467
+ role: "viewer"
108468
+ },
108082
108469
  "deviceManager.setAlias": {
108083
108470
  capName: "device-manager",
108084
108471
  capScope: "system",
@@ -108170,6 +108557,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
108170
108557
  access: "create",
108171
108558
  role: "admin"
108172
108559
  },
108560
+ "deviceManager.setPrimaryChildPreference": {
108561
+ capName: "device-manager",
108562
+ capScope: "system",
108563
+ addonId: null,
108564
+ access: "create",
108565
+ role: "admin"
108566
+ },
108173
108567
  "deviceManager.setRole": {
108174
108568
  capName: "device-manager",
108175
108569
  capScope: "system",
@@ -112809,28 +113203,28 @@ var METHOD_ACCESS_MAP = Object.freeze({
112809
113203
  capScope: "device",
112810
113204
  addonId: null,
112811
113205
  access: "create",
112812
- role: "admin"
113206
+ role: "viewer"
112813
113207
  },
112814
113208
  "powerSource.getStatus": {
112815
113209
  capName: "power-source",
112816
113210
  capScope: "device",
112817
113211
  addonId: null,
112818
113212
  access: "view",
112819
- role: "admin"
113213
+ role: "viewer"
112820
113214
  },
112821
113215
  "powerSource.powerOff": {
112822
113216
  capName: "power-source",
112823
113217
  capScope: "device",
112824
113218
  addonId: null,
112825
113219
  access: "create",
112826
- role: "admin"
113220
+ role: "viewer"
112827
113221
  },
112828
113222
  "powerSource.powerOn": {
112829
113223
  capName: "power-source",
112830
113224
  capScope: "device",
112831
113225
  addonId: null,
112832
113226
  access: "create",
112833
- role: "admin"
113227
+ role: "viewer"
112834
113228
  },
112835
113229
  "presence.getStatus": {
112836
113230
  capName: "presence",
@@ -115895,6 +116289,7 @@ var KNOWN_CAP_NAMES = [
115895
116289
  "camera-streams",
115896
116290
  "carbon-monoxide",
115897
116291
  "climate-control",
116292
+ "cluster-update",
115898
116293
  "color",
115899
116294
  "composer",
115900
116295
  "connectivity",
@@ -116194,6 +116589,7 @@ var SYSTEM_CAP_NAMES = [
116194
116589
  "broker",
116195
116590
  "calendar-source",
116196
116591
  "calendars",
116592
+ "cluster-update",
116197
116593
  "composer",
116198
116594
  "core-blocks",
116199
116595
  "custom-model-registry",
@@ -118989,6 +119385,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
118989
119385
  form: "single",
118990
119386
  optional: false
118991
119387
  }],
119388
+ "deviceManager.setPrimaryChildPreference": [{
119389
+ name: "deviceId",
119390
+ form: "single",
119391
+ optional: false
119392
+ }],
118992
119393
  "deviceManager.setRole": [{
118993
119394
  name: "deviceId",
118994
119395
  form: "single",
@@ -121433,6 +121834,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
121433
121834
  "deviceManager.setMetadata",
121434
121835
  "deviceManager.setName",
121435
121836
  "deviceManager.setPrimaryChildEntityId",
121837
+ "deviceManager.setPrimaryChildPreference",
121436
121838
  "deviceManager.setRole",
121437
121839
  "deviceManager.setStreamProfileMap",
121438
121840
  "deviceManager.setType",
@@ -122683,6 +123085,11 @@ function createSystemProxy(api) {
122683
123085
  getPreferences: (input) => dispatch("calendars", "getPreferences", "query", input),
122684
123086
  setCalendarPreference: (input) => dispatch("calendars", "setCalendarPreference", "mutation", input)
122685
123087
  },
123088
+ clusterUpdate: {
123089
+ previewClusterUpdate: (input) => dispatch("clusterUpdate", "previewClusterUpdate", "query", input),
123090
+ startClusterUpdate: (input) => dispatch("clusterUpdate", "startClusterUpdate", "mutation", input),
123091
+ getClusterUpdateJob: (input) => dispatch("clusterUpdate", "getClusterUpdateJob", "query", input)
123092
+ },
122686
123093
  coreBlocks: {
122687
123094
  list: (input) => dispatch("coreBlocks", "list", "query", input),
122688
123095
  get: (input) => dispatch("coreBlocks", "get", "query", input),
@@ -122778,6 +123185,7 @@ function createSystemProxy(api) {
122778
123185
  setLocationZone: (input) => dispatch("deviceManager", "setLocationZone", "mutation", input),
122779
123186
  listPersistedByAddon: (input) => dispatch("deviceManager", "listPersistedByAddon", "query", input),
122780
123187
  listAll: (input) => dispatch("deviceManager", "listAll", "query", input),
123188
+ search: (input) => dispatch("deviceManager", "search", "query", input),
122781
123189
  getChildren: (input) => dispatch("deviceManager", "getChildren", "query", input),
122782
123190
  getChildrenBatch: (input) => dispatch("deviceManager", "getChildrenBatch", "query", input),
122783
123191
  getLinkedDevicesBatch: (input) => dispatch("deviceManager", "getLinkedDevicesBatch", "query", input),
@@ -124146,6 +124554,7 @@ function prepareNotification(caps, n) {
124146
124554
  sound,
124147
124555
  ttl,
124148
124556
  tag,
124557
+ ...n.delivery !== void 0 ? { delivery: n.delivery } : {},
124149
124558
  bodyParts,
124150
124559
  renderedAs
124151
124560
  };
@@ -124283,6 +124692,44 @@ function deliverableFields(caps) {
124283
124692
  };
124284
124693
  return NOTIFICATION_FIELDS.filter((field) => supported[field]);
124285
124694
  }
124695
+ /** The picture kind a produced media type belongs to. */
124696
+ var KIND_OF_MEDIA = {
124697
+ image: "image",
124698
+ video: "clip",
124699
+ gif: "gif"
124700
+ };
124701
+ /**
124702
+ * The picture kinds a target may be set to receive: `none` plus one per media
124703
+ * type the notifier declares (`caps.attachments.mediaTypes`). Empty when the
124704
+ * kind takes no attachment at all — there is nothing to choose.
124705
+ */
124706
+ function attachmentKindsOf(caps) {
124707
+ if (caps.attachments.max <= 0) return [];
124708
+ const kinds = caps.attachments.mediaTypes.flatMap((type) => {
124709
+ const kind = KIND_OF_MEDIA[type];
124710
+ return kind === void 0 ? [] : [kind];
124711
+ });
124712
+ return kinds.length === 0 ? [] : ["none", ...new Set(kinds)];
124713
+ }
124714
+ /**
124715
+ * Whether a target set to `kind` receives an attachment of `mediaType`.
124716
+ * Absent = every kind the rule produced; an icon or audio part is never
124717
+ * narrowed (it is not a picture of the event).
124718
+ */
124719
+ function targetAttachmentAllows(kind, mediaType) {
124720
+ if (kind === void 0) return true;
124721
+ const own = KIND_OF_MEDIA[mediaType];
124722
+ if (own === void 0) return true;
124723
+ return kind !== "none" && kind === own;
124724
+ }
124725
+ /**
124726
+ * The levels a notifier declares that a rule can pick between: the ones that
124727
+ * map to a canonical ordinal, in ordinal order. The editor labels the choice
124728
+ * with the level's own label (Alexa: normal / high) and stores its ordinal.
124729
+ */
124730
+ function priorityLevelsOf(caps) {
124731
+ return caps.levels.filter((level) => level.ordinal !== null).toSorted((a, b) => (a.ordinal ?? 0) - (b.ordinal ?? 0));
124732
+ }
124286
124733
  /**
124287
124734
  * The union of what the selected targets deliver, with the targets that drop
124288
124735
  * each field. No selection shows every field: a rule that addresses only users
@@ -124314,10 +124761,14 @@ function sanitizeTargetOverride(override, fields) {
124314
124761
  ...body !== void 0 ? { body } : {}
124315
124762
  } : void 0;
124316
124763
  const priority = has("priority") ? override.priority : void 0;
124764
+ const attachment = has("attachments") ? override.attachment : void 0;
124765
+ const noButtons = has("actions") && override.actions === false;
124317
124766
  const next = {
124318
124767
  ...template !== void 0 ? { template } : {},
124319
124768
  ...override.schedule !== void 0 && override.schedule.windows.length > 0 ? { schedule: override.schedule } : {},
124320
- ...priority !== void 0 ? { priority } : {}
124769
+ ...priority !== void 0 ? { priority } : {},
124770
+ ...attachment !== void 0 ? { attachment } : {},
124771
+ ...noButtons ? { actions: false } : {}
124321
124772
  };
124322
124773
  return Object.keys(next).length > 0 ? next : void 0;
124323
124774
  }
@@ -129261,7 +129712,9 @@ var TimelapseRuleInputSchema = zod.z.object({
129261
129712
  /** Classes the notification counts — see {@link ReportClassesField}. */
129262
129713
  reportClasses: ReportClassesField.optional(),
129263
129714
  /** Canonical notification priority ordinal (1..5); per-target overridable. */
129264
- priority: PriorityField.default(3)
129715
+ priority: PriorityField.default(3),
129716
+ /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
129717
+ targetOverrides: NcTargetOverridesSchema.optional()
129265
129718
  });
129266
129719
  /**
129267
129720
  * The caption a rule that never set one gets.
@@ -129301,7 +129754,9 @@ var TimelapseRulePatchSchema = zod.z.object({
129301
129754
  previewText: PreviewTextField.optional(),
129302
129755
  previewMode: PreviewModeField.optional(),
129303
129756
  reportClasses: ReportClassesField.optional(),
129304
- priority: PriorityField.optional()
129757
+ priority: PriorityField.optional(),
129758
+ /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
129759
+ targetOverrides: NcTargetOverridesSchema.optional()
129305
129760
  });
129306
129761
  /** A persisted timelapse rule. */
129307
129762
  var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
@@ -135492,6 +135947,15 @@ exports.ClipWakeSchema = ClipWakeSchema;
135492
135947
  exports.ClusterAddonNodeDeploymentSchema = ClusterAddonNodeDeploymentSchema;
135493
135948
  exports.ClusterAddonStatusEntrySchema = ClusterAddonStatusEntrySchema;
135494
135949
  exports.ClusterModelChoiceSchema = ClusterModelChoiceSchema;
135950
+ exports.ClusterUpdateBlockerSchema = ClusterUpdateBlockerSchema;
135951
+ exports.ClusterUpdateFailureReasonSchema = ClusterUpdateFailureReasonSchema;
135952
+ exports.ClusterUpdateJobSchema = ClusterUpdateJobSchema;
135953
+ exports.ClusterUpdateJobStateSchema = ClusterUpdateJobStateSchema;
135954
+ exports.ClusterUpdateOptionsSchema = ClusterUpdateOptionsSchema;
135955
+ exports.ClusterUpdatePlanSchema = ClusterUpdatePlanSchema;
135956
+ exports.ClusterUpdateStepKindSchema = ClusterUpdateStepKindSchema;
135957
+ exports.ClusterUpdateStepSchema = ClusterUpdateStepSchema;
135958
+ exports.ClusterUpdateStepStatusSchema = ClusterUpdateStepStatusSchema;
135495
135959
  exports.CollectionColumnSchema = CollectionColumnSchema;
135496
135960
  exports.CollectionIndexSchema = CollectionIndexSchema;
135497
135961
  exports.ColorStatusSchema = ColorStatusSchema;
@@ -135676,6 +136140,8 @@ exports.DEVICE_RUNS_MAX_PAGE = DEVICE_RUNS_MAX_PAGE;
135676
136140
  exports.DEVICE_SAN_CREDENTIAL_PREFIX = DEVICE_SAN_CREDENTIAL_PREFIX;
135677
136141
  exports.DEVICE_SAN_USER_PREFIX = DEVICE_SAN_USER_PREFIX;
135678
136142
  exports.DEVICE_SCOPED_CAPS = require_sleep.DEVICE_SCOPED_CAPS;
136143
+ exports.DEVICE_SEARCH_DEFAULT_LIMIT = DEVICE_SEARCH_DEFAULT_LIMIT;
136144
+ exports.DEVICE_SEARCH_MAX_LIMIT = DEVICE_SEARCH_MAX_LIMIT;
135679
136145
  exports.DEVICE_SETTINGS_CONTRIBUTION_METHODS = require_sleep.DEVICE_SETTINGS_CONTRIBUTION_METHODS;
135680
136146
  exports.DEVICE_SIGNATURE_MESSAGE_VERSION = DEVICE_SIGNATURE_MESSAGE_VERSION;
135681
136147
  exports.DEVICE_STATE_READERS = DEVICE_STATE_READERS;
@@ -135777,6 +136243,14 @@ exports.DeviceRunSchema = DeviceRunSchema;
135777
136243
  exports.DeviceRunSourceSchema = DeviceRunSourceSchema;
135778
136244
  exports.DeviceRunStateSchema = DeviceRunStateSchema;
135779
136245
  exports.DeviceRuntimeState = DeviceRuntimeState;
136246
+ exports.DeviceSearchFacetIntegrationSchema = DeviceSearchFacetIntegrationSchema;
136247
+ exports.DeviceSearchFacetValueSchema = DeviceSearchFacetValueSchema;
136248
+ exports.DeviceSearchFacetsSchema = DeviceSearchFacetsSchema;
136249
+ exports.DeviceSearchFiltersSchema = DeviceSearchFiltersSchema;
136250
+ exports.DeviceSearchInputSchema = DeviceSearchInputSchema;
136251
+ exports.DeviceSearchItemSchema = DeviceSearchItemSchema;
136252
+ exports.DeviceSearchRequiresSchema = DeviceSearchRequiresSchema;
136253
+ exports.DeviceSearchResultSchema = DeviceSearchResultSchema;
135780
136254
  exports.DeviceSelectorSchema = DeviceSelectorSchema;
135781
136255
  exports.DeviceSignaturePurposeSchema = DeviceSignaturePurposeSchema;
135782
136256
  exports.DeviceStatusSchema = DeviceStatusSchema;
@@ -135789,6 +136263,7 @@ exports.DeviceTemplateValueSchema = DeviceTemplateValueSchema;
135789
136263
  exports.DeviceTombstoneSchema = DeviceTombstoneSchema;
135790
136264
  exports.DeviceTransitionSchema = require_sleep.DeviceTransitionSchema;
135791
136265
  exports.DeviceType = require_composed_stable_id.DeviceType;
136266
+ exports.DeviceValueOptionSchema = DeviceValueOptionSchema;
135792
136267
  exports.DiagnosticIdSchema = DiagnosticIdSchema;
135793
136268
  exports.DiagnosticWindowPatchSchema = DiagnosticWindowPatchSchema;
135794
136269
  exports.DiagnosticWindowSchema = DiagnosticWindowSchema;
@@ -136033,6 +136508,7 @@ exports.HISTORY_UNIT_LABELS = require_sleep.HISTORY_UNIT_LABELS;
136033
136508
  exports.HOURS_PER_DAY = HOURS_PER_DAY;
136034
136509
  exports.HOUR_MS = require_implemented_methods.HOUR_MS;
136035
136510
  exports.HUB_ADDRESS_ROLES = HUB_ADDRESS_ROLES;
136511
+ exports.HUB_ID_PATTERN = HUB_ID_PATTERN;
136036
136512
  exports.HUB_MDNS_QUERY_NAME = HUB_MDNS_QUERY_NAME;
136037
136513
  exports.HUB_MDNS_ROLE = HUB_MDNS_ROLE;
136038
136514
  exports.HUB_MDNS_SERVICE_TYPE = HUB_MDNS_SERVICE_TYPE;
@@ -136609,6 +137085,7 @@ exports.NcSystemEventDeliveryModeSchema = NcSystemEventDeliveryModeSchema;
136609
137085
  exports.NcSystemEventDeliverySchema = NcSystemEventDeliverySchema;
136610
137086
  exports.NcSystemEventDeliveryToggleSchema = NcSystemEventDeliveryToggleSchema;
136611
137087
  exports.NcSystemEventKindSchema = NcSystemEventKindSchema;
137088
+ exports.NcTargetAttachmentSchema = NcTargetAttachmentSchema;
136612
137089
  exports.NcTargetOverrideSchema = NcTargetOverrideSchema;
136613
137090
  exports.NcTargetOverridesSchema = NcTargetOverridesSchema;
136614
137091
  exports.NcTaxonomyEntrySchema = NcTaxonomyEntrySchema;
@@ -137278,6 +137755,7 @@ exports.StaleDataReportSchema = StaleDataReportSchema;
137278
137755
  exports.StaleDevicePinSchema = StaleDevicePinSchema;
137279
137756
  exports.StaleKindFindingSchema = StaleKindFindingSchema;
137280
137757
  exports.StaleSettingsKeyFindingSchema = StaleSettingsKeyFindingSchema;
137758
+ exports.StartClusterUpdateResultSchema = StartClusterUpdateResultSchema;
137281
137759
  exports.StartEmbeddedInputSchema = StartEmbeddedInputSchema;
137282
137760
  exports.StartEnrollmentOutputSchema = StartEnrollmentOutputSchema;
137283
137761
  exports.StationaryObjectSchema = StationaryObjectSchema;
@@ -137634,6 +138112,7 @@ exports.applyModeDelaysEdits = applyModeDelaysEdits;
137634
138112
  exports.applyModeDeviceListEdit = applyModeDeviceListEdit;
137635
138113
  exports.applyModelBoundSettings = applyModelBoundSettings;
137636
138114
  exports.applyNonBlockingEdit = applyNonBlockingEdit;
138115
+ exports.applyPrimaryChildPreference = applyPrimaryChildPreference;
137637
138116
  exports.applyPrimaryChildRule = applyPrimaryChildRule;
137638
138117
  exports.applySecureOnArmEdit = applySecureOnArmEdit;
137639
138118
  exports.arithmeticDraft = arithmeticDraft;
@@ -137651,6 +138130,7 @@ exports.assertTimelapseCadences = assertTimelapseCadences;
137651
138130
  exports.assertTransactScope = require_sleep.assertTransactScope;
137652
138131
  exports.assertValidDeclaration = require_sleep.assertValidDeclaration;
137653
138132
  exports.assignNodeColorId = require_node_color.assignNodeColorId;
138133
+ exports.attachmentKindsOf = attachmentKindsOf;
137654
138134
  exports.audioAnalysisCapability = audioAnalysisCapability;
137655
138135
  exports.audioAnalyzerCapability = audioAnalyzerCapability;
137656
138136
  exports.audioChunkBytesPerSample = require_sleep.audioChunkBytesPerSample;
@@ -137770,6 +138250,7 @@ exports.cloneStatefulExpressionMemory = require_implemented_methods.cloneStatefu
137770
138250
  exports.clusterModelSettingKey = clusterModelSettingKey;
137771
138251
  exports.clusterStepSettingFieldsFor = clusterStepSettingFieldsFor;
137772
138252
  exports.clusterStepSettingKey = clusterStepSettingKey;
138253
+ exports.clusterUpdateCapability = clusterUpdateCapability;
137773
138254
  exports.codecIsAccepted = codecIsAccepted;
137774
138255
  exports.collectDeviceTemplates = collectDeviceTemplates;
137775
138256
  exports.collectHydratedFieldEntries = require_sleep.collectHydratedFieldEntries;
@@ -138204,6 +138685,7 @@ exports.isFirstLevelMacroClass = isFirstLevelMacroClass;
138204
138685
  exports.isForwardInputRef = require_implemented_methods.isForwardInputRef;
138205
138686
  exports.isHeldBackTemplateVar = isHeldBackTemplateVar;
138206
138687
  exports.isHistoryHelper = require_implemented_methods.isHistoryHelper;
138688
+ exports.isHubId = isHubId;
138207
138689
  exports.isIconKey = isIconKey;
138208
138690
  exports.isInstanceEnabled = require_sleep.isInstanceEnabled;
138209
138691
  exports.isInternalActionId = isInternalActionId;
@@ -138514,7 +138996,9 @@ exports.presenceCapability = presenceCapability;
138514
138996
  exports.presetById = presetById;
138515
138997
  exports.pressureSensorCapability = pressureSensorCapability;
138516
138998
  exports.primaryCapForRole = primaryCapForRole;
138999
+ exports.primaryChildPreferenceOf = primaryChildPreferenceOf;
138517
139000
  exports.principalMayReachAddon = principalMayReachAddon;
139001
+ exports.priorityLevelsOf = priorityLevelsOf;
138518
139002
  exports.privacyMaskCapability = privacyMaskCapability;
138519
139003
  exports.probeToTestResult = probeToTestResult;
138520
139004
  exports.problemsBlockSave = problemsBlockSave;
@@ -138857,6 +139341,7 @@ exports.systemEventSummarySplitOf = systemEventSummarySplitOf;
138857
139341
  exports.systemFamilyOfKind = systemFamilyOfKind;
138858
139342
  exports.systemRuleKindOf = systemRuleKindOf;
138859
139343
  exports.tamperCapability = tamperCapability;
139344
+ exports.targetAttachmentAllows = targetAttachmentAllows;
138860
139345
  exports.targetBody = targetBody;
138861
139346
  exports.targetFeature = targetFeature;
138862
139347
  exports.targetOfRecord = targetOfRecord;