@camstack/addon-export-hap 1.2.195 → 1.2.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/hap-export.addon.js +83 -345
- package/dist/hap-export.addon.mjs +83 -345
- package/package.json +2 -2
package/dist/hap-export.addon.js
CHANGED
|
@@ -49,7 +49,7 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
49
49
|
node_fs_promises = __toESM(node_fs_promises, 1);
|
|
50
50
|
let node_events = require("node:events");
|
|
51
51
|
let node_dgram = require("node:dgram");
|
|
52
|
-
//#region ../types/dist/event-category-
|
|
52
|
+
//#region ../types/dist/event-category-78tcBemo.mjs
|
|
53
53
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
54
54
|
EventCategory["SystemBoot"] = "system.boot";
|
|
55
55
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -170,6 +170,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
170
170
|
*/
|
|
171
171
|
EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
|
|
172
172
|
/**
|
|
173
|
+
* An addon is RUNNING although its installed package is below what the
|
|
174
|
+
* running server requires (`camstack.requires.addons` of the server, or the
|
|
175
|
+
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
176
|
+
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
177
|
+
* operator alert per node and package. The addon is never held back for it.
|
|
178
|
+
*
|
|
179
|
+
* Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
|
|
180
|
+
*/
|
|
181
|
+
EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
|
|
182
|
+
/**
|
|
183
|
+
* The package of an {@link AddonUnsupportedVersion} alert reached a supported
|
|
184
|
+
* version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
|
|
185
|
+
*
|
|
186
|
+
* Payload: `{ packageName, addonId, nodeId }`.
|
|
187
|
+
*/
|
|
188
|
+
EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
|
|
189
|
+
/**
|
|
173
190
|
* Monitor scheduled the next retry for a failed addon. Transient —
|
|
174
191
|
* surfaced to the UI for live-updating the "next retry in Ns"
|
|
175
192
|
* countdown on the Addons page row, NOT persisted as an alert.
|
|
@@ -280,7 +297,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
280
297
|
EventCategory["ProcessRestarted"] = "process.restarted";
|
|
281
298
|
/**
|
|
282
299
|
* The SET of storage locations changed — one was created, edited, enabled,
|
|
283
|
-
* disabled or deleted through
|
|
300
|
+
* disabled or deleted through the location instances or the forced-delete action.
|
|
284
301
|
*
|
|
285
302
|
* Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
|
|
286
303
|
* it must also converge on its own periodic path, because a dropped event
|
|
@@ -6031,7 +6048,7 @@ var ZodIssueCode = {
|
|
|
6031
6048
|
var ZodFirstPartyTypeKind;
|
|
6032
6049
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6033
6050
|
//#endregion
|
|
6034
|
-
//#region ../types/dist/sleep-
|
|
6051
|
+
//#region ../types/dist/sleep-AEnTN3b4.mjs
|
|
6035
6052
|
/**
|
|
6036
6053
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6037
6054
|
* window to float samples (D455).
|
|
@@ -7279,17 +7296,35 @@ var RecordIntegrationInstances = class {
|
|
|
7279
7296
|
...kind !== void 0 ? { kind } : {}
|
|
7280
7297
|
});
|
|
7281
7298
|
if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
|
|
7299
|
+
const initial = this.hooks.initialBody(name, kind);
|
|
7300
|
+
const patch = this.patchOf(values ?? {});
|
|
7301
|
+
if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
|
|
7302
|
+
kind,
|
|
7303
|
+
body: {
|
|
7304
|
+
...initial,
|
|
7305
|
+
...patch
|
|
7306
|
+
}
|
|
7307
|
+
}));
|
|
7282
7308
|
await this.handle.put({
|
|
7283
7309
|
id: minted,
|
|
7284
|
-
data:
|
|
7310
|
+
data: initial
|
|
7285
7311
|
}, { ifRev: 0 });
|
|
7286
|
-
const patch = this.patchOf(values ?? {});
|
|
7287
7312
|
if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
|
|
7288
7313
|
await this.hooks.onChanged?.(minted, "created");
|
|
7289
7314
|
return { id: minted };
|
|
7290
7315
|
};
|
|
7291
7316
|
updateInstance = async ({ id, name, values }) => {
|
|
7292
7317
|
const patch = this.patchOf(values);
|
|
7318
|
+
if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
|
|
7319
|
+
const stored = await this.handle.get(id);
|
|
7320
|
+
if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
|
|
7321
|
+
kind: void 0,
|
|
7322
|
+
body: {
|
|
7323
|
+
...stored.data,
|
|
7324
|
+
...patch
|
|
7325
|
+
}
|
|
7326
|
+
}));
|
|
7327
|
+
}
|
|
7293
7328
|
if (name !== void 0) patch[this.nameField] = name;
|
|
7294
7329
|
await this.handle.patch(id, patch);
|
|
7295
7330
|
await this.hooks.onChanged?.(id, "updated");
|
|
@@ -10697,7 +10732,6 @@ var CAP_NAMES = Object.freeze([
|
|
|
10697
10732
|
"notifier",
|
|
10698
10733
|
"numeric-sensor",
|
|
10699
10734
|
"oauth-integration",
|
|
10700
|
-
"oidc-connections",
|
|
10701
10735
|
"osd",
|
|
10702
10736
|
"osd-manager",
|
|
10703
10737
|
"pet-feeder",
|
|
@@ -12589,8 +12623,7 @@ Object.freeze({
|
|
|
12589
12623
|
"device-provider": { "reloadDevice": 18e4 },
|
|
12590
12624
|
"llm": {
|
|
12591
12625
|
"generate": 6e5,
|
|
12592
|
-
"generateVision": 6e5
|
|
12593
|
-
"testProfile": 6e5
|
|
12626
|
+
"generateVision": 6e5
|
|
12594
12627
|
},
|
|
12595
12628
|
"llm-runtime": {
|
|
12596
12629
|
"complete": 6e5,
|
|
@@ -14589,17 +14622,18 @@ var IntegrationInstanceRefSchema = object({
|
|
|
14589
14622
|
* message to what the kind supports — callers never special-case a service.
|
|
14590
14623
|
*
|
|
14591
14624
|
* DESIGN DECISIONS (locked):
|
|
14592
|
-
* -
|
|
14593
|
-
*
|
|
14594
|
-
*
|
|
14595
|
-
*
|
|
14596
|
-
*
|
|
14597
|
-
*
|
|
14598
|
-
*
|
|
14599
|
-
*
|
|
14600
|
-
*
|
|
14601
|
-
* routable. `send` / `testTarget` /
|
|
14602
|
-
* `
|
|
14625
|
+
* - A target is an INSTANCE of this function cap (epic #440, step 6): the
|
|
14626
|
+
* providers serve their targets as `integration-instances` records, one
|
|
14627
|
+
* record kind per target kind, and the admin lists, adds, edits, switches
|
|
14628
|
+
* and deletes them through that cap. This cap keeps what an instance cannot
|
|
14629
|
+
* say: the kind catalogue (`listTargetKinds`: capabilities, delivery
|
|
14630
|
+
* parameters, brand icon), dispatch (`send`, `testTarget`) and the form
|
|
14631
|
+
* helpers (`discoverTargets`, `probeTargetConfig`).
|
|
14632
|
+
* - `listTargetKinds` / `discoverTargets` return arrays → the generated
|
|
14633
|
+
* cap-mount auto-`concatCollection`-fans them across every registered
|
|
14634
|
+
* provider so one catalog is routable. `send` / `testTarget` /
|
|
14635
|
+
* `probeTargetConfig` route to ONE provider by the `addonId` the generated
|
|
14636
|
+
* collection router extracts from the call input.
|
|
14603
14637
|
* - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
|
|
14604
14638
|
* transformer) + UDS MsgPack both round-trip typed arrays — already used by
|
|
14605
14639
|
* `storage` / `storage-provider` / `recording` caps over the same path. No
|
|
@@ -14844,7 +14878,7 @@ var TargetKindCapsSchema = object({
|
|
|
14844
14878
|
* the union is large and not meant for runtime validation here; the exported
|
|
14845
14879
|
* `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
|
|
14846
14880
|
*/
|
|
14847
|
-
var ConfigSchemaPassthrough$
|
|
14881
|
+
var ConfigSchemaPassthrough$3 = unknown();
|
|
14848
14882
|
var TargetKindSchema = object({
|
|
14849
14883
|
kind: string(),
|
|
14850
14884
|
label: string(),
|
|
@@ -14881,7 +14915,7 @@ var TargetKindSchema = object({
|
|
|
14881
14915
|
* its raster path, which is the safe default for an unknown image.
|
|
14882
14916
|
*/
|
|
14883
14917
|
iconMediaType: string().optional(),
|
|
14884
|
-
configSchema: ConfigSchemaPassthrough$
|
|
14918
|
+
configSchema: ConfigSchemaPassthrough$3,
|
|
14885
14919
|
/**
|
|
14886
14920
|
* The config keys that decide WHERE this kind's secrets are sent (server,
|
|
14887
14921
|
* base URL, instance, chat, recipient). A save that changes any of them
|
|
@@ -14903,9 +14937,11 @@ var TargetKindSchema = object({
|
|
|
14903
14937
|
caps: TargetKindCapsSchema
|
|
14904
14938
|
});
|
|
14905
14939
|
/**
|
|
14906
|
-
* A
|
|
14907
|
-
*
|
|
14908
|
-
*
|
|
14940
|
+
* A target as a provider's own code sees it (the notification-center bridge, the
|
|
14941
|
+
* send path): the flat record body split into the name, the switch and the
|
|
14942
|
+
* kind's fields. `config` holds secrets; a reader that serves it to a client
|
|
14943
|
+
* REDACTS secret fields (a presence marker only) — never round-trip a stored
|
|
14944
|
+
* secret to the UI.
|
|
14909
14945
|
*/
|
|
14910
14946
|
var TargetSchema = object({
|
|
14911
14947
|
id: string(),
|
|
@@ -14948,13 +14984,13 @@ var ProbeTargetConfigResultSchema = object({
|
|
|
14948
14984
|
stateInstance: string().optional(),
|
|
14949
14985
|
error: string().optional()
|
|
14950
14986
|
});
|
|
14951
|
-
method(object({}), array(TargetKindSchema)), method(object({
|
|
14987
|
+
method(object({}), array(TargetKindSchema)), method(object({
|
|
14952
14988
|
kind: string(),
|
|
14953
14989
|
config: record(string(), unknown()).optional(),
|
|
14954
14990
|
/**
|
|
14955
14991
|
* When editing / duplicating, the blank password field never round-trips
|
|
14956
14992
|
* the stored token. Pass the source target id so the provider can restore
|
|
14957
|
-
* secrets server-side before dialling
|
|
14993
|
+
* secrets server-side before dialling.
|
|
14958
14994
|
*/
|
|
14959
14995
|
targetId: string().optional()
|
|
14960
14996
|
}), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
|
|
@@ -14977,27 +15013,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14977
15013
|
}), TestResultSchema, {
|
|
14978
15014
|
kind: "mutation",
|
|
14979
15015
|
auth: "admin"
|
|
14980
|
-
}), method(object({
|
|
14981
|
-
target: TargetSchema,
|
|
14982
|
-
/**
|
|
14983
|
-
* Duplicate flow: create a NEW target id while copying secrets from an
|
|
14984
|
-
* existing row. The UI never holds the stored token; blank / redacted
|
|
14985
|
-
* password fields are restored from this source (D634 still applies if
|
|
14986
|
-
* destinations diverge without a re-typed secret).
|
|
14987
|
-
*/
|
|
14988
|
-
cloneSecretsFrom: string().optional()
|
|
14989
|
-
}), TargetSchema, {
|
|
14990
|
-
kind: "mutation",
|
|
14991
|
-
auth: "admin"
|
|
14992
|
-
}), method(object({ targetId: string() }), _void(), {
|
|
14993
|
-
kind: "mutation",
|
|
14994
|
-
auth: "admin"
|
|
14995
|
-
}), method(object({
|
|
14996
|
-
targetId: string(),
|
|
14997
|
-
enabled: boolean()
|
|
14998
|
-
}), _void(), {
|
|
14999
|
-
kind: "mutation",
|
|
15000
|
-
auth: "admin"
|
|
15001
15016
|
});
|
|
15002
15017
|
looseObject({
|
|
15003
15018
|
name: string().min(1),
|
|
@@ -23489,7 +23504,6 @@ var SYSTEM_CAP_VOCABULARY = {
|
|
|
23489
23504
|
"notification-output": system("notification delivery — reached through notifier devices and rules"),
|
|
23490
23505
|
"notification-rules": system("notification rules — authored on their own page"),
|
|
23491
23506
|
"oauth-integration": system(IDENTITY),
|
|
23492
|
-
"oidc-connections": system(IDENTITY),
|
|
23493
23507
|
"osd-manager": system(PIPELINE),
|
|
23494
23508
|
"pipeline-executor": system(PIPELINE),
|
|
23495
23509
|
"pipeline-orchestrator": system(PIPELINE),
|
|
@@ -55391,7 +55405,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
|
|
|
55391
55405
|
* or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
|
|
55392
55406
|
* clears it.
|
|
55393
55407
|
*/
|
|
55394
|
-
var ConfigSchemaPassthrough$
|
|
55408
|
+
var ConfigSchemaPassthrough$2 = custom();
|
|
55395
55409
|
var IntegrationInstanceIdSchema = string().min(1);
|
|
55396
55410
|
var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
|
|
55397
55411
|
/**
|
|
@@ -55437,7 +55451,16 @@ var IntegrationInstanceKindSchema = object({
|
|
|
55437
55451
|
/** Relative hub path to start an interactive account link of an instance of this kind. */
|
|
55438
55452
|
connectPath: string().min(1).optional(),
|
|
55439
55453
|
/** Relative hub path to disconnect that account. */
|
|
55440
|
-
disconnectPath: string().min(1).optional()
|
|
55454
|
+
disconnectPath: string().min(1).optional(),
|
|
55455
|
+
/**
|
|
55456
|
+
* Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
|
|
55457
|
+
* GENERIC widget id the client maps to a component; a client that knows none of them shows none.
|
|
55458
|
+
* `connection` widgets write connection values, `model` widgets own the model choice.
|
|
55459
|
+
*/
|
|
55460
|
+
widgets: array(object({
|
|
55461
|
+
id: string().min(1),
|
|
55462
|
+
placement: _enum(["connection", "model"])
|
|
55463
|
+
})).optional()
|
|
55441
55464
|
});
|
|
55442
55465
|
/**
|
|
55443
55466
|
* How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
|
|
@@ -55542,7 +55565,7 @@ var integrationInstancesCapability = {
|
|
|
55542
55565
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
55543
55566
|
/** The kind of the create form (`id: null`) of a provider with several. */
|
|
55544
55567
|
kind: string().min(1).optional()
|
|
55545
|
-
}), ConfigSchemaPassthrough$
|
|
55568
|
+
}), ConfigSchemaPassthrough$2, { auth: "admin" }),
|
|
55546
55569
|
listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
|
|
55547
55570
|
getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
|
|
55548
55571
|
/**
|
|
@@ -56493,12 +56516,12 @@ var LlmModelInfoSchema = object({
|
|
|
56493
56516
|
});
|
|
56494
56517
|
/**
|
|
56495
56518
|
* The provider-specific part of a profile, validated by the provider that owns
|
|
56496
|
-
* the kind (
|
|
56519
|
+
* the kind (saving an instance refuses what it does not accept). A field its
|
|
56497
56520
|
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
56498
56521
|
* keychain, never in the row, and reads back as the redaction marker.
|
|
56499
56522
|
*/
|
|
56500
56523
|
var LlmProviderConfigSchema = record(string(), unknown());
|
|
56501
|
-
|
|
56524
|
+
object({
|
|
56502
56525
|
id: string(),
|
|
56503
56526
|
name: string(),
|
|
56504
56527
|
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
@@ -56592,8 +56615,8 @@ var LlmProviderWidgetSchema = object({
|
|
|
56592
56615
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
56593
56616
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
56594
56617
|
* notification-output.cap.ts:151); the exported TS type re-tightens it. */
|
|
56595
|
-
var ConfigSchemaPassthrough$
|
|
56596
|
-
|
|
56618
|
+
var ConfigSchemaPassthrough$1 = unknown();
|
|
56619
|
+
object({
|
|
56597
56620
|
kind: LlmProfileKindSchema,
|
|
56598
56621
|
label: string(),
|
|
56599
56622
|
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
@@ -56601,9 +56624,9 @@ var LlmProfileKindDescriptorSchema = object({
|
|
|
56601
56624
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
56602
56625
|
addonId: string(),
|
|
56603
56626
|
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
56604
|
-
connectionSchema: ConfigSchemaPassthrough$
|
|
56627
|
+
connectionSchema: ConfigSchemaPassthrough$1,
|
|
56605
56628
|
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
56606
|
-
advancedSchema: ConfigSchemaPassthrough$
|
|
56629
|
+
advancedSchema: ConfigSchemaPassthrough$1.optional(),
|
|
56607
56630
|
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
56608
56631
|
features: LlmModelFeaturesSchema,
|
|
56609
56632
|
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
@@ -56732,20 +56755,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
56732
56755
|
}), method(object({
|
|
56733
56756
|
addonId: string().optional(),
|
|
56734
56757
|
requestId: string()
|
|
56735
|
-
}), _void(), { kind: "mutation" }), method(
|
|
56736
|
-
kind: "mutation",
|
|
56737
|
-
auth: "admin"
|
|
56738
|
-
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
56739
|
-
kind: "mutation",
|
|
56740
|
-
auth: "admin"
|
|
56741
|
-
}), method(ProfileRefInputSchema, _void(), {
|
|
56742
|
-
kind: "mutation",
|
|
56743
|
-
auth: "admin"
|
|
56744
|
-
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
56745
|
-
kind: "mutation",
|
|
56746
|
-
auth: "admin",
|
|
56747
|
-
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
56748
|
-
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
56758
|
+
}), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
56749
56759
|
kind: "mutation",
|
|
56750
56760
|
auth: "admin"
|
|
56751
56761
|
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
@@ -57740,20 +57750,7 @@ method(_void(), MeshStatusSchema), method(object({
|
|
|
57740
57750
|
/** Optional hostname override the host should advertise once joined. */
|
|
57741
57751
|
hostname: string().optional() }), object({
|
|
57742
57752
|
/** Authentication URL the operator should open in a browser. */
|
|
57743
|
-
loginUrl: string() }), { kind: "mutation" }), method(_void(), object({ left: literal(true) }), { kind: "mutation" }), method(_void(), object({ loggedOut: literal(true) }), { kind: "mutation" }), method(_void(), object({ peers: array(MeshPeerSchema).readonly() }))
|
|
57744
|
-
/** Optional auth key — when provided, probes the key validity
|
|
57745
|
-
* against the provider's API. Omit when already joined to
|
|
57746
|
-
* just ping the daemon. */
|
|
57747
|
-
authKey: string().optional() }), object({
|
|
57748
|
-
ok: boolean(),
|
|
57749
|
-
/** Provider-side identifier resolved by the probe (tailnet
|
|
57750
|
-
* name for Tailscale, network id for ZeroTier, etc.). */
|
|
57751
|
-
tenant: string().optional(),
|
|
57752
|
-
/** Daemon binary version, when reachable. */
|
|
57753
|
-
daemonVersion: string().optional(),
|
|
57754
|
-
/** Human-readable error when `ok: false`. */
|
|
57755
|
-
error: string().optional()
|
|
57756
|
-
}), { kind: "mutation" });
|
|
57753
|
+
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() }));
|
|
57757
57754
|
object({
|
|
57758
57755
|
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
57759
57756
|
lastFetchedAt: number()
|
|
@@ -67411,61 +67408,6 @@ var OauthIntegrationDescriptorSchema = object({
|
|
|
67411
67408
|
});
|
|
67412
67409
|
method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" });
|
|
67413
67410
|
/**
|
|
67414
|
-
* `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
|
|
67415
|
-
*
|
|
67416
|
-
* One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
|
|
67417
|
-
* ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
|
|
67418
|
-
* Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
|
|
67419
|
-
* immutable after create.
|
|
67420
|
-
*/
|
|
67421
|
-
var ConfigSchemaPassthrough$1 = unknown();
|
|
67422
|
-
var OidcConnectionSchema = object({
|
|
67423
|
-
id: string().min(1),
|
|
67424
|
-
displayName: string(),
|
|
67425
|
-
icon: string(),
|
|
67426
|
-
issuerUrl: string(),
|
|
67427
|
-
clientId: string(),
|
|
67428
|
-
/** Client id + secret present — never the secret value. */
|
|
67429
|
-
configured: boolean(),
|
|
67430
|
-
/**
|
|
67431
|
-
* Values for the connection form schema. `clientSecret` is a keychain
|
|
67432
|
-
* {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
|
|
67433
|
-
*/
|
|
67434
|
-
formValues: record(string(), unknown()).optional()
|
|
67435
|
-
});
|
|
67436
|
-
/**
|
|
67437
|
-
* Patch one connection. Omitted or empty `clientSecret` keeps the stored
|
|
67438
|
-
* secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
|
|
67439
|
-
*/
|
|
67440
|
-
var OidcConnectionUpdateInputSchema = object({
|
|
67441
|
-
id: string().min(1),
|
|
67442
|
-
displayName: string().min(1),
|
|
67443
|
-
icon: string().optional(),
|
|
67444
|
-
issuerUrl: string().optional(),
|
|
67445
|
-
clientId: string().optional(),
|
|
67446
|
-
clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
|
|
67447
|
-
redirectUri: string().optional(),
|
|
67448
|
-
scopes: string().optional(),
|
|
67449
|
-
usernameClaim: _enum([
|
|
67450
|
-
"preferred_username",
|
|
67451
|
-
"email",
|
|
67452
|
-
"sub"
|
|
67453
|
-
]).optional()
|
|
67454
|
-
});
|
|
67455
|
-
method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
|
|
67456
|
-
id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
|
|
67457
|
-
displayName: string().min(1)
|
|
67458
|
-
}), object({ id: string() }), {
|
|
67459
|
-
kind: "mutation",
|
|
67460
|
-
auth: "admin"
|
|
67461
|
-
}), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
|
|
67462
|
-
kind: "mutation",
|
|
67463
|
-
auth: "admin"
|
|
67464
|
-
}), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
|
|
67465
|
-
kind: "mutation",
|
|
67466
|
-
auth: "admin"
|
|
67467
|
-
});
|
|
67468
|
-
/**
|
|
67469
67411
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
67470
67412
|
* a firmware-defined list of overlays (channel name, timestamp,
|
|
67471
67413
|
* watermark, logo, …); the cap models them as a homogeneous array of
|
|
@@ -73840,21 +73782,6 @@ method(object({
|
|
|
73840
73782
|
*/
|
|
73841
73783
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
73842
73784
|
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
73843
|
-
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
73844
|
-
providerId: string().min(1),
|
|
73845
|
-
displayName: string().min(1),
|
|
73846
|
-
configSchema: unknown(),
|
|
73847
|
-
nodeLocal: boolean(),
|
|
73848
|
-
shouldSaveDiskSpace: literal(true),
|
|
73849
|
-
minFreePercent: number().min(0).max(100)
|
|
73850
|
-
}), object({
|
|
73851
|
-
providerId: string().min(1),
|
|
73852
|
-
displayName: string().min(1),
|
|
73853
|
-
configSchema: unknown(),
|
|
73854
|
-
nodeLocal: boolean(),
|
|
73855
|
-
shouldSaveDiskSpace: literal(false),
|
|
73856
|
-
minFreePercent: literal(null)
|
|
73857
|
-
})]);
|
|
73858
73785
|
method(object({
|
|
73859
73786
|
location: StorageLocationRefSchema,
|
|
73860
73787
|
relativePath: string()
|
|
@@ -73916,42 +73843,7 @@ method(object({
|
|
|
73916
73843
|
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
|
|
73917
73844
|
kind: "mutation",
|
|
73918
73845
|
auth: "admin"
|
|
73919
|
-
}), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(
|
|
73920
|
-
createdAt: true,
|
|
73921
|
-
updatedAt: true
|
|
73922
|
-
}), StorageLocationSchema, {
|
|
73923
|
-
kind: "mutation",
|
|
73924
|
-
auth: "admin"
|
|
73925
|
-
}), method(object({
|
|
73926
|
-
id: string(),
|
|
73927
|
-
force: boolean().optional()
|
|
73928
|
-
}), _void(), {
|
|
73929
|
-
kind: "mutation",
|
|
73930
|
-
auth: "admin"
|
|
73931
|
-
}), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
|
|
73932
|
-
ok: boolean(),
|
|
73933
|
-
error: string().optional()
|
|
73934
|
-
}), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
|
|
73935
|
-
providerId: string(),
|
|
73936
|
-
/**
|
|
73937
|
-
* The location this config is an UNSAVED edit of, when there is one.
|
|
73938
|
-
*
|
|
73939
|
-
* `listLocations` replaces every declared secret with the redaction
|
|
73940
|
-
* sentinel, so the edit modal's form state holds the sentinel for any
|
|
73941
|
-
* credential the operator did not retype — and posting that here
|
|
73942
|
-
* without a way to resolve it makes the provider try to authenticate
|
|
73943
|
-
* as `__camstack_redacted__` and report the operator's own working
|
|
73944
|
-
* password as wrong. Given this id, the orchestrator restores each
|
|
73945
|
-
* sentinel from the stored config (same rule as `upsertLocation`)
|
|
73946
|
-
* before dispatching. Omitted by the "Add location" wizard, where
|
|
73947
|
-
* every value was typed just now and nothing is stored yet.
|
|
73948
|
-
*/
|
|
73949
|
-
locationId: string().optional(),
|
|
73950
|
-
config: record(string(), unknown())
|
|
73951
|
-
}), object({
|
|
73952
|
-
ok: boolean(),
|
|
73953
|
-
error: string().optional()
|
|
73954
|
-
}), { auth: "admin" });
|
|
73846
|
+
}), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
|
|
73955
73847
|
/** One table of the settings database. */
|
|
73956
73848
|
var StorageTableSchema = object({
|
|
73957
73849
|
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
@@ -81556,13 +81448,6 @@ Object.freeze({
|
|
|
81556
81448
|
access: "delete",
|
|
81557
81449
|
role: "admin"
|
|
81558
81450
|
},
|
|
81559
|
-
"llm.deleteProfile": {
|
|
81560
|
-
capName: "llm",
|
|
81561
|
-
capScope: "system",
|
|
81562
|
-
addonId: null,
|
|
81563
|
-
access: "delete",
|
|
81564
|
-
role: "admin"
|
|
81565
|
-
},
|
|
81566
81451
|
"llm.generate": {
|
|
81567
81452
|
capName: "llm",
|
|
81568
81453
|
capScope: "system",
|
|
@@ -81626,20 +81511,6 @@ Object.freeze({
|
|
|
81626
81511
|
access: "view",
|
|
81627
81512
|
role: "admin"
|
|
81628
81513
|
},
|
|
81629
|
-
"llm.listProfileKinds": {
|
|
81630
|
-
capName: "llm",
|
|
81631
|
-
capScope: "system",
|
|
81632
|
-
addonId: null,
|
|
81633
|
-
access: "view",
|
|
81634
|
-
role: "admin"
|
|
81635
|
-
},
|
|
81636
|
-
"llm.listProfiles": {
|
|
81637
|
-
capName: "llm",
|
|
81638
|
-
capScope: "system",
|
|
81639
|
-
addonId: null,
|
|
81640
|
-
access: "view",
|
|
81641
|
-
role: "admin"
|
|
81642
|
-
},
|
|
81643
81514
|
"llm.listRuntimeNodes": {
|
|
81644
81515
|
capName: "llm",
|
|
81645
81516
|
capScope: "system",
|
|
@@ -81647,13 +81518,6 @@ Object.freeze({
|
|
|
81647
81518
|
access: "view",
|
|
81648
81519
|
role: "admin"
|
|
81649
81520
|
},
|
|
81650
|
-
"llm.migrateRawSecrets": {
|
|
81651
|
-
capName: "llm",
|
|
81652
|
-
capScope: "system",
|
|
81653
|
-
addonId: null,
|
|
81654
|
-
access: "create",
|
|
81655
|
-
role: "admin"
|
|
81656
|
-
},
|
|
81657
81521
|
"llm.resolveModelRef": {
|
|
81658
81522
|
capName: "llm",
|
|
81659
81523
|
capScope: "system",
|
|
@@ -81682,20 +81546,6 @@ Object.freeze({
|
|
|
81682
81546
|
access: "create",
|
|
81683
81547
|
role: "admin"
|
|
81684
81548
|
},
|
|
81685
|
-
"llm.testProfile": {
|
|
81686
|
-
capName: "llm",
|
|
81687
|
-
capScope: "system",
|
|
81688
|
-
addonId: null,
|
|
81689
|
-
access: "create",
|
|
81690
|
-
role: "admin"
|
|
81691
|
-
},
|
|
81692
|
-
"llm.upsertProfile": {
|
|
81693
|
-
capName: "llm",
|
|
81694
|
-
capScope: "system",
|
|
81695
|
-
addonId: null,
|
|
81696
|
-
access: "create",
|
|
81697
|
-
role: "admin"
|
|
81698
|
-
},
|
|
81699
81549
|
"llmRuntime.appleAvailability": {
|
|
81700
81550
|
capName: "llm-runtime",
|
|
81701
81551
|
capScope: "system",
|
|
@@ -82200,13 +82050,6 @@ Object.freeze({
|
|
|
82200
82050
|
access: "create",
|
|
82201
82051
|
role: "admin"
|
|
82202
82052
|
},
|
|
82203
|
-
"meshNetwork.testConnection": {
|
|
82204
|
-
capName: "mesh-network",
|
|
82205
|
-
capScope: "system",
|
|
82206
|
-
addonId: null,
|
|
82207
|
-
access: "create",
|
|
82208
|
-
role: "admin"
|
|
82209
|
-
},
|
|
82210
82053
|
"meter.getStatus": {
|
|
82211
82054
|
capName: "meter",
|
|
82212
82055
|
capScope: "device",
|
|
@@ -82865,13 +82708,6 @@ Object.freeze({
|
|
|
82865
82708
|
access: "create",
|
|
82866
82709
|
role: "admin"
|
|
82867
82710
|
},
|
|
82868
|
-
"notificationOutput.deleteTarget": {
|
|
82869
|
-
capName: "notification-output",
|
|
82870
|
-
capScope: "system",
|
|
82871
|
-
addonId: null,
|
|
82872
|
-
access: "delete",
|
|
82873
|
-
role: "admin"
|
|
82874
|
-
},
|
|
82875
82711
|
"notificationOutput.discoverTargets": {
|
|
82876
82712
|
capName: "notification-output",
|
|
82877
82713
|
capScope: "system",
|
|
@@ -82879,13 +82715,6 @@ Object.freeze({
|
|
|
82879
82715
|
access: "view",
|
|
82880
82716
|
role: "admin"
|
|
82881
82717
|
},
|
|
82882
|
-
"notificationOutput.getTarget": {
|
|
82883
|
-
capName: "notification-output",
|
|
82884
|
-
capScope: "system",
|
|
82885
|
-
addonId: null,
|
|
82886
|
-
access: "view",
|
|
82887
|
-
role: "admin"
|
|
82888
|
-
},
|
|
82889
82718
|
"notificationOutput.listTargetKinds": {
|
|
82890
82719
|
capName: "notification-output",
|
|
82891
82720
|
capScope: "system",
|
|
@@ -82893,13 +82722,6 @@ Object.freeze({
|
|
|
82893
82722
|
access: "view",
|
|
82894
82723
|
role: "admin"
|
|
82895
82724
|
},
|
|
82896
|
-
"notificationOutput.listTargets": {
|
|
82897
|
-
capName: "notification-output",
|
|
82898
|
-
capScope: "system",
|
|
82899
|
-
addonId: null,
|
|
82900
|
-
access: "view",
|
|
82901
|
-
role: "admin"
|
|
82902
|
-
},
|
|
82903
82725
|
"notificationOutput.probeTargetConfig": {
|
|
82904
82726
|
capName: "notification-output",
|
|
82905
82727
|
capScope: "system",
|
|
@@ -82914,13 +82736,6 @@ Object.freeze({
|
|
|
82914
82736
|
access: "create",
|
|
82915
82737
|
role: "admin"
|
|
82916
82738
|
},
|
|
82917
|
-
"notificationOutput.setTargetEnabled": {
|
|
82918
|
-
capName: "notification-output",
|
|
82919
|
-
capScope: "system",
|
|
82920
|
-
addonId: null,
|
|
82921
|
-
access: "create",
|
|
82922
|
-
role: "admin"
|
|
82923
|
-
},
|
|
82924
82739
|
"notificationOutput.testTarget": {
|
|
82925
82740
|
capName: "notification-output",
|
|
82926
82741
|
capScope: "system",
|
|
@@ -82928,13 +82743,6 @@ Object.freeze({
|
|
|
82928
82743
|
access: "create",
|
|
82929
82744
|
role: "admin"
|
|
82930
82745
|
},
|
|
82931
|
-
"notificationOutput.upsertTarget": {
|
|
82932
|
-
capName: "notification-output",
|
|
82933
|
-
capScope: "system",
|
|
82934
|
-
addonId: null,
|
|
82935
|
-
access: "create",
|
|
82936
|
-
role: "admin"
|
|
82937
|
-
},
|
|
82938
82746
|
"notificationRules.activateAlarmProfile": {
|
|
82939
82747
|
capName: "notification-rules",
|
|
82940
82748
|
capScope: "system",
|
|
@@ -83194,41 +83002,6 @@ Object.freeze({
|
|
|
83194
83002
|
access: "view",
|
|
83195
83003
|
role: "admin"
|
|
83196
83004
|
},
|
|
83197
|
-
"oidcConnections.connectionFormSchema": {
|
|
83198
|
-
capName: "oidc-connections",
|
|
83199
|
-
capScope: "system",
|
|
83200
|
-
addonId: null,
|
|
83201
|
-
access: "view",
|
|
83202
|
-
role: "admin"
|
|
83203
|
-
},
|
|
83204
|
-
"oidcConnections.createConnection": {
|
|
83205
|
-
capName: "oidc-connections",
|
|
83206
|
-
capScope: "system",
|
|
83207
|
-
addonId: null,
|
|
83208
|
-
access: "create",
|
|
83209
|
-
role: "admin"
|
|
83210
|
-
},
|
|
83211
|
-
"oidcConnections.deleteConnection": {
|
|
83212
|
-
capName: "oidc-connections",
|
|
83213
|
-
capScope: "system",
|
|
83214
|
-
addonId: null,
|
|
83215
|
-
access: "delete",
|
|
83216
|
-
role: "admin"
|
|
83217
|
-
},
|
|
83218
|
-
"oidcConnections.listConnections": {
|
|
83219
|
-
capName: "oidc-connections",
|
|
83220
|
-
capScope: "system",
|
|
83221
|
-
addonId: null,
|
|
83222
|
-
access: "view",
|
|
83223
|
-
role: "admin"
|
|
83224
|
-
},
|
|
83225
|
-
"oidcConnections.updateConnection": {
|
|
83226
|
-
capName: "oidc-connections",
|
|
83227
|
-
capScope: "system",
|
|
83228
|
-
addonId: null,
|
|
83229
|
-
access: "create",
|
|
83230
|
-
role: "admin"
|
|
83231
|
-
},
|
|
83232
83005
|
"osd.getStatus": {
|
|
83233
83006
|
capName: "osd",
|
|
83234
83007
|
capScope: "device",
|
|
@@ -86260,13 +86033,6 @@ Object.freeze({
|
|
|
86260
86033
|
access: "delete",
|
|
86261
86034
|
role: "admin"
|
|
86262
86035
|
},
|
|
86263
|
-
"storage.deleteLocation": {
|
|
86264
|
-
capName: "storage",
|
|
86265
|
-
capScope: "system",
|
|
86266
|
-
addonId: null,
|
|
86267
|
-
access: "delete",
|
|
86268
|
-
role: "admin"
|
|
86269
|
-
},
|
|
86270
86036
|
"storage.endDownload": {
|
|
86271
86037
|
capName: "storage",
|
|
86272
86038
|
capScope: "system",
|
|
@@ -86323,13 +86089,6 @@ Object.freeze({
|
|
|
86323
86089
|
access: "view",
|
|
86324
86090
|
role: "admin"
|
|
86325
86091
|
},
|
|
86326
|
-
"storage.listProviders": {
|
|
86327
|
-
capName: "storage",
|
|
86328
|
-
capScope: "system",
|
|
86329
|
-
addonId: null,
|
|
86330
|
-
access: "view",
|
|
86331
|
-
role: "admin"
|
|
86332
|
-
},
|
|
86333
86092
|
"storage.read": {
|
|
86334
86093
|
capName: "storage",
|
|
86335
86094
|
capScope: "system",
|
|
@@ -86351,27 +86110,6 @@ Object.freeze({
|
|
|
86351
86110
|
access: "view",
|
|
86352
86111
|
role: "admin"
|
|
86353
86112
|
},
|
|
86354
|
-
"storage.testConfig": {
|
|
86355
|
-
capName: "storage",
|
|
86356
|
-
capScope: "system",
|
|
86357
|
-
addonId: null,
|
|
86358
|
-
access: "view",
|
|
86359
|
-
role: "admin"
|
|
86360
|
-
},
|
|
86361
|
-
"storage.testLocation": {
|
|
86362
|
-
capName: "storage",
|
|
86363
|
-
capScope: "system",
|
|
86364
|
-
addonId: null,
|
|
86365
|
-
access: "view",
|
|
86366
|
-
role: "admin"
|
|
86367
|
-
},
|
|
86368
|
-
"storage.upsertLocation": {
|
|
86369
|
-
capName: "storage",
|
|
86370
|
-
capScope: "system",
|
|
86371
|
-
addonId: null,
|
|
86372
|
-
access: "create",
|
|
86373
|
-
role: "admin"
|
|
86374
|
-
},
|
|
86375
86113
|
"storage.write": {
|
|
86376
86114
|
capName: "storage",
|
|
86377
86115
|
capScope: "system",
|