@camstack/addon-export-alexa 1.2.186 → 1.2.187

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.
@@ -5,7 +5,7 @@ import "node:fs";
5
5
  import "node:path";
6
6
  import "node:child_process";
7
7
  import "node:zlib";
8
- //#region ../types/dist/event-category-BmPm98n0.mjs
8
+ //#region ../types/dist/event-category-78tcBemo.mjs
9
9
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
10
10
  EventCategory["SystemBoot"] = "system.boot";
11
11
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -126,6 +126,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
126
126
  */
127
127
  EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
128
128
  /**
129
+ * An addon is RUNNING although its installed package is below what the
130
+ * running server requires (`camstack.requires.addons` of the server, or the
131
+ * addon's own `requires.server`). Raised once per streak by the unsupported-
132
+ * addon tracker, on the hub and on agents; AlertCenter turns it into one
133
+ * operator alert per node and package. The addon is never held back for it.
134
+ *
135
+ * Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
136
+ */
137
+ EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
138
+ /**
139
+ * The package of an {@link AddonUnsupportedVersion} alert reached a supported
140
+ * version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
141
+ *
142
+ * Payload: `{ packageName, addonId, nodeId }`.
143
+ */
144
+ EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
145
+ /**
129
146
  * Monitor scheduled the next retry for a failed addon. Transient —
130
147
  * surfaced to the UI for live-updating the "next retry in Ns"
131
148
  * countdown on the Addons page row, NOT persisted as an alert.
@@ -236,7 +253,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
236
253
  EventCategory["ProcessRestarted"] = "process.restarted";
237
254
  /**
238
255
  * The SET of storage locations changed — one was created, edited, enabled,
239
- * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
256
+ * disabled or deleted through the location instances or the forced-delete action.
240
257
  *
241
258
  * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
242
259
  * it must also converge on its own periodic path, because a dropped event
@@ -5987,7 +6004,7 @@ var ZodIssueCode = {
5987
6004
  var ZodFirstPartyTypeKind;
5988
6005
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5989
6006
  //#endregion
5990
- //#region ../types/dist/sleep-D7ZKm4nb.mjs
6007
+ //#region ../types/dist/sleep-AEnTN3b4.mjs
5991
6008
  /**
5992
6009
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5993
6010
  * window to float samples (D455).
@@ -7235,17 +7252,35 @@ var RecordIntegrationInstances = class {
7235
7252
  ...kind !== void 0 ? { kind } : {}
7236
7253
  });
7237
7254
  if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
7255
+ const initial = this.hooks.initialBody(name, kind);
7256
+ const patch = this.patchOf(values ?? {});
7257
+ if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
7258
+ kind,
7259
+ body: {
7260
+ ...initial,
7261
+ ...patch
7262
+ }
7263
+ }));
7238
7264
  await this.handle.put({
7239
7265
  id: minted,
7240
- data: this.hooks.initialBody(name, kind)
7266
+ data: initial
7241
7267
  }, { ifRev: 0 });
7242
- const patch = this.patchOf(values ?? {});
7243
7268
  if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
7244
7269
  await this.hooks.onChanged?.(minted, "created");
7245
7270
  return { id: minted };
7246
7271
  };
7247
7272
  updateInstance = async ({ id, name, values }) => {
7248
7273
  const patch = this.patchOf(values);
7274
+ if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
7275
+ const stored = await this.handle.get(id);
7276
+ if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
7277
+ kind: void 0,
7278
+ body: {
7279
+ ...stored.data,
7280
+ ...patch
7281
+ }
7282
+ }));
7283
+ }
7249
7284
  if (name !== void 0) patch[this.nameField] = name;
7250
7285
  await this.handle.patch(id, patch);
7251
7286
  await this.hooks.onChanged?.(id, "updated");
@@ -10594,7 +10629,6 @@ var CAP_NAMES = Object.freeze([
10594
10629
  "notifier",
10595
10630
  "numeric-sensor",
10596
10631
  "oauth-integration",
10597
- "oidc-connections",
10598
10632
  "osd",
10599
10633
  "osd-manager",
10600
10634
  "pet-feeder",
@@ -12486,8 +12520,7 @@ Object.freeze({
12486
12520
  "device-provider": { "reloadDevice": 18e4 },
12487
12521
  "llm": {
12488
12522
  "generate": 6e5,
12489
- "generateVision": 6e5,
12490
- "testProfile": 6e5
12523
+ "generateVision": 6e5
12491
12524
  },
12492
12525
  "llm-runtime": {
12493
12526
  "complete": 6e5,
@@ -14007,17 +14040,18 @@ function buildCapturingReply(envelope) {
14007
14040
  * message to what the kind supports — callers never special-case a service.
14008
14041
  *
14009
14042
  * DESIGN DECISIONS (locked):
14010
- * - Target CRUD lives on THIS cap (`upsertTarget` / `deleteTarget` /
14011
- * `setTargetEnabled`), each provider persisting via the `settings-store`
14012
- * cap. Rationale: the admin UI needs one uniform surface across the
14013
- * notifiers addon AND the HA addon; the addon-`globalSettingsSchema`-array
14014
- * alternative would fork the UI per addon and cannot host the
14015
- * discovery→adopt flow.
14016
- * - `listTargetKinds` / `listTargets` / `discoverTargets` return arrays →
14017
- * the generated cap-mount auto-`concatCollection`-fans them across every
14018
- * registered provider (notifiers addon + HA addon) so one catalog is
14019
- * routable. `send` / `testTarget` / CRUD route to ONE provider by the
14020
- * `addonId` the generated collection router extracts from the call input.
14043
+ * - A target is an INSTANCE of this function cap (epic #440, step 6): the
14044
+ * providers serve their targets as `integration-instances` records, one
14045
+ * record kind per target kind, and the admin lists, adds, edits, switches
14046
+ * and deletes them through that cap. This cap keeps what an instance cannot
14047
+ * say: the kind catalogue (`listTargetKinds`: capabilities, delivery
14048
+ * parameters, brand icon), dispatch (`send`, `testTarget`) and the form
14049
+ * helpers (`discoverTargets`, `probeTargetConfig`).
14050
+ * - `listTargetKinds` / `discoverTargets` return arrays → the generated
14051
+ * cap-mount auto-`concatCollection`-fans them across every registered
14052
+ * provider so one catalog is routable. `send` / `testTarget` /
14053
+ * `probeTargetConfig` route to ONE provider by the `addonId` the generated
14054
+ * collection router extracts from the call input.
14021
14055
  * - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
14022
14056
  * transformer) + UDS MsgPack both round-trip typed arrays — already used by
14023
14057
  * `storage` / `storage-provider` / `recording` caps over the same path. No
@@ -14262,7 +14296,7 @@ var TargetKindCapsSchema = object({
14262
14296
  * the union is large and not meant for runtime validation here; the exported
14263
14297
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
14264
14298
  */
14265
- var ConfigSchemaPassthrough$4 = unknown();
14299
+ var ConfigSchemaPassthrough$3 = unknown();
14266
14300
  var TargetKindSchema = object({
14267
14301
  kind: string(),
14268
14302
  label: string(),
@@ -14299,7 +14333,7 @@ var TargetKindSchema = object({
14299
14333
  * its raster path, which is the safe default for an unknown image.
14300
14334
  */
14301
14335
  iconMediaType: string().optional(),
14302
- configSchema: ConfigSchemaPassthrough$4,
14336
+ configSchema: ConfigSchemaPassthrough$3,
14303
14337
  /**
14304
14338
  * The config keys that decide WHERE this kind's secrets are sent (server,
14305
14339
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -14321,9 +14355,11 @@ var TargetKindSchema = object({
14321
14355
  caps: TargetKindCapsSchema
14322
14356
  });
14323
14357
  /**
14324
- * A persisted target. `config` holds secrets; providers REDACT secret fields
14325
- * (return a presence marker only) when serving `listTargets` — never
14326
- * round-trip a stored secret to the UI.
14358
+ * A target as a provider's own code sees it (the notification-center bridge, the
14359
+ * send path): the flat record body split into the name, the switch and the
14360
+ * kind's fields. `config` holds secrets; a reader that serves it to a client
14361
+ * REDACTS secret fields (a presence marker only) — never round-trip a stored
14362
+ * secret to the UI.
14327
14363
  */
14328
14364
  var TargetSchema = object({
14329
14365
  id: string(),
@@ -14366,13 +14402,13 @@ var ProbeTargetConfigResultSchema = object({
14366
14402
  stateInstance: string().optional(),
14367
14403
  error: string().optional()
14368
14404
  });
14369
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
14405
+ method(object({}), array(TargetKindSchema)), method(object({
14370
14406
  kind: string(),
14371
14407
  config: record(string(), unknown()).optional(),
14372
14408
  /**
14373
14409
  * When editing / duplicating, the blank password field never round-trips
14374
14410
  * the stored token. Pass the source target id so the provider can restore
14375
- * secrets server-side before dialling (same merge as upsert).
14411
+ * secrets server-side before dialling.
14376
14412
  */
14377
14413
  targetId: string().optional()
14378
14414
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
@@ -14395,27 +14431,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
14395
14431
  }), TestResultSchema, {
14396
14432
  kind: "mutation",
14397
14433
  auth: "admin"
14398
- }), method(object({
14399
- target: TargetSchema,
14400
- /**
14401
- * Duplicate flow: create a NEW target id while copying secrets from an
14402
- * existing row. The UI never holds the stored token; blank / redacted
14403
- * password fields are restored from this source (D634 still applies if
14404
- * destinations diverge without a re-typed secret).
14405
- */
14406
- cloneSecretsFrom: string().optional()
14407
- }), TargetSchema, {
14408
- kind: "mutation",
14409
- auth: "admin"
14410
- }), method(object({ targetId: string() }), _void(), {
14411
- kind: "mutation",
14412
- auth: "admin"
14413
- }), method(object({
14414
- targetId: string(),
14415
- enabled: boolean()
14416
- }), _void(), {
14417
- kind: "mutation",
14418
- auth: "admin"
14419
14434
  });
14420
14435
  looseObject({
14421
14436
  name: string().min(1),
@@ -22853,7 +22868,6 @@ var SYSTEM_CAP_VOCABULARY = {
22853
22868
  "notification-output": system("notification delivery — reached through notifier devices and rules"),
22854
22869
  "notification-rules": system("notification rules — authored on their own page"),
22855
22870
  "oauth-integration": system(IDENTITY),
22856
- "oidc-connections": system(IDENTITY),
22857
22871
  "osd-manager": system(PIPELINE),
22858
22872
  "pipeline-executor": system(PIPELINE),
22859
22873
  "pipeline-orchestrator": system(PIPELINE),
@@ -54714,7 +54728,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
54714
54728
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
54715
54729
  * clears it.
54716
54730
  */
54717
- var ConfigSchemaPassthrough$3 = custom();
54731
+ var ConfigSchemaPassthrough$2 = custom();
54718
54732
  var IntegrationInstanceIdSchema = string().min(1);
54719
54733
  var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
54720
54734
  /**
@@ -54760,7 +54774,16 @@ var IntegrationInstanceKindSchema = object({
54760
54774
  /** Relative hub path to start an interactive account link of an instance of this kind. */
54761
54775
  connectPath: string().min(1).optional(),
54762
54776
  /** Relative hub path to disconnect that account. */
54763
- disconnectPath: string().min(1).optional()
54777
+ disconnectPath: string().min(1).optional(),
54778
+ /**
54779
+ * Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
54780
+ * GENERIC widget id the client maps to a component; a client that knows none of them shows none.
54781
+ * `connection` widgets write connection values, `model` widgets own the model choice.
54782
+ */
54783
+ widgets: array(object({
54784
+ id: string().min(1),
54785
+ placement: _enum(["connection", "model"])
54786
+ })).optional()
54764
54787
  });
54765
54788
  /**
54766
54789
  * How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
@@ -54865,7 +54888,7 @@ var integrationInstancesCapability = {
54865
54888
  id: IntegrationInstanceIdSchema.nullable(),
54866
54889
  /** The kind of the create form (`id: null`) of a provider with several. */
54867
54890
  kind: string().min(1).optional()
54868
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
54891
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
54869
54892
  listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
54870
54893
  getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
54871
54894
  /**
@@ -55816,12 +55839,12 @@ var LlmModelInfoSchema = object({
55816
55839
  });
55817
55840
  /**
55818
55841
  * The provider-specific part of a profile, validated by the provider that owns
55819
- * the kind (`upsertProfile` refuses what it does not accept). A field its
55842
+ * the kind (saving an instance refuses what it does not accept). A field its
55820
55843
  * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
55821
55844
  * keychain, never in the row, and reads back as the redaction marker.
55822
55845
  */
55823
55846
  var LlmProviderConfigSchema = record(string(), unknown());
55824
- var LlmProfileSchema = object({
55847
+ object({
55825
55848
  id: string(),
55826
55849
  name: string(),
55827
55850
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -55915,8 +55938,8 @@ var LlmProviderWidgetSchema = object({
55915
55938
  /** ConfigUISchema tree passed through untyped on the wire (the
55916
55939
  * notification-output `ConfigSchemaPassthrough` precedent at
55917
55940
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
55918
- var ConfigSchemaPassthrough$2 = unknown();
55919
- var LlmProfileKindDescriptorSchema = object({
55941
+ var ConfigSchemaPassthrough$1 = unknown();
55942
+ object({
55920
55943
  kind: LlmProfileKindSchema,
55921
55944
  label: string(),
55922
55945
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -55924,9 +55947,9 @@ var LlmProfileKindDescriptorSchema = object({
55924
55947
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
55925
55948
  addonId: string(),
55926
55949
  /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
55927
- connectionSchema: ConfigSchemaPassthrough$2,
55950
+ connectionSchema: ConfigSchemaPassthrough$1,
55928
55951
  /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
55929
- advancedSchema: ConfigSchemaPassthrough$2.optional(),
55952
+ advancedSchema: ConfigSchemaPassthrough$1.optional(),
55930
55953
  /** The kind's defaults; a model from `listModels` may override any of them. */
55931
55954
  features: LlmModelFeaturesSchema,
55932
55955
  /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
@@ -56055,20 +56078,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
56055
56078
  }), method(object({
56056
56079
  addonId: string().optional(),
56057
56080
  requestId: string()
56058
- }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
56059
- kind: "mutation",
56060
- auth: "admin"
56061
- }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
56062
- kind: "mutation",
56063
- auth: "admin"
56064
- }), method(ProfileRefInputSchema, _void(), {
56065
- kind: "mutation",
56066
- auth: "admin"
56067
- }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
56068
- kind: "mutation",
56069
- auth: "admin",
56070
- timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
56071
- }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
56081
+ }), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
56072
56082
  kind: "mutation",
56073
56083
  auth: "admin"
56074
56084
  }), method(object({}), array(LlmDefaultSchema)), method(object({
@@ -57063,20 +57073,7 @@ method(_void(), MeshStatusSchema), method(object({
57063
57073
  /** Optional hostname override the host should advertise once joined. */
57064
57074
  hostname: string().optional() }), object({
57065
57075
  /** Authentication URL the operator should open in a browser. */
57066
- 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({
57067
- /** Optional auth key — when provided, probes the key validity
57068
- * against the provider's API. Omit when already joined to
57069
- * just ping the daemon. */
57070
- authKey: string().optional() }), object({
57071
- ok: boolean(),
57072
- /** Provider-side identifier resolved by the probe (tailnet
57073
- * name for Tailscale, network id for ZeroTier, etc.). */
57074
- tenant: string().optional(),
57075
- /** Daemon binary version, when reachable. */
57076
- daemonVersion: string().optional(),
57077
- /** Human-readable error when `ok: false`. */
57078
- error: string().optional()
57079
- }), { kind: "mutation" });
57076
+ 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() }));
57080
57077
  object({
57081
57078
  value: number().nullable().meta(readingMeta("device", { label: "Total" })),
57082
57079
  lastFetchedAt: number()
@@ -66750,61 +66747,6 @@ var oauthIntegrationCapability = {
66750
66747
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
66751
66748
  };
66752
66749
  /**
66753
- * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
66754
- *
66755
- * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
66756
- * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
66757
- * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
66758
- * immutable after create.
66759
- */
66760
- var ConfigSchemaPassthrough$1 = unknown();
66761
- var OidcConnectionSchema = object({
66762
- id: string().min(1),
66763
- displayName: string(),
66764
- icon: string(),
66765
- issuerUrl: string(),
66766
- clientId: string(),
66767
- /** Client id + secret present — never the secret value. */
66768
- configured: boolean(),
66769
- /**
66770
- * Values for the connection form schema. `clientSecret` is a keychain
66771
- * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
66772
- */
66773
- formValues: record(string(), unknown()).optional()
66774
- });
66775
- /**
66776
- * Patch one connection. Omitted or empty `clientSecret` keeps the stored
66777
- * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
66778
- */
66779
- var OidcConnectionUpdateInputSchema = object({
66780
- id: string().min(1),
66781
- displayName: string().min(1),
66782
- icon: string().optional(),
66783
- issuerUrl: string().optional(),
66784
- clientId: string().optional(),
66785
- clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
66786
- redirectUri: string().optional(),
66787
- scopes: string().optional(),
66788
- usernameClaim: _enum([
66789
- "preferred_username",
66790
- "email",
66791
- "sub"
66792
- ]).optional()
66793
- });
66794
- method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
66795
- id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
66796
- displayName: string().min(1)
66797
- }), object({ id: string() }), {
66798
- kind: "mutation",
66799
- auth: "admin"
66800
- }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
66801
- kind: "mutation",
66802
- auth: "admin"
66803
- }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
66804
- kind: "mutation",
66805
- auth: "admin"
66806
- });
66807
- /**
66808
66750
  * Generic on-screen-display (video overlay) cap. Each camera exposes
66809
66751
  * a firmware-defined list of overlays (channel name, timestamp,
66810
66752
  * watermark, logo, …); the cap models them as a homogeneous array of
@@ -72977,21 +72919,6 @@ method(object({
72977
72919
  */
72978
72920
  ttlSec: union([number().int().positive(), literal("never")]).optional()
72979
72921
  }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
72980
- var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
72981
- providerId: string().min(1),
72982
- displayName: string().min(1),
72983
- configSchema: unknown(),
72984
- nodeLocal: boolean(),
72985
- shouldSaveDiskSpace: literal(true),
72986
- minFreePercent: number().min(0).max(100)
72987
- }), object({
72988
- providerId: string().min(1),
72989
- displayName: string().min(1),
72990
- configSchema: unknown(),
72991
- nodeLocal: boolean(),
72992
- shouldSaveDiskSpace: literal(false),
72993
- minFreePercent: literal(null)
72994
- })]);
72995
72922
  method(object({
72996
72923
  location: StorageLocationRefSchema,
72997
72924
  relativePath: string()
@@ -73053,42 +72980,7 @@ method(object({
73053
72980
  }), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
73054
72981
  kind: "mutation",
73055
72982
  auth: "admin"
73056
- }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
73057
- createdAt: true,
73058
- updatedAt: true
73059
- }), StorageLocationSchema, {
73060
- kind: "mutation",
73061
- auth: "admin"
73062
- }), method(object({
73063
- id: string(),
73064
- force: boolean().optional()
73065
- }), _void(), {
73066
- kind: "mutation",
73067
- auth: "admin"
73068
- }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
73069
- ok: boolean(),
73070
- error: string().optional()
73071
- }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
73072
- providerId: string(),
73073
- /**
73074
- * The location this config is an UNSAVED edit of, when there is one.
73075
- *
73076
- * `listLocations` replaces every declared secret with the redaction
73077
- * sentinel, so the edit modal's form state holds the sentinel for any
73078
- * credential the operator did not retype — and posting that here
73079
- * without a way to resolve it makes the provider try to authenticate
73080
- * as `__camstack_redacted__` and report the operator's own working
73081
- * password as wrong. Given this id, the orchestrator restores each
73082
- * sentinel from the stored config (same rule as `upsertLocation`)
73083
- * before dispatching. Omitted by the "Add location" wizard, where
73084
- * every value was typed just now and nothing is stored yet.
73085
- */
73086
- locationId: string().optional(),
73087
- config: record(string(), unknown())
73088
- }), object({
73089
- ok: boolean(),
73090
- error: string().optional()
73091
- }), { auth: "admin" });
72983
+ }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
73092
72984
  /** One table of the settings database. */
73093
72985
  var StorageTableSchema = object({
73094
72986
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -80700,13 +80592,6 @@ Object.freeze({
80700
80592
  access: "delete",
80701
80593
  role: "admin"
80702
80594
  },
80703
- "llm.deleteProfile": {
80704
- capName: "llm",
80705
- capScope: "system",
80706
- addonId: null,
80707
- access: "delete",
80708
- role: "admin"
80709
- },
80710
80595
  "llm.generate": {
80711
80596
  capName: "llm",
80712
80597
  capScope: "system",
@@ -80770,20 +80655,6 @@ Object.freeze({
80770
80655
  access: "view",
80771
80656
  role: "admin"
80772
80657
  },
80773
- "llm.listProfileKinds": {
80774
- capName: "llm",
80775
- capScope: "system",
80776
- addonId: null,
80777
- access: "view",
80778
- role: "admin"
80779
- },
80780
- "llm.listProfiles": {
80781
- capName: "llm",
80782
- capScope: "system",
80783
- addonId: null,
80784
- access: "view",
80785
- role: "admin"
80786
- },
80787
80658
  "llm.listRuntimeNodes": {
80788
80659
  capName: "llm",
80789
80660
  capScope: "system",
@@ -80791,13 +80662,6 @@ Object.freeze({
80791
80662
  access: "view",
80792
80663
  role: "admin"
80793
80664
  },
80794
- "llm.migrateRawSecrets": {
80795
- capName: "llm",
80796
- capScope: "system",
80797
- addonId: null,
80798
- access: "create",
80799
- role: "admin"
80800
- },
80801
80665
  "llm.resolveModelRef": {
80802
80666
  capName: "llm",
80803
80667
  capScope: "system",
@@ -80826,20 +80690,6 @@ Object.freeze({
80826
80690
  access: "create",
80827
80691
  role: "admin"
80828
80692
  },
80829
- "llm.testProfile": {
80830
- capName: "llm",
80831
- capScope: "system",
80832
- addonId: null,
80833
- access: "create",
80834
- role: "admin"
80835
- },
80836
- "llm.upsertProfile": {
80837
- capName: "llm",
80838
- capScope: "system",
80839
- addonId: null,
80840
- access: "create",
80841
- role: "admin"
80842
- },
80843
80693
  "llmRuntime.appleAvailability": {
80844
80694
  capName: "llm-runtime",
80845
80695
  capScope: "system",
@@ -81344,13 +81194,6 @@ Object.freeze({
81344
81194
  access: "create",
81345
81195
  role: "admin"
81346
81196
  },
81347
- "meshNetwork.testConnection": {
81348
- capName: "mesh-network",
81349
- capScope: "system",
81350
- addonId: null,
81351
- access: "create",
81352
- role: "admin"
81353
- },
81354
81197
  "meter.getStatus": {
81355
81198
  capName: "meter",
81356
81199
  capScope: "device",
@@ -82009,13 +81852,6 @@ Object.freeze({
82009
81852
  access: "create",
82010
81853
  role: "admin"
82011
81854
  },
82012
- "notificationOutput.deleteTarget": {
82013
- capName: "notification-output",
82014
- capScope: "system",
82015
- addonId: null,
82016
- access: "delete",
82017
- role: "admin"
82018
- },
82019
81855
  "notificationOutput.discoverTargets": {
82020
81856
  capName: "notification-output",
82021
81857
  capScope: "system",
@@ -82023,13 +81859,6 @@ Object.freeze({
82023
81859
  access: "view",
82024
81860
  role: "admin"
82025
81861
  },
82026
- "notificationOutput.getTarget": {
82027
- capName: "notification-output",
82028
- capScope: "system",
82029
- addonId: null,
82030
- access: "view",
82031
- role: "admin"
82032
- },
82033
81862
  "notificationOutput.listTargetKinds": {
82034
81863
  capName: "notification-output",
82035
81864
  capScope: "system",
@@ -82037,13 +81866,6 @@ Object.freeze({
82037
81866
  access: "view",
82038
81867
  role: "admin"
82039
81868
  },
82040
- "notificationOutput.listTargets": {
82041
- capName: "notification-output",
82042
- capScope: "system",
82043
- addonId: null,
82044
- access: "view",
82045
- role: "admin"
82046
- },
82047
81869
  "notificationOutput.probeTargetConfig": {
82048
81870
  capName: "notification-output",
82049
81871
  capScope: "system",
@@ -82058,13 +81880,6 @@ Object.freeze({
82058
81880
  access: "create",
82059
81881
  role: "admin"
82060
81882
  },
82061
- "notificationOutput.setTargetEnabled": {
82062
- capName: "notification-output",
82063
- capScope: "system",
82064
- addonId: null,
82065
- access: "create",
82066
- role: "admin"
82067
- },
82068
81883
  "notificationOutput.testTarget": {
82069
81884
  capName: "notification-output",
82070
81885
  capScope: "system",
@@ -82072,13 +81887,6 @@ Object.freeze({
82072
81887
  access: "create",
82073
81888
  role: "admin"
82074
81889
  },
82075
- "notificationOutput.upsertTarget": {
82076
- capName: "notification-output",
82077
- capScope: "system",
82078
- addonId: null,
82079
- access: "create",
82080
- role: "admin"
82081
- },
82082
81890
  "notificationRules.activateAlarmProfile": {
82083
81891
  capName: "notification-rules",
82084
81892
  capScope: "system",
@@ -82338,41 +82146,6 @@ Object.freeze({
82338
82146
  access: "view",
82339
82147
  role: "admin"
82340
82148
  },
82341
- "oidcConnections.connectionFormSchema": {
82342
- capName: "oidc-connections",
82343
- capScope: "system",
82344
- addonId: null,
82345
- access: "view",
82346
- role: "admin"
82347
- },
82348
- "oidcConnections.createConnection": {
82349
- capName: "oidc-connections",
82350
- capScope: "system",
82351
- addonId: null,
82352
- access: "create",
82353
- role: "admin"
82354
- },
82355
- "oidcConnections.deleteConnection": {
82356
- capName: "oidc-connections",
82357
- capScope: "system",
82358
- addonId: null,
82359
- access: "delete",
82360
- role: "admin"
82361
- },
82362
- "oidcConnections.listConnections": {
82363
- capName: "oidc-connections",
82364
- capScope: "system",
82365
- addonId: null,
82366
- access: "view",
82367
- role: "admin"
82368
- },
82369
- "oidcConnections.updateConnection": {
82370
- capName: "oidc-connections",
82371
- capScope: "system",
82372
- addonId: null,
82373
- access: "create",
82374
- role: "admin"
82375
- },
82376
82149
  "osd.getStatus": {
82377
82150
  capName: "osd",
82378
82151
  capScope: "device",
@@ -85404,13 +85177,6 @@ Object.freeze({
85404
85177
  access: "delete",
85405
85178
  role: "admin"
85406
85179
  },
85407
- "storage.deleteLocation": {
85408
- capName: "storage",
85409
- capScope: "system",
85410
- addonId: null,
85411
- access: "delete",
85412
- role: "admin"
85413
- },
85414
85180
  "storage.endDownload": {
85415
85181
  capName: "storage",
85416
85182
  capScope: "system",
@@ -85467,13 +85233,6 @@ Object.freeze({
85467
85233
  access: "view",
85468
85234
  role: "admin"
85469
85235
  },
85470
- "storage.listProviders": {
85471
- capName: "storage",
85472
- capScope: "system",
85473
- addonId: null,
85474
- access: "view",
85475
- role: "admin"
85476
- },
85477
85236
  "storage.read": {
85478
85237
  capName: "storage",
85479
85238
  capScope: "system",
@@ -85495,27 +85254,6 @@ Object.freeze({
85495
85254
  access: "view",
85496
85255
  role: "admin"
85497
85256
  },
85498
- "storage.testConfig": {
85499
- capName: "storage",
85500
- capScope: "system",
85501
- addonId: null,
85502
- access: "view",
85503
- role: "admin"
85504
- },
85505
- "storage.testLocation": {
85506
- capName: "storage",
85507
- capScope: "system",
85508
- addonId: null,
85509
- access: "view",
85510
- role: "admin"
85511
- },
85512
- "storage.upsertLocation": {
85513
- capName: "storage",
85514
- capScope: "system",
85515
- addonId: null,
85516
- access: "create",
85517
- role: "admin"
85518
- },
85519
85257
  "storage.write": {
85520
85258
  capName: "storage",
85521
85259
  capScope: "system",