@camstack/server 1.2.741 → 1.2.742

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 (97) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/core/cap-providers.js +167 -43
  3. package/dist/api/core/integration-role.js +20 -0
  4. package/dist/api/trpc/generated-cap-mounts.js +18 -1
  5. package/dist/api/trpc/generated-cap-routers.js +2427 -2381
  6. package/package.json +14 -12
  7. package/system/dist/addon-utils.mjs +1 -1
  8. package/system/dist/{agent-https-CNf7_i1z.js → agent-https-CsDhLoui.js} +1 -1
  9. package/system/dist/{agent-https-BtTMjLgk.mjs → agent-https-lgka7y2l.mjs} +1 -1
  10. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  11. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
  12. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  13. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
  14. package/system/dist/builtins/alerts/alerts.addon.js +4 -4
  15. package/system/dist/builtins/alerts/alerts.addon.mjs +4 -4
  16. package/system/dist/builtins/autotrack/index.js +1 -1
  17. package/system/dist/builtins/autotrack/index.mjs +1 -1
  18. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  19. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
  20. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  21. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  22. package/system/dist/builtins/camera-grid/index.js +4 -4
  23. package/system/dist/builtins/camera-grid/index.mjs +4 -4
  24. package/system/dist/builtins/composer/composer.addon.js +3 -3
  25. package/system/dist/builtins/composer/composer.addon.mjs +3 -3
  26. package/system/dist/builtins/console-logging/index.js +1 -1
  27. package/system/dist/builtins/console-logging/index.mjs +1 -1
  28. package/system/dist/builtins/core-blocks/core-blocks.addon.js +193 -3
  29. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +193 -3
  30. package/system/dist/builtins/core-blocks/migrations/index.d.ts +5 -0
  31. package/system/dist/builtins/core-blocks/migrations/pump-cycle-split.d.ts +43 -0
  32. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  33. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  34. package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
  35. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  36. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  37. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  38. package/system/dist/builtins/keychain/index.js +3 -3
  39. package/system/dist/builtins/keychain/index.mjs +3 -3
  40. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  42. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  43. package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
  44. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  45. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  46. package/system/dist/builtins/loki-logging/index.js +30 -27
  47. package/system/dist/builtins/loki-logging/index.mjs +30 -27
  48. package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +7 -0
  49. package/system/dist/builtins/loki-logging/migrations/index.d.ts +7 -0
  50. package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +8 -23
  51. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  52. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
  53. package/system/dist/builtins/platform-probe/index.js +1 -1
  54. package/system/dist/builtins/platform-probe/index.mjs +10 -10
  55. package/system/dist/builtins/record-entries/index.js +1 -1
  56. package/system/dist/builtins/record-entries/index.mjs +1 -1
  57. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  58. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  59. package/system/dist/builtins/snapshot/index.js +1 -1
  60. package/system/dist/builtins/snapshot/index.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
  63. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  64. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  65. package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +2 -2
  66. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  67. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  68. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  69. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  70. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  71. package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
  72. package/system/dist/builtins/winston-logging/index.js +1 -1
  73. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  74. package/system/dist/{composition-sources-DUmnnLrw.mjs → composition-sources-BE6yrVCB.mjs} +1 -1
  75. package/system/dist/{composition-sources-D9GBwT5d.js → composition-sources-ny5MCbhd.js} +1 -1
  76. package/system/dist/{constants-Cy5svHxz.js → constants-BbgVaoOX.js} +1 -1
  77. package/system/dist/{constants-BkiDA8Cf.mjs → constants-DiDTdj26.mjs} +1 -1
  78. package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
  79. package/system/dist/{custom-action-registry-BIJZBObd.mjs → custom-action-registry-oHl1xltx.mjs} +37 -37
  80. package/system/dist/{device-ca-CxlqxrvG.js → device-ca-BdgE_3J6.js} +1 -1
  81. package/system/dist/{device-ca-Cxu7j6aY.mjs → device-ca-CVcZIfhA.mjs} +1 -1
  82. package/system/dist/{dist-C5sQPOZX.mjs → dist-BqlGZK-1.mjs} +297 -132
  83. package/system/dist/{dist-Cyc4oyGh.js → dist-DdlfeOQx.js} +302 -131
  84. package/system/dist/file-host-worker.js +1 -1
  85. package/system/dist/file-host-worker.mjs +1 -1
  86. package/system/dist/{hub-mdns-ciao-CTPWSgwo.mjs → hub-mdns-ciao-BZsVTXQ7.mjs} +2 -2
  87. package/system/dist/{hub-mdns-ciao-YxQ97aHW.js → hub-mdns-ciao-D3ZQMWjg.js} +2 -2
  88. package/system/dist/index.js +14 -9
  89. package/system/dist/index.mjs +225 -220
  90. package/system/dist/migrations/hub/2026-11-02-integration-addon-id-bare.d.ts +3 -0
  91. package/system/dist/{restore-archive-08Uthry1.mjs → restore-archive-BFem7ZuS.mjs} +94 -94
  92. package/system/dist/{restore-archive-b5rBXY1e.js → restore-archive-Ch76C3VQ.js} +1 -1
  93. package/system/dist/{retention-i8aZ6vE5.mjs → retention-D5Vk8FXc.mjs} +1 -1
  94. package/system/dist/{retention-DWCHp91p.js → retention-DWsfcaKe.js} +1 -1
  95. package/system/dist/{wal-maintenance-CEi8PqMh.mjs → wal-maintenance-CS-Wtg9w.mjs} +0 -0
  96. package/system/dist/{wal-maintenance-DNE7RTcS.js → wal-maintenance-DcVdVWDD.js} +0 -0
  97. package/system/package.json +1 -1
@@ -1165,7 +1165,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1165
1165
  return DeviceRole;
1166
1166
  }({});
1167
1167
  //#endregion
1168
- //#region ../types/dist/sleep-QsoHs66J.mjs
1168
+ //#region ../types/dist/sleep-hmSP-eJt.mjs
1169
1169
  /**
1170
1170
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1171
1171
  * window to float samples (D455).
@@ -6069,6 +6069,7 @@ var CAP_NAMES = Object.freeze([
6069
6069
  "backup",
6070
6070
  "battery",
6071
6071
  "binary",
6072
+ "board-key-source",
6072
6073
  "brightness",
6073
6074
  "broker",
6074
6075
  "button",
@@ -6190,6 +6191,7 @@ var CAP_NAMES = Object.freeze([
6190
6191
  "privacy-mask",
6191
6192
  "ptz",
6192
6193
  "ptz-autotrack",
6194
+ "pump-cycle",
6193
6195
  "reboot",
6194
6196
  "record-entries",
6195
6197
  "recording",
@@ -7482,18 +7484,6 @@ Object.freeze({
7482
7484
  "path": "pumpRunning",
7483
7485
  "valueType": "boolean"
7484
7486
  },
7485
- {
7486
- "path": "pumpIntervalEnabled",
7487
- "valueType": "boolean"
7488
- },
7489
- {
7490
- "path": "pumpOnTime",
7491
- "valueType": "number"
7492
- },
7493
- {
7494
- "path": "pumpOffTime",
7495
- "valueType": "number"
7496
- },
7497
7487
  {
7498
7488
  "path": "lastDrink",
7499
7489
  "valueType": "number"
@@ -7617,6 +7607,20 @@ Object.freeze({
7617
7607
  "valueType": "number"
7618
7608
  }
7619
7609
  ],
7610
+ "pump-cycle": [
7611
+ {
7612
+ "path": "enabled",
7613
+ "valueType": "boolean"
7614
+ },
7615
+ {
7616
+ "path": "onTime",
7617
+ "valueType": "number"
7618
+ },
7619
+ {
7620
+ "path": "offTime",
7621
+ "valueType": "number"
7622
+ }
7623
+ ],
7620
7624
  "recording-archive": [
7621
7625
  {
7622
7626
  "path": "deviceId",
@@ -18154,24 +18158,52 @@ var APPLIANCE_CAP_VOCABULARY = {
18154
18158
  args: { on: false }
18155
18159
  },
18156
18160
  {
18157
- id: "petFountain.intervalOn",
18158
- method: "setPumpInterval",
18161
+ id: "petFountain.resetDailyConsumption",
18162
+ method: "resetDailyConsumption",
18163
+ label: t("Clear daily consumption", "Azzera il consumo giornaliero"),
18164
+ phrase: t("Clear the daily water consumption of {device}", "Azzera il consumo giornaliero di acqua di {device}"),
18165
+ icon: "rotate-ccw"
18166
+ }
18167
+ ],
18168
+ state: [{
18169
+ kind: "boolean",
18170
+ field: "empty",
18171
+ label: t("Tank empty", "Serbatoio vuoto"),
18172
+ whenTrue: t("When the tank of {device} is empty", "Quando il serbatoio di {device} è vuoto"),
18173
+ whenFalse: t("When the tank of {device} is refilled", "Quando il serbatoio di {device} viene riempito"),
18174
+ icon: "droplet"
18175
+ }, {
18176
+ kind: "numeric",
18177
+ field: "waterLevel",
18178
+ quantity: t("the water level", "il livello dell’acqua"),
18179
+ label: t("Water level", "Livello dell’acqua"),
18180
+ unit: "%",
18181
+ icon: "droplets"
18182
+ }]
18183
+ },
18184
+ "pump-cycle": {
18185
+ scope: "device",
18186
+ noun: t("Pump cycle", "Ciclo della pompa"),
18187
+ actions: [
18188
+ {
18189
+ id: "pumpCycle.on",
18190
+ method: "setEnabled",
18159
18191
  label: t("Pump cycle on", "Ciclo pompa attivo"),
18160
18192
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
18161
18193
  icon: "timer",
18162
18194
  args: { on: true }
18163
18195
  },
18164
18196
  {
18165
- id: "petFountain.intervalOff",
18166
- method: "setPumpInterval",
18197
+ id: "pumpCycle.off",
18198
+ method: "setEnabled",
18167
18199
  label: t("Pump cycle off", "Ciclo pompa spento"),
18168
18200
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
18169
18201
  icon: "timer-off",
18170
18202
  args: { on: false }
18171
18203
  },
18172
18204
  {
18173
- id: "petFountain.pumpOnMinutes",
18174
- method: "setPumpOnMinutes",
18205
+ id: "pumpCycle.onMinutes",
18206
+ method: "setOnMinutes",
18175
18207
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
18176
18208
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
18177
18209
  icon: "timer",
@@ -18187,8 +18219,8 @@ var APPLIANCE_CAP_VOCABULARY = {
18187
18219
  }]
18188
18220
  },
18189
18221
  {
18190
- id: "petFountain.pumpOffMinutes",
18191
- method: "setPumpOffMinutes",
18222
+ id: "pumpCycle.offMinutes",
18223
+ method: "setOffMinutes",
18192
18224
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
18193
18225
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
18194
18226
  icon: "timer-off",
@@ -18202,29 +18234,15 @@ var APPLIANCE_CAP_VOCABULARY = {
18202
18234
  unit: "min"
18203
18235
  }
18204
18236
  }]
18205
- },
18206
- {
18207
- id: "petFountain.resetDailyConsumption",
18208
- method: "resetDailyConsumption",
18209
- label: t("Clear daily consumption", "Azzera il consumo giornaliero"),
18210
- phrase: t("Clear the daily water consumption of {device}", "Azzera il consumo giornaliero di acqua di {device}"),
18211
- icon: "rotate-ccw"
18212
18237
  }
18213
18238
  ],
18214
18239
  state: [{
18215
18240
  kind: "boolean",
18216
- field: "empty",
18217
- label: t("Tank empty", "Serbatoio vuoto"),
18218
- whenTrue: t("When the tank of {device} is empty", "Quando il serbatoio di {device} è vuoto"),
18219
- whenFalse: t("When the tank of {device} is refilled", "Quando il serbatoio di {device} viene riempito"),
18220
- icon: "droplet"
18221
- }, {
18222
- kind: "numeric",
18223
- field: "waterLevel",
18224
- quantity: t("the water level", "il livello dell’acqua"),
18225
- label: t("Water level", "Livello dell’acqua"),
18226
- unit: "%",
18227
- icon: "droplets"
18241
+ field: "enabled",
18242
+ label: t("Pump cycle", "Ciclo pompa"),
18243
+ whenTrue: t("When {device} starts running its pump on a cycle", "Quando {device} inizia a far lavorare la pompa a ciclo"),
18244
+ whenFalse: t("When {device} runs its pump continuously", "Quando {device} fa lavorare la pompa in continuo"),
18245
+ icon: "timer"
18228
18246
  }]
18229
18247
  },
18230
18248
  "media-player": {
@@ -20117,6 +20135,7 @@ var SYSTEM_CAP_VOCABULARY = {
20117
20135
  "audio-analyzer": system(PIPELINE),
20118
20136
  "audio-codec": system(INTERNAL),
20119
20137
  "auth-provider": system(IDENTITY),
20138
+ "board-key-source": system(INTERNAL),
20120
20139
  backup: system("system backups — run and restored from the Backups page"),
20121
20140
  broker: system("message-broker connections — configured, not actuated"),
20122
20141
  "calendar-source": system(INTERNAL),
@@ -47500,6 +47519,63 @@ var binaryCapability = {
47500
47519
  volatileStateFields: ["lastChangedAt"]
47501
47520
  };
47502
47521
  /**
47522
+ * Why a board key could not be read. Typed so a caller reports the cause and
47523
+ * never treats "could not read" as "has no key" (D49).
47524
+ */
47525
+ var BoardKeyFailureReasonSchema = zod.z.enum([
47526
+ "unknown-source",
47527
+ "not-admin",
47528
+ "no-builder",
47529
+ "no-ingress-url",
47530
+ "unreachable",
47531
+ "unknown-board",
47532
+ "no-encryption-key",
47533
+ "unreadable-config"
47534
+ ]);
47535
+ var BoardKeySourceSchema = zod.z.object({
47536
+ sourceId: zod.z.string(),
47537
+ name: zod.z.string()
47538
+ });
47539
+ var BoardKeyBoardSchema = zod.z.object({
47540
+ /** The builder's file name, e.g. `kitchen.yaml`: the handle `getBoardKey` takes. */
47541
+ configuration: zod.z.string(),
47542
+ /** The node name the builder gives the board. */
47543
+ name: zod.z.string(),
47544
+ /** The address the builder knows the board by, when it has one. */
47545
+ address: zod.z.string().nullable()
47546
+ });
47547
+ var BoardKeyFailureSchema = zod.z.object({
47548
+ ok: zod.z.literal(false),
47549
+ reason: BoardKeyFailureReasonSchema,
47550
+ detail: zod.z.string().optional()
47551
+ });
47552
+ var ListBoardsResultSchema = zod.z.discriminatedUnion("ok", [zod.z.object({
47553
+ ok: zod.z.literal(true),
47554
+ boards: zod.z.array(BoardKeyBoardSchema).readonly()
47555
+ }), BoardKeyFailureSchema]);
47556
+ var GetBoardKeyResultSchema = zod.z.discriminatedUnion("ok", [zod.z.object({
47557
+ ok: zod.z.literal(true),
47558
+ key: zod.z.string()
47559
+ }), BoardKeyFailureSchema]);
47560
+ /**
47561
+ * Where a device board's API encryption key can be read from (the ESPHome
47562
+ * builder that runs beside a Home Assistant). Admin only: `getBoardKey`
47563
+ * returns a credential, and nothing else the source holds ever crosses.
47564
+ */
47565
+ var boardKeySourceCapability = {
47566
+ name: "board-key-source",
47567
+ scope: "system",
47568
+ mode: "collection",
47569
+ methods: {
47570
+ listSources: method(zod.z.void(), zod.z.array(BoardKeySourceSchema).readonly(), { auth: "admin" }),
47571
+ listBoards: method(zod.z.object({ sourceId: zod.z.string().min(1) }), ListBoardsResultSchema, { auth: "admin" }),
47572
+ getBoardKey: method(zod.z.object({
47573
+ sourceId: zod.z.string().min(1),
47574
+ configuration: zod.z.string().min(1)
47575
+ }), GetBoardKeyResultSchema, { auth: "admin" })
47576
+ }
47577
+ };
47578
+ /**
47503
47579
  * Dimmable-light brightness control. Co-exists with `switch` on the
47504
47580
  * same device — the switch toggles on/off, this cap sets the level
47505
47581
  * applied when the light is on. Drivers map their per-vendor dim
@@ -52672,7 +52748,7 @@ async function runFanOut(calls, invoke) {
52672
52748
  }
52673
52749
  /**
52674
52750
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
52675
- * 43 caps with series (81 series), 36 caps answered `'none'`.
52751
+ * 43 caps with series (81 series), 37 caps answered `'none'`.
52676
52752
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
52677
52753
  */
52678
52754
  var HISTORY_CATALOG = {
@@ -59150,7 +59226,7 @@ var DishwasherStatusSchema = zod.z.object({
59150
59226
  /** Ms epoch of the last value received from the appliance; 0 = never. */
59151
59227
  lastFetchedAt: zod.z.number()
59152
59228
  });
59153
- var DeviceIdSchema$1 = zod.z.number().int().nonnegative();
59229
+ var DeviceIdSchema$2 = zod.z.number().int().nonnegative();
59154
59230
  /** A value a program option or setting can take. */
59155
59231
  var DishwasherValueSchema = zod.z.union([
59156
59232
  zod.z.boolean(),
@@ -59225,77 +59301,77 @@ var dishwasherCapability = {
59225
59301
  * option feature keys; each is checked against the program's constraints.
59226
59302
  */
59227
59303
  start: method(zod.z.object({
59228
- deviceId: DeviceIdSchema$1,
59304
+ deviceId: DeviceIdSchema$2,
59229
59305
  program: zod.z.string().min(1).optional(),
59230
59306
  options: zod.z.record(zod.z.string(), DishwasherValueSchema).optional()
59231
59307
  }), zod.z.void(), {
59232
59308
  kind: "mutation",
59233
59309
  auth: "protected"
59234
59310
  }),
59235
- pause: method(zod.z.object({ deviceId: DeviceIdSchema$1 }), zod.z.void(), {
59311
+ pause: method(zod.z.object({ deviceId: DeviceIdSchema$2 }), zod.z.void(), {
59236
59312
  kind: "mutation",
59237
59313
  auth: "protected"
59238
59314
  }),
59239
- resume: method(zod.z.object({ deviceId: DeviceIdSchema$1 }), zod.z.void(), {
59315
+ resume: method(zod.z.object({ deviceId: DeviceIdSchema$2 }), zod.z.void(), {
59240
59316
  kind: "mutation",
59241
59317
  auth: "protected"
59242
59318
  }),
59243
- stop: method(zod.z.object({ deviceId: DeviceIdSchema$1 }), zod.z.void(), {
59319
+ stop: method(zod.z.object({ deviceId: DeviceIdSchema$2 }), zod.z.void(), {
59244
59320
  kind: "mutation",
59245
59321
  auth: "protected"
59246
59322
  }),
59247
59323
  /** Select (not start) a program; refused when the appliance does not offer it. */
59248
59324
  setProgram: method(zod.z.object({
59249
- deviceId: DeviceIdSchema$1,
59325
+ deviceId: DeviceIdSchema$2,
59250
59326
  program: zod.z.string().min(1)
59251
59327
  }), zod.z.void(), {
59252
59328
  kind: "mutation",
59253
59329
  auth: "protected"
59254
59330
  }),
59255
59331
  setPower: method(zod.z.object({
59256
- deviceId: DeviceIdSchema$1,
59332
+ deviceId: DeviceIdSchema$2,
59257
59333
  on: zod.z.boolean()
59258
59334
  }), zod.z.void(), {
59259
59335
  kind: "mutation",
59260
59336
  auth: "protected"
59261
59337
  }),
59262
59338
  setHalfLoad: method(zod.z.object({
59263
- deviceId: DeviceIdSchema$1,
59339
+ deviceId: DeviceIdSchema$2,
59264
59340
  on: zod.z.boolean()
59265
59341
  }), zod.z.void(), {
59266
59342
  kind: "mutation",
59267
59343
  auth: "protected"
59268
59344
  }),
59269
59345
  setHygienePlus: method(zod.z.object({
59270
- deviceId: DeviceIdSchema$1,
59346
+ deviceId: DeviceIdSchema$2,
59271
59347
  on: zod.z.boolean()
59272
59348
  }), zod.z.void(), {
59273
59349
  kind: "mutation",
59274
59350
  auth: "protected"
59275
59351
  }),
59276
59352
  setExtraDry: method(zod.z.object({
59277
- deviceId: DeviceIdSchema$1,
59353
+ deviceId: DeviceIdSchema$2,
59278
59354
  on: zod.z.boolean()
59279
59355
  }), zod.z.void(), {
59280
59356
  kind: "mutation",
59281
59357
  auth: "protected"
59282
59358
  }),
59283
59359
  setIntensiveZone: method(zod.z.object({
59284
- deviceId: DeviceIdSchema$1,
59360
+ deviceId: DeviceIdSchema$2,
59285
59361
  on: zod.z.boolean()
59286
59362
  }), zod.z.void(), {
59287
59363
  kind: "mutation",
59288
59364
  auth: "protected"
59289
59365
  }),
59290
59366
  setVarioSpeedPlus: method(zod.z.object({
59291
- deviceId: DeviceIdSchema$1,
59367
+ deviceId: DeviceIdSchema$2,
59292
59368
  on: zod.z.boolean()
59293
59369
  }), zod.z.void(), {
59294
59370
  kind: "mutation",
59295
59371
  auth: "protected"
59296
59372
  }),
59297
59373
  setChildLock: method(zod.z.object({
59298
- deviceId: DeviceIdSchema$1,
59374
+ deviceId: DeviceIdSchema$2,
59299
59375
  on: zod.z.boolean()
59300
59376
  }), zod.z.void(), {
59301
59377
  kind: "mutation",
@@ -59307,7 +59383,7 @@ var dishwasherCapability = {
59307
59383
  * its declared range / members.
59308
59384
  */
59309
59385
  setOption: method(zod.z.object({
59310
- deviceId: DeviceIdSchema$1,
59386
+ deviceId: DeviceIdSchema$2,
59311
59387
  key: zod.z.string().min(1),
59312
59388
  value: DishwasherValueSchema
59313
59389
  }), zod.z.void(), {
@@ -59315,7 +59391,7 @@ var dishwasherCapability = {
59315
59391
  auth: "protected"
59316
59392
  }),
59317
59393
  /** What this appliance can do, from its own description — the UI is derived from it. */
59318
- getOptions: method(zod.z.object({ deviceId: DeviceIdSchema$1 }), DishwasherOptionsSchema, { auth: "protected" })
59394
+ getOptions: method(zod.z.object({ deviceId: DeviceIdSchema$2 }), DishwasherOptionsSchema, { auth: "protected" })
59319
59395
  },
59320
59396
  status: {
59321
59397
  schema: DishwasherStatusSchema,
@@ -77637,7 +77713,7 @@ var petFeederCapability = {
77637
77713
  /**
77638
77714
  * Pet water-fountain cap. Models the telemetry and the control surface of a
77639
77715
  * circulating drinking fountain: how much water is in the tank, how much the
77640
- * pet drank, whether the pump runs and on what duty cycle.
77716
+ * pet drank, whether the pump runs.
77641
77717
  *
77642
77718
  * It has no native vendor provider of its own: a fountain reaches CamStack as
77643
77719
  * a container of loose entities (a pump switch, two number boxes, a "filter
@@ -77653,8 +77729,10 @@ var petFeederCapability = {
77653
77729
  * never here. Every reading may be `null`: a source that is offline or does
77654
77730
  * not report is unknown, never zero.
77655
77731
  *
77656
- * The filter is not a field of this cap: it is an item of the `consumables`
77657
- * cap on the same device (kind `wear`), reset by the same forward mechanism.
77732
+ * The pump's on/off duty cycle is model-specific and lives in the optional
77733
+ * `pump-cycle` cap. The filter, the cleaning and the water change are not
77734
+ * fields of this cap: they are items of the `consumables` cap on the same
77735
+ * device (kind `wear`), reset by the same forward mechanism.
77658
77736
  */
77659
77737
  var PetFountainStatusSchema = zod.z.object({
77660
77738
  /** Water in the tank, 0..100 (%). Null while the source has not reported. */
@@ -77665,27 +77743,20 @@ var PetFountainStatusSchema = zod.z.object({
77665
77743
  empty: zod.z.boolean().nullable(),
77666
77744
  /** True while the pump is running. Null while unknown. */
77667
77745
  pumpRunning: zod.z.boolean().nullable(),
77668
- /** True when the pump works on an on/off duty cycle rather than continuously. */
77669
- pumpIntervalEnabled: zod.z.boolean().nullable(),
77670
- /** How long the pump runs per cycle, in seconds. */
77671
- pumpOnTime: zod.z.number().min(0).nullable().meta(readingMeta("duration")),
77672
- /** How long the pump rests per cycle, in seconds. */
77673
- pumpOffTime: zod.z.number().min(0).nullable().meta(readingMeta("duration")),
77674
77746
  /** Water drunk in the last drink, in litres. */
77675
77747
  lastDrink: zod.z.number().min(0).nullable().meta(readingMeta("volume")),
77676
77748
  /** Water drunk in the current hour, in litres. */
77677
77749
  currentHourDrink: zod.z.number().min(0).nullable().meta(readingMeta("volume")),
77678
77750
  /** Water drunk over the last 24 hours (rolling), in litres. */
77679
77751
  last24hDrink: zod.z.number().min(0).nullable().meta(readingMeta("volume")),
77680
- /** Water drunk since local midnight, in litres. */
77752
+ /** Water drunk since local midnight, in litres. Null when the fountain has no such sensor. */
77681
77753
  todayDrink: zod.z.number().min(0).nullable().meta(readingMeta("volume")),
77682
77754
  /** Decoded fault message. Null means healthy; a non-null string is an active fault. */
77683
77755
  error: zod.z.string().nullable(),
77684
77756
  /** Ms epoch when the slice was last refreshed. */
77685
77757
  lastFetchedAt: zod.z.number()
77686
77758
  });
77687
- var DeviceIdSchema = zod.z.number().int().nonnegative();
77688
- var MinutesSchema = zod.z.number().int().min(0);
77759
+ var DeviceIdSchema$1 = zod.z.number().int().nonnegative();
77689
77760
  var petFountainCapability = {
77690
77761
  name: "pet-fountain",
77691
77762
  scope: "device",
@@ -77695,38 +77766,14 @@ var petFountainCapability = {
77695
77766
  methods: {
77696
77767
  /** Start or stop the pump. */
77697
77768
  setPump: method(zod.z.object({
77698
- deviceId: DeviceIdSchema,
77699
- on: zod.z.boolean()
77700
- }), zod.z.void(), {
77701
- kind: "mutation",
77702
- auth: "protected"
77703
- }),
77704
- /** Switch the on/off duty cycle on or off (off = the pump runs continuously). */
77705
- setPumpInterval: method(zod.z.object({
77706
- deviceId: DeviceIdSchema,
77769
+ deviceId: DeviceIdSchema$1,
77707
77770
  on: zod.z.boolean()
77708
77771
  }), zod.z.void(), {
77709
77772
  kind: "mutation",
77710
77773
  auth: "protected"
77711
77774
  }),
77712
- /** Set how many minutes the pump runs per cycle. */
77713
- setPumpOnMinutes: method(zod.z.object({
77714
- deviceId: DeviceIdSchema,
77715
- minutes: MinutesSchema
77716
- }), zod.z.void(), {
77717
- kind: "mutation",
77718
- auth: "protected"
77719
- }),
77720
- /** Set how many minutes the pump rests per cycle. */
77721
- setPumpOffMinutes: method(zod.z.object({
77722
- deviceId: DeviceIdSchema,
77723
- minutes: MinutesSchema
77724
- }), zod.z.void(), {
77725
- kind: "mutation",
77726
- auth: "protected"
77727
- }),
77728
77775
  /** Clear the rolling daily consumption counters on the device. */
77729
- resetDailyConsumption: method(zod.z.object({ deviceId: DeviceIdSchema }), zod.z.void(), {
77776
+ resetDailyConsumption: method(zod.z.object({ deviceId: DeviceIdSchema$1 }), zod.z.void(), {
77730
77777
  kind: "mutation",
77731
77778
  auth: "protected"
77732
77779
  })
@@ -80726,6 +80773,79 @@ var ptzAutotrackCapability = {
80726
80773
  history: "none"
80727
80774
  };
80728
80775
  /**
80776
+ * The on/off duty cycle of a pet fountain's pump. Some models run the pump
80777
+ * continuously and have nothing to configure; others can alternate a run time
80778
+ * and a rest time. That is model-specific, so it is its own optional cap on the
80779
+ * fountain device: a fountain without cycle entities simply never composes it
80780
+ * (planning#366), and the `pet-fountain` cap stays the model-independent core.
80781
+ *
80782
+ * Like `pet-fountain` it has no native vendor provider: an operator BUILDS the
80783
+ * cycle from loose entities (a cycle switch and two number boxes) and every
80784
+ * method is a forward to one source entity (D659, D967). Durations are stored
80785
+ * in SECONDS (D944); a number box that cannot be read back leaves them `null`
80786
+ * — unknown, never zero (D393).
80787
+ */
80788
+ var PumpCycleStatusSchema = zod.z.object({
80789
+ /** True when the pump works on the on/off cycle, false when it runs continuously. Null while unknown. */
80790
+ enabled: zod.z.boolean().nullable(),
80791
+ /** How long the pump runs per cycle, in seconds. Null while unknown. */
80792
+ onTime: zod.z.number().min(0).nullable().meta(readingMeta("duration")),
80793
+ /** How long the pump rests per cycle, in seconds. Null while unknown. */
80794
+ offTime: zod.z.number().min(0).nullable().meta(readingMeta("duration")),
80795
+ /** Ms epoch when the slice was last refreshed. */
80796
+ lastFetchedAt: zod.z.number()
80797
+ });
80798
+ var DeviceIdSchema = zod.z.number().int().nonnegative();
80799
+ var MinutesSchema = zod.z.number().int().min(0);
80800
+ var pumpCycleCapability = {
80801
+ name: "pump-cycle",
80802
+ scope: "device",
80803
+ deviceNative: true,
80804
+ mode: "singleton",
80805
+ deviceTypes: [DeviceType.PetFountain],
80806
+ methods: {
80807
+ /** Switch the on/off duty cycle on or off (off = the pump runs continuously). */
80808
+ setEnabled: method(zod.z.object({
80809
+ deviceId: DeviceIdSchema,
80810
+ on: zod.z.boolean()
80811
+ }), zod.z.void(), {
80812
+ kind: "mutation",
80813
+ auth: "protected"
80814
+ }),
80815
+ /** Set how many minutes the pump runs per cycle. */
80816
+ setOnMinutes: method(zod.z.object({
80817
+ deviceId: DeviceIdSchema,
80818
+ minutes: MinutesSchema
80819
+ }), zod.z.void(), {
80820
+ kind: "mutation",
80821
+ auth: "protected"
80822
+ }),
80823
+ /** Set how many minutes the pump rests per cycle. */
80824
+ setOffMinutes: method(zod.z.object({
80825
+ deviceId: DeviceIdSchema,
80826
+ minutes: MinutesSchema
80827
+ }), zod.z.void(), {
80828
+ kind: "mutation",
80829
+ auth: "protected"
80830
+ })
80831
+ },
80832
+ status: {
80833
+ schema: PumpCycleStatusSchema,
80834
+ kind: "push"
80835
+ },
80836
+ /** Runtime-state slice — mirrored by the kernel; the hero card reads it whole. */
80837
+ runtimeState: PumpCycleStatusSchema,
80838
+ /**
80839
+ * Runtime-state durability: **session** — live appliance state re-published on connect.
80840
+ *
80841
+ * See `RuntimeStateDurability`. Enforced by
80842
+ * `scripts/check-runtime-state-durability.ts`.
80843
+ */
80844
+ durability: "session",
80845
+ /** History (D850): a duty-cycle setting is not a series worth recording. */
80846
+ history: "none"
80847
+ };
80848
+ /**
80729
80849
  * reboot — device-scoped capability for "soft" device reboots (firmware
80730
80850
  * reboot via vendor protocol; cameras, NVRs, doorbells). Surfaces a
80731
80851
  * single mutation so the UI can offer a confirm-and-reboot button for
@@ -91204,6 +91324,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
91204
91324
  backupCapability,
91205
91325
  batteryCapability,
91206
91326
  binaryCapability,
91327
+ boardKeySourceCapability,
91207
91328
  brightnessCapability,
91208
91329
  brokerCapability,
91209
91330
  buttonCapability,
@@ -91325,6 +91446,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
91325
91446
  privacyMaskCapability,
91326
91447
  ptzCapability,
91327
91448
  ptzAutotrackCapability,
91449
+ pumpCycleCapability,
91328
91450
  rebootCapability,
91329
91451
  recordEntriesCapability,
91330
91452
  recordingCapability,
@@ -93062,6 +93184,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
93062
93184
  pressureSensor: pressureSensorCapability,
93063
93185
  privacyMask: privacyMaskCapability,
93064
93186
  ptzAutotrack: ptzAutotrackCapability,
93187
+ pumpCycle: pumpCycleCapability,
93065
93188
  recordingOnboard: recordingOnboardCapability,
93066
93189
  recordingSignal: recordingSignalCapability,
93067
93190
  runningState: runningStateCapability,
@@ -95032,6 +95155,27 @@ var METHOD_ACCESS_MAP = Object.freeze({
95032
95155
  access: "view",
95033
95156
  role: "viewer"
95034
95157
  },
95158
+ "boardKeySource.getBoardKey": {
95159
+ capName: "board-key-source",
95160
+ capScope: "system",
95161
+ addonId: null,
95162
+ access: "view",
95163
+ role: "admin"
95164
+ },
95165
+ "boardKeySource.listBoards": {
95166
+ capName: "board-key-source",
95167
+ capScope: "system",
95168
+ addonId: null,
95169
+ access: "view",
95170
+ role: "admin"
95171
+ },
95172
+ "boardKeySource.listSources": {
95173
+ capName: "board-key-source",
95174
+ capScope: "system",
95175
+ addonId: null,
95176
+ access: "view",
95177
+ role: "admin"
95178
+ },
95035
95179
  "brightness.getStatus": {
95036
95180
  capName: "brightness",
95037
95181
  capScope: "device",
@@ -99855,27 +99999,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
99855
99999
  access: "create",
99856
100000
  role: "viewer"
99857
100001
  },
99858
- "petFountain.setPumpInterval": {
99859
- capName: "pet-fountain",
99860
- capScope: "device",
99861
- addonId: null,
99862
- access: "create",
99863
- role: "viewer"
99864
- },
99865
- "petFountain.setPumpOffMinutes": {
99866
- capName: "pet-fountain",
99867
- capScope: "device",
99868
- addonId: null,
99869
- access: "create",
99870
- role: "viewer"
99871
- },
99872
- "petFountain.setPumpOnMinutes": {
99873
- capName: "pet-fountain",
99874
- capScope: "device",
99875
- addonId: null,
99876
- access: "create",
99877
- role: "viewer"
99878
- },
99879
100002
  "pipelineAnalytics.addRetrainFrameFromRecording": {
99880
100003
  capName: "pipeline-analytics",
99881
100004
  capScope: "device",
@@ -101654,6 +101777,34 @@ var METHOD_ACCESS_MAP = Object.freeze({
101654
101777
  access: "create",
101655
101778
  role: "admin"
101656
101779
  },
101780
+ "pumpCycle.getStatus": {
101781
+ capName: "pump-cycle",
101782
+ capScope: "device",
101783
+ addonId: null,
101784
+ access: "view",
101785
+ role: "viewer"
101786
+ },
101787
+ "pumpCycle.setEnabled": {
101788
+ capName: "pump-cycle",
101789
+ capScope: "device",
101790
+ addonId: null,
101791
+ access: "create",
101792
+ role: "viewer"
101793
+ },
101794
+ "pumpCycle.setOffMinutes": {
101795
+ capName: "pump-cycle",
101796
+ capScope: "device",
101797
+ addonId: null,
101798
+ access: "create",
101799
+ role: "viewer"
101800
+ },
101801
+ "pumpCycle.setOnMinutes": {
101802
+ capName: "pump-cycle",
101803
+ capScope: "device",
101804
+ addonId: null,
101805
+ access: "create",
101806
+ role: "viewer"
101807
+ },
101657
101808
  "reboot.reboot": {
101658
101809
  capName: "reboot",
101659
101810
  capScope: "device",
@@ -104697,6 +104848,7 @@ var CAP_NAMES_WITH_STATUS = [
104697
104848
  "privacy-mask",
104698
104849
  "ptz",
104699
104850
  "ptz-autotrack",
104851
+ "pump-cycle",
104700
104852
  "recording-archive",
104701
104853
  "recording-onboard",
104702
104854
  "recording-signal",
@@ -106287,21 +106439,6 @@ Object.freeze({
106287
106439
  form: "single",
106288
106440
  optional: false
106289
106441
  }],
106290
- "petFountain.setPumpInterval": [{
106291
- name: "deviceId",
106292
- form: "single",
106293
- optional: false
106294
- }],
106295
- "petFountain.setPumpOffMinutes": [{
106296
- name: "deviceId",
106297
- form: "single",
106298
- optional: false
106299
- }],
106300
- "petFountain.setPumpOnMinutes": [{
106301
- name: "deviceId",
106302
- form: "single",
106303
- optional: false
106304
- }],
106305
106442
  "pipelineAnalytics.addRetrainFrameFromRecording": [{
106306
106443
  name: "deviceId",
106307
106444
  form: "single",
@@ -106937,6 +107074,26 @@ Object.freeze({
106937
107074
  form: "single",
106938
107075
  optional: false
106939
107076
  }],
107077
+ "pumpCycle.getStatus": [{
107078
+ name: "deviceId",
107079
+ form: "single",
107080
+ optional: false
107081
+ }],
107082
+ "pumpCycle.setEnabled": [{
107083
+ name: "deviceId",
107084
+ form: "single",
107085
+ optional: false
107086
+ }],
107087
+ "pumpCycle.setOffMinutes": [{
107088
+ name: "deviceId",
107089
+ form: "single",
107090
+ optional: false
107091
+ }],
107092
+ "pumpCycle.setOnMinutes": [{
107093
+ name: "deviceId",
107094
+ form: "single",
107095
+ optional: false
107096
+ }],
106940
107097
  "reboot.reboot": [{
106941
107098
  name: "deviceId",
106942
107099
  form: "single",
@@ -107687,7 +107844,7 @@ Object.freeze({
107687
107844
  });
107688
107845
  /**
107689
107846
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
107690
- * `runtimeState`. 80 caps: 39 `restored`, 41 `session`.
107847
+ * `runtimeState`. 81 caps: 39 `restored`, 42 `session`.
107691
107848
  *
107692
107849
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
107693
107850
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -107925,6 +108082,10 @@ var RUNTIME_STATE_POLICY = {
107925
108082
  durability: "session",
107926
108083
  volatileFields: []
107927
108084
  },
108085
+ "pump-cycle": {
108086
+ durability: "session",
108087
+ volatileFields: []
108088
+ },
107928
108089
  "recording-onboard": {
107929
108090
  durability: "restored",
107930
108091
  volatileFields: ["lastFetchedAt"]
@@ -109539,6 +109700,10 @@ var ADDON_ID_PREFIX = "addon:";
109539
109700
  function bareAddonId(id) {
109540
109701
  return id.startsWith(ADDON_ID_PREFIX) ? id.slice(6) : id;
109541
109702
  }
109703
+ /** True when both ids name the same addon, prefixed or not. */
109704
+ function isSameAddonId(a, b) {
109705
+ return bareAddonId(a) === bareAddonId(b);
109706
+ }
109542
109707
  String.raw`(?<=^|["'(\s>,\[{])`;
109543
109708
  var MB = 1024 * 1024;
109544
109709
  1024 * MB, 3072 * MB;
@@ -111647,6 +111812,12 @@ Object.defineProperty(exports, "isReadingQuantity", {
111647
111812
  return isReadingQuantity;
111648
111813
  }
111649
111814
  });
111815
+ Object.defineProperty(exports, "isSameAddonId", {
111816
+ enumerable: true,
111817
+ get: function() {
111818
+ return isSameAddonId;
111819
+ }
111820
+ });
111650
111821
  Object.defineProperty(exports, "isSecretClear", {
111651
111822
  enumerable: true,
111652
111823
  get: function() {