@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
  let zod = require("zod");
2
2
  require("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 = zod.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 = zod.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 = zod.z.unknown();
12121
+ var ConfigSchemaPassthrough$3 = zod.z.unknown();
12088
12122
  var TargetKindSchema = zod.z.object({
12089
12123
  kind: zod.z.string(),
12090
12124
  label: zod.z.string(),
@@ -12121,7 +12155,7 @@ var TargetKindSchema = zod.z.object({
12121
12155
  * its raster path, which is the safe default for an unknown image.
12122
12156
  */
12123
12157
  iconMediaType: zod.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 = zod.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 = zod.z.object({
12151
12187
  id: zod.z.string(),
@@ -12194,21 +12230,13 @@ var notificationOutputCapability = {
12194
12230
  mode: "collection",
12195
12231
  methods: {
12196
12232
  listTargetKinds: method(zod.z.object({}), zod.z.array(TargetKindSchema)),
12197
- listTargets: method(zod.z.object({}), zod.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(zod.z.object({ targetId: zod.z.string() }), TargetSchema, { auth: "admin" }),
12205
12233
  discoverTargets: method(zod.z.object({
12206
12234
  kind: zod.z.string(),
12207
12235
  config: zod.z.record(zod.z.string(), zod.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: zod.z.string().optional()
12214
12242
  }), zod.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(zod.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: zod.z.string().optional()
12247
- }), TargetSchema, {
12248
- kind: "mutation",
12249
- auth: "admin"
12250
- }),
12251
- deleteTarget: method(zod.z.object({ targetId: zod.z.string() }), zod.z.void(), {
12252
- kind: "mutation",
12253
- auth: "admin"
12254
- }),
12255
- setTargetEnabled: method(zod.z.object({
12256
- targetId: zod.z.string(),
12257
- enabled: zod.z.boolean()
12258
- }), zod.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 = zod.z.custom();
62612
+ var ConfigSchemaPassthrough$2 = zod.z.custom();
62580
62613
  var IntegrationInstanceIdSchema = zod.z.string().min(1);
62581
62614
  var IntegrationInstanceModeSchema = zod.z.enum(["single", "multiple"]);
62582
62615
  /**
@@ -62622,7 +62655,16 @@ var IntegrationInstanceKindSchema = zod.z.object({
62622
62655
  /** Relative hub path to start an interactive account link of an instance of this kind. */
62623
62656
  connectPath: zod.z.string().min(1).optional(),
62624
62657
  /** Relative hub path to disconnect that account. */
62625
- disconnectPath: zod.z.string().min(1).optional()
62658
+ disconnectPath: zod.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: zod.z.array(zod.z.object({
62665
+ id: zod.z.string().min(1),
62666
+ placement: zod.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: zod.z.string().min(1).optional()
62730
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
62772
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
62731
62773
  listInstances: method(zod.z.void(), zod.z.array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
62732
62774
  getInstance: method(zod.z.object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
62733
62775
  /**
@@ -64013,12 +64055,12 @@ var LlmModelInfoSchema = zod.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 = zod.z.record(zod.z.string(), zod.z.unknown());
64021
- var LlmProfileSchema = zod.z.object({
64063
+ zod.z.object({
64022
64064
  id: zod.z.string(),
64023
64065
  name: zod.z.string(),
64024
64066
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -64112,8 +64154,8 @@ var LlmProviderWidgetSchema = zod.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 = zod.z.unknown();
64116
- var LlmProfileKindDescriptorSchema = zod.z.object({
64157
+ var ConfigSchemaPassthrough$1 = zod.z.unknown();
64158
+ zod.z.object({
64117
64159
  kind: LlmProfileKindSchema,
64118
64160
  label: zod.z.string(),
64119
64161
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -64121,9 +64163,9 @@ var LlmProfileKindDescriptorSchema = zod.z.object({
64121
64163
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
64122
64164
  addonId: zod.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: zod.z.string().optional(),
64272
64314
  requestId: zod.z.string()
64273
64315
  }), zod.z.void(), { kind: "mutation" }),
64274
- listProfileKinds: method(zod.z.object({}), zod.z.array(LlmProfileKindDescriptorSchema)),
64275
- listProfiles: method(zod.z.object({}), zod.z.array(LlmProfileSchema)),
64276
- upsertProfile: method(zod.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, zod.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: zod.z.string() }), { kind: "mutation" }),
66047
66064
  */
66048
66065
  logout: method(zod.z.void(), zod.z.object({ loggedOut: zod.z.literal(true) }), { kind: "mutation" }),
66049
66066
  /** Enumerate every peer the daemon currently knows about. */
66050
- listPeers: method(zod.z.void(), zod.z.object({ peers: zod.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(zod.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: zod.z.string().optional() }), zod.z.object({
66066
- ok: zod.z.boolean(),
66067
- /** Provider-side identifier resolved by the probe (tailnet
66068
- * name for Tailscale, network id for ZeroTier, etc.). */
66069
- tenant: zod.z.string().optional(),
66070
- /** Daemon binary version, when reachable. */
66071
- daemonVersion: zod.z.string().optional(),
66072
- /** Human-readable error when `ok: false`. */
66073
- error: zod.z.string().optional()
66074
- }), { kind: "mutation" })
66067
+ listPeers: method(zod.z.void(), zod.z.object({ peers: zod.z.array(MeshPeerSchema).readonly() }))
66075
66068
  }
66076
66069
  };
66077
66070
  /**
@@ -78253,77 +78246,6 @@ var oauthIntegrationCapability = {
78253
78246
  getDescriptor: method(zod.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 = zod.z.unknown();
78264
- var OidcConnectionSchema = zod.z.object({
78265
- id: zod.z.string().min(1),
78266
- displayName: zod.z.string(),
78267
- icon: zod.z.string(),
78268
- issuerUrl: zod.z.string(),
78269
- clientId: zod.z.string(),
78270
- /** Client id + secret present — never the secret value. */
78271
- configured: zod.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: zod.z.record(zod.z.string(), zod.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 = zod.z.object({
78283
- id: zod.z.string().min(1),
78284
- displayName: zod.z.string().min(1),
78285
- icon: zod.z.string().optional(),
78286
- issuerUrl: zod.z.string().optional(),
78287
- clientId: zod.z.string().optional(),
78288
- clientSecret: zod.z.union([zod.z.string(), zod.z.object({ $secretClear: zod.z.literal(true) })]).optional(),
78289
- redirectUri: zod.z.string().optional(),
78290
- scopes: zod.z.string().optional(),
78291
- usernameClaim: zod.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(zod.z.object({}), ConfigSchemaPassthrough$1, { auth: "admin" }),
78304
- listConnections: method(zod.z.object({}), zod.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(zod.z.object({
78310
- id: zod.z.string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
78311
- displayName: zod.z.string().min(1)
78312
- }), zod.z.object({ id: zod.z.string() }), {
78313
- kind: "mutation",
78314
- auth: "admin"
78315
- }),
78316
- updateConnection: method(OidcConnectionUpdateInputSchema, zod.z.object({ ok: zod.z.literal(true) }), {
78317
- kind: "mutation",
78318
- auth: "admin"
78319
- }),
78320
- deleteConnection: method(zod.z.object({ id: zod.z.string().min(1) }), zod.z.object({ ok: zod.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(zod.z.object({ token: zod.z.string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" })
87151
87073
  }
87152
87074
  };
87153
- var ProviderListEntrySchema = zod.z.discriminatedUnion("shouldSaveDiskSpace", [zod.z.object({
87154
- providerId: zod.z.string().min(1),
87155
- displayName: zod.z.string().min(1),
87156
- configSchema: zod.z.unknown(),
87157
- nodeLocal: zod.z.boolean(),
87158
- shouldSaveDiskSpace: zod.z.literal(true),
87159
- minFreePercent: zod.z.number().min(0).max(100)
87160
- }), zod.z.object({
87161
- providerId: zod.z.string().min(1),
87162
- displayName: zod.z.string().min(1),
87163
- configSchema: zod.z.unknown(),
87164
- nodeLocal: zod.z.boolean(),
87165
- shouldSaveDiskSpace: zod.z.literal(false),
87166
- minFreePercent: zod.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(zod.z.object({ type: StorageLocationTypeSchema.optional() }), zod.z.array(StorageLocationSchema).readonly()),
87267
87174
  listLocationDeclarations: method(zod.z.void(), zod.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(zod.z.object({
87290
- id: zod.z.string(),
87291
- force: zod.z.boolean().optional()
87292
- }), zod.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(zod.z.void(), zod.z.array(StorageDrainProgressSchema).readonly()),
87302
- testLocation: method(zod.z.object({ id: zod.z.string() }), zod.z.object({
87303
- ok: zod.z.boolean(),
87304
- error: zod.z.string().optional()
87305
- }), { auth: "admin" }),
87306
- listProviders: method(zod.z.void(), zod.z.array(ProviderListEntrySchema).readonly()),
87307
- testConfig: method(zod.z.object({
87308
- providerId: zod.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: zod.z.string().optional(),
87323
- config: zod.z.record(zod.z.string(), zod.z.unknown())
87324
- }), zod.z.object({
87325
- ok: zod.z.boolean(),
87326
- error: zod.z.string().optional()
87327
- }), { auth: "admin" })
87180
+ listDrainProgress: method(zod.z.void(), zod.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",
@@ -112527,6 +112225,12 @@ Object.defineProperty(exports, "STORAGE_ACCESS_FALLBACK", {
112527
112225
  return STORAGE_ACCESS_FALLBACK;
112528
112226
  }
112529
112227
  });
112228
+ Object.defineProperty(exports, "STORAGE_LOCATION_MODES", {
112229
+ enumerable: true,
112230
+ get: function() {
112231
+ return STORAGE_LOCATION_MODES;
112232
+ }
112233
+ });
112530
112234
  Object.defineProperty(exports, "STREAM_PROFILE_META", {
112531
112235
  enumerable: true,
112532
112236
  get: function() {
@@ -113709,6 +113413,12 @@ Object.defineProperty(exports, "migrationsCapability", {
113709
113413
  return migrationsCapability;
113710
113414
  }
113711
113415
  });
113416
+ Object.defineProperty(exports, "modeForSwitch", {
113417
+ enumerable: true,
113418
+ get: function() {
113419
+ return modeForSwitch;
113420
+ }
113421
+ });
113712
113422
  Object.defineProperty(exports, "modeMayWrite", {
113713
113423
  enumerable: true,
113714
113424
  get: function() {
@@ -114267,6 +113977,12 @@ Object.defineProperty(exports, "switchCapability", {
114267
113977
  return switchCapability;
114268
113978
  }
114269
113979
  });
113980
+ Object.defineProperty(exports, "switchStateOfMode", {
113981
+ enumerable: true,
113982
+ get: function() {
113983
+ return switchStateOfMode;
113984
+ }
113985
+ });
114270
113986
  Object.defineProperty(exports, "templateCapability", {
114271
113987
  enumerable: true,
114272
113988
  get: function() {