@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.
@@ -74,7 +74,7 @@ function createApiDeviceGateway(deps) {
74
74
  };
75
75
  }
76
76
  //#endregion
77
- //#region ../types/dist/event-category-BmPm98n0.mjs
77
+ //#region ../types/dist/event-category-78tcBemo.mjs
78
78
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
79
79
  EventCategory["SystemBoot"] = "system.boot";
80
80
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -195,6 +195,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
195
195
  */
196
196
  EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
197
197
  /**
198
+ * An addon is RUNNING although its installed package is below what the
199
+ * running server requires (`camstack.requires.addons` of the server, or the
200
+ * addon's own `requires.server`). Raised once per streak by the unsupported-
201
+ * addon tracker, on the hub and on agents; AlertCenter turns it into one
202
+ * operator alert per node and package. The addon is never held back for it.
203
+ *
204
+ * Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
205
+ */
206
+ EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
207
+ /**
208
+ * The package of an {@link AddonUnsupportedVersion} alert reached a supported
209
+ * version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
210
+ *
211
+ * Payload: `{ packageName, addonId, nodeId }`.
212
+ */
213
+ EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
214
+ /**
198
215
  * Monitor scheduled the next retry for a failed addon. Transient —
199
216
  * surfaced to the UI for live-updating the "next retry in Ns"
200
217
  * countdown on the Addons page row, NOT persisted as an alert.
@@ -305,7 +322,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
305
322
  EventCategory["ProcessRestarted"] = "process.restarted";
306
323
  /**
307
324
  * The SET of storage locations changed — one was created, edited, enabled,
308
- * disabled or deleted through `storage.upsertLocation` / `deleteLocation`.
325
+ * disabled or deleted through the location instances or the forced-delete action.
309
326
  *
310
327
  * Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
311
328
  * it must also converge on its own periodic path, because a dropped event
@@ -6056,7 +6073,7 @@ var ZodIssueCode = {
6056
6073
  var ZodFirstPartyTypeKind;
6057
6074
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6058
6075
  //#endregion
6059
- //#region ../types/dist/sleep-D7ZKm4nb.mjs
6076
+ //#region ../types/dist/sleep-AEnTN3b4.mjs
6060
6077
  /**
6061
6078
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6062
6079
  * window to float samples (D455).
@@ -7304,17 +7321,35 @@ var RecordIntegrationInstances = class {
7304
7321
  ...kind !== void 0 ? { kind } : {}
7305
7322
  });
7306
7323
  if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
7324
+ const initial = this.hooks.initialBody(name, kind);
7325
+ const patch = this.patchOf(values ?? {});
7326
+ if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
7327
+ kind,
7328
+ body: {
7329
+ ...initial,
7330
+ ...patch
7331
+ }
7332
+ }));
7307
7333
  await this.handle.put({
7308
7334
  id: minted,
7309
- data: this.hooks.initialBody(name, kind)
7335
+ data: initial
7310
7336
  }, { ifRev: 0 });
7311
- const patch = this.patchOf(values ?? {});
7312
7337
  if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
7313
7338
  await this.hooks.onChanged?.(minted, "created");
7314
7339
  return { id: minted };
7315
7340
  };
7316
7341
  updateInstance = async ({ id, name, values }) => {
7317
7342
  const patch = this.patchOf(values);
7343
+ if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
7344
+ const stored = await this.handle.get(id);
7345
+ if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
7346
+ kind: void 0,
7347
+ body: {
7348
+ ...stored.data,
7349
+ ...patch
7350
+ }
7351
+ }));
7352
+ }
7318
7353
  if (name !== void 0) patch[this.nameField] = name;
7319
7354
  await this.handle.patch(id, patch);
7320
7355
  await this.hooks.onChanged?.(id, "updated");
@@ -10641,7 +10676,6 @@ var CAP_NAMES = Object.freeze([
10641
10676
  "notifier",
10642
10677
  "numeric-sensor",
10643
10678
  "oauth-integration",
10644
- "oidc-connections",
10645
10679
  "osd",
10646
10680
  "osd-manager",
10647
10681
  "pet-feeder",
@@ -12533,8 +12567,7 @@ Object.freeze({
12533
12567
  "device-provider": { "reloadDevice": 18e4 },
12534
12568
  "llm": {
12535
12569
  "generate": 6e5,
12536
- "generateVision": 6e5,
12537
- "testProfile": 6e5
12570
+ "generateVision": 6e5
12538
12571
  },
12539
12572
  "llm-runtime": {
12540
12573
  "complete": 6e5,
@@ -14054,17 +14087,18 @@ function buildCapturingReply(envelope) {
14054
14087
  * message to what the kind supports — callers never special-case a service.
14055
14088
  *
14056
14089
  * DESIGN DECISIONS (locked):
14057
- * - Target CRUD lives on THIS cap (`upsertTarget` / `deleteTarget` /
14058
- * `setTargetEnabled`), each provider persisting via the `settings-store`
14059
- * cap. Rationale: the admin UI needs one uniform surface across the
14060
- * notifiers addon AND the HA addon; the addon-`globalSettingsSchema`-array
14061
- * alternative would fork the UI per addon and cannot host the
14062
- * discovery→adopt flow.
14063
- * - `listTargetKinds` / `listTargets` / `discoverTargets` return arrays →
14064
- * the generated cap-mount auto-`concatCollection`-fans them across every
14065
- * registered provider (notifiers addon + HA addon) so one catalog is
14066
- * routable. `send` / `testTarget` / CRUD route to ONE provider by the
14067
- * `addonId` the generated collection router extracts from the call input.
14090
+ * - A target is an INSTANCE of this function cap (epic #440, step 6): the
14091
+ * providers serve their targets as `integration-instances` records, one
14092
+ * record kind per target kind, and the admin lists, adds, edits, switches
14093
+ * and deletes them through that cap. This cap keeps what an instance cannot
14094
+ * say: the kind catalogue (`listTargetKinds`: capabilities, delivery
14095
+ * parameters, brand icon), dispatch (`send`, `testTarget`) and the form
14096
+ * helpers (`discoverTargets`, `probeTargetConfig`).
14097
+ * - `listTargetKinds` / `discoverTargets` return arrays → the generated
14098
+ * cap-mount auto-`concatCollection`-fans them across every registered
14099
+ * provider so one catalog is routable. `send` / `testTarget` /
14100
+ * `probeTargetConfig` route to ONE provider by the `addonId` the generated
14101
+ * collection router extracts from the call input.
14068
14102
  * - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
14069
14103
  * transformer) + UDS MsgPack both round-trip typed arrays — already used by
14070
14104
  * `storage` / `storage-provider` / `recording` caps over the same path. No
@@ -14309,7 +14343,7 @@ var TargetKindCapsSchema = object({
14309
14343
  * the union is large and not meant for runtime validation here; the exported
14310
14344
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
14311
14345
  */
14312
- var ConfigSchemaPassthrough$4 = unknown();
14346
+ var ConfigSchemaPassthrough$3 = unknown();
14313
14347
  var TargetKindSchema = object({
14314
14348
  kind: string(),
14315
14349
  label: string(),
@@ -14346,7 +14380,7 @@ var TargetKindSchema = object({
14346
14380
  * its raster path, which is the safe default for an unknown image.
14347
14381
  */
14348
14382
  iconMediaType: string().optional(),
14349
- configSchema: ConfigSchemaPassthrough$4,
14383
+ configSchema: ConfigSchemaPassthrough$3,
14350
14384
  /**
14351
14385
  * The config keys that decide WHERE this kind's secrets are sent (server,
14352
14386
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -14368,9 +14402,11 @@ var TargetKindSchema = object({
14368
14402
  caps: TargetKindCapsSchema
14369
14403
  });
14370
14404
  /**
14371
- * A persisted target. `config` holds secrets; providers REDACT secret fields
14372
- * (return a presence marker only) when serving `listTargets` — never
14373
- * round-trip a stored secret to the UI.
14405
+ * A target as a provider's own code sees it (the notification-center bridge, the
14406
+ * send path): the flat record body split into the name, the switch and the
14407
+ * kind's fields. `config` holds secrets; a reader that serves it to a client
14408
+ * REDACTS secret fields (a presence marker only) — never round-trip a stored
14409
+ * secret to the UI.
14374
14410
  */
14375
14411
  var TargetSchema = object({
14376
14412
  id: string(),
@@ -14413,13 +14449,13 @@ var ProbeTargetConfigResultSchema = object({
14413
14449
  stateInstance: string().optional(),
14414
14450
  error: string().optional()
14415
14451
  });
14416
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
14452
+ method(object({}), array(TargetKindSchema)), method(object({
14417
14453
  kind: string(),
14418
14454
  config: record(string(), unknown()).optional(),
14419
14455
  /**
14420
14456
  * When editing / duplicating, the blank password field never round-trips
14421
14457
  * the stored token. Pass the source target id so the provider can restore
14422
- * secrets server-side before dialling (same merge as upsert).
14458
+ * secrets server-side before dialling.
14423
14459
  */
14424
14460
  targetId: string().optional()
14425
14461
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
@@ -14442,27 +14478,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
14442
14478
  }), TestResultSchema, {
14443
14479
  kind: "mutation",
14444
14480
  auth: "admin"
14445
- }), method(object({
14446
- target: TargetSchema,
14447
- /**
14448
- * Duplicate flow: create a NEW target id while copying secrets from an
14449
- * existing row. The UI never holds the stored token; blank / redacted
14450
- * password fields are restored from this source (D634 still applies if
14451
- * destinations diverge without a re-typed secret).
14452
- */
14453
- cloneSecretsFrom: string().optional()
14454
- }), TargetSchema, {
14455
- kind: "mutation",
14456
- auth: "admin"
14457
- }), method(object({ targetId: string() }), _void(), {
14458
- kind: "mutation",
14459
- auth: "admin"
14460
- }), method(object({
14461
- targetId: string(),
14462
- enabled: boolean()
14463
- }), _void(), {
14464
- kind: "mutation",
14465
- auth: "admin"
14466
14481
  });
14467
14482
  looseObject({
14468
14483
  name: string().min(1),
@@ -22737,7 +22752,6 @@ var SYSTEM_CAP_VOCABULARY = {
22737
22752
  "notification-output": system("notification delivery — reached through notifier devices and rules"),
22738
22753
  "notification-rules": system("notification rules — authored on their own page"),
22739
22754
  "oauth-integration": system(IDENTITY),
22740
- "oidc-connections": system(IDENTITY),
22741
22755
  "osd-manager": system(PIPELINE),
22742
22756
  "pipeline-executor": system(PIPELINE),
22743
22757
  "pipeline-orchestrator": system(PIPELINE),
@@ -54578,7 +54592,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
54578
54592
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
54579
54593
  * clears it.
54580
54594
  */
54581
- var ConfigSchemaPassthrough$3 = custom();
54595
+ var ConfigSchemaPassthrough$2 = custom();
54582
54596
  var IntegrationInstanceIdSchema = string().min(1);
54583
54597
  var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
54584
54598
  /**
@@ -54624,7 +54638,16 @@ var IntegrationInstanceKindSchema = object({
54624
54638
  /** Relative hub path to start an interactive account link of an instance of this kind. */
54625
54639
  connectPath: string().min(1).optional(),
54626
54640
  /** Relative hub path to disconnect that account. */
54627
- disconnectPath: string().min(1).optional()
54641
+ disconnectPath: string().min(1).optional(),
54642
+ /**
54643
+ * Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
54644
+ * GENERIC widget id the client maps to a component; a client that knows none of them shows none.
54645
+ * `connection` widgets write connection values, `model` widgets own the model choice.
54646
+ */
54647
+ widgets: array(object({
54648
+ id: string().min(1),
54649
+ placement: _enum(["connection", "model"])
54650
+ })).optional()
54628
54651
  });
54629
54652
  /**
54630
54653
  * How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
@@ -54729,7 +54752,7 @@ var integrationInstancesCapability = {
54729
54752
  id: IntegrationInstanceIdSchema.nullable(),
54730
54753
  /** The kind of the create form (`id: null`) of a provider with several. */
54731
54754
  kind: string().min(1).optional()
54732
- }), ConfigSchemaPassthrough$3, { auth: "admin" }),
54755
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }),
54733
54756
  listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
54734
54757
  getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
54735
54758
  /**
@@ -55680,12 +55703,12 @@ var LlmModelInfoSchema = object({
55680
55703
  });
55681
55704
  /**
55682
55705
  * The provider-specific part of a profile, validated by the provider that owns
55683
- * the kind (`upsertProfile` refuses what it does not accept). A field its
55706
+ * the kind (saving an instance refuses what it does not accept). A field its
55684
55707
  * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
55685
55708
  * keychain, never in the row, and reads back as the redaction marker.
55686
55709
  */
55687
55710
  var LlmProviderConfigSchema = record(string(), unknown());
55688
- var LlmProfileSchema = object({
55711
+ object({
55689
55712
  id: string(),
55690
55713
  name: string(),
55691
55714
  /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
@@ -55779,8 +55802,8 @@ var LlmProviderWidgetSchema = object({
55779
55802
  /** ConfigUISchema tree passed through untyped on the wire (the
55780
55803
  * notification-output `ConfigSchemaPassthrough` precedent at
55781
55804
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
55782
- var ConfigSchemaPassthrough$2 = unknown();
55783
- var LlmProfileKindDescriptorSchema = object({
55805
+ var ConfigSchemaPassthrough$1 = unknown();
55806
+ object({
55784
55807
  kind: LlmProfileKindSchema,
55785
55808
  label: string(),
55786
55809
  /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
@@ -55788,9 +55811,9 @@ var LlmProfileKindDescriptorSchema = object({
55788
55811
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
55789
55812
  addonId: string(),
55790
55813
  /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
55791
- connectionSchema: ConfigSchemaPassthrough$2,
55814
+ connectionSchema: ConfigSchemaPassthrough$1,
55792
55815
  /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
55793
- advancedSchema: ConfigSchemaPassthrough$2.optional(),
55816
+ advancedSchema: ConfigSchemaPassthrough$1.optional(),
55794
55817
  /** The kind's defaults; a model from `listModels` may override any of them. */
55795
55818
  features: LlmModelFeaturesSchema,
55796
55819
  /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
@@ -55919,20 +55942,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
55919
55942
  }), method(object({
55920
55943
  addonId: string().optional(),
55921
55944
  requestId: string()
55922
- }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
55923
- kind: "mutation",
55924
- auth: "admin"
55925
- }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
55926
- kind: "mutation",
55927
- auth: "admin"
55928
- }), method(ProfileRefInputSchema, _void(), {
55929
- kind: "mutation",
55930
- auth: "admin"
55931
- }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
55932
- kind: "mutation",
55933
- auth: "admin",
55934
- timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
55935
- }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
55945
+ }), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
55936
55946
  kind: "mutation",
55937
55947
  auth: "admin"
55938
55948
  }), method(object({}), array(LlmDefaultSchema)), method(object({
@@ -56927,20 +56937,7 @@ method(_void(), MeshStatusSchema), method(object({
56927
56937
  /** Optional hostname override the host should advertise once joined. */
56928
56938
  hostname: string().optional() }), object({
56929
56939
  /** Authentication URL the operator should open in a browser. */
56930
- 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({
56931
- /** Optional auth key — when provided, probes the key validity
56932
- * against the provider's API. Omit when already joined to
56933
- * just ping the daemon. */
56934
- authKey: string().optional() }), object({
56935
- ok: boolean(),
56936
- /** Provider-side identifier resolved by the probe (tailnet
56937
- * name for Tailscale, network id for ZeroTier, etc.). */
56938
- tenant: string().optional(),
56939
- /** Daemon binary version, when reachable. */
56940
- daemonVersion: string().optional(),
56941
- /** Human-readable error when `ok: false`. */
56942
- error: string().optional()
56943
- }), { kind: "mutation" });
56940
+ 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() }));
56944
56941
  object({
56945
56942
  value: number().nullable().meta(readingMeta("device", { label: "Total" })),
56946
56943
  lastFetchedAt: number()
@@ -66614,61 +66611,6 @@ var oauthIntegrationCapability = {
66614
66611
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
66615
66612
  };
66616
66613
  /**
66617
- * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
66618
- *
66619
- * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
66620
- * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
66621
- * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
66622
- * immutable after create.
66623
- */
66624
- var ConfigSchemaPassthrough$1 = unknown();
66625
- var OidcConnectionSchema = object({
66626
- id: string().min(1),
66627
- displayName: string(),
66628
- icon: string(),
66629
- issuerUrl: string(),
66630
- clientId: string(),
66631
- /** Client id + secret present — never the secret value. */
66632
- configured: boolean(),
66633
- /**
66634
- * Values for the connection form schema. `clientSecret` is a keychain
66635
- * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
66636
- */
66637
- formValues: record(string(), unknown()).optional()
66638
- });
66639
- /**
66640
- * Patch one connection. Omitted or empty `clientSecret` keeps the stored
66641
- * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
66642
- */
66643
- var OidcConnectionUpdateInputSchema = object({
66644
- id: string().min(1),
66645
- displayName: string().min(1),
66646
- icon: string().optional(),
66647
- issuerUrl: string().optional(),
66648
- clientId: string().optional(),
66649
- clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
66650
- redirectUri: string().optional(),
66651
- scopes: string().optional(),
66652
- usernameClaim: _enum([
66653
- "preferred_username",
66654
- "email",
66655
- "sub"
66656
- ]).optional()
66657
- });
66658
- method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
66659
- id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
66660
- displayName: string().min(1)
66661
- }), object({ id: string() }), {
66662
- kind: "mutation",
66663
- auth: "admin"
66664
- }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
66665
- kind: "mutation",
66666
- auth: "admin"
66667
- }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
66668
- kind: "mutation",
66669
- auth: "admin"
66670
- });
66671
- /**
66672
66614
  * Generic on-screen-display (video overlay) cap. Each camera exposes
66673
66615
  * a firmware-defined list of overlays (channel name, timestamp,
66674
66616
  * watermark, logo, …); the cap models them as a homogeneous array of
@@ -72841,21 +72783,6 @@ method(object({
72841
72783
  */
72842
72784
  ttlSec: union([number().int().positive(), literal("never")]).optional()
72843
72785
  }), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
72844
- var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
72845
- providerId: string().min(1),
72846
- displayName: string().min(1),
72847
- configSchema: unknown(),
72848
- nodeLocal: boolean(),
72849
- shouldSaveDiskSpace: literal(true),
72850
- minFreePercent: number().min(0).max(100)
72851
- }), object({
72852
- providerId: string().min(1),
72853
- displayName: string().min(1),
72854
- configSchema: unknown(),
72855
- nodeLocal: boolean(),
72856
- shouldSaveDiskSpace: literal(false),
72857
- minFreePercent: literal(null)
72858
- })]);
72859
72786
  method(object({
72860
72787
  location: StorageLocationRefSchema,
72861
72788
  relativePath: string()
@@ -72917,42 +72844,7 @@ method(object({
72917
72844
  }), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
72918
72845
  kind: "mutation",
72919
72846
  auth: "admin"
72920
- }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(StorageLocationSchema.omit({
72921
- createdAt: true,
72922
- updatedAt: true
72923
- }), StorageLocationSchema, {
72924
- kind: "mutation",
72925
- auth: "admin"
72926
- }), method(object({
72927
- id: string(),
72928
- force: boolean().optional()
72929
- }), _void(), {
72930
- kind: "mutation",
72931
- auth: "admin"
72932
- }), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
72933
- ok: boolean(),
72934
- error: string().optional()
72935
- }), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
72936
- providerId: string(),
72937
- /**
72938
- * The location this config is an UNSAVED edit of, when there is one.
72939
- *
72940
- * `listLocations` replaces every declared secret with the redaction
72941
- * sentinel, so the edit modal's form state holds the sentinel for any
72942
- * credential the operator did not retype — and posting that here
72943
- * without a way to resolve it makes the provider try to authenticate
72944
- * as `__camstack_redacted__` and report the operator's own working
72945
- * password as wrong. Given this id, the orchestrator restores each
72946
- * sentinel from the stored config (same rule as `upsertLocation`)
72947
- * before dispatching. Omitted by the "Add location" wizard, where
72948
- * every value was typed just now and nothing is stored yet.
72949
- */
72950
- locationId: string().optional(),
72951
- config: record(string(), unknown())
72952
- }), object({
72953
- ok: boolean(),
72954
- error: string().optional()
72955
- }), { auth: "admin" });
72847
+ }), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
72956
72848
  /** One table of the settings database. */
72957
72849
  var StorageTableSchema = object({
72958
72850
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -80552,13 +80444,6 @@ Object.freeze({
80552
80444
  access: "delete",
80553
80445
  role: "admin"
80554
80446
  },
80555
- "llm.deleteProfile": {
80556
- capName: "llm",
80557
- capScope: "system",
80558
- addonId: null,
80559
- access: "delete",
80560
- role: "admin"
80561
- },
80562
80447
  "llm.generate": {
80563
80448
  capName: "llm",
80564
80449
  capScope: "system",
@@ -80622,20 +80507,6 @@ Object.freeze({
80622
80507
  access: "view",
80623
80508
  role: "admin"
80624
80509
  },
80625
- "llm.listProfileKinds": {
80626
- capName: "llm",
80627
- capScope: "system",
80628
- addonId: null,
80629
- access: "view",
80630
- role: "admin"
80631
- },
80632
- "llm.listProfiles": {
80633
- capName: "llm",
80634
- capScope: "system",
80635
- addonId: null,
80636
- access: "view",
80637
- role: "admin"
80638
- },
80639
80510
  "llm.listRuntimeNodes": {
80640
80511
  capName: "llm",
80641
80512
  capScope: "system",
@@ -80643,13 +80514,6 @@ Object.freeze({
80643
80514
  access: "view",
80644
80515
  role: "admin"
80645
80516
  },
80646
- "llm.migrateRawSecrets": {
80647
- capName: "llm",
80648
- capScope: "system",
80649
- addonId: null,
80650
- access: "create",
80651
- role: "admin"
80652
- },
80653
80517
  "llm.resolveModelRef": {
80654
80518
  capName: "llm",
80655
80519
  capScope: "system",
@@ -80678,20 +80542,6 @@ Object.freeze({
80678
80542
  access: "create",
80679
80543
  role: "admin"
80680
80544
  },
80681
- "llm.testProfile": {
80682
- capName: "llm",
80683
- capScope: "system",
80684
- addonId: null,
80685
- access: "create",
80686
- role: "admin"
80687
- },
80688
- "llm.upsertProfile": {
80689
- capName: "llm",
80690
- capScope: "system",
80691
- addonId: null,
80692
- access: "create",
80693
- role: "admin"
80694
- },
80695
80545
  "llmRuntime.appleAvailability": {
80696
80546
  capName: "llm-runtime",
80697
80547
  capScope: "system",
@@ -81196,13 +81046,6 @@ Object.freeze({
81196
81046
  access: "create",
81197
81047
  role: "admin"
81198
81048
  },
81199
- "meshNetwork.testConnection": {
81200
- capName: "mesh-network",
81201
- capScope: "system",
81202
- addonId: null,
81203
- access: "create",
81204
- role: "admin"
81205
- },
81206
81049
  "meter.getStatus": {
81207
81050
  capName: "meter",
81208
81051
  capScope: "device",
@@ -81861,13 +81704,6 @@ Object.freeze({
81861
81704
  access: "create",
81862
81705
  role: "admin"
81863
81706
  },
81864
- "notificationOutput.deleteTarget": {
81865
- capName: "notification-output",
81866
- capScope: "system",
81867
- addonId: null,
81868
- access: "delete",
81869
- role: "admin"
81870
- },
81871
81707
  "notificationOutput.discoverTargets": {
81872
81708
  capName: "notification-output",
81873
81709
  capScope: "system",
@@ -81875,13 +81711,6 @@ Object.freeze({
81875
81711
  access: "view",
81876
81712
  role: "admin"
81877
81713
  },
81878
- "notificationOutput.getTarget": {
81879
- capName: "notification-output",
81880
- capScope: "system",
81881
- addonId: null,
81882
- access: "view",
81883
- role: "admin"
81884
- },
81885
81714
  "notificationOutput.listTargetKinds": {
81886
81715
  capName: "notification-output",
81887
81716
  capScope: "system",
@@ -81889,13 +81718,6 @@ Object.freeze({
81889
81718
  access: "view",
81890
81719
  role: "admin"
81891
81720
  },
81892
- "notificationOutput.listTargets": {
81893
- capName: "notification-output",
81894
- capScope: "system",
81895
- addonId: null,
81896
- access: "view",
81897
- role: "admin"
81898
- },
81899
81721
  "notificationOutput.probeTargetConfig": {
81900
81722
  capName: "notification-output",
81901
81723
  capScope: "system",
@@ -81910,13 +81732,6 @@ Object.freeze({
81910
81732
  access: "create",
81911
81733
  role: "admin"
81912
81734
  },
81913
- "notificationOutput.setTargetEnabled": {
81914
- capName: "notification-output",
81915
- capScope: "system",
81916
- addonId: null,
81917
- access: "create",
81918
- role: "admin"
81919
- },
81920
81735
  "notificationOutput.testTarget": {
81921
81736
  capName: "notification-output",
81922
81737
  capScope: "system",
@@ -81924,13 +81739,6 @@ Object.freeze({
81924
81739
  access: "create",
81925
81740
  role: "admin"
81926
81741
  },
81927
- "notificationOutput.upsertTarget": {
81928
- capName: "notification-output",
81929
- capScope: "system",
81930
- addonId: null,
81931
- access: "create",
81932
- role: "admin"
81933
- },
81934
81742
  "notificationRules.activateAlarmProfile": {
81935
81743
  capName: "notification-rules",
81936
81744
  capScope: "system",
@@ -82190,41 +81998,6 @@ Object.freeze({
82190
81998
  access: "view",
82191
81999
  role: "admin"
82192
82000
  },
82193
- "oidcConnections.connectionFormSchema": {
82194
- capName: "oidc-connections",
82195
- capScope: "system",
82196
- addonId: null,
82197
- access: "view",
82198
- role: "admin"
82199
- },
82200
- "oidcConnections.createConnection": {
82201
- capName: "oidc-connections",
82202
- capScope: "system",
82203
- addonId: null,
82204
- access: "create",
82205
- role: "admin"
82206
- },
82207
- "oidcConnections.deleteConnection": {
82208
- capName: "oidc-connections",
82209
- capScope: "system",
82210
- addonId: null,
82211
- access: "delete",
82212
- role: "admin"
82213
- },
82214
- "oidcConnections.listConnections": {
82215
- capName: "oidc-connections",
82216
- capScope: "system",
82217
- addonId: null,
82218
- access: "view",
82219
- role: "admin"
82220
- },
82221
- "oidcConnections.updateConnection": {
82222
- capName: "oidc-connections",
82223
- capScope: "system",
82224
- addonId: null,
82225
- access: "create",
82226
- role: "admin"
82227
- },
82228
82001
  "osd.getStatus": {
82229
82002
  capName: "osd",
82230
82003
  capScope: "device",
@@ -85256,13 +85029,6 @@ Object.freeze({
85256
85029
  access: "delete",
85257
85030
  role: "admin"
85258
85031
  },
85259
- "storage.deleteLocation": {
85260
- capName: "storage",
85261
- capScope: "system",
85262
- addonId: null,
85263
- access: "delete",
85264
- role: "admin"
85265
- },
85266
85032
  "storage.endDownload": {
85267
85033
  capName: "storage",
85268
85034
  capScope: "system",
@@ -85319,13 +85085,6 @@ Object.freeze({
85319
85085
  access: "view",
85320
85086
  role: "admin"
85321
85087
  },
85322
- "storage.listProviders": {
85323
- capName: "storage",
85324
- capScope: "system",
85325
- addonId: null,
85326
- access: "view",
85327
- role: "admin"
85328
- },
85329
85088
  "storage.read": {
85330
85089
  capName: "storage",
85331
85090
  capScope: "system",
@@ -85347,27 +85106,6 @@ Object.freeze({
85347
85106
  access: "view",
85348
85107
  role: "admin"
85349
85108
  },
85350
- "storage.testConfig": {
85351
- capName: "storage",
85352
- capScope: "system",
85353
- addonId: null,
85354
- access: "view",
85355
- role: "admin"
85356
- },
85357
- "storage.testLocation": {
85358
- capName: "storage",
85359
- capScope: "system",
85360
- addonId: null,
85361
- access: "view",
85362
- role: "admin"
85363
- },
85364
- "storage.upsertLocation": {
85365
- capName: "storage",
85366
- capScope: "system",
85367
- addonId: null,
85368
- access: "create",
85369
- role: "admin"
85370
- },
85371
85109
  "storage.write": {
85372
85110
  capName: "storage",
85373
85111
  capScope: "system",