@camstack/addon-export-hap 1.2.195 → 1.2.196

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.
@@ -39,7 +39,7 @@ var __copyProps = (to, from, except, desc) => {
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-BmPm98n0.mjs
42
+ //#region ../types/dist/event-category-78tcBemo.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -160,6 +160,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
160
160
  */
161
161
  EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
162
162
  /**
163
+ * An addon is RUNNING although its installed package is below what the
164
+ * running server requires (`camstack.requires.addons` of the server, or the
165
+ * addon's own `requires.server`). Raised once per streak by the unsupported-
166
+ * addon tracker, on the hub and on agents; AlertCenter turns it into one
167
+ * operator alert per node and package. The addon is never held back for it.
168
+ *
169
+ * Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
170
+ */
171
+ EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
172
+ /**
173
+ * The package of an {@link AddonUnsupportedVersion} alert reached a supported
174
+ * version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
175
+ *
176
+ * Payload: `{ packageName, addonId, nodeId }`.
177
+ */
178
+ EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
179
+ /**
163
180
  * Monitor scheduled the next retry for a failed addon. Transient —
164
181
  * surfaced to the UI for live-updating the "next retry in Ns"
165
182
  * countdown on the Addons page row, NOT persisted as an alert.
@@ -270,7 +287,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
270
287
  EventCategory["ProcessRestarted"] = "process.restarted";
271
288
  /**
272
289
  * The SET of storage locations changed — one was created, edited, enabled,
273
- * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
290
+ * disabled or deleted through the location instances or the forced-delete action.
274
291
  *
275
292
  * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
276
293
  * it must also converge on its own periodic path, because a dropped event
@@ -6021,7 +6038,7 @@ var ZodIssueCode = {
6021
6038
  var ZodFirstPartyTypeKind;
6022
6039
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6023
6040
  //#endregion
6024
- //#region ../types/dist/sleep-D7ZKm4nb.mjs
6041
+ //#region ../types/dist/sleep-AEnTN3b4.mjs
6025
6042
  /**
6026
6043
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6027
6044
  * window to float samples (D455).
@@ -7269,17 +7286,35 @@ var RecordIntegrationInstances = class {
7269
7286
  ...kind !== void 0 ? { kind } : {}
7270
7287
  });
7271
7288
  if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
7289
+ const initial = this.hooks.initialBody(name, kind);
7290
+ const patch = this.patchOf(values ?? {});
7291
+ if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
7292
+ kind,
7293
+ body: {
7294
+ ...initial,
7295
+ ...patch
7296
+ }
7297
+ }));
7272
7298
  await this.handle.put({
7273
7299
  id: minted,
7274
- data: this.hooks.initialBody(name, kind)
7300
+ data: initial
7275
7301
  }, { ifRev: 0 });
7276
- const patch = this.patchOf(values ?? {});
7277
7302
  if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
7278
7303
  await this.hooks.onChanged?.(minted, "created");
7279
7304
  return { id: minted };
7280
7305
  };
7281
7306
  updateInstance = async ({ id, name, values }) => {
7282
7307
  const patch = this.patchOf(values);
7308
+ if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
7309
+ const stored = await this.handle.get(id);
7310
+ if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
7311
+ kind: void 0,
7312
+ body: {
7313
+ ...stored.data,
7314
+ ...patch
7315
+ }
7316
+ }));
7317
+ }
7283
7318
  if (name !== void 0) patch[this.nameField] = name;
7284
7319
  await this.handle.patch(id, patch);
7285
7320
  await this.hooks.onChanged?.(id, "updated");
@@ -10687,7 +10722,6 @@ var CAP_NAMES = Object.freeze([
10687
10722
  "notifier",
10688
10723
  "numeric-sensor",
10689
10724
  "oauth-integration",
10690
- "oidc-connections",
10691
10725
  "osd",
10692
10726
  "osd-manager",
10693
10727
  "pet-feeder",
@@ -12579,8 +12613,7 @@ Object.freeze({
12579
12613
  "device-provider": { "reloadDevice": 18e4 },
12580
12614
  "llm": {
12581
12615
  "generate": 6e5,
12582
- "generateVision": 6e5,
12583
- "testProfile": 6e5
12616
+ "generateVision": 6e5
12584
12617
  },
12585
12618
  "llm-runtime": {
12586
12619
  "complete": 6e5,
@@ -14579,17 +14612,18 @@ var IntegrationInstanceRefSchema = object({
14579
14612
  * message to what the kind supports — callers never special-case a service.
14580
14613
  *
14581
14614
  * DESIGN DECISIONS (locked):
14582
- * - Target CRUD lives on THIS cap (`upsertTarget` / `deleteTarget` /
14583
- * `setTargetEnabled`), each provider persisting via the `settings-store`
14584
- * cap. Rationale: the admin UI needs one uniform surface across the
14585
- * notifiers addon AND the HA addon; the addon-`globalSettingsSchema`-array
14586
- * alternative would fork the UI per addon and cannot host the
14587
- * discovery→adopt flow.
14588
- * - `listTargetKinds` / `listTargets` / `discoverTargets` return arrays →
14589
- * the generated cap-mount auto-`concatCollection`-fans them across every
14590
- * registered provider (notifiers addon + HA addon) so one catalog is
14591
- * routable. `send` / `testTarget` / CRUD route to ONE provider by the
14592
- * `addonId` the generated collection router extracts from the call input.
14615
+ * - A target is an INSTANCE of this function cap (epic #440, step 6): the
14616
+ * providers serve their targets as `integration-instances` records, one
14617
+ * record kind per target kind, and the admin lists, adds, edits, switches
14618
+ * and deletes them through that cap. This cap keeps what an instance cannot
14619
+ * say: the kind catalogue (`listTargetKinds`: capabilities, delivery
14620
+ * parameters, brand icon), dispatch (`send`, `testTarget`) and the form
14621
+ * helpers (`discoverTargets`, `probeTargetConfig`).
14622
+ * - `listTargetKinds` / `discoverTargets` return arrays → the generated
14623
+ * cap-mount auto-`concatCollection`-fans them across every registered
14624
+ * provider so one catalog is routable. `send` / `testTarget` /
14625
+ * `probeTargetConfig` route to ONE provider by the `addonId` the generated
14626
+ * collection router extracts from the call input.
14593
14627
  * - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
14594
14628
  * transformer) + UDS MsgPack both round-trip typed arrays — already used by
14595
14629
  * `storage` / `storage-provider` / `recording` caps over the same path. No
@@ -14834,7 +14868,7 @@ var TargetKindCapsSchema = object({
14834
14868
  * the union is large and not meant for runtime validation here; the exported
14835
14869
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
14836
14870
  */
14837
- var ConfigSchemaPassthrough$4 = unknown();
14871
+ var ConfigSchemaPassthrough$3 = unknown();
14838
14872
  var TargetKindSchema = object({
14839
14873
  kind: string(),
14840
14874
  label: string(),
@@ -14871,7 +14905,7 @@ var TargetKindSchema = object({
14871
14905
  * its raster path, which is the safe default for an unknown image.
14872
14906
  */
14873
14907
  iconMediaType: string().optional(),
14874
- configSchema: ConfigSchemaPassthrough$4,
14908
+ configSchema: ConfigSchemaPassthrough$3,
14875
14909
  /**
14876
14910
  * The config keys that decide WHERE this kind's secrets are sent (server,
14877
14911
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -14893,9 +14927,11 @@ var TargetKindSchema = object({
14893
14927
  caps: TargetKindCapsSchema
14894
14928
  });
14895
14929
  /**
14896
- * A persisted target. `config` holds secrets; providers REDACT secret fields
14897
- * (return a presence marker only) when serving `listTargets` — never
14898
- * round-trip a stored secret to the UI.
14930
+ * A target as a provider's own code sees it (the notification-center bridge, the
14931
+ * send path): the flat record body split into the name, the switch and the
14932
+ * kind's fields. `config` holds secrets; a reader that serves it to a client
14933
+ * REDACTS secret fields (a presence marker only) — never round-trip a stored
14934
+ * secret to the UI.
14899
14935
  */
14900
14936
  var TargetSchema = object({
14901
14937
  id: string(),
@@ -14938,13 +14974,13 @@ var ProbeTargetConfigResultSchema = object({
14938
14974
  stateInstance: string().optional(),
14939
14975
  error: string().optional()
14940
14976
  });
14941
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
14977
+ method(object({}), array(TargetKindSchema)), method(object({
14942
14978
  kind: string(),
14943
14979
  config: record(string(), unknown()).optional(),
14944
14980
  /**
14945
14981
  * When editing / duplicating, the blank password field never round-trips
14946
14982
  * the stored token. Pass the source target id so the provider can restore
14947
- * secrets server-side before dialling (same merge as upsert).
14983
+ * secrets server-side before dialling.
14948
14984
  */
14949
14985
  targetId: string().optional()
14950
14986
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
@@ -14967,27 +15003,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
14967
15003
  }), TestResultSchema, {
14968
15004
  kind: "mutation",
14969
15005
  auth: "admin"
14970
- }), method(object({
14971
- target: TargetSchema,
14972
- /**
14973
- * Duplicate flow: create a NEW target id while copying secrets from an
14974
- * existing row. The UI never holds the stored token; blank / redacted
14975
- * password fields are restored from this source (D634 still applies if
14976
- * destinations diverge without a re-typed secret).
14977
- */
14978
- cloneSecretsFrom: string().optional()
14979
- }), TargetSchema, {
14980
- kind: "mutation",
14981
- auth: "admin"
14982
- }), method(object({ targetId: string() }), _void(), {
14983
- kind: "mutation",
14984
- auth: "admin"
14985
- }), method(object({
14986
- targetId: string(),
14987
- enabled: boolean()
14988
- }), _void(), {
14989
- kind: "mutation",
14990
- auth: "admin"
14991
15006
  });
14992
15007
  looseObject({
14993
15008
  name: string().min(1),
@@ -23479,7 +23494,6 @@ var SYSTEM_CAP_VOCABULARY = {
23479
23494
  "notification-output": system("notification delivery — reached through notifier devices and rules"),
23480
23495
  "notification-rules": system("notification rules — authored on their own page"),
23481
23496
  "oauth-integration": system(IDENTITY),
23482
- "oidc-connections": system(IDENTITY),
23483
23497
  "osd-manager": system(PIPELINE),
23484
23498
  "pipeline-executor": system(PIPELINE),
23485
23499
  "pipeline-orchestrator": system(PIPELINE),
@@ -55381,7 +55395,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
55381
55395
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
55382
55396
  * clears it.
55383
55397
  */
55384
- var ConfigSchemaPassthrough$3 = custom();
55398
+ var ConfigSchemaPassthrough$2 = custom();
55385
55399
  var IntegrationInstanceIdSchema = string().min(1);
55386
55400
  var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
55387
55401
  /**
@@ -55427,7 +55441,16 @@ var IntegrationInstanceKindSchema = object({
55427
55441
  /** Relative hub path to start an interactive account link of an instance of this kind. */
55428
55442
  connectPath: string().min(1).optional(),
55429
55443
  /** Relative hub path to disconnect that account. */
55430
- disconnectPath: string().min(1).optional()
55444
+ disconnectPath: string().min(1).optional(),
55445
+ /**
55446
+ * Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
55447
+ * GENERIC widget id the client maps to a component; a client that knows none of them shows none.
55448
+ * `connection` widgets write connection values, `model` widgets own the model choice.
55449
+ */
55450
+ widgets: array(object({
55451
+ id: string().min(1),
55452
+ placement: _enum(["connection", "model"])
55453
+ })).optional()
55431
55454
  });
55432
55455
  /**
55433
55456
  * How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
@@ -55532,7 +55555,7 @@ var integrationInstancesCapability = {
55532
55555
  id: IntegrationInstanceIdSchema.nullable(),
55533
55556
  /** The kind of the create form (`id: null`) of a provider with several. */
55534
55557
  kind: string().min(1).optional()
55535
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
55558
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
55536
55559
  listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
55537
55560
  getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
55538
55561
  /**
@@ -56483,12 +56506,12 @@ var LlmModelInfoSchema = object({
56483
56506
  });
56484
56507
  /**
56485
56508
  * The provider-specific part of a profile, validated by the provider that owns
56486
- * the kind (`upsertProfile` refuses what it does not accept). A field its
56509
+ * the kind (saving an instance refuses what it does not accept). A field its
56487
56510
  * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
56488
56511
  * keychain, never in the row, and reads back as the redaction marker.
56489
56512
  */
56490
56513
  var LlmProviderConfigSchema = record(string(), unknown());
56491
- var LlmProfileSchema = object({
56514
+ object({
56492
56515
  id: string(),
56493
56516
  name: string(),
56494
56517
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -56582,8 +56605,8 @@ var LlmProviderWidgetSchema = object({
56582
56605
  /** ConfigUISchema tree passed through untyped on the wire (the
56583
56606
  * notification-output `ConfigSchemaPassthrough` precedent at
56584
56607
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
56585
- var ConfigSchemaPassthrough$2 = unknown();
56586
- var LlmProfileKindDescriptorSchema = object({
56608
+ var ConfigSchemaPassthrough$1 = unknown();
56609
+ object({
56587
56610
  kind: LlmProfileKindSchema,
56588
56611
  label: string(),
56589
56612
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -56591,9 +56614,9 @@ var LlmProfileKindDescriptorSchema = object({
56591
56614
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
56592
56615
  addonId: string(),
56593
56616
  /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
56594
- connectionSchema: ConfigSchemaPassthrough$2,
56617
+ connectionSchema: ConfigSchemaPassthrough$1,
56595
56618
  /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
56596
- advancedSchema: ConfigSchemaPassthrough$2.optional(),
56619
+ advancedSchema: ConfigSchemaPassthrough$1.optional(),
56597
56620
  /** The kind's defaults; a model from `listModels` may override any of them. */
56598
56621
  features: LlmModelFeaturesSchema,
56599
56622
  /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
@@ -56722,20 +56745,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
56722
56745
  }), method(object({
56723
56746
  addonId: string().optional(),
56724
56747
  requestId: string()
56725
- }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
56726
- kind: "mutation",
56727
- auth: "admin"
56728
- }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
56729
- kind: "mutation",
56730
- auth: "admin"
56731
- }), method(ProfileRefInputSchema, _void(), {
56732
- kind: "mutation",
56733
- auth: "admin"
56734
- }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
56735
- kind: "mutation",
56736
- auth: "admin",
56737
- timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
56738
- }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
56748
+ }), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
56739
56749
  kind: "mutation",
56740
56750
  auth: "admin"
56741
56751
  }), method(object({}), array(LlmDefaultSchema)), method(object({
@@ -57730,20 +57740,7 @@ method(_void(), MeshStatusSchema), method(object({
57730
57740
  /** Optional hostname override the host should advertise once joined. */
57731
57741
  hostname: string().optional() }), object({
57732
57742
  /** Authentication URL the operator should open in a browser. */
57733
- loginUrl: string() }), { kind: "mutation" }), method(_void(), object({ left: literal(true) }), { kind: "mutation" }), method(_void(), object({ loggedOut: literal(true) }), { kind: "mutation" }), method(_void(), object({ peers: array(MeshPeerSchema).readonly() })), method(object({
57734
- /** Optional auth key — when provided, probes the key validity
57735
- * against the provider's API. Omit when already joined to
57736
- * just ping the daemon. */
57737
- authKey: string().optional() }), object({
57738
- ok: boolean(),
57739
- /** Provider-side identifier resolved by the probe (tailnet
57740
- * name for Tailscale, network id for ZeroTier, etc.). */
57741
- tenant: string().optional(),
57742
- /** Daemon binary version, when reachable. */
57743
- daemonVersion: string().optional(),
57744
- /** Human-readable error when `ok: false`. */
57745
- error: string().optional()
57746
- }), { kind: "mutation" });
57743
+ loginUrl: string() }), { kind: "mutation" }), method(_void(), object({ left: literal(true) }), { kind: "mutation" }), method(_void(), object({ loggedOut: literal(true) }), { kind: "mutation" }), method(_void(), object({ peers: array(MeshPeerSchema).readonly() }));
57747
57744
  object({
57748
57745
  value: number().nullable().meta(readingMeta("device", { label: "Total" })),
57749
57746
  lastFetchedAt: number()
@@ -67401,61 +67398,6 @@ var OauthIntegrationDescriptorSchema = object({
67401
67398
  });
67402
67399
  method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
67403
67400
  /**
67404
- * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
67405
- *
67406
- * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
67407
- * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
67408
- * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
67409
- * immutable after create.
67410
- */
67411
- var ConfigSchemaPassthrough$1 = unknown();
67412
- var OidcConnectionSchema = object({
67413
- id: string().min(1),
67414
- displayName: string(),
67415
- icon: string(),
67416
- issuerUrl: string(),
67417
- clientId: string(),
67418
- /** Client id + secret present — never the secret value. */
67419
- configured: boolean(),
67420
- /**
67421
- * Values for the connection form schema. `clientSecret` is a keychain
67422
- * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
67423
- */
67424
- formValues: record(string(), unknown()).optional()
67425
- });
67426
- /**
67427
- * Patch one connection. Omitted or empty `clientSecret` keeps the stored
67428
- * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
67429
- */
67430
- var OidcConnectionUpdateInputSchema = object({
67431
- id: string().min(1),
67432
- displayName: string().min(1),
67433
- icon: string().optional(),
67434
- issuerUrl: string().optional(),
67435
- clientId: string().optional(),
67436
- clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
67437
- redirectUri: string().optional(),
67438
- scopes: string().optional(),
67439
- usernameClaim: _enum([
67440
- "preferred_username",
67441
- "email",
67442
- "sub"
67443
- ]).optional()
67444
- });
67445
- method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
67446
- id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
67447
- displayName: string().min(1)
67448
- }), object({ id: string() }), {
67449
- kind: "mutation",
67450
- auth: "admin"
67451
- }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
67452
- kind: "mutation",
67453
- auth: "admin"
67454
- }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
67455
- kind: "mutation",
67456
- auth: "admin"
67457
- });
67458
- /**
67459
67401
  * Generic on-screen-display (video overlay) cap. Each camera exposes
67460
67402
  * a firmware-defined list of overlays (channel name, timestamp,
67461
67403
  * watermark, logo, …); the cap models them as a homogeneous array of
@@ -73830,21 +73772,6 @@ method(object({
73830
73772
  */
73831
73773
  ttlSec: union([number().int().positive(), literal("never")]).optional()
73832
73774
  }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
73833
- var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
73834
- providerId: string().min(1),
73835
- displayName: string().min(1),
73836
- configSchema: unknown(),
73837
- nodeLocal: boolean(),
73838
- shouldSaveDiskSpace: literal(true),
73839
- minFreePercent: number().min(0).max(100)
73840
- }), object({
73841
- providerId: string().min(1),
73842
- displayName: string().min(1),
73843
- configSchema: unknown(),
73844
- nodeLocal: boolean(),
73845
- shouldSaveDiskSpace: literal(false),
73846
- minFreePercent: literal(null)
73847
- })]);
73848
73775
  method(object({
73849
73776
  location: StorageLocationRefSchema,
73850
73777
  relativePath: string()
@@ -73906,42 +73833,7 @@ method(object({
73906
73833
  }), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
73907
73834
  kind: "mutation",
73908
73835
  auth: "admin"
73909
- }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
73910
- createdAt: true,
73911
- updatedAt: true
73912
- }), StorageLocationSchema, {
73913
- kind: "mutation",
73914
- auth: "admin"
73915
- }), method(object({
73916
- id: string(),
73917
- force: boolean().optional()
73918
- }), _void(), {
73919
- kind: "mutation",
73920
- auth: "admin"
73921
- }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
73922
- ok: boolean(),
73923
- error: string().optional()
73924
- }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
73925
- providerId: string(),
73926
- /**
73927
- * The location this config is an UNSAVED edit of, when there is one.
73928
- *
73929
- * `listLocations` replaces every declared secret with the redaction
73930
- * sentinel, so the edit modal's form state holds the sentinel for any
73931
- * credential the operator did not retype — and posting that here
73932
- * without a way to resolve it makes the provider try to authenticate
73933
- * as `__camstack_redacted__` and report the operator's own working
73934
- * password as wrong. Given this id, the orchestrator restores each
73935
- * sentinel from the stored config (same rule as `upsertLocation`)
73936
- * before dispatching. Omitted by the "Add location" wizard, where
73937
- * every value was typed just now and nothing is stored yet.
73938
- */
73939
- locationId: string().optional(),
73940
- config: record(string(), unknown())
73941
- }), object({
73942
- ok: boolean(),
73943
- error: string().optional()
73944
- }), { auth: "admin" });
73836
+ }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
73945
73837
  /** One table of the settings database. */
73946
73838
  var StorageTableSchema = object({
73947
73839
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -81546,13 +81438,6 @@ Object.freeze({
81546
81438
  access: "delete",
81547
81439
  role: "admin"
81548
81440
  },
81549
- "llm.deleteProfile": {
81550
- capName: "llm",
81551
- capScope: "system",
81552
- addonId: null,
81553
- access: "delete",
81554
- role: "admin"
81555
- },
81556
81441
  "llm.generate": {
81557
81442
  capName: "llm",
81558
81443
  capScope: "system",
@@ -81616,20 +81501,6 @@ Object.freeze({
81616
81501
  access: "view",
81617
81502
  role: "admin"
81618
81503
  },
81619
- "llm.listProfileKinds": {
81620
- capName: "llm",
81621
- capScope: "system",
81622
- addonId: null,
81623
- access: "view",
81624
- role: "admin"
81625
- },
81626
- "llm.listProfiles": {
81627
- capName: "llm",
81628
- capScope: "system",
81629
- addonId: null,
81630
- access: "view",
81631
- role: "admin"
81632
- },
81633
81504
  "llm.listRuntimeNodes": {
81634
81505
  capName: "llm",
81635
81506
  capScope: "system",
@@ -81637,13 +81508,6 @@ Object.freeze({
81637
81508
  access: "view",
81638
81509
  role: "admin"
81639
81510
  },
81640
- "llm.migrateRawSecrets": {
81641
- capName: "llm",
81642
- capScope: "system",
81643
- addonId: null,
81644
- access: "create",
81645
- role: "admin"
81646
- },
81647
81511
  "llm.resolveModelRef": {
81648
81512
  capName: "llm",
81649
81513
  capScope: "system",
@@ -81672,20 +81536,6 @@ Object.freeze({
81672
81536
  access: "create",
81673
81537
  role: "admin"
81674
81538
  },
81675
- "llm.testProfile": {
81676
- capName: "llm",
81677
- capScope: "system",
81678
- addonId: null,
81679
- access: "create",
81680
- role: "admin"
81681
- },
81682
- "llm.upsertProfile": {
81683
- capName: "llm",
81684
- capScope: "system",
81685
- addonId: null,
81686
- access: "create",
81687
- role: "admin"
81688
- },
81689
81539
  "llmRuntime.appleAvailability": {
81690
81540
  capName: "llm-runtime",
81691
81541
  capScope: "system",
@@ -82190,13 +82040,6 @@ Object.freeze({
82190
82040
  access: "create",
82191
82041
  role: "admin"
82192
82042
  },
82193
- "meshNetwork.testConnection": {
82194
- capName: "mesh-network",
82195
- capScope: "system",
82196
- addonId: null,
82197
- access: "create",
82198
- role: "admin"
82199
- },
82200
82043
  "meter.getStatus": {
82201
82044
  capName: "meter",
82202
82045
  capScope: "device",
@@ -82855,13 +82698,6 @@ Object.freeze({
82855
82698
  access: "create",
82856
82699
  role: "admin"
82857
82700
  },
82858
- "notificationOutput.deleteTarget": {
82859
- capName: "notification-output",
82860
- capScope: "system",
82861
- addonId: null,
82862
- access: "delete",
82863
- role: "admin"
82864
- },
82865
82701
  "notificationOutput.discoverTargets": {
82866
82702
  capName: "notification-output",
82867
82703
  capScope: "system",
@@ -82869,13 +82705,6 @@ Object.freeze({
82869
82705
  access: "view",
82870
82706
  role: "admin"
82871
82707
  },
82872
- "notificationOutput.getTarget": {
82873
- capName: "notification-output",
82874
- capScope: "system",
82875
- addonId: null,
82876
- access: "view",
82877
- role: "admin"
82878
- },
82879
82708
  "notificationOutput.listTargetKinds": {
82880
82709
  capName: "notification-output",
82881
82710
  capScope: "system",
@@ -82883,13 +82712,6 @@ Object.freeze({
82883
82712
  access: "view",
82884
82713
  role: "admin"
82885
82714
  },
82886
- "notificationOutput.listTargets": {
82887
- capName: "notification-output",
82888
- capScope: "system",
82889
- addonId: null,
82890
- access: "view",
82891
- role: "admin"
82892
- },
82893
82715
  "notificationOutput.probeTargetConfig": {
82894
82716
  capName: "notification-output",
82895
82717
  capScope: "system",
@@ -82904,13 +82726,6 @@ Object.freeze({
82904
82726
  access: "create",
82905
82727
  role: "admin"
82906
82728
  },
82907
- "notificationOutput.setTargetEnabled": {
82908
- capName: "notification-output",
82909
- capScope: "system",
82910
- addonId: null,
82911
- access: "create",
82912
- role: "admin"
82913
- },
82914
82729
  "notificationOutput.testTarget": {
82915
82730
  capName: "notification-output",
82916
82731
  capScope: "system",
@@ -82918,13 +82733,6 @@ Object.freeze({
82918
82733
  access: "create",
82919
82734
  role: "admin"
82920
82735
  },
82921
- "notificationOutput.upsertTarget": {
82922
- capName: "notification-output",
82923
- capScope: "system",
82924
- addonId: null,
82925
- access: "create",
82926
- role: "admin"
82927
- },
82928
82736
  "notificationRules.activateAlarmProfile": {
82929
82737
  capName: "notification-rules",
82930
82738
  capScope: "system",
@@ -83184,41 +82992,6 @@ Object.freeze({
83184
82992
  access: "view",
83185
82993
  role: "admin"
83186
82994
  },
83187
- "oidcConnections.connectionFormSchema": {
83188
- capName: "oidc-connections",
83189
- capScope: "system",
83190
- addonId: null,
83191
- access: "view",
83192
- role: "admin"
83193
- },
83194
- "oidcConnections.createConnection": {
83195
- capName: "oidc-connections",
83196
- capScope: "system",
83197
- addonId: null,
83198
- access: "create",
83199
- role: "admin"
83200
- },
83201
- "oidcConnections.deleteConnection": {
83202
- capName: "oidc-connections",
83203
- capScope: "system",
83204
- addonId: null,
83205
- access: "delete",
83206
- role: "admin"
83207
- },
83208
- "oidcConnections.listConnections": {
83209
- capName: "oidc-connections",
83210
- capScope: "system",
83211
- addonId: null,
83212
- access: "view",
83213
- role: "admin"
83214
- },
83215
- "oidcConnections.updateConnection": {
83216
- capName: "oidc-connections",
83217
- capScope: "system",
83218
- addonId: null,
83219
- access: "create",
83220
- role: "admin"
83221
- },
83222
82995
  "osd.getStatus": {
83223
82996
  capName: "osd",
83224
82997
  capScope: "device",
@@ -86250,13 +86023,6 @@ Object.freeze({
86250
86023
  access: "delete",
86251
86024
  role: "admin"
86252
86025
  },
86253
- "storage.deleteLocation": {
86254
- capName: "storage",
86255
- capScope: "system",
86256
- addonId: null,
86257
- access: "delete",
86258
- role: "admin"
86259
- },
86260
86026
  "storage.endDownload": {
86261
86027
  capName: "storage",
86262
86028
  capScope: "system",
@@ -86313,13 +86079,6 @@ Object.freeze({
86313
86079
  access: "view",
86314
86080
  role: "admin"
86315
86081
  },
86316
- "storage.listProviders": {
86317
- capName: "storage",
86318
- capScope: "system",
86319
- addonId: null,
86320
- access: "view",
86321
- role: "admin"
86322
- },
86323
86082
  "storage.read": {
86324
86083
  capName: "storage",
86325
86084
  capScope: "system",
@@ -86341,27 +86100,6 @@ Object.freeze({
86341
86100
  access: "view",
86342
86101
  role: "admin"
86343
86102
  },
86344
- "storage.testConfig": {
86345
- capName: "storage",
86346
- capScope: "system",
86347
- addonId: null,
86348
- access: "view",
86349
- role: "admin"
86350
- },
86351
- "storage.testLocation": {
86352
- capName: "storage",
86353
- capScope: "system",
86354
- addonId: null,
86355
- access: "view",
86356
- role: "admin"
86357
- },
86358
- "storage.upsertLocation": {
86359
- capName: "storage",
86360
- capScope: "system",
86361
- addonId: null,
86362
- access: "create",
86363
- role: "admin"
86364
- },
86365
86103
  "storage.write": {
86366
86104
  capName: "storage",
86367
86105
  capScope: "system",