@camstack/addon-export-google 0.1.129 → 0.1.130

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.
@@ -78,7 +78,7 @@ function createApiDeviceGateway(deps) {
78
78
  };
79
79
  }
80
80
  //#endregion
81
- //#region ../types/dist/event-category-BmPm98n0.mjs
81
+ //#region ../types/dist/event-category-78tcBemo.mjs
82
82
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
83
83
  EventCategory["SystemBoot"] = "system.boot";
84
84
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -199,6 +199,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
199
199
  */
200
200
  EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
201
201
  /**
202
+ * An addon is RUNNING although its installed package is below what the
203
+ * running server requires (`camstack.requires.addons` of the server, or the
204
+ * addon's own `requires.server`). Raised once per streak by the unsupported-
205
+ * addon tracker, on the hub and on agents; AlertCenter turns it into one
206
+ * operator alert per node and package. The addon is never held back for it.
207
+ *
208
+ * Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
209
+ */
210
+ EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
211
+ /**
212
+ * The package of an {@link AddonUnsupportedVersion} alert reached a supported
213
+ * version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
214
+ *
215
+ * Payload: `{ packageName, addonId, nodeId }`.
216
+ */
217
+ EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
218
+ /**
202
219
  * Monitor scheduled the next retry for a failed addon. Transient —
203
220
  * surfaced to the UI for live-updating the "next retry in Ns"
204
221
  * countdown on the Addons page row, NOT persisted as an alert.
@@ -309,7 +326,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
309
326
  EventCategory["ProcessRestarted"] = "process.restarted";
310
327
  /**
311
328
  * The SET of storage locations changed — one was created, edited, enabled,
312
- * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
329
+ * disabled or deleted through the location instances or the forced-delete action.
313
330
  *
314
331
  * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
315
332
  * it must also converge on its own periodic path, because a dropped event
@@ -6060,7 +6077,7 @@ var ZodIssueCode = {
6060
6077
  var ZodFirstPartyTypeKind;
6061
6078
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6062
6079
  //#endregion
6063
- //#region ../types/dist/sleep-D7ZKm4nb.mjs
6080
+ //#region ../types/dist/sleep-AEnTN3b4.mjs
6064
6081
  /**
6065
6082
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6066
6083
  * window to float samples (D455).
@@ -7308,17 +7325,35 @@ var RecordIntegrationInstances = class {
7308
7325
  ...kind !== void 0 ? { kind } : {}
7309
7326
  });
7310
7327
  if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
7328
+ const initial = this.hooks.initialBody(name, kind);
7329
+ const patch = this.patchOf(values ?? {});
7330
+ if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
7331
+ kind,
7332
+ body: {
7333
+ ...initial,
7334
+ ...patch
7335
+ }
7336
+ }));
7311
7337
  await this.handle.put({
7312
7338
  id: minted,
7313
- data: this.hooks.initialBody(name, kind)
7339
+ data: initial
7314
7340
  }, { ifRev: 0 });
7315
- const patch = this.patchOf(values ?? {});
7316
7341
  if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
7317
7342
  await this.hooks.onChanged?.(minted, "created");
7318
7343
  return { id: minted };
7319
7344
  };
7320
7345
  updateInstance = async ({ id, name, values }) => {
7321
7346
  const patch = this.patchOf(values);
7347
+ if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
7348
+ const stored = await this.handle.get(id);
7349
+ if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
7350
+ kind: void 0,
7351
+ body: {
7352
+ ...stored.data,
7353
+ ...patch
7354
+ }
7355
+ }));
7356
+ }
7322
7357
  if (name !== void 0) patch[this.nameField] = name;
7323
7358
  await this.handle.patch(id, patch);
7324
7359
  await this.hooks.onChanged?.(id, "updated");
@@ -10645,7 +10680,6 @@ var CAP_NAMES = Object.freeze([
10645
10680
  "notifier",
10646
10681
  "numeric-sensor",
10647
10682
  "oauth-integration",
10648
- "oidc-connections",
10649
10683
  "osd",
10650
10684
  "osd-manager",
10651
10685
  "pet-feeder",
@@ -12537,8 +12571,7 @@ Object.freeze({
12537
12571
  "device-provider": { "reloadDevice": 18e4 },
12538
12572
  "llm": {
12539
12573
  "generate": 6e5,
12540
- "generateVision": 6e5,
12541
- "testProfile": 6e5
12574
+ "generateVision": 6e5
12542
12575
  },
12543
12576
  "llm-runtime": {
12544
12577
  "complete": 6e5,
@@ -14058,17 +14091,18 @@ function buildCapturingReply(envelope) {
14058
14091
  * message to what the kind supports — callers never special-case a service.
14059
14092
  *
14060
14093
  * DESIGN DECISIONS (locked):
14061
- * - Target CRUD lives on THIS cap (`upsertTarget` / `deleteTarget` /
14062
- * `setTargetEnabled`), each provider persisting via the `settings-store`
14063
- * cap. Rationale: the admin UI needs one uniform surface across the
14064
- * notifiers addon AND the HA addon; the addon-`globalSettingsSchema`-array
14065
- * alternative would fork the UI per addon and cannot host the
14066
- * discovery→adopt flow.
14067
- * - `listTargetKinds` / `listTargets` / `discoverTargets` return arrays →
14068
- * the generated cap-mount auto-`concatCollection`-fans them across every
14069
- * registered provider (notifiers addon + HA addon) so one catalog is
14070
- * routable. `send` / `testTarget` / CRUD route to ONE provider by the
14071
- * `addonId` the generated collection router extracts from the call input.
14094
+ * - A target is an INSTANCE of this function cap (epic #440, step 6): the
14095
+ * providers serve their targets as `integration-instances` records, one
14096
+ * record kind per target kind, and the admin lists, adds, edits, switches
14097
+ * and deletes them through that cap. This cap keeps what an instance cannot
14098
+ * say: the kind catalogue (`listTargetKinds`: capabilities, delivery
14099
+ * parameters, brand icon), dispatch (`send`, `testTarget`) and the form
14100
+ * helpers (`discoverTargets`, `probeTargetConfig`).
14101
+ * - `listTargetKinds` / `discoverTargets` return arrays → the generated
14102
+ * cap-mount auto-`concatCollection`-fans them across every registered
14103
+ * provider so one catalog is routable. `send` / `testTarget` /
14104
+ * `probeTargetConfig` route to ONE provider by the `addonId` the generated
14105
+ * collection router extracts from the call input.
14072
14106
  * - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
14073
14107
  * transformer) + UDS MsgPack both round-trip typed arrays — already used by
14074
14108
  * `storage` / `storage-provider` / `recording` caps over the same path. No
@@ -14313,7 +14347,7 @@ var TargetKindCapsSchema = object({
14313
14347
  * the union is large and not meant for runtime validation here; the exported
14314
14348
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
14315
14349
  */
14316
- var ConfigSchemaPassthrough$4 = unknown();
14350
+ var ConfigSchemaPassthrough$3 = unknown();
14317
14351
  var TargetKindSchema = object({
14318
14352
  kind: string(),
14319
14353
  label: string(),
@@ -14350,7 +14384,7 @@ var TargetKindSchema = object({
14350
14384
  * its raster path, which is the safe default for an unknown image.
14351
14385
  */
14352
14386
  iconMediaType: string().optional(),
14353
- configSchema: ConfigSchemaPassthrough$4,
14387
+ configSchema: ConfigSchemaPassthrough$3,
14354
14388
  /**
14355
14389
  * The config keys that decide WHERE this kind's secrets are sent (server,
14356
14390
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -14372,9 +14406,11 @@ var TargetKindSchema = object({
14372
14406
  caps: TargetKindCapsSchema
14373
14407
  });
14374
14408
  /**
14375
- * A persisted target. `config` holds secrets; providers REDACT secret fields
14376
- * (return a presence marker only) when serving `listTargets` — never
14377
- * round-trip a stored secret to the UI.
14409
+ * A target as a provider's own code sees it (the notification-center bridge, the
14410
+ * send path): the flat record body split into the name, the switch and the
14411
+ * kind's fields. `config` holds secrets; a reader that serves it to a client
14412
+ * REDACTS secret fields (a presence marker only) — never round-trip a stored
14413
+ * secret to the UI.
14378
14414
  */
14379
14415
  var TargetSchema = object({
14380
14416
  id: string(),
@@ -14417,13 +14453,13 @@ var ProbeTargetConfigResultSchema = object({
14417
14453
  stateInstance: string().optional(),
14418
14454
  error: string().optional()
14419
14455
  });
14420
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
14456
+ method(object({}), array(TargetKindSchema)), method(object({
14421
14457
  kind: string(),
14422
14458
  config: record(string(), unknown()).optional(),
14423
14459
  /**
14424
14460
  * When editing / duplicating, the blank password field never round-trips
14425
14461
  * the stored token. Pass the source target id so the provider can restore
14426
- * secrets server-side before dialling (same merge as upsert).
14462
+ * secrets server-side before dialling.
14427
14463
  */
14428
14464
  targetId: string().optional()
14429
14465
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
@@ -14446,27 +14482,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
14446
14482
  }), TestResultSchema, {
14447
14483
  kind: "mutation",
14448
14484
  auth: "admin"
14449
- }), method(object({
14450
- target: TargetSchema,
14451
- /**
14452
- * Duplicate flow: create a NEW target id while copying secrets from an
14453
- * existing row. The UI never holds the stored token; blank / redacted
14454
- * password fields are restored from this source (D634 still applies if
14455
- * destinations diverge without a re-typed secret).
14456
- */
14457
- cloneSecretsFrom: string().optional()
14458
- }), TargetSchema, {
14459
- kind: "mutation",
14460
- auth: "admin"
14461
- }), method(object({ targetId: string() }), _void(), {
14462
- kind: "mutation",
14463
- auth: "admin"
14464
- }), method(object({
14465
- targetId: string(),
14466
- enabled: boolean()
14467
- }), _void(), {
14468
- kind: "mutation",
14469
- auth: "admin"
14470
14485
  });
14471
14486
  looseObject({
14472
14487
  name: string().min(1),
@@ -22741,7 +22756,6 @@ var SYSTEM_CAP_VOCABULARY = {
22741
22756
  "notification-output": system("notification delivery — reached through notifier devices and rules"),
22742
22757
  "notification-rules": system("notification rules — authored on their own page"),
22743
22758
  "oauth-integration": system(IDENTITY),
22744
- "oidc-connections": system(IDENTITY),
22745
22759
  "osd-manager": system(PIPELINE),
22746
22760
  "pipeline-executor": system(PIPELINE),
22747
22761
  "pipeline-orchestrator": system(PIPELINE),
@@ -54582,7 +54596,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
54582
54596
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
54583
54597
  * clears it.
54584
54598
  */
54585
- var ConfigSchemaPassthrough$3 = custom();
54599
+ var ConfigSchemaPassthrough$2 = custom();
54586
54600
  var IntegrationInstanceIdSchema = string().min(1);
54587
54601
  var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
54588
54602
  /**
@@ -54628,7 +54642,16 @@ var IntegrationInstanceKindSchema = object({
54628
54642
  /** Relative hub path to start an interactive account link of an instance of this kind. */
54629
54643
  connectPath: string().min(1).optional(),
54630
54644
  /** Relative hub path to disconnect that account. */
54631
- disconnectPath: string().min(1).optional()
54645
+ disconnectPath: string().min(1).optional(),
54646
+ /**
54647
+ * Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
54648
+ * GENERIC widget id the client maps to a component; a client that knows none of them shows none.
54649
+ * `connection` widgets write connection values, `model` widgets own the model choice.
54650
+ */
54651
+ widgets: array(object({
54652
+ id: string().min(1),
54653
+ placement: _enum(["connection", "model"])
54654
+ })).optional()
54632
54655
  });
54633
54656
  /**
54634
54657
  * How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
@@ -54733,7 +54756,7 @@ var integrationInstancesCapability = {
54733
54756
  id: IntegrationInstanceIdSchema.nullable(),
54734
54757
  /** The kind of the create form (`id: null`) of a provider with several. */
54735
54758
  kind: string().min(1).optional()
54736
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
54759
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
54737
54760
  listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
54738
54761
  getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
54739
54762
  /**
@@ -55684,12 +55707,12 @@ var LlmModelInfoSchema = object({
55684
55707
  });
55685
55708
  /**
55686
55709
  * The provider-specific part of a profile, validated by the provider that owns
55687
- * the kind (`upsertProfile` refuses what it does not accept). A field its
55710
+ * the kind (saving an instance refuses what it does not accept). A field its
55688
55711
  * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
55689
55712
  * keychain, never in the row, and reads back as the redaction marker.
55690
55713
  */
55691
55714
  var LlmProviderConfigSchema = record(string(), unknown());
55692
- var LlmProfileSchema = object({
55715
+ object({
55693
55716
  id: string(),
55694
55717
  name: string(),
55695
55718
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -55783,8 +55806,8 @@ var LlmProviderWidgetSchema = object({
55783
55806
  /** ConfigUISchema tree passed through untyped on the wire (the
55784
55807
  * notification-output `ConfigSchemaPassthrough` precedent at
55785
55808
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
55786
- var ConfigSchemaPassthrough$2 = unknown();
55787
- var LlmProfileKindDescriptorSchema = object({
55809
+ var ConfigSchemaPassthrough$1 = unknown();
55810
+ object({
55788
55811
  kind: LlmProfileKindSchema,
55789
55812
  label: string(),
55790
55813
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -55792,9 +55815,9 @@ var LlmProfileKindDescriptorSchema = object({
55792
55815
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
55793
55816
  addonId: string(),
55794
55817
  /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
55795
- connectionSchema: ConfigSchemaPassthrough$2,
55818
+ connectionSchema: ConfigSchemaPassthrough$1,
55796
55819
  /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
55797
- advancedSchema: ConfigSchemaPassthrough$2.optional(),
55820
+ advancedSchema: ConfigSchemaPassthrough$1.optional(),
55798
55821
  /** The kind's defaults; a model from `listModels` may override any of them. */
55799
55822
  features: LlmModelFeaturesSchema,
55800
55823
  /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
@@ -55923,20 +55946,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
55923
55946
  }), method(object({
55924
55947
  addonId: string().optional(),
55925
55948
  requestId: string()
55926
- }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
55927
- kind: "mutation",
55928
- auth: "admin"
55929
- }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
55930
- kind: "mutation",
55931
- auth: "admin"
55932
- }), method(ProfileRefInputSchema, _void(), {
55933
- kind: "mutation",
55934
- auth: "admin"
55935
- }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
55936
- kind: "mutation",
55937
- auth: "admin",
55938
- timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
55939
- }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
55949
+ }), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
55940
55950
  kind: "mutation",
55941
55951
  auth: "admin"
55942
55952
  }), method(object({}), array(LlmDefaultSchema)), method(object({
@@ -56931,20 +56941,7 @@ method(_void(), MeshStatusSchema), method(object({
56931
56941
  /** Optional hostname override the host should advertise once joined. */
56932
56942
  hostname: string().optional() }), object({
56933
56943
  /** Authentication URL the operator should open in a browser. */
56934
- 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({
56935
- /** Optional auth key — when provided, probes the key validity
56936
- * against the provider's API. Omit when already joined to
56937
- * just ping the daemon. */
56938
- authKey: string().optional() }), object({
56939
- ok: boolean(),
56940
- /** Provider-side identifier resolved by the probe (tailnet
56941
- * name for Tailscale, network id for ZeroTier, etc.). */
56942
- tenant: string().optional(),
56943
- /** Daemon binary version, when reachable. */
56944
- daemonVersion: string().optional(),
56945
- /** Human-readable error when `ok: false`. */
56946
- error: string().optional()
56947
- }), { kind: "mutation" });
56944
+ 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() }));
56948
56945
  object({
56949
56946
  value: number().nullable().meta(readingMeta("device", { label: "Total" })),
56950
56947
  lastFetchedAt: number()
@@ -66618,61 +66615,6 @@ var oauthIntegrationCapability = {
66618
66615
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
66619
66616
  };
66620
66617
  /**
66621
- * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
66622
- *
66623
- * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
66624
- * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
66625
- * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
66626
- * immutable after create.
66627
- */
66628
- var ConfigSchemaPassthrough$1 = unknown();
66629
- var OidcConnectionSchema = object({
66630
- id: string().min(1),
66631
- displayName: string(),
66632
- icon: string(),
66633
- issuerUrl: string(),
66634
- clientId: string(),
66635
- /** Client id + secret present — never the secret value. */
66636
- configured: boolean(),
66637
- /**
66638
- * Values for the connection form schema. `clientSecret` is a keychain
66639
- * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
66640
- */
66641
- formValues: record(string(), unknown()).optional()
66642
- });
66643
- /**
66644
- * Patch one connection. Omitted or empty `clientSecret` keeps the stored
66645
- * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
66646
- */
66647
- var OidcConnectionUpdateInputSchema = object({
66648
- id: string().min(1),
66649
- displayName: string().min(1),
66650
- icon: string().optional(),
66651
- issuerUrl: string().optional(),
66652
- clientId: string().optional(),
66653
- clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
66654
- redirectUri: string().optional(),
66655
- scopes: string().optional(),
66656
- usernameClaim: _enum([
66657
- "preferred_username",
66658
- "email",
66659
- "sub"
66660
- ]).optional()
66661
- });
66662
- method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
66663
- id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
66664
- displayName: string().min(1)
66665
- }), object({ id: string() }), {
66666
- kind: "mutation",
66667
- auth: "admin"
66668
- }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
66669
- kind: "mutation",
66670
- auth: "admin"
66671
- }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
66672
- kind: "mutation",
66673
- auth: "admin"
66674
- });
66675
- /**
66676
66618
  * Generic on-screen-display (video overlay) cap. Each camera exposes
66677
66619
  * a firmware-defined list of overlays (channel name, timestamp,
66678
66620
  * watermark, logo, …); the cap models them as a homogeneous array of
@@ -72845,21 +72787,6 @@ method(object({
72845
72787
  */
72846
72788
  ttlSec: union([number().int().positive(), literal("never")]).optional()
72847
72789
  }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
72848
- var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
72849
- providerId: string().min(1),
72850
- displayName: string().min(1),
72851
- configSchema: unknown(),
72852
- nodeLocal: boolean(),
72853
- shouldSaveDiskSpace: literal(true),
72854
- minFreePercent: number().min(0).max(100)
72855
- }), object({
72856
- providerId: string().min(1),
72857
- displayName: string().min(1),
72858
- configSchema: unknown(),
72859
- nodeLocal: boolean(),
72860
- shouldSaveDiskSpace: literal(false),
72861
- minFreePercent: literal(null)
72862
- })]);
72863
72790
  method(object({
72864
72791
  location: StorageLocationRefSchema,
72865
72792
  relativePath: string()
@@ -72921,42 +72848,7 @@ method(object({
72921
72848
  }), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
72922
72849
  kind: "mutation",
72923
72850
  auth: "admin"
72924
- }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
72925
- createdAt: true,
72926
- updatedAt: true
72927
- }), StorageLocationSchema, {
72928
- kind: "mutation",
72929
- auth: "admin"
72930
- }), method(object({
72931
- id: string(),
72932
- force: boolean().optional()
72933
- }), _void(), {
72934
- kind: "mutation",
72935
- auth: "admin"
72936
- }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
72937
- ok: boolean(),
72938
- error: string().optional()
72939
- }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
72940
- providerId: string(),
72941
- /**
72942
- * The location this config is an UNSAVED edit of, when there is one.
72943
- *
72944
- * `listLocations` replaces every declared secret with the redaction
72945
- * sentinel, so the edit modal's form state holds the sentinel for any
72946
- * credential the operator did not retype — and posting that here
72947
- * without a way to resolve it makes the provider try to authenticate
72948
- * as `__camstack_redacted__` and report the operator's own working
72949
- * password as wrong. Given this id, the orchestrator restores each
72950
- * sentinel from the stored config (same rule as `upsertLocation`)
72951
- * before dispatching. Omitted by the "Add location" wizard, where
72952
- * every value was typed just now and nothing is stored yet.
72953
- */
72954
- locationId: string().optional(),
72955
- config: record(string(), unknown())
72956
- }), object({
72957
- ok: boolean(),
72958
- error: string().optional()
72959
- }), { auth: "admin" });
72851
+ }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
72960
72852
  /** One table of the settings database. */
72961
72853
  var StorageTableSchema = object({
72962
72854
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -80556,13 +80448,6 @@ Object.freeze({
80556
80448
  access: "delete",
80557
80449
  role: "admin"
80558
80450
  },
80559
- "llm.deleteProfile": {
80560
- capName: "llm",
80561
- capScope: "system",
80562
- addonId: null,
80563
- access: "delete",
80564
- role: "admin"
80565
- },
80566
80451
  "llm.generate": {
80567
80452
  capName: "llm",
80568
80453
  capScope: "system",
@@ -80626,20 +80511,6 @@ Object.freeze({
80626
80511
  access: "view",
80627
80512
  role: "admin"
80628
80513
  },
80629
- "llm.listProfileKinds": {
80630
- capName: "llm",
80631
- capScope: "system",
80632
- addonId: null,
80633
- access: "view",
80634
- role: "admin"
80635
- },
80636
- "llm.listProfiles": {
80637
- capName: "llm",
80638
- capScope: "system",
80639
- addonId: null,
80640
- access: "view",
80641
- role: "admin"
80642
- },
80643
80514
  "llm.listRuntimeNodes": {
80644
80515
  capName: "llm",
80645
80516
  capScope: "system",
@@ -80647,13 +80518,6 @@ Object.freeze({
80647
80518
  access: "view",
80648
80519
  role: "admin"
80649
80520
  },
80650
- "llm.migrateRawSecrets": {
80651
- capName: "llm",
80652
- capScope: "system",
80653
- addonId: null,
80654
- access: "create",
80655
- role: "admin"
80656
- },
80657
80521
  "llm.resolveModelRef": {
80658
80522
  capName: "llm",
80659
80523
  capScope: "system",
@@ -80682,20 +80546,6 @@ Object.freeze({
80682
80546
  access: "create",
80683
80547
  role: "admin"
80684
80548
  },
80685
- "llm.testProfile": {
80686
- capName: "llm",
80687
- capScope: "system",
80688
- addonId: null,
80689
- access: "create",
80690
- role: "admin"
80691
- },
80692
- "llm.upsertProfile": {
80693
- capName: "llm",
80694
- capScope: "system",
80695
- addonId: null,
80696
- access: "create",
80697
- role: "admin"
80698
- },
80699
80549
  "llmRuntime.appleAvailability": {
80700
80550
  capName: "llm-runtime",
80701
80551
  capScope: "system",
@@ -81200,13 +81050,6 @@ Object.freeze({
81200
81050
  access: "create",
81201
81051
  role: "admin"
81202
81052
  },
81203
- "meshNetwork.testConnection": {
81204
- capName: "mesh-network",
81205
- capScope: "system",
81206
- addonId: null,
81207
- access: "create",
81208
- role: "admin"
81209
- },
81210
81053
  "meter.getStatus": {
81211
81054
  capName: "meter",
81212
81055
  capScope: "device",
@@ -81865,13 +81708,6 @@ Object.freeze({
81865
81708
  access: "create",
81866
81709
  role: "admin"
81867
81710
  },
81868
- "notificationOutput.deleteTarget": {
81869
- capName: "notification-output",
81870
- capScope: "system",
81871
- addonId: null,
81872
- access: "delete",
81873
- role: "admin"
81874
- },
81875
81711
  "notificationOutput.discoverTargets": {
81876
81712
  capName: "notification-output",
81877
81713
  capScope: "system",
@@ -81879,13 +81715,6 @@ Object.freeze({
81879
81715
  access: "view",
81880
81716
  role: "admin"
81881
81717
  },
81882
- "notificationOutput.getTarget": {
81883
- capName: "notification-output",
81884
- capScope: "system",
81885
- addonId: null,
81886
- access: "view",
81887
- role: "admin"
81888
- },
81889
81718
  "notificationOutput.listTargetKinds": {
81890
81719
  capName: "notification-output",
81891
81720
  capScope: "system",
@@ -81893,13 +81722,6 @@ Object.freeze({
81893
81722
  access: "view",
81894
81723
  role: "admin"
81895
81724
  },
81896
- "notificationOutput.listTargets": {
81897
- capName: "notification-output",
81898
- capScope: "system",
81899
- addonId: null,
81900
- access: "view",
81901
- role: "admin"
81902
- },
81903
81725
  "notificationOutput.probeTargetConfig": {
81904
81726
  capName: "notification-output",
81905
81727
  capScope: "system",
@@ -81914,13 +81736,6 @@ Object.freeze({
81914
81736
  access: "create",
81915
81737
  role: "admin"
81916
81738
  },
81917
- "notificationOutput.setTargetEnabled": {
81918
- capName: "notification-output",
81919
- capScope: "system",
81920
- addonId: null,
81921
- access: "create",
81922
- role: "admin"
81923
- },
81924
81739
  "notificationOutput.testTarget": {
81925
81740
  capName: "notification-output",
81926
81741
  capScope: "system",
@@ -81928,13 +81743,6 @@ Object.freeze({
81928
81743
  access: "create",
81929
81744
  role: "admin"
81930
81745
  },
81931
- "notificationOutput.upsertTarget": {
81932
- capName: "notification-output",
81933
- capScope: "system",
81934
- addonId: null,
81935
- access: "create",
81936
- role: "admin"
81937
- },
81938
81746
  "notificationRules.activateAlarmProfile": {
81939
81747
  capName: "notification-rules",
81940
81748
  capScope: "system",
@@ -82194,41 +82002,6 @@ Object.freeze({
82194
82002
  access: "view",
82195
82003
  role: "admin"
82196
82004
  },
82197
- "oidcConnections.connectionFormSchema": {
82198
- capName: "oidc-connections",
82199
- capScope: "system",
82200
- addonId: null,
82201
- access: "view",
82202
- role: "admin"
82203
- },
82204
- "oidcConnections.createConnection": {
82205
- capName: "oidc-connections",
82206
- capScope: "system",
82207
- addonId: null,
82208
- access: "create",
82209
- role: "admin"
82210
- },
82211
- "oidcConnections.deleteConnection": {
82212
- capName: "oidc-connections",
82213
- capScope: "system",
82214
- addonId: null,
82215
- access: "delete",
82216
- role: "admin"
82217
- },
82218
- "oidcConnections.listConnections": {
82219
- capName: "oidc-connections",
82220
- capScope: "system",
82221
- addonId: null,
82222
- access: "view",
82223
- role: "admin"
82224
- },
82225
- "oidcConnections.updateConnection": {
82226
- capName: "oidc-connections",
82227
- capScope: "system",
82228
- addonId: null,
82229
- access: "create",
82230
- role: "admin"
82231
- },
82232
82005
  "osd.getStatus": {
82233
82006
  capName: "osd",
82234
82007
  capScope: "device",
@@ -85260,13 +85033,6 @@ Object.freeze({
85260
85033
  access: "delete",
85261
85034
  role: "admin"
85262
85035
  },
85263
- "storage.deleteLocation": {
85264
- capName: "storage",
85265
- capScope: "system",
85266
- addonId: null,
85267
- access: "delete",
85268
- role: "admin"
85269
- },
85270
85036
  "storage.endDownload": {
85271
85037
  capName: "storage",
85272
85038
  capScope: "system",
@@ -85323,13 +85089,6 @@ Object.freeze({
85323
85089
  access: "view",
85324
85090
  role: "admin"
85325
85091
  },
85326
- "storage.listProviders": {
85327
- capName: "storage",
85328
- capScope: "system",
85329
- addonId: null,
85330
- access: "view",
85331
- role: "admin"
85332
- },
85333
85092
  "storage.read": {
85334
85093
  capName: "storage",
85335
85094
  capScope: "system",
@@ -85351,27 +85110,6 @@ Object.freeze({
85351
85110
  access: "view",
85352
85111
  role: "admin"
85353
85112
  },
85354
- "storage.testConfig": {
85355
- capName: "storage",
85356
- capScope: "system",
85357
- addonId: null,
85358
- access: "view",
85359
- role: "admin"
85360
- },
85361
- "storage.testLocation": {
85362
- capName: "storage",
85363
- capScope: "system",
85364
- addonId: null,
85365
- access: "view",
85366
- role: "admin"
85367
- },
85368
- "storage.upsertLocation": {
85369
- capName: "storage",
85370
- capScope: "system",
85371
- addonId: null,
85372
- access: "create",
85373
- role: "admin"
85374
- },
85375
85113
  "storage.write": {
85376
85114
  capName: "storage",
85377
85115
  capScope: "system",