@camstack/server 1.2.788 → 1.2.790

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 (127) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/agent/agent-child-manifest.js +39 -0
  3. package/dist/agent/agent-hub-registration.js +11 -1
  4. package/dist/agent/forward-to-hub.js +43 -0
  5. package/dist/agent/main.js +31 -81
  6. package/dist/agent/stale-addon-gate.js +70 -34
  7. package/dist/api/trpc/generated-cap-mounts.js +1 -6
  8. package/dist/api/trpc/generated-cap-routers.js +1221 -1417
  9. package/dist/core/addon/addon-registry.service.js +25 -33
  10. package/dist/core/addon/boot-health-snapshot.js +0 -28
  11. package/dist/core/addon/{hub-spawn-gate.js → hub-addon-support.js} +12 -35
  12. package/dist/core/moleculer/moleculer.service.js +2 -13
  13. package/dist/core/moleculer/runner-hosted-on-node.js +23 -0
  14. package/dist/core/updates/required-addon-update.js +1 -1
  15. package/package.json +23 -58
  16. package/system/dist/addon-utils.mjs +1 -1
  17. package/system/dist/{agent-https-jJDe-XNl.js → agent-https-BmXXKQAA.js} +1 -1
  18. package/system/dist/{agent-https-szf2FU49.mjs → agent-https-ByceQLwr.mjs} +1 -1
  19. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  20. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
  21. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  22. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
  23. package/system/dist/builtins/alerts/alerts.addon.d.ts +8 -0
  24. package/system/dist/builtins/alerts/alerts.addon.js +72 -1
  25. package/system/dist/builtins/alerts/alerts.addon.mjs +74 -3
  26. package/system/dist/builtins/autotrack/index.js +1 -1
  27. package/system/dist/builtins/autotrack/index.mjs +1 -1
  28. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  29. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
  30. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  31. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  32. package/system/dist/builtins/camera-grid/index.js +1 -1
  33. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  34. package/system/dist/builtins/composer/composer.addon.js +3 -3
  35. package/system/dist/builtins/composer/composer.addon.mjs +3 -3
  36. package/system/dist/builtins/console-logging/index.js +1 -1
  37. package/system/dist/builtins/console-logging/index.mjs +1 -1
  38. package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -5
  39. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -5
  40. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  41. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  42. package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
  43. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  44. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  45. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  46. package/system/dist/builtins/keychain/index.js +4 -4
  47. package/system/dist/builtins/keychain/index.mjs +4 -4
  48. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  49. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  50. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  51. package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
  52. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  53. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  54. package/system/dist/builtins/loki-logging/index.js +1 -1
  55. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  56. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  57. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
  58. package/system/dist/builtins/platform-probe/index.js +1 -1
  59. package/system/dist/builtins/platform-probe/index.mjs +10 -10
  60. package/system/dist/builtins/record-entries/index.js +1 -1
  61. package/system/dist/builtins/record-entries/index.mjs +1 -1
  62. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  63. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  64. package/system/dist/builtins/snapshot/index.js +1 -1
  65. package/system/dist/builtins/snapshot/index.mjs +1 -1
  66. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  67. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
  68. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  69. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  70. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  71. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  72. package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
  73. package/system/dist/builtins/storage-orchestrator/custom-actions.d.ts +11 -0
  74. package/system/dist/builtins/storage-orchestrator/index.d.ts +1 -0
  75. package/system/dist/builtins/storage-orchestrator/index.js +2 -0
  76. package/system/dist/builtins/storage-orchestrator/index.mjs +2 -2
  77. package/system/dist/builtins/storage-orchestrator/location-instances.d.ts +72 -0
  78. package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +1 -1
  79. package/system/dist/builtins/storage-orchestrator/location-secret-refs.d.ts +26 -0
  80. package/system/dist/builtins/storage-orchestrator/location-store.d.ts +28 -2
  81. package/system/dist/builtins/storage-orchestrator/migrations/index.d.ts +9 -2
  82. package/system/dist/builtins/storage-orchestrator/migrations/legacy-location-secret-refs.d.ts +13 -0
  83. package/system/dist/builtins/storage-orchestrator/migrations/location-secret-ports.d.ts +15 -0
  84. package/system/dist/builtins/storage-orchestrator/migrations/location-secrets-to-record.d.ts +57 -0
  85. package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +10 -13
  86. package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +6 -0
  87. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +39 -8
  88. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +954 -131
  89. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +954 -132
  90. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +8 -0
  91. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  92. package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
  93. package/system/dist/builtins/winston-logging/index.js +112 -3
  94. package/system/dist/builtins/winston-logging/index.mjs +112 -3
  95. package/system/dist/builtins/winston-logging/migrations/index.d.ts +8 -0
  96. package/system/dist/builtins/winston-logging/migrations/node-fields.d.ts +43 -0
  97. package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +10 -2
  98. package/system/dist/{capture-engine-DNHgjQot.js → capture-engine-BHj1fNYC.js} +1 -1
  99. package/system/dist/{capture-engine-BsKY_3xa.mjs → capture-engine-D9n4KDaN.mjs} +1 -1
  100. package/system/dist/{composition-sources-BgO0GQYW.js → composition-sources-BGgIuuvd.js} +1 -1
  101. package/system/dist/{composition-sources-BRdGsbVT.mjs → composition-sources-wI4qWTz2.mjs} +1 -1
  102. package/system/dist/{constants-CQeMrR4f.mjs → constants-DHqkxbYk.mjs} +1 -1
  103. package/system/dist/{constants-C3jGKQSQ.js → constants-DNdriMRD.js} +1 -1
  104. package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
  105. package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
  106. package/system/dist/{device-ca-D3y6wGmn.js → device-ca-C2RzT1VT.js} +1 -1
  107. package/system/dist/{device-ca-ByVi5eUC.mjs → device-ca-gr5eE3h5.mjs} +1 -1
  108. package/system/dist/{dist-BsQA6-0i.mjs → dist-BUoL5bbr.mjs} +116 -418
  109. package/system/dist/{dist-BRI-Mwx0.js → dist-DV0V3JiE.js} +133 -417
  110. package/system/dist/file-host-worker.js +1 -1
  111. package/system/dist/file-host-worker.mjs +1 -1
  112. package/system/dist/{hub-mdns-ciao-Ry_Jpljx.js → hub-mdns-ciao-Be5PGXW6.js} +2 -2
  113. package/system/dist/{hub-mdns-ciao-8dJTW2LI.mjs → hub-mdns-ciao-DoSb8dwB.mjs} +2 -2
  114. package/system/dist/index.js +151 -53
  115. package/system/dist/index.mjs +362 -266
  116. package/system/dist/kernel/addon-health-monitor.d.ts +0 -21
  117. package/system/dist/kernel/index.d.ts +2 -0
  118. package/system/dist/kernel/transport/runner-of-addon.d.ts +2 -0
  119. package/system/dist/kernel/unsupported-addon-tracker.d.ts +74 -0
  120. package/system/dist/{legacy-integration-rows-door-D5BdSNla.js → legacy-integration-rows-door-D5s8oM7e.js} +1 -1
  121. package/system/dist/{legacy-integration-rows-door-CjXTbmvH.mjs → legacy-integration-rows-door-DRC0xn6k.mjs} +1 -1
  122. package/system/dist/migrations/hub/2026-11-06-addon-settings-bare-rows.d.ts +3 -0
  123. package/system/dist/{restore-archive-Co2lk3OU.mjs → restore-archive-DH3P9j-V.mjs} +94 -94
  124. package/system/dist/{restore-archive-GoWJMdHy.js → restore-archive-Dh4gfCRY.js} +1 -1
  125. package/system/dist/{wal-maintenance-DRnV6QYu.mjs → wal-maintenance-BWfH3Lov.mjs} +0 -0
  126. package/system/dist/{wal-maintenance-C1Haue74.js → wal-maintenance-DgN_WD5T.js} +0 -0
  127. package/system/package.json +4 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import "node:crypto";
3
- //#region ../types/dist/event-category-BmPm98n0.mjs
3
+ //#region ../types/dist/event-category-78tcBemo.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -121,6 +121,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
121
121
  */
122
122
  EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
123
123
  /**
124
+ * An addon is RUNNING although its installed package is below what the
125
+ * running server requires (`camstack.requires.addons` of the server, or the
126
+ * addon's own `requires.server`). Raised once per streak by the unsupported-
127
+ * addon tracker, on the hub and on agents; AlertCenter turns it into one
128
+ * operator alert per node and package. The addon is never held back for it.
129
+ *
130
+ * Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
131
+ */
132
+ EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
133
+ /**
134
+ * The package of an {@link AddonUnsupportedVersion} alert reached a supported
135
+ * version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
136
+ *
137
+ * Payload: `{ packageName, addonId, nodeId }`.
138
+ */
139
+ EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
140
+ /**
124
141
  * Monitor scheduled the next retry for a failed addon. Transient —
125
142
  * surfaced to the UI for live-updating the "next retry in Ns"
126
143
  * countdown on the Addons page row, NOT persisted as an alert.
@@ -231,7 +248,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
231
248
  EventCategory["ProcessRestarted"] = "process.restarted";
232
249
  /**
233
250
  * The SET of storage locations changed — one was created, edited, enabled,
234
- * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
251
+ * disabled or deleted through the location instances or the forced-delete action.
235
252
  *
236
253
  * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
237
254
  * it must also converge on its own periodic path, because a dropped event
@@ -1171,7 +1188,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1171
1188
  return DeviceRole;
1172
1189
  }({});
1173
1190
  //#endregion
1174
- //#region ../types/dist/sleep-D7ZKm4nb.mjs
1191
+ //#region ../types/dist/sleep-AEnTN3b4.mjs
1175
1192
  /**
1176
1193
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1177
1194
  * window to float samples (D455).
@@ -1269,7 +1286,7 @@ var AddonMigrationsBlockedError = class extends Error {
1269
1286
  /**
1270
1287
  * The value a redacted secret is replaced with on every read surface.
1271
1288
  *
1272
- * It is also the WRITE-BACK token: an `upsertLocation` that sends this value
1289
+ * It is also the WRITE-BACK token: a save that sends this value
1273
1290
  * back for a key means "keep what is stored", which is what lets an operator
1274
1291
  * rename a location without retyping its password. A literal an operator could
1275
1292
  * plausibly choose as a real password would turn that convenience into a way
@@ -2586,17 +2603,35 @@ var RecordIntegrationInstances = class {
2586
2603
  ...kind !== void 0 ? { kind } : {}
2587
2604
  });
2588
2605
  if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
2606
+ const initial = this.hooks.initialBody(name, kind);
2607
+ const patch = this.patchOf(values ?? {});
2608
+ if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
2609
+ kind,
2610
+ body: {
2611
+ ...initial,
2612
+ ...patch
2613
+ }
2614
+ }));
2589
2615
  await this.handle.put({
2590
2616
  id: minted,
2591
- data: this.hooks.initialBody(name, kind)
2617
+ data: initial
2592
2618
  }, { ifRev: 0 });
2593
- const patch = this.patchOf(values ?? {});
2594
2619
  if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
2595
2620
  await this.hooks.onChanged?.(minted, "created");
2596
2621
  return { id: minted };
2597
2622
  };
2598
2623
  updateInstance = async ({ id, name, values }) => {
2599
2624
  const patch = this.patchOf(values);
2625
+ if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
2626
+ const stored = await this.handle.get(id);
2627
+ if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
2628
+ kind: void 0,
2629
+ body: {
2630
+ ...stored.data,
2631
+ ...patch
2632
+ }
2633
+ }));
2634
+ }
2600
2635
  if (name !== void 0) patch[this.nameField] = name;
2601
2636
  await this.handle.patch(id, patch);
2602
2637
  await this.hooks.onChanged?.(id, "updated");
@@ -6798,7 +6833,6 @@ var CAP_NAMES = Object.freeze([
6798
6833
  "notifier",
6799
6834
  "numeric-sensor",
6800
6835
  "oauth-integration",
6801
- "oidc-connections",
6802
6836
  "osd",
6803
6837
  "osd-manager",
6804
6838
  "pet-feeder",
@@ -8690,8 +8724,7 @@ Object.freeze({
8690
8724
  "device-provider": { "reloadDevice": 18e4 },
8691
8725
  "llm": {
8692
8726
  "generate": 6e5,
8693
- "generateVision": 6e5,
8694
- "testProfile": 6e5
8727
+ "generateVision": 6e5
8695
8728
  },
8696
8729
  "llm-runtime": {
8697
8730
  "complete": 6e5,
@@ -11827,17 +11860,18 @@ var IntegrationInstanceRefSchema = z.object({
11827
11860
  * message to what the kind supports — callers never special-case a service.
11828
11861
  *
11829
11862
  * DESIGN DECISIONS (locked):
11830
- * - Target CRUD lives on THIS cap (`upsertTarget` / `deleteTarget` /
11831
- * `setTargetEnabled`), each provider persisting via the `settings-store`
11832
- * cap. Rationale: the admin UI needs one uniform surface across the
11833
- * notifiers addon AND the HA addon; the addon-`globalSettingsSchema`-array
11834
- * alternative would fork the UI per addon and cannot host the
11835
- * discovery→adopt flow.
11836
- * - `listTargetKinds` / `listTargets` / `discoverTargets` return arrays →
11837
- * the generated cap-mount auto-`concatCollection`-fans them across every
11838
- * registered provider (notifiers addon + HA addon) so one catalog is
11839
- * routable. `send` / `testTarget` / CRUD route to ONE provider by the
11840
- * `addonId` the generated collection router extracts from the call input.
11863
+ * - A target is an INSTANCE of this function cap (epic #440, step 6): the
11864
+ * providers serve their targets as `integration-instances` records, one
11865
+ * record kind per target kind, and the admin lists, adds, edits, switches
11866
+ * and deletes them through that cap. This cap keeps what an instance cannot
11867
+ * say: the kind catalogue (`listTargetKinds`: capabilities, delivery
11868
+ * parameters, brand icon), dispatch (`send`, `testTarget`) and the form
11869
+ * helpers (`discoverTargets`, `probeTargetConfig`).
11870
+ * - `listTargetKinds` / `discoverTargets` return arrays → the generated
11871
+ * cap-mount auto-`concatCollection`-fans them across every registered
11872
+ * provider so one catalog is routable. `send` / `testTarget` /
11873
+ * `probeTargetConfig` route to ONE provider by the `addonId` the generated
11874
+ * collection router extracts from the call input.
11841
11875
  * - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
11842
11876
  * transformer) + UDS MsgPack both round-trip typed arrays — already used by
11843
11877
  * `storage` / `storage-provider` / `recording` caps over the same path. No
@@ -12084,7 +12118,7 @@ var TargetKindCapsSchema = z.object({
12084
12118
  * the union is large and not meant for runtime validation here; the exported
12085
12119
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
12086
12120
  */
12087
- var ConfigSchemaPassthrough$4 = z.unknown();
12121
+ var ConfigSchemaPassthrough$3 = z.unknown();
12088
12122
  var TargetKindSchema = z.object({
12089
12123
  kind: z.string(),
12090
12124
  label: z.string(),
@@ -12121,7 +12155,7 @@ var TargetKindSchema = z.object({
12121
12155
  * its raster path, which is the safe default for an unknown image.
12122
12156
  */
12123
12157
  iconMediaType: z.string().optional(),
12124
- configSchema: ConfigSchemaPassthrough$4,
12158
+ configSchema: ConfigSchemaPassthrough$3,
12125
12159
  /**
12126
12160
  * The config keys that decide WHERE this kind's secrets are sent (server,
12127
12161
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -12143,9 +12177,11 @@ var TargetKindSchema = z.object({
12143
12177
  caps: TargetKindCapsSchema
12144
12178
  });
12145
12179
  /**
12146
- * A persisted target. `config` holds secrets; providers REDACT secret fields
12147
- * (return a presence marker only) when serving `listTargets` — never
12148
- * round-trip a stored secret to the UI.
12180
+ * A target as a provider's own code sees it (the notification-center bridge, the
12181
+ * send path): the flat record body split into the name, the switch and the
12182
+ * kind's fields. `config` holds secrets; a reader that serves it to a client
12183
+ * REDACTS secret fields (a presence marker only) — never round-trip a stored
12184
+ * secret to the UI.
12149
12185
  */
12150
12186
  var TargetSchema = z.object({
12151
12187
  id: z.string(),
@@ -12194,21 +12230,13 @@ var notificationOutputCapability = {
12194
12230
  mode: "collection",
12195
12231
  methods: {
12196
12232
  listTargetKinds: method(z.object({}), z.array(TargetKindSchema)),
12197
- listTargets: method(z.object({}), z.array(TargetSchema), { auth: "admin" }),
12198
- /**
12199
- * One target WITH secrets — admin edit / duplicate hydration only.
12200
- * `listTargets` stays redacted; the editor loads this so password fields
12201
- * are filled (masked in the input) and a save can round-trip the token
12202
- * when a destination changes (Duplicate with a new chatId, etc.).
12203
- */
12204
- getTarget: method(z.object({ targetId: z.string() }), TargetSchema, { auth: "admin" }),
12205
12233
  discoverTargets: method(z.object({
12206
12234
  kind: z.string(),
12207
12235
  config: z.record(z.string(), z.unknown()).optional(),
12208
12236
  /**
12209
12237
  * When editing / duplicating, the blank password field never round-trips
12210
12238
  * the stored token. Pass the source target id so the provider can restore
12211
- * secrets server-side before dialling (same merge as upsert).
12239
+ * secrets server-side before dialling.
12212
12240
  */
12213
12241
  targetId: z.string().optional()
12214
12242
  }), z.array(DiscoveredTargetSchema), { auth: "admin" }),
@@ -12234,30 +12262,6 @@ var notificationOutputCapability = {
12234
12262
  }), TestResultSchema, {
12235
12263
  kind: "mutation",
12236
12264
  auth: "admin"
12237
- }),
12238
- upsertTarget: method(z.object({
12239
- target: TargetSchema,
12240
- /**
12241
- * Duplicate flow: create a NEW target id while copying secrets from an
12242
- * existing row. The UI never holds the stored token; blank / redacted
12243
- * password fields are restored from this source (D634 still applies if
12244
- * destinations diverge without a re-typed secret).
12245
- */
12246
- cloneSecretsFrom: z.string().optional()
12247
- }), TargetSchema, {
12248
- kind: "mutation",
12249
- auth: "admin"
12250
- }),
12251
- deleteTarget: method(z.object({ targetId: z.string() }), z.void(), {
12252
- kind: "mutation",
12253
- auth: "admin"
12254
- }),
12255
- setTargetEnabled: method(z.object({
12256
- targetId: z.string(),
12257
- enabled: z.boolean()
12258
- }), z.void(), {
12259
- kind: "mutation",
12260
- auth: "admin"
12261
12265
  })
12262
12266
  }
12263
12267
  };
@@ -15437,6 +15441,36 @@ function withLocationMode(location, mode) {
15437
15441
  config: strippedOfLegacyReadOnly(location.config)
15438
15442
  };
15439
15443
  }
15444
+ /** Is the row switch of a location ON? Only a location that is written to reads as on. */
15445
+ function switchStateOfMode(mode) {
15446
+ return modeMayWrite(mode);
15447
+ }
15448
+ /**
15449
+ * The move a row switch makes. The switch is a two-state view of a four-state mode, so it only
15450
+ * crosses the active/not-active line and never cancels a retirement:
15451
+ *
15452
+ * - on: `readonly` and `disabled` become `active`; `active` stays; a `drain` is REFUSED
15453
+ * (turning it on would silently cancel the drain; the mode select ends it on purpose).
15454
+ * - off: `active` becomes `readonly`; `readonly`, `disabled` and `drain` already are not
15455
+ * written to and stay as they are.
15456
+ */
15457
+ function modeForSwitch(on, current) {
15458
+ if (on) {
15459
+ if (current === "active") return { kind: "keep" };
15460
+ if (current === "drain") return {
15461
+ kind: "refuse",
15462
+ reason: "the location is draining; end the drain by changing its mode, not with the switch"
15463
+ };
15464
+ return {
15465
+ kind: "set",
15466
+ mode: "active"
15467
+ };
15468
+ }
15469
+ return current === "active" ? {
15470
+ kind: "set",
15471
+ mode: "readonly"
15472
+ } : { kind: "keep" };
15473
+ }
15440
15474
  /**
15441
15475
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
15442
15476
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
@@ -21342,7 +21376,6 @@ var SYSTEM_CAP_VOCABULARY = {
21342
21376
  "notification-output": system("notification delivery — reached through notifier devices and rules"),
21343
21377
  "notification-rules": system("notification rules — authored on their own page"),
21344
21378
  "oauth-integration": system(IDENTITY),
21345
- "oidc-connections": system(IDENTITY),
21346
21379
  "osd-manager": system(PIPELINE),
21347
21380
  "pipeline-executor": system(PIPELINE),
21348
21381
  "pipeline-orchestrator": system(PIPELINE),
@@ -62576,7 +62609,7 @@ var integrationsCapability = {
62576
62609
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
62577
62610
  * clears it.
62578
62611
  */
62579
- var ConfigSchemaPassthrough$3 = z.custom();
62612
+ var ConfigSchemaPassthrough$2 = z.custom();
62580
62613
  var IntegrationInstanceIdSchema = z.string().min(1);
62581
62614
  var IntegrationInstanceModeSchema = z.enum(["single", "multiple"]);
62582
62615
  /**
@@ -62622,7 +62655,16 @@ var IntegrationInstanceKindSchema = z.object({
62622
62655
  /** Relative hub path to start an interactive account link of an instance of this kind. */
62623
62656
  connectPath: z.string().min(1).optional(),
62624
62657
  /** Relative hub path to disconnect that account. */
62625
- disconnectPath: z.string().min(1).optional()
62658
+ disconnectPath: z.string().min(1).optional(),
62659
+ /**
62660
+ * Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
62661
+ * GENERIC widget id the client maps to a component; a client that knows none of them shows none.
62662
+ * `connection` widgets write connection values, `model` widgets own the model choice.
62663
+ */
62664
+ widgets: z.array(z.object({
62665
+ id: z.string().min(1),
62666
+ placement: z.enum(["connection", "model"])
62667
+ })).optional()
62626
62668
  });
62627
62669
  /**
62628
62670
  * How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
@@ -62727,7 +62769,7 @@ var integrationInstancesCapability = {
62727
62769
  id: IntegrationInstanceIdSchema.nullable(),
62728
62770
  /** The kind of the create form (`id: null`) of a provider with several. */
62729
62771
  kind: z.string().min(1).optional()
62730
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
62772
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
62731
62773
  listInstances: method(z.void(), z.array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
62732
62774
  getInstance: method(z.object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
62733
62775
  /**
@@ -64013,12 +64055,12 @@ var LlmModelInfoSchema = z.object({
64013
64055
  });
64014
64056
  /**
64015
64057
  * The provider-specific part of a profile, validated by the provider that owns
64016
- * the kind (`upsertProfile` refuses what it does not accept). A field its
64058
+ * the kind (saving an instance refuses what it does not accept). A field its
64017
64059
  * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
64018
64060
  * keychain, never in the row, and reads back as the redaction marker.
64019
64061
  */
64020
64062
  var LlmProviderConfigSchema = z.record(z.string(), z.unknown());
64021
- var LlmProfileSchema = z.object({
64063
+ z.object({
64022
64064
  id: z.string(),
64023
64065
  name: z.string(),
64024
64066
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -64112,8 +64154,8 @@ var LlmProviderWidgetSchema = z.object({
64112
64154
  /** ConfigUISchema tree passed through untyped on the wire (the
64113
64155
  * notification-output `ConfigSchemaPassthrough` precedent at
64114
64156
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
64115
- var ConfigSchemaPassthrough$2 = z.unknown();
64116
- var LlmProfileKindDescriptorSchema = z.object({
64157
+ var ConfigSchemaPassthrough$1 = z.unknown();
64158
+ z.object({
64117
64159
  kind: LlmProfileKindSchema,
64118
64160
  label: z.string(),
64119
64161
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -64121,9 +64163,9 @@ var LlmProfileKindDescriptorSchema = z.object({
64121
64163
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
64122
64164
  addonId: z.string(),
64123
64165
  /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
64124
- connectionSchema: ConfigSchemaPassthrough$2,
64166
+ connectionSchema: ConfigSchemaPassthrough$1,
64125
64167
  /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
64126
- advancedSchema: ConfigSchemaPassthrough$2.optional(),
64168
+ advancedSchema: ConfigSchemaPassthrough$1.optional(),
64127
64169
  /** The kind's defaults; a model from `listModels` may override any of them. */
64128
64170
  features: LlmModelFeaturesSchema,
64129
64171
  /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
@@ -64271,31 +64313,6 @@ var llmCapability = {
64271
64313
  addonId: z.string().optional(),
64272
64314
  requestId: z.string()
64273
64315
  }), z.void(), { kind: "mutation" }),
64274
- listProfileKinds: method(z.object({}), z.array(LlmProfileKindDescriptorSchema)),
64275
- listProfiles: method(z.object({}), z.array(LlmProfileSchema)),
64276
- upsertProfile: method(z.object({ profile: LlmProfileSchema }), LlmProfileSchema, {
64277
- kind: "mutation",
64278
- auth: "admin"
64279
- }),
64280
- /**
64281
- * D878: move every profile's plaintext `apiKey` into the keychain (owner
64282
- * `ai`), leaving a marker in the row. Dry run unless `apply`; idempotent;
64283
- * counts only. The plaintext is cleared only after the keychain read-back
64284
- * matched.
64285
- */
64286
- migrateRawSecrets: method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
64287
- kind: "mutation",
64288
- auth: "admin"
64289
- }),
64290
- deleteProfile: method(ProfileRefInputSchema, z.void(), {
64291
- kind: "mutation",
64292
- auth: "admin"
64293
- }),
64294
- testProfile: method(ProfileRefInputSchema, LlmGenerateResultSchema, {
64295
- kind: "mutation",
64296
- auth: "admin",
64297
- timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
64298
- }),
64299
64316
  /**
64300
64317
  * The models a kind offers, for a SAVED profile or an unsaved draft
64301
64318
  * (`connection`). A mutation, not a query: a draft may carry a key, and a
@@ -66047,31 +66064,7 @@ loginUrl: z.string() }), { kind: "mutation" }),
66047
66064
  */
66048
66065
  logout: method(z.void(), z.object({ loggedOut: z.literal(true) }), { kind: "mutation" }),
66049
66066
  /** Enumerate every peer the daemon currently knows about. */
66050
- listPeers: method(z.void(), z.object({ peers: z.array(MeshPeerSchema).readonly() })),
66051
- /**
66052
- * Probe the mesh daemon / API for a sanity check WITHOUT joining.
66053
- * Operator-facing "test connection" button: validates the auth key
66054
- * + reaches the control plane and reports back what would happen
66055
- * on join.
66056
- *
66057
- * Tailscale: dry-runs `tailscale up --auth-key=… --reset` against
66058
- * an idempotency probe; for an already-joined node it just returns
66059
- * the current status.
66060
- */
66061
- testConnection: method(z.object({
66062
- /** Optional auth key — when provided, probes the key validity
66063
- * against the provider's API. Omit when already joined to
66064
- * just ping the daemon. */
66065
- authKey: z.string().optional() }), z.object({
66066
- ok: z.boolean(),
66067
- /** Provider-side identifier resolved by the probe (tailnet
66068
- * name for Tailscale, network id for ZeroTier, etc.). */
66069
- tenant: z.string().optional(),
66070
- /** Daemon binary version, when reachable. */
66071
- daemonVersion: z.string().optional(),
66072
- /** Human-readable error when `ok: false`. */
66073
- error: z.string().optional()
66074
- }), { kind: "mutation" })
66067
+ listPeers: method(z.void(), z.object({ peers: z.array(MeshPeerSchema).readonly() }))
66075
66068
  }
66076
66069
  };
66077
66070
  /**
@@ -78253,77 +78246,6 @@ var oauthIntegrationCapability = {
78253
78246
  getDescriptor: method(z.void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
78254
78247
  };
78255
78248
  /**
78256
- * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
78257
- *
78258
- * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
78259
- * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
78260
- * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
78261
- * immutable after create.
78262
- */
78263
- var ConfigSchemaPassthrough$1 = z.unknown();
78264
- var OidcConnectionSchema = z.object({
78265
- id: z.string().min(1),
78266
- displayName: z.string(),
78267
- icon: z.string(),
78268
- issuerUrl: z.string(),
78269
- clientId: z.string(),
78270
- /** Client id + secret present — never the secret value. */
78271
- configured: z.boolean(),
78272
- /**
78273
- * Values for the connection form schema. `clientSecret` is a keychain
78274
- * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
78275
- */
78276
- formValues: z.record(z.string(), z.unknown()).optional()
78277
- });
78278
- /**
78279
- * Patch one connection. Omitted or empty `clientSecret` keeps the stored
78280
- * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
78281
- */
78282
- var OidcConnectionUpdateInputSchema = z.object({
78283
- id: z.string().min(1),
78284
- displayName: z.string().min(1),
78285
- icon: z.string().optional(),
78286
- issuerUrl: z.string().optional(),
78287
- clientId: z.string().optional(),
78288
- clientSecret: z.union([z.string(), z.object({ $secretClear: z.literal(true) })]).optional(),
78289
- redirectUri: z.string().optional(),
78290
- scopes: z.string().optional(),
78291
- usernameClaim: z.enum([
78292
- "preferred_username",
78293
- "email",
78294
- "sub"
78295
- ]).optional()
78296
- });
78297
- var oidcConnectionsCapability = {
78298
- name: "oidc-connections",
78299
- scope: "system",
78300
- mode: "singleton",
78301
- methods: {
78302
- /** Form fields for Add/Edit (ConfigFormBuilder). */
78303
- connectionFormSchema: method(z.object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
78304
- listConnections: method(z.object({}), z.array(OidcConnectionSchema).readonly(), { auth: "admin" }),
78305
- /**
78306
- * Create a row with the operator-chosen URL slug. Credentials follow via
78307
- * `updateConnection` (same Save path as Training Providers).
78308
- */
78309
- createConnection: method(z.object({
78310
- id: z.string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
78311
- displayName: z.string().min(1)
78312
- }), z.object({ id: z.string() }), {
78313
- kind: "mutation",
78314
- auth: "admin"
78315
- }),
78316
- updateConnection: method(OidcConnectionUpdateInputSchema, z.object({ ok: z.literal(true) }), {
78317
- kind: "mutation",
78318
- auth: "admin"
78319
- }),
78320
- deleteConnection: method(z.object({ id: z.string().min(1) }), z.object({ ok: z.literal(true) }), {
78321
- kind: "mutation",
78322
- auth: "admin"
78323
- })
78324
- }
78325
- };
78326
- /**
78327
78249
  * Generic on-screen-display (video overlay) cap. Each camera exposes
78328
78250
  * a firmware-defined list of overlays (channel name, timestamp,
78329
78251
  * watermark, logo, …); the cap models them as a homogeneous array of
@@ -87150,21 +87072,6 @@ var ssoBridgeCapability = {
87150
87072
  verifyBridgeToken: method(z.object({ token: z.string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" })
87151
87073
  }
87152
87074
  };
87153
- var ProviderListEntrySchema = z.discriminatedUnion("shouldSaveDiskSpace", [z.object({
87154
- providerId: z.string().min(1),
87155
- displayName: z.string().min(1),
87156
- configSchema: z.unknown(),
87157
- nodeLocal: z.boolean(),
87158
- shouldSaveDiskSpace: z.literal(true),
87159
- minFreePercent: z.number().min(0).max(100)
87160
- }), z.object({
87161
- providerId: z.string().min(1),
87162
- displayName: z.string().min(1),
87163
- configSchema: z.unknown(),
87164
- nodeLocal: z.boolean(),
87165
- shouldSaveDiskSpace: z.literal(false),
87166
- minFreePercent: z.literal(null)
87167
- })]);
87168
87075
  /**
87169
87076
  * `storage` — singleton consumer-facing capability owned by the
87170
87077
  * `storage-orchestrator` builtin (Task 4 of the storage-unification
@@ -87265,66 +87172,12 @@ var storageCapability = {
87265
87172
  }),
87266
87173
  listLocations: method(z.object({ type: StorageLocationTypeSchema.optional() }), z.array(StorageLocationSchema).readonly()),
87267
87174
  listLocationDeclarations: method(z.void(), z.array(StorageLocationDeclarationSchema).readonly()),
87268
- upsertLocation: method(StorageLocationSchema.omit({
87269
- createdAt: true,
87270
- updatedAt: true
87271
- }), StorageLocationSchema, {
87272
- kind: "mutation",
87273
- auth: "admin"
87274
- }),
87275
- /**
87276
- * Remove a location record. REFUSES a location that still holds data —
87277
- * deleting a drained location whose durable rows still name it is how this
87278
- * hub acquired 2 131 ghost `recordings:high` segments, and playback does
87279
- * not stat, so the operator sees a silent black window rather than an
87280
- * error.
87281
- *
87282
- * `force` exists because the occupancy check is BEST-EFFORT and refuses on
87283
- * "unknown" as well as on "occupied" (a read that fails must not authorise
87284
- * a destruction — D49). A location on a removed disk, on another node, or
87285
- * behind a remote provider answers "unknown" forever, and a refusal an
87286
- * operator cannot override is its own failure mode. `force: true` is
87287
- * logged, loudly, with what the check saw.
87288
- */
87289
- deleteLocation: method(z.object({
87290
- id: z.string(),
87291
- force: z.boolean().optional()
87292
- }), z.void(), {
87293
- kind: "mutation",
87294
- auth: "admin"
87295
- }),
87296
87175
  /**
87297
87176
  * How far each draining location has got (D386). A pure READ of what the
87298
87177
  * last pressure sweep computed — it starts no work, and a location that is
87299
87178
  * not draining simply does not appear.
87300
87179
  */
87301
- listDrainProgress: method(z.void(), z.array(StorageDrainProgressSchema).readonly()),
87302
- testLocation: method(z.object({ id: z.string() }), z.object({
87303
- ok: z.boolean(),
87304
- error: z.string().optional()
87305
- }), { auth: "admin" }),
87306
- listProviders: method(z.void(), z.array(ProviderListEntrySchema).readonly()),
87307
- testConfig: method(z.object({
87308
- providerId: z.string(),
87309
- /**
87310
- * The location this config is an UNSAVED edit of, when there is one.
87311
- *
87312
- * `listLocations` replaces every declared secret with the redaction
87313
- * sentinel, so the edit modal's form state holds the sentinel for any
87314
- * credential the operator did not retype — and posting that here
87315
- * without a way to resolve it makes the provider try to authenticate
87316
- * as `__camstack_redacted__` and report the operator's own working
87317
- * password as wrong. Given this id, the orchestrator restores each
87318
- * sentinel from the stored config (same rule as `upsertLocation`)
87319
- * before dispatching. Omitted by the "Add location" wizard, where
87320
- * every value was typed just now and nothing is stored yet.
87321
- */
87322
- locationId: z.string().optional(),
87323
- config: z.record(z.string(), z.unknown())
87324
- }), z.object({
87325
- ok: z.boolean(),
87326
- error: z.string().optional()
87327
- }), { auth: "admin" })
87180
+ listDrainProgress: method(z.void(), z.array(StorageDrainProgressSchema).readonly())
87328
87181
  }
87329
87182
  };
87330
87183
  /** One table of the settings database. */
@@ -92423,7 +92276,6 @@ var ALL_CAPABILITY_DEFINITIONS = [
92423
92276
  notifierCapability,
92424
92277
  numericSensorCapability,
92425
92278
  oauthIntegrationCapability,
92426
- oidcConnectionsCapability,
92427
92279
  osdCapability,
92428
92280
  osdManagerCapability,
92429
92281
  petFeederCapability,
@@ -92528,7 +92380,7 @@ function isArrayOutputSchema(schema) {
92528
92380
  /**
92529
92381
  * True when `method` on cap `def` is a COLLECTION cap's array-returning
92530
92382
  * (non-subscription) method — the methods whose contract is "union the result
92531
- * across every registered provider" (`listTargets`, `listTargetKinds`,
92383
+ * across every registered provider" (`listTargetKinds`,
92532
92384
  * `discoverTargets`, `listEndpoints`, …).
92533
92385
  *
92534
92386
  * Such a method is aggregated at the hub via `concatCollection` / the runtime
@@ -92592,12 +92444,12 @@ function extractNestedAddonId(input) {
92592
92444
  * True when an OBJECT input schema declares a top-level `addonId` field.
92593
92445
  *
92594
92446
  * Such a cap method routes explicitly via the top-level `{ addonId }` selector
92595
- * (the `llm.generate` / `deleteProfile` posture). The runtime router therefore
92447
+ * (the `llm.generate` / `deleteModel` posture). The runtime router therefore
92596
92448
  * MUST NOT also fall back to {@link extractNestedAddonId} for it — that would
92597
92449
  * let an incidental nested `addonId` (e.g. a key inside a free-form `jsonSchema`
92598
92450
  * record) hijack routing. Nested recovery is reserved for methods whose input
92599
92451
  * carries NO top-level selector but embeds the owning `addonId` inside a domain
92600
- * entity (`upsertTarget({ target: { addonId } })`, `upsertProfile({ profile })`).
92452
+ * entity (`upsertTarget({ target: { addonId } })`).
92601
92453
  *
92602
92454
  * Accepts both Zod 4 (`.shape` / `_def.shape`) and legacy shapes; returns false
92603
92455
  * for non-object schemas.
@@ -99787,13 +99639,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
99787
99639
  access: "delete",
99788
99640
  role: "admin"
99789
99641
  },
99790
- "llm.deleteProfile": {
99791
- capName: "llm",
99792
- capScope: "system",
99793
- addonId: null,
99794
- access: "delete",
99795
- role: "admin"
99796
- },
99797
99642
  "llm.generate": {
99798
99643
  capName: "llm",
99799
99644
  capScope: "system",
@@ -99857,20 +99702,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
99857
99702
  access: "view",
99858
99703
  role: "admin"
99859
99704
  },
99860
- "llm.listProfileKinds": {
99861
- capName: "llm",
99862
- capScope: "system",
99863
- addonId: null,
99864
- access: "view",
99865
- role: "admin"
99866
- },
99867
- "llm.listProfiles": {
99868
- capName: "llm",
99869
- capScope: "system",
99870
- addonId: null,
99871
- access: "view",
99872
- role: "admin"
99873
- },
99874
99705
  "llm.listRuntimeNodes": {
99875
99706
  capName: "llm",
99876
99707
  capScope: "system",
@@ -99878,13 +99709,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
99878
99709
  access: "view",
99879
99710
  role: "admin"
99880
99711
  },
99881
- "llm.migrateRawSecrets": {
99882
- capName: "llm",
99883
- capScope: "system",
99884
- addonId: null,
99885
- access: "create",
99886
- role: "admin"
99887
- },
99888
99712
  "llm.resolveModelRef": {
99889
99713
  capName: "llm",
99890
99714
  capScope: "system",
@@ -99913,20 +99737,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
99913
99737
  access: "create",
99914
99738
  role: "admin"
99915
99739
  },
99916
- "llm.testProfile": {
99917
- capName: "llm",
99918
- capScope: "system",
99919
- addonId: null,
99920
- access: "create",
99921
- role: "admin"
99922
- },
99923
- "llm.upsertProfile": {
99924
- capName: "llm",
99925
- capScope: "system",
99926
- addonId: null,
99927
- access: "create",
99928
- role: "admin"
99929
- },
99930
99740
  "llmRuntime.appleAvailability": {
99931
99741
  capName: "llm-runtime",
99932
99742
  capScope: "system",
@@ -100431,13 +100241,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
100431
100241
  access: "create",
100432
100242
  role: "admin"
100433
100243
  },
100434
- "meshNetwork.testConnection": {
100435
- capName: "mesh-network",
100436
- capScope: "system",
100437
- addonId: null,
100438
- access: "create",
100439
- role: "admin"
100440
- },
100441
100244
  "meter.getStatus": {
100442
100245
  capName: "meter",
100443
100246
  capScope: "device",
@@ -101096,13 +100899,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101096
100899
  access: "create",
101097
100900
  role: "admin"
101098
100901
  },
101099
- "notificationOutput.deleteTarget": {
101100
- capName: "notification-output",
101101
- capScope: "system",
101102
- addonId: null,
101103
- access: "delete",
101104
- role: "admin"
101105
- },
101106
100902
  "notificationOutput.discoverTargets": {
101107
100903
  capName: "notification-output",
101108
100904
  capScope: "system",
@@ -101110,13 +100906,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101110
100906
  access: "view",
101111
100907
  role: "admin"
101112
100908
  },
101113
- "notificationOutput.getTarget": {
101114
- capName: "notification-output",
101115
- capScope: "system",
101116
- addonId: null,
101117
- access: "view",
101118
- role: "admin"
101119
- },
101120
100909
  "notificationOutput.listTargetKinds": {
101121
100910
  capName: "notification-output",
101122
100911
  capScope: "system",
@@ -101124,13 +100913,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101124
100913
  access: "view",
101125
100914
  role: "admin"
101126
100915
  },
101127
- "notificationOutput.listTargets": {
101128
- capName: "notification-output",
101129
- capScope: "system",
101130
- addonId: null,
101131
- access: "view",
101132
- role: "admin"
101133
- },
101134
100916
  "notificationOutput.probeTargetConfig": {
101135
100917
  capName: "notification-output",
101136
100918
  capScope: "system",
@@ -101145,13 +100927,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101145
100927
  access: "create",
101146
100928
  role: "admin"
101147
100929
  },
101148
- "notificationOutput.setTargetEnabled": {
101149
- capName: "notification-output",
101150
- capScope: "system",
101151
- addonId: null,
101152
- access: "create",
101153
- role: "admin"
101154
- },
101155
100930
  "notificationOutput.testTarget": {
101156
100931
  capName: "notification-output",
101157
100932
  capScope: "system",
@@ -101159,13 +100934,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101159
100934
  access: "create",
101160
100935
  role: "admin"
101161
100936
  },
101162
- "notificationOutput.upsertTarget": {
101163
- capName: "notification-output",
101164
- capScope: "system",
101165
- addonId: null,
101166
- access: "create",
101167
- role: "admin"
101168
- },
101169
100937
  "notificationRules.activateAlarmProfile": {
101170
100938
  capName: "notification-rules",
101171
100939
  capScope: "system",
@@ -101425,41 +101193,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
101425
101193
  access: "view",
101426
101194
  role: "admin"
101427
101195
  },
101428
- "oidcConnections.connectionFormSchema": {
101429
- capName: "oidc-connections",
101430
- capScope: "system",
101431
- addonId: null,
101432
- access: "view",
101433
- role: "admin"
101434
- },
101435
- "oidcConnections.createConnection": {
101436
- capName: "oidc-connections",
101437
- capScope: "system",
101438
- addonId: null,
101439
- access: "create",
101440
- role: "admin"
101441
- },
101442
- "oidcConnections.deleteConnection": {
101443
- capName: "oidc-connections",
101444
- capScope: "system",
101445
- addonId: null,
101446
- access: "delete",
101447
- role: "admin"
101448
- },
101449
- "oidcConnections.listConnections": {
101450
- capName: "oidc-connections",
101451
- capScope: "system",
101452
- addonId: null,
101453
- access: "view",
101454
- role: "admin"
101455
- },
101456
- "oidcConnections.updateConnection": {
101457
- capName: "oidc-connections",
101458
- capScope: "system",
101459
- addonId: null,
101460
- access: "create",
101461
- role: "admin"
101462
- },
101463
101196
  "osd.getStatus": {
101464
101197
  capName: "osd",
101465
101198
  capScope: "device",
@@ -104491,13 +104224,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
104491
104224
  access: "delete",
104492
104225
  role: "admin"
104493
104226
  },
104494
- "storage.deleteLocation": {
104495
- capName: "storage",
104496
- capScope: "system",
104497
- addonId: null,
104498
- access: "delete",
104499
- role: "admin"
104500
- },
104501
104227
  "storage.endDownload": {
104502
104228
  capName: "storage",
104503
104229
  capScope: "system",
@@ -104554,13 +104280,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
104554
104280
  access: "view",
104555
104281
  role: "admin"
104556
104282
  },
104557
- "storage.listProviders": {
104558
- capName: "storage",
104559
- capScope: "system",
104560
- addonId: null,
104561
- access: "view",
104562
- role: "admin"
104563
- },
104564
104283
  "storage.read": {
104565
104284
  capName: "storage",
104566
104285
  capScope: "system",
@@ -104582,27 +104301,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
104582
104301
  access: "view",
104583
104302
  role: "admin"
104584
104303
  },
104585
- "storage.testConfig": {
104586
- capName: "storage",
104587
- capScope: "system",
104588
- addonId: null,
104589
- access: "view",
104590
- role: "admin"
104591
- },
104592
- "storage.testLocation": {
104593
- capName: "storage",
104594
- capScope: "system",
104595
- addonId: null,
104596
- access: "view",
104597
- role: "admin"
104598
- },
104599
- "storage.upsertLocation": {
104600
- capName: "storage",
104601
- capScope: "system",
104602
- addonId: null,
104603
- access: "create",
104604
- role: "admin"
104605
- },
104606
104304
  "storage.write": {
104607
104305
  capName: "storage",
104608
104306
  capScope: "system",
@@ -111663,4 +111361,4 @@ z.object({
111663
111361
  commands: z.record(z.string(), z.unknown())
111664
111362
  });
111665
111363
  //#endregion
111666
- export { EMPTY_AUTOMATION_STATE as $, vocabActionIdFor as $a, reducePoints as $i, coverCapability as $n, RECORD_SECRET_COLLECTION_PREFIX as $o, isSameAddonId as $r, makeSecretMarker as $s, SsoBridgeClaimsSchema as $t, ControlStatusSchema as A, splitTranslationRef as Aa, normalizeUnit as Ai, buildDeviceSignatureMessage as An, openReset as Ao, fanOutTargets as Ar, defineAddonMigrations as As, PET_FOUNTAIN_WATER_KEY as At, DEVICE_ENROLLMENT_TTL_MS as B, templateCapability as Ba, pickAppLinkHub as Bi, collectWhenMirrorSources as Bn, DATAPLANE_SECRET_HEADER as Bo, integrationInstancesCapability as Br, historyUnitFor as Bs, RECORDING_SOURCE_CAMSTACK_ADDON as Bt, CORE_BLOCKS_ADDON_ID as C, sharedActuatorFeatures as Ca, DeviceRole as Cc, modeMayWrite as Ci, backupCapability as Cn, evaluateStatistic as Co, evaluateCompositionField as Cr, buildSecretRef as Cs, MIGRATION_API_V1_METHODS as Ct, CatalogFileSchema as D, siteFor as Da, normalizeCapStep as Di, buildActionSteps as Dn, isForwardInputRef as Do, expressionContainsBuiltinCall as Dr, collectZodSecretPaths as Ds, MigrationLedgerEntrySchema as Dt, CalendarPreferencesSchema as E, shortHostname as Ea, EventCategory as Ec, normalizeActionUnits as Ei, brightnessCapability as En, integrateReading as Eo, expandContainer as Er, collectSecretMarkerRefs as Es, MediaPlayerStatusSchema as Et, DATABASE_SNAPSHOT_TIMEOUT_MS as F, storageProviderCapability as Fa, parseAcceleratorFactsJson as Fi, capUnitResolver as Fn, toExpressionValue as Fo, formatDeviceRevoker as Fr, emitReadiness as Fs, PowerSourceInfoSchema as Ft, DEVICE_SAN_USER_PREFIX as G, userManagementCapability as Ga, preconditionOf as Gi, compositionFieldKey as Gn, ForeignSecretMarkerError as Go, isAppLinkBase as Gr, isInstanceEnabled as Gs, RemoteConfigSchema as Gt, DEVICE_ID_FIELD as H, timedRunLimitOf as Ha, platformProbeCapability as Hi, compareVersions as Hn, DEVICE_STATUS_METHOD as Ho, interpolate as Hr, isDebugChannelName as Hs, ROOT_BUCKET_KEY as Ht, DATA_STORE_DATABASES as I, streamCatalogCapability as Ia, parseColorInput as Ii, catalogueIssues as In, wattMillisecondsToKwh as Io, formatMinutes as Ir, expandCapMethods as Is, PreferenceDeviceIdSchema as It, DeclaredDevices as J, validateSchedulerInput as Ja, processTimeZoneOr as Ji, coreBlockAddonId as Jn, NoCallerError as Jo, isCredentialTokenPayload as Jr, isSecretClear as Js, STREAM_PROFILE_META as Jt, DEVICE_TOMBSTONE_RETENTION_MS as K, validateComposition as Ka, problemsBlockSave as Ki, compositionSourceRefs as Kn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Ko, isArrayOutputSchema as Kr, isKeychainStoredField as Ks, RunningStateStatusSchema as Kt, DAY_NAMES as L, streamQualityLabel as La, parseStreamParamsFormPatch as Li, checkRoleAddress as Ln, BaseAddon as Lo, gbToBytes as Lr, formatSecretScope as Ls, PreferenceNamespaceSchema as Lt, CredentialTokenClaimsSchema as M, storageCapability as Ma, objectInputDeclaresRequiredDeviceId as Mi, calendarsCapability as Mn, planResetTier as Mo, featureForwards as Mr, defineEntryKind as Ms, PROPOSAL_MIN_SPAN_MS as Mt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as N, storageMigrationCapability as Na, occurrenceOn as Ni, cameraGridLayoutCapability as Nn, planStatisticTier as No, filesystemBrowseCapability as Nr, defineRecordKinds as Ns, PackageRequiresSchema as Nt, ConditionMirror as O, siteZoneKey as Oa, normalizeCoreBlockWrite as Oi, buildCapabilityLookup as On, isHistoryHelper as Oo, extractNestedAddonId as Or, createEvent as Os, MigrationMetaSchema as Ot, DATABASE_SNAPSHOT_SUFFIX as P, storageOccupancyCapability as Pa, orderMigrations as Pi, canonicalIconKey as Pn, statisticCadenceMs as Po, foldSnapshotByFunction as Pr, emitDownForOwnedCaps as Ps, PetFountainStatusSchema as Pt, DiscoveryProposalBodySchema as Q, vectorStoreCapability as Qa, recordsCapability as Qi, coreBlocksCapability as Qn, RECORD_DELETE_BATCH as Qo, isObjectInput as Qr, isSecretRefOwnedBy as Qs, ServerNameSchema as Qt, DEFAULT_HOLD_OVERRIDE as R, supportedRuntimes as Ra, petFountainCapability as Ri, checkTemplatePayload as Rn, BatchTooLargeError as Ro, groupCommandsCapability as Rr, getDebugInterest as Rs, PreferenceValueSchema as Rt, COMPOSER_RUNNER_ID as S, settingsStoreCapability as Sa, DeviceFeature as Sc, migrationsCapability as Si, authProviderCapability as Sn, evaluateDerivative as So, enumerateSchemaFields as Sr, assertValidDeclaration as Ss, METHOD_ACCESS_MAP as St, CREDENTIAL_TOKEN_AUDIENCE as T, sharedColorModes as Ta, errMsg as Tc, nextOccurrence as Ti, batteryCapability as Tn, historyRetentionFromSettings as To, evictionPolicyOfLocation as Tr, collectSecretLeaves as Ts, MOTION_CLOSE_AFTER_MS as Tt, DEVICE_NONCE_TTL_MS as U, timedRunSeconds as Ua, powerSourceCapability as Ui, compileScalarOverride as Un, DeclarationRefusedError as Uo, isAlertEpisodeOpen as Ur, isDeviceConfigCap as Us, RecordingStatusSchema as Ut, DEVICE_HISTORY_ENERGY_KEY as V, timedRunCapability as Va, planComposition as Vi, colorCapability as Vn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Vo, internalActionId as Vr, hydrateSchema as Vs, REMOTE_MEDIA_COMMANDS as Vt, DEVICE_SAN_CREDENTIAL_PREFIX as W, unmetRequirements as Wa, powerSourceLinkOfComposition as Wi, composerCapability as Wn, FilterRequiredError as Wo, isAlertEpisodeSeverity as Wr, isEvent as Ws, RemoteAssumedStateSchema as Wt, DeviceStatusSchema as X, vectorDimFromBase64 as Xa, ptzAutotrackCapability as Xi, coreBlockIdFromAddonId as Xn, RECORD_BATCH_MAX as Xo, isInternalActionId as Xr, isSecretMarker as Xs, SchedulerSchema as Xt, DeviceRunSchema as Y, valveCapability as Ya, proposeRunningThreshold as Yi, coreBlockComposition as Yn, PlaintextSecretError as Yo, isDefaultAppConnectionEndpoint as Yr, isSecretFieldView as Ys, SchedulerError as Yt, DeviceTombstoneSchema as Z, vectorIndexDimConflictError as Za, recordEntriesCapability as Zi, coreBlockSourceKind as Zn, RECORD_BATCH_MAX_BYTES as Zo, isLocationEnabled as Zr, isSecretMarkerLike as Zs, ScopedTokenSchema as Zt, CAMERA_SWITCH_ORDER as _, runtimeStatePolicyFor as _a, toNodeId as _c, mediaPlayerCapability as _i, alertEpisodeId as _n, compositionItemFieldPath as _o, deviceRunsCapability as _r, WELL_KNOWN_TAB_MAP as _s, KEYCHAIN_RESET_TRIGGER_ACTOR as _t, AGENT_MDNS_SERVICE_TYPE as a, resolveBucketMs as aa, parseJsonObject as ac, legacyModeOf as ai, TemplateKindSchema as an, DAY_MS as ao, declarationOwnerNodeId as ar, ReadinessTimeoutError as as, FanDirectionSchema as at, CATALOG_LANGS as b, scopesAllowDeviceCap as ba, userError as bc, methodRefusal as bi, appendTrace as bn, createStatefulExpressionMemory as bo, enumerateInferenceDevices as br, asString$1 as bs, LOG_LEVEL_RANK as bt, ActionError as c, resolveHubAddressRoles as ca, readinessKey as cc, localNetworkCapability as ci, UserRecordSchema as cn, HISTORY_SLOW_MS as co, defineExtensionSlotProvider as cr, RecordNotFoundError as cs, FieldClaimSchema as ct, ActionVariableSchema as d, resolveMutate as da, resolveSecretMarkers as dc, lockDoorLinkOfComposition as di, actionWaitTotalMs as dn, MINUTE_MS as do, describeUnmet as dr, RevConflictError as ds, HISTORY_ITEM_CATALOG as dt, remoteCapability as ea, mapSecretLeaves as ec, isVoidInput as ei, StorageCleanupJobSchema as en, weekdayOfLocalDate as eo, createDeviceExtensionProvider as er, RECORD_SWEEP_INTERVAL_MS as es, EMPTY_REMOTE_ASSUMED_STATE as et, AlertSchema as f, resolveNotificationTapAddress as fa, scopeKey as fc, logDestinationCapability as fi, actionsCapability as fn, buildFfmpegArgs as fo, deviceCredentialsCapability as fr, SECRET_CLEAR as fs, HUB_MDNS_SERVICE_TYPE as ft, BatteryStatusSchema as g, runSteps as ga, sleep as gc, mayWriteToLocation as gi, addonWidgetsCapability as gn, compositionFeatureEnabled as go, deviceRemovalHookCapability as gr, UnknownRecordKindError as gs, INTERNAL_ACTION_PREFIX as gt, BaseDevice as h, runFanOut as ha, secretViewsOf as hc, mayReadLocation as hi, addonSettingsCapability as hn, composedDeviceStableId as ho, deviceManagerCapability as hr, UnindexedFilterError as hs, IDLE_ACTION_STATUS as ht, ACTUATOR_TEMPLATE_IDS as i, resolveAppConnections as ia, normalizeSecretOwner as ic, legacyAutoLinkIds as ii, SwitchStatusSchema as in, CompositionSchema as io, databaseSnapshotCapability as ir, ReadinessRegistry as is, FanControlStatusSchema as it, CoreBlockSchema as j, storageAdminCapability as ja, objectInputDeclaresAddonId as ji, buildStreamParamsConfigSchema as jn, openStatistic as jo, fanPresetsCapability as jr, defineCustomActions as js, PREFERENCES_MAX_VALUE_BYTES as jt, ConsumableItemSchema as k, snapshotCapability as ka, normalizeStepTargets as ki, buildDeviceEnrollmentLink as kn, nextLocalMidnight as ko, fanControlCapability as kr, customAction as ks, NetworkTunnelStartedDataSchema as kt, ActionStepSchema as l, resolveLocationMode as la, recordSecretRef as lc, locationIconKey as li, actionEffect as ln, HOUR_MS as lo, deriveBatteryPresence as lr, RecordTooLargeError as ls, GroupCommandResultSchema as lt, BUILTIN_REMOTE_COMPONENTS as m, resolveStepArgs as ma, secretTreeFromSchema as mc, looseSchema as mi, addonPagesCapability as mn, composedDeviceRef as mo, deviceHistoryCapability as mr, TransactRefusedError as ms, HvacModeSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, replacedFieldKeys as na, nodePin as nc, keychainAdminCapability as ni, StorageLocationTypeSchema as nn, zoneOnlySite as no, customRole as nr, REMOVE_LEAF as ns, FAN_CAPTURE_FIELDS as nt, AGENT_MDNS_TXT_KEYS as o, resolveCoreBlockEntry as oa, parseJsonUnknown as oc, lifecycleJobSchema as oi, TokenScopeSchema as on, DEFAULT_HISTORY_RETENTION as oo, declaredSeriesKind as or, RecordIntegrationInstances as os, FanPresetSchema as ot, AutomationStateDocSchema as p, resolveRunnerId as pa, secretTreeFromPaths as pc, logLevelAtMost as pi, addonIdOfActionId as pn, cloneStatefulExpressionMemory as po, deviceExtensionCapability as pr, StoredRecordKindDeclarationSchema as ps, HUB_MDNS_TXT_KEYS as pt, DataStoreDatabaseSchema as q, validateCustomAddress as qa, procedureAuthKey as qi, consumablesCapability as qn, InvalidRecordError as qo, isCollectionArrayMethod as qr, isReadingQuantity as qs, STORAGE_ACCESS_FALLBACK as qt, ACTUATOR_METHODS as r, resolveActionVariables as ra, normalizeNodeId as rc, keychainCapability as ri, StorageMigrationJobSchema as rn, COMPOSER_ADDON_ID as ro, dataStoreProviderCapability as rr, RUNTIME_DEFAULTS as rs, FIRST_LEVEL_MACRO_CLASSES as rt, ALL_CAPABILITY_DEFINITIONS as s, resolveCoreBlockFiles as sa, parseSecretRef as sc, localDateOf as si, UNATTRIBUTED_BUCKET_KEY as sn, HISTORY_FAST_MS as so, decodeVectorBase64 as sr, RecordKindDeclarationSchema as ss, FieldClaimModeSchema as st, ACTION_RUN_MAX_MS as t, remoteLayoutComponentsCapability as ta, nodeIdOfScopedKey as tc, kebabToCamel as ti, StorageLocationModeSchema as tn, withLocationMode as to, customKeyOfRole as tr, REDACTED_SECRET as ts, EMPTY_REMOTE_CONFIG as tt, ActionTargetResolver as u, resolveMethodAuth as ua, resolveCapMount as uc, lockControlCapability as ui, actionSourceCapability as un, HelperMemberSchema as uo, describeComposableCaps as ur, RecordUniqueViolationError as us, HISTORY_CATALOG as ut, CAMSTACK_APP_LINK_ORIGIN as v, schedulersCapability as va, toSecretFieldView as vc, mediaPlayerFeaturesOfRoles as vi, alertEpisodePayload as vn, compositionSliceKey as vo, deviceStateCapability as vr, asJsonObject as vs, KeychainAuditEntrySchema as vt, CORE_BLOCK_ADDON_PREFIX as w, sharedActuatorMethods as wa, DeviceType as wc, motionCapability as wi, bareAddonId as wn, helperMembers as wo, evaluateWhenTree as wr, collectSecretConfigKeys as ws, MINUTES_PER_DAY as wt, COMPOSED_ITEM_FIXED_FIELDS as x, scoreRuntimes as xa, withoutCallerStamp as xc, metricsProviderCapability as xi, armRemovalReconcile as xn, disarmRoseMemory as xo, enumerateItemArrayFields as xr, assertTransactScope as xs, LegacyStorageLocationDefaultSchema as xt, CAP_NAMES_WITH_STATUS as y, scopesAllowAddon as ya, transformSecretWrite as yc, memoizePinnedFfmpeg as yi, alertsCapability as yn, compositionSourceKey as yo, deviceStatusCapability as yr, asNumber as ys, KeychainResetRecordSchema as yt, DERIVED_CAMERA_SILENCED_CAP_NAMES as z, switchCapability as za, petFountainWaterItem as zi, climateControlCapability as zn, CALLER_STAMPED_CAPABILITIES as zo, groupTemplate as zr, historyItemFieldPath as zs, QuantityUnitError as zt };
111364
+ export { EMPTY_AUTOMATION_STATE as $, vectorDimFromBase64 as $a, recordEntriesCapability as $i, coreBlocksCapability as $n, RECORD_BATCH_MAX as $o, isObjectInput as $r, isSecretMarker as $s, ServerNameSchema as $t, ControlStatusSchema as A, siteZoneKey as Aa, normalizeCoreBlockWrite as Ai, buildDeviceEnrollmentLink as An, isForwardInputRef as Ao, fanControlCapability as Ar, collectZodSecretPaths as As, PET_FOUNTAIN_WATER_KEY as At, DEVICE_ENROLLMENT_TTL_MS as B, supportedRuntimes as Ba, petFountainCapability as Bi, climateControlCapability as Bn, BaseAddon as Bo, groupTemplate as Br, formatSecretScope as Bs, RECORDING_SOURCE_CAMSTACK_ADDON as Bt, CORE_BLOCKS_ADDON_ID as C, scoreRuntimes as Ca, userError as Cc, migrationsCapability as Ci, authProviderCapability as Cn, createStatefulExpressionMemory as Co, enumerateSchemaFields as Cr, asString$1 as Cs, MIGRATION_API_V1_METHODS as Ct, CatalogFileSchema as D, sharedColorModes as Da, DeviceType as Dc, nextOccurrence as Di, brightnessCapability as Dn, helperMembers as Do, expandContainer as Dr, collectSecretConfigKeys as Ds, MigrationLedgerEntrySchema as Dt, CalendarPreferencesSchema as E, sharedActuatorMethods as Ea, DeviceRole as Ec, motionCapability as Ei, batteryCapability as En, evaluateStatistic as Eo, evictionPolicyOfLocation as Er, buildSecretRef as Es, MediaPlayerStatusSchema as Et, DATABASE_SNAPSHOT_TIMEOUT_MS as F, storageMigrationCapability as Fa, occurrenceOn as Fi, canonicalIconKey as Fn, planResetTier as Fo, foldSnapshotByFunction as Fr, defineEntryKind as Fs, PowerSourceInfoSchema as Ft, DEVICE_SAN_USER_PREFIX as G, timedRunLimitOf as Ga, powerSourceCapability as Gi, composerCapability as Gn, DEVICE_STATUS_METHOD as Go, isAlertEpisodeSeverity as Gr, isDebugChannelName as Gs, RemoteConfigSchema as Gt, DEVICE_ID_FIELD as H, switchStateOfMode as Ha, pickAppLinkHub as Hi, colorCapability as Hn, CALLER_STAMPED_CAPABILITIES as Ho, internalActionId as Hr, historyItemFieldPath as Hs, ROOT_BUCKET_KEY as Ht, DATA_STORE_DATABASES as I, storageOccupancyCapability as Ia, orderMigrations as Ii, capUnitResolver as In, planStatisticTier as Io, formatDeviceRevoker as Ir, defineRecordKinds as Is, PreferenceDeviceIdSchema as It, DeclaredDevices as J, userManagementCapability as Ja, problemsBlockSave as Ji, consumablesCapability as Jn, ForeignSecretMarkerError as Jo, isCollectionArrayMethod as Jr, isInstanceEnabled as Js, STORAGE_LOCATION_MODES as Jt, DEVICE_TOMBSTONE_RETENTION_MS as K, timedRunSeconds as Ka, powerSourceLinkOfComposition as Ki, compositionFieldKey as Kn, DeclarationRefusedError as Ko, isAppLinkBase as Kr, isDeviceConfigCap as Ks, RunningStateStatusSchema as Kt, DAY_NAMES as L, storageProviderCapability as La, parseAcceleratorFactsJson as Li, catalogueIssues as Ln, statisticCadenceMs as Lo, formatMinutes as Lr, emitDownForOwnedCaps as Ls, PreferenceNamespaceSchema as Lt, CredentialTokenClaimsSchema as M, splitTranslationRef as Ma, normalizeUnit as Mi, buildStreamParamsConfigSchema as Mn, nextLocalMidnight as Mo, fanPresetsCapability as Mr, customAction as Ms, PROPOSAL_MIN_SPAN_MS as Mt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as N, storageAdminCapability as Na, objectInputDeclaresAddonId as Ni, calendarsCapability as Nn, openReset as No, featureForwards as Nr, defineAddonMigrations as Ns, PackageRequiresSchema as Nt, ConditionMirror as O, shortHostname as Oa, errMsg as Oc, normalizeActionUnits as Oi, buildActionSteps as On, historyRetentionFromSettings as Oo, expressionContainsBuiltinCall as Or, collectSecretLeaves as Os, MigrationMetaSchema as Ot, DATABASE_SNAPSHOT_SUFFIX as P, storageCapability as Pa, objectInputDeclaresRequiredDeviceId as Pi, cameraGridLayoutCapability as Pn, openStatistic as Po, filesystemBrowseCapability as Pr, defineCustomActions as Ps, PetFountainStatusSchema as Pt, DiscoveryProposalBodySchema as Q, valveCapability as Qa, ptzAutotrackCapability as Qi, coreBlockSourceKind as Qn, PlaintextSecretError as Qo, isLocationEnabled as Qr, isSecretFieldView as Qs, ScopedTokenSchema as Qt, DEFAULT_HOLD_OVERRIDE as R, streamCatalogCapability as Ra, parseColorInput as Ri, checkRoleAddress as Rn, toExpressionValue as Ro, gbToBytes as Rr, emitReadiness as Rs, PreferenceValueSchema as Rt, COMPOSER_RUNNER_ID as S, scopesAllowDeviceCap as Sa, transformSecretWrite as Sc, metricsProviderCapability as Si, armRemovalReconcile as Sn, compositionSourceKey as So, enumerateItemArrayFields as Sr, asNumber as Ss, METHOD_ACCESS_MAP as St, CREDENTIAL_TOKEN_AUDIENCE as T, sharedActuatorFeatures as Ta, DeviceFeature as Tc, modeMayWrite as Ti, bareAddonId as Tn, evaluateDerivative as To, evaluateWhenTree as Tr, assertValidDeclaration as Ts, MOTION_CLOSE_AFTER_MS as Tt, DEVICE_NONCE_TTL_MS as U, templateCapability as Ua, planComposition as Ui, compareVersions as Un, DATAPLANE_SECRET_HEADER as Uo, interpolate as Ur, historyUnitFor as Us, RecordingStatusSchema as Ut, DEVICE_HISTORY_ENERGY_KEY as V, switchCapability as Va, petFountainWaterItem as Vi, collectWhenMirrorSources as Vn, BatchTooLargeError as Vo, integrationInstancesCapability as Vr, getDebugInterest as Vs, REMOTE_MEDIA_COMMANDS as Vt, DEVICE_SAN_CREDENTIAL_PREFIX as W, timedRunCapability as Wa, platformProbeCapability as Wi, compileScalarOverride as Wn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Wo, isAlertEpisodeOpen as Wr, hydrateSchema as Ws, RemoteAssumedStateSchema as Wt, DeviceStatusSchema as X, validateCustomAddress as Xa, processTimeZoneOr as Xi, coreBlockComposition as Xn, InvalidRecordError as Xo, isDefaultAppConnectionEndpoint as Xr, isReadingQuantity as Xs, SchedulerError as Xt, DeviceRunSchema as Y, validateComposition as Ya, procedureAuthKey as Yi, coreBlockAddonId as Yn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Yo, isCredentialTokenPayload as Yr, isKeychainStoredField as Ys, STREAM_PROFILE_META as Yt, DeviceTombstoneSchema as Z, validateSchedulerInput as Za, proposeRunningThreshold as Zi, coreBlockIdFromAddonId as Zn, NoCallerError as Zo, isInternalActionId as Zr, isSecretClear as Zs, SchedulerSchema as Zt, CAMERA_SWITCH_ORDER as _, runFanOut as _a, secretTreeFromSchema as _c, mayWriteToLocation as _i, addonWidgetsCapability as _n, composedDeviceRef as _o, deviceRemovalHookCapability as _r, TransactRefusedError as _s, KEYCHAIN_RESET_TRIGGER_ACTOR as _t, AGENT_MDNS_SERVICE_TYPE as a, resolveActionVariables as aa, nodePin as ac, legacyAutoLinkIds as ai, SwitchStatusSchema as an, zoneOnlySite as ao, databaseSnapshotCapability as ar, REMOVE_LEAF as as, FanDirectionSchema as at, CATALOG_LANGS as b, schedulersCapability as ba, toNodeId as bc, memoizePinnedFfmpeg as bi, alertsCapability as bn, compositionItemFieldPath as bo, deviceStatusCapability as br, WELL_KNOWN_TAB_MAP as bs, LOG_LEVEL_RANK as bt, ActionError as c, resolveCoreBlockEntry as ca, parseJsonObject as cc, localDateOf as ci, UNATTRIBUTED_BUCKET_KEY as cn, DAY_MS as co, decodeVectorBase64 as cr, ReadinessTimeoutError as cs, FieldClaimSchema as ct, ActionVariableSchema as d, resolveLocationMode as da, readinessKey as dc, lockControlCapability as di, actionSourceCapability as dn, HISTORY_SLOW_MS as do, describeComposableCaps as dr, RecordNotFoundError as ds, HISTORY_ITEM_CATALOG as dt, recordsCapability as ea, isSecretMarkerLike as ec, isSameAddonId as ei, SsoBridgeClaimsSchema as en, vectorIndexDimConflictError as eo, coverCapability as er, RECORD_BATCH_MAX_BYTES as es, EMPTY_REMOTE_ASSUMED_STATE as et, AlertSchema as f, resolveMethodAuth as fa, recordSecretRef as fc, lockDoorLinkOfComposition as fi, actionWaitTotalMs as fn, HOUR_MS as fo, describeUnmet as fr, RecordTooLargeError as fs, HUB_MDNS_SERVICE_TYPE as ft, BatteryStatusSchema as g, resolveStepArgs as ga, secretTreeFromPaths as gc, mayReadLocation as gi, addonSettingsCapability as gn, cloneStatefulExpressionMemory as go, deviceManagerCapability as gr, StoredRecordKindDeclarationSchema as gs, INTERNAL_ACTION_PREFIX as gt, BaseDevice as h, resolveRunnerId as ha, scopeKey as hc, looseSchema as hi, addonPagesCapability as hn, buildFfmpegArgs as ho, deviceHistoryCapability as hr, SECRET_CLEAR as hs, IDLE_ACTION_STATUS as ht, ACTUATOR_TEMPLATE_IDS as i, replacedFieldKeys as ia, nodeIdOfScopedKey as ic, keychainCapability as ii, StorageMigrationJobSchema as in, withLocationMode as io, dataStoreProviderCapability as ir, REDACTED_SECRET as is, FanControlStatusSchema as it, CoreBlockSchema as j, snapshotCapability as ja, normalizeStepTargets as ji, buildDeviceSignatureMessage as jn, isHistoryHelper as jo, fanOutTargets as jr, createEvent as js, PREFERENCES_MAX_VALUE_BYTES as jt, ConsumableItemSchema as k, siteFor as ka, EventCategory as kc, normalizeCapStep as ki, buildCapabilityLookup as kn, integrateReading as ko, extractNestedAddonId as kr, collectSecretMarkerRefs as ks, NetworkTunnelStartedDataSchema as kt, ActionStepSchema as l, resolveCoreBlockFiles as la, parseJsonUnknown as lc, localNetworkCapability as li, UserRecordSchema as ln, DEFAULT_HISTORY_RETENTION as lo, defineExtensionSlotProvider as lr, RecordIntegrationInstances as ls, GroupCommandResultSchema as lt, BUILTIN_REMOTE_COMPONENTS as m, resolveNotificationTapAddress as ma, resolveSecretMarkers as mc, logLevelAtMost as mi, addonIdOfActionId as mn, MINUTE_MS as mo, deviceExtensionCapability as mr, RevConflictError as ms, HvacModeSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, remoteCapability as na, makeSecretMarker as nc, kebabToCamel as ni, StorageLocationModeSchema as nn, vocabActionIdFor as no, customKeyOfRole as nr, RECORD_SECRET_COLLECTION_PREFIX as ns, FAN_CAPTURE_FIELDS as nt, AGENT_MDNS_TXT_KEYS as o, resolveAppConnections as oa, normalizeNodeId as oc, legacyModeOf as oi, TemplateKindSchema as on, COMPOSER_ADDON_ID as oo, declarationOwnerNodeId as or, RUNTIME_DEFAULTS as os, FanPresetSchema as ot, AutomationStateDocSchema as p, resolveMutate as pa, resolveCapMount as pc, logDestinationCapability as pi, actionsCapability as pn, HelperMemberSchema as po, deviceCredentialsCapability as pr, RecordUniqueViolationError as ps, HUB_MDNS_TXT_KEYS as pt, DataStoreDatabaseSchema as q, unmetRequirements as qa, preconditionOf as qi, compositionSourceRefs as qn, FilterRequiredError as qo, isArrayOutputSchema as qr, isEvent as qs, STORAGE_ACCESS_FALLBACK as qt, ACTUATOR_METHODS as r, remoteLayoutComponentsCapability as ra, mapSecretLeaves as rc, keychainAdminCapability as ri, StorageLocationTypeSchema as rn, weekdayOfLocalDate as ro, customRole as rr, RECORD_SWEEP_INTERVAL_MS as rs, FIRST_LEVEL_MACRO_CLASSES as rt, ALL_CAPABILITY_DEFINITIONS as s, resolveBucketMs as sa, normalizeSecretOwner as sc, lifecycleJobSchema as si, TokenScopeSchema as sn, CompositionSchema as so, declaredSeriesKind as sr, ReadinessRegistry as ss, FieldClaimModeSchema as st, ACTION_RUN_MAX_MS as t, reducePoints as ta, isSecretRefOwnedBy as tc, isVoidInput as ti, StorageCleanupJobSchema as tn, vectorStoreCapability as to, createDeviceExtensionProvider as tr, RECORD_DELETE_BATCH as ts, EMPTY_REMOTE_CONFIG as tt, ActionTargetResolver as u, resolveHubAddressRoles as ua, parseSecretRef as uc, locationIconKey as ui, actionEffect as un, HISTORY_FAST_MS as uo, deriveBatteryPresence as ur, RecordKindDeclarationSchema as us, HISTORY_CATALOG as ut, CAMSTACK_APP_LINK_ORIGIN as v, runSteps as va, secretViewsOf as vc, mediaPlayerCapability as vi, alertEpisodeId as vn, composedDeviceStableId as vo, deviceRunsCapability as vr, UnindexedFilterError as vs, KeychainAuditEntrySchema as vt, CORE_BLOCK_ADDON_PREFIX as w, settingsStoreCapability as wa, withoutCallerStamp as wc, modeForSwitch as wi, backupCapability as wn, disarmRoseMemory as wo, evaluateCompositionField as wr, assertTransactScope as ws, MINUTES_PER_DAY as wt, COMPOSED_ITEM_FIXED_FIELDS as x, scopesAllowAddon as xa, toSecretFieldView as xc, methodRefusal as xi, appendTrace as xn, compositionSliceKey as xo, enumerateInferenceDevices as xr, asJsonObject as xs, LegacyStorageLocationDefaultSchema as xt, CAP_NAMES_WITH_STATUS as y, runtimeStatePolicyFor as ya, sleep as yc, mediaPlayerFeaturesOfRoles as yi, alertEpisodePayload as yn, compositionFeatureEnabled as yo, deviceStateCapability as yr, UnknownRecordKindError as ys, KeychainResetRecordSchema as yt, DERIVED_CAMERA_SILENCED_CAP_NAMES as z, streamQualityLabel as za, parseStreamParamsFormPatch as zi, checkTemplatePayload as zn, wattMillisecondsToKwh as zo, groupCommandsCapability as zr, expandCapMethods as zs, QuantityUnitError as zt };