@camstack/addon-export-alexa 1.2.186 → 1.2.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/export-alexa.addon.js +83 -345
- package/dist/export-alexa.addon.mjs +83 -345
- package/package.json +2 -2
|
@@ -34,7 +34,7 @@ let node_path = require("node:path");
|
|
|
34
34
|
node_path = __toESM(node_path, 1);
|
|
35
35
|
require("node:child_process");
|
|
36
36
|
require("node:zlib");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-78tcBemo.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -155,6 +155,23 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
155
155
|
*/
|
|
156
156
|
EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
|
|
157
157
|
/**
|
|
158
|
+
* An addon is RUNNING although its installed package is below what the
|
|
159
|
+
* running server requires (`camstack.requires.addons` of the server, or the
|
|
160
|
+
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
161
|
+
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
162
|
+
* operator alert per node and package. The addon is never held back for it.
|
|
163
|
+
*
|
|
164
|
+
* Payload: `{ packageName, addonId, nodeId, installedVersion, requiredMinimum, serverVersion, unmet }`.
|
|
165
|
+
*/
|
|
166
|
+
EventCategory["AddonUnsupportedVersion"] = "addon.unsupported-version";
|
|
167
|
+
/**
|
|
168
|
+
* The package of an {@link AddonUnsupportedVersion} alert reached a supported
|
|
169
|
+
* version, or is no longer installed on the node. AlertCenter dismisses the matching alert.
|
|
170
|
+
*
|
|
171
|
+
* Payload: `{ packageName, addonId, nodeId }`.
|
|
172
|
+
*/
|
|
173
|
+
EventCategory["AddonUnsupportedResolved"] = "addon.unsupported-resolved";
|
|
174
|
+
/**
|
|
158
175
|
* Monitor scheduled the next retry for a failed addon. Transient —
|
|
159
176
|
* surfaced to the UI for live-updating the "next retry in Ns"
|
|
160
177
|
* countdown on the Addons page row, NOT persisted as an alert.
|
|
@@ -265,7 +282,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
265
282
|
EventCategory["ProcessRestarted"] = "process.restarted";
|
|
266
283
|
/**
|
|
267
284
|
* The SET of storage locations changed — one was created, edited, enabled,
|
|
268
|
-
* disabled or deleted through
|
|
285
|
+
* disabled or deleted through the location instances or the forced-delete action.
|
|
269
286
|
*
|
|
270
287
|
* Telemetry, not a transaction (D8/D11): every consumer that re-resolves on
|
|
271
288
|
* it must also converge on its own periodic path, because a dropped event
|
|
@@ -6016,7 +6033,7 @@ var ZodIssueCode = {
|
|
|
6016
6033
|
var ZodFirstPartyTypeKind;
|
|
6017
6034
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6018
6035
|
//#endregion
|
|
6019
|
-
//#region ../types/dist/sleep-
|
|
6036
|
+
//#region ../types/dist/sleep-AEnTN3b4.mjs
|
|
6020
6037
|
/**
|
|
6021
6038
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6022
6039
|
* window to float samples (D455).
|
|
@@ -7264,17 +7281,35 @@ var RecordIntegrationInstances = class {
|
|
|
7264
7281
|
...kind !== void 0 ? { kind } : {}
|
|
7265
7282
|
});
|
|
7266
7283
|
if (minted === void 0) throw new Error("createInstance needs an id: this provider does not mint one");
|
|
7284
|
+
const initial = this.hooks.initialBody(name, kind);
|
|
7285
|
+
const patch = this.patchOf(values ?? {});
|
|
7286
|
+
if (Object.keys(patch).length > 0) Object.assign(patch, await this.hooks.validateWrite?.({
|
|
7287
|
+
kind,
|
|
7288
|
+
body: {
|
|
7289
|
+
...initial,
|
|
7290
|
+
...patch
|
|
7291
|
+
}
|
|
7292
|
+
}));
|
|
7267
7293
|
await this.handle.put({
|
|
7268
7294
|
id: minted,
|
|
7269
|
-
data:
|
|
7295
|
+
data: initial
|
|
7270
7296
|
}, { ifRev: 0 });
|
|
7271
|
-
const patch = this.patchOf(values ?? {});
|
|
7272
7297
|
if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
|
|
7273
7298
|
await this.hooks.onChanged?.(minted, "created");
|
|
7274
7299
|
return { id: minted };
|
|
7275
7300
|
};
|
|
7276
7301
|
updateInstance = async ({ id, name, values }) => {
|
|
7277
7302
|
const patch = this.patchOf(values);
|
|
7303
|
+
if (this.hooks.validateWrite !== void 0 && Object.keys(patch).length > 0) {
|
|
7304
|
+
const stored = await this.handle.get(id);
|
|
7305
|
+
if (stored !== null) Object.assign(patch, await this.hooks.validateWrite({
|
|
7306
|
+
kind: void 0,
|
|
7307
|
+
body: {
|
|
7308
|
+
...stored.data,
|
|
7309
|
+
...patch
|
|
7310
|
+
}
|
|
7311
|
+
}));
|
|
7312
|
+
}
|
|
7278
7313
|
if (name !== void 0) patch[this.nameField] = name;
|
|
7279
7314
|
await this.handle.patch(id, patch);
|
|
7280
7315
|
await this.hooks.onChanged?.(id, "updated");
|
|
@@ -10623,7 +10658,6 @@ var CAP_NAMES = Object.freeze([
|
|
|
10623
10658
|
"notifier",
|
|
10624
10659
|
"numeric-sensor",
|
|
10625
10660
|
"oauth-integration",
|
|
10626
|
-
"oidc-connections",
|
|
10627
10661
|
"osd",
|
|
10628
10662
|
"osd-manager",
|
|
10629
10663
|
"pet-feeder",
|
|
@@ -12515,8 +12549,7 @@ Object.freeze({
|
|
|
12515
12549
|
"device-provider": { "reloadDevice": 18e4 },
|
|
12516
12550
|
"llm": {
|
|
12517
12551
|
"generate": 6e5,
|
|
12518
|
-
"generateVision": 6e5
|
|
12519
|
-
"testProfile": 6e5
|
|
12552
|
+
"generateVision": 6e5
|
|
12520
12553
|
},
|
|
12521
12554
|
"llm-runtime": {
|
|
12522
12555
|
"complete": 6e5,
|
|
@@ -14036,17 +14069,18 @@ function buildCapturingReply(envelope) {
|
|
|
14036
14069
|
* message to what the kind supports — callers never special-case a service.
|
|
14037
14070
|
*
|
|
14038
14071
|
* DESIGN DECISIONS (locked):
|
|
14039
|
-
* -
|
|
14040
|
-
*
|
|
14041
|
-
*
|
|
14042
|
-
*
|
|
14043
|
-
*
|
|
14044
|
-
*
|
|
14045
|
-
*
|
|
14046
|
-
*
|
|
14047
|
-
*
|
|
14048
|
-
* routable. `send` / `testTarget` /
|
|
14049
|
-
* `
|
|
14072
|
+
* - A target is an INSTANCE of this function cap (epic #440, step 6): the
|
|
14073
|
+
* providers serve their targets as `integration-instances` records, one
|
|
14074
|
+
* record kind per target kind, and the admin lists, adds, edits, switches
|
|
14075
|
+
* and deletes them through that cap. This cap keeps what an instance cannot
|
|
14076
|
+
* say: the kind catalogue (`listTargetKinds`: capabilities, delivery
|
|
14077
|
+
* parameters, brand icon), dispatch (`send`, `testTarget`) and the form
|
|
14078
|
+
* helpers (`discoverTargets`, `probeTargetConfig`).
|
|
14079
|
+
* - `listTargetKinds` / `discoverTargets` return arrays → the generated
|
|
14080
|
+
* cap-mount auto-`concatCollection`-fans them across every registered
|
|
14081
|
+
* provider so one catalog is routable. `send` / `testTarget` /
|
|
14082
|
+
* `probeTargetConfig` route to ONE provider by the `addonId` the generated
|
|
14083
|
+
* collection router extracts from the call input.
|
|
14050
14084
|
* - `Attachment.bytes` is `Uint8Array`. Transport-safe: superjson (the tRPC
|
|
14051
14085
|
* transformer) + UDS MsgPack both round-trip typed arrays — already used by
|
|
14052
14086
|
* `storage` / `storage-provider` / `recording` caps over the same path. No
|
|
@@ -14291,7 +14325,7 @@ var TargetKindCapsSchema = object({
|
|
|
14291
14325
|
* the union is large and not meant for runtime validation here; the exported
|
|
14292
14326
|
* `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
|
|
14293
14327
|
*/
|
|
14294
|
-
var ConfigSchemaPassthrough$
|
|
14328
|
+
var ConfigSchemaPassthrough$3 = unknown();
|
|
14295
14329
|
var TargetKindSchema = object({
|
|
14296
14330
|
kind: string(),
|
|
14297
14331
|
label: string(),
|
|
@@ -14328,7 +14362,7 @@ var TargetKindSchema = object({
|
|
|
14328
14362
|
* its raster path, which is the safe default for an unknown image.
|
|
14329
14363
|
*/
|
|
14330
14364
|
iconMediaType: string().optional(),
|
|
14331
|
-
configSchema: ConfigSchemaPassthrough$
|
|
14365
|
+
configSchema: ConfigSchemaPassthrough$3,
|
|
14332
14366
|
/**
|
|
14333
14367
|
* The config keys that decide WHERE this kind's secrets are sent (server,
|
|
14334
14368
|
* base URL, instance, chat, recipient). A save that changes any of them
|
|
@@ -14350,9 +14384,11 @@ var TargetKindSchema = object({
|
|
|
14350
14384
|
caps: TargetKindCapsSchema
|
|
14351
14385
|
});
|
|
14352
14386
|
/**
|
|
14353
|
-
* A
|
|
14354
|
-
*
|
|
14355
|
-
*
|
|
14387
|
+
* A target as a provider's own code sees it (the notification-center bridge, the
|
|
14388
|
+
* send path): the flat record body split into the name, the switch and the
|
|
14389
|
+
* kind's fields. `config` holds secrets; a reader that serves it to a client
|
|
14390
|
+
* REDACTS secret fields (a presence marker only) — never round-trip a stored
|
|
14391
|
+
* secret to the UI.
|
|
14356
14392
|
*/
|
|
14357
14393
|
var TargetSchema = object({
|
|
14358
14394
|
id: string(),
|
|
@@ -14395,13 +14431,13 @@ var ProbeTargetConfigResultSchema = object({
|
|
|
14395
14431
|
stateInstance: string().optional(),
|
|
14396
14432
|
error: string().optional()
|
|
14397
14433
|
});
|
|
14398
|
-
method(object({}), array(TargetKindSchema)), method(object({
|
|
14434
|
+
method(object({}), array(TargetKindSchema)), method(object({
|
|
14399
14435
|
kind: string(),
|
|
14400
14436
|
config: record(string(), unknown()).optional(),
|
|
14401
14437
|
/**
|
|
14402
14438
|
* When editing / duplicating, the blank password field never round-trips
|
|
14403
14439
|
* the stored token. Pass the source target id so the provider can restore
|
|
14404
|
-
* secrets server-side before dialling
|
|
14440
|
+
* secrets server-side before dialling.
|
|
14405
14441
|
*/
|
|
14406
14442
|
targetId: string().optional()
|
|
14407
14443
|
}), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
|
|
@@ -14424,27 +14460,6 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14424
14460
|
}), TestResultSchema, {
|
|
14425
14461
|
kind: "mutation",
|
|
14426
14462
|
auth: "admin"
|
|
14427
|
-
}), method(object({
|
|
14428
|
-
target: TargetSchema,
|
|
14429
|
-
/**
|
|
14430
|
-
* Duplicate flow: create a NEW target id while copying secrets from an
|
|
14431
|
-
* existing row. The UI never holds the stored token; blank / redacted
|
|
14432
|
-
* password fields are restored from this source (D634 still applies if
|
|
14433
|
-
* destinations diverge without a re-typed secret).
|
|
14434
|
-
*/
|
|
14435
|
-
cloneSecretsFrom: string().optional()
|
|
14436
|
-
}), TargetSchema, {
|
|
14437
|
-
kind: "mutation",
|
|
14438
|
-
auth: "admin"
|
|
14439
|
-
}), method(object({ targetId: string() }), _void(), {
|
|
14440
|
-
kind: "mutation",
|
|
14441
|
-
auth: "admin"
|
|
14442
|
-
}), method(object({
|
|
14443
|
-
targetId: string(),
|
|
14444
|
-
enabled: boolean()
|
|
14445
|
-
}), _void(), {
|
|
14446
|
-
kind: "mutation",
|
|
14447
|
-
auth: "admin"
|
|
14448
14463
|
});
|
|
14449
14464
|
looseObject({
|
|
14450
14465
|
name: string().min(1),
|
|
@@ -22882,7 +22897,6 @@ var SYSTEM_CAP_VOCABULARY = {
|
|
|
22882
22897
|
"notification-output": system("notification delivery — reached through notifier devices and rules"),
|
|
22883
22898
|
"notification-rules": system("notification rules — authored on their own page"),
|
|
22884
22899
|
"oauth-integration": system(IDENTITY),
|
|
22885
|
-
"oidc-connections": system(IDENTITY),
|
|
22886
22900
|
"osd-manager": system(PIPELINE),
|
|
22887
22901
|
"pipeline-executor": system(PIPELINE),
|
|
22888
22902
|
"pipeline-orchestrator": system(PIPELINE),
|
|
@@ -54743,7 +54757,7 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
|
|
|
54743
54757
|
* or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
|
|
54744
54758
|
* clears it.
|
|
54745
54759
|
*/
|
|
54746
|
-
var ConfigSchemaPassthrough$
|
|
54760
|
+
var ConfigSchemaPassthrough$2 = custom();
|
|
54747
54761
|
var IntegrationInstanceIdSchema = string().min(1);
|
|
54748
54762
|
var IntegrationInstanceModeSchema = _enum(["single", "multiple"]);
|
|
54749
54763
|
/**
|
|
@@ -54789,7 +54803,16 @@ var IntegrationInstanceKindSchema = object({
|
|
|
54789
54803
|
/** Relative hub path to start an interactive account link of an instance of this kind. */
|
|
54790
54804
|
connectPath: string().min(1).optional(),
|
|
54791
54805
|
/** Relative hub path to disconnect that account. */
|
|
54792
|
-
disconnectPath: string().min(1).optional()
|
|
54806
|
+
disconnectPath: string().min(1).optional(),
|
|
54807
|
+
/**
|
|
54808
|
+
* Parts of the edit dialog the flat form cannot draw (a node picker, a model source), named by a
|
|
54809
|
+
* GENERIC widget id the client maps to a component; a client that knows none of them shows none.
|
|
54810
|
+
* `connection` widgets write connection values, `model` widgets own the model choice.
|
|
54811
|
+
*/
|
|
54812
|
+
widgets: array(object({
|
|
54813
|
+
id: string().min(1),
|
|
54814
|
+
placement: _enum(["connection", "model"])
|
|
54815
|
+
})).optional()
|
|
54793
54816
|
});
|
|
54794
54817
|
/**
|
|
54795
54818
|
* How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
|
|
@@ -54894,7 +54917,7 @@ var integrationInstancesCapability = {
|
|
|
54894
54917
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
54895
54918
|
/** The kind of the create form (`id: null`) of a provider with several. */
|
|
54896
54919
|
kind: string().min(1).optional()
|
|
54897
|
-
}), ConfigSchemaPassthrough$
|
|
54920
|
+
}), ConfigSchemaPassthrough$2, { auth: "admin" }),
|
|
54898
54921
|
listInstances: method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
|
|
54899
54922
|
getInstance: method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
|
|
54900
54923
|
/**
|
|
@@ -55845,12 +55868,12 @@ var LlmModelInfoSchema = object({
|
|
|
55845
55868
|
});
|
|
55846
55869
|
/**
|
|
55847
55870
|
* The provider-specific part of a profile, validated by the provider that owns
|
|
55848
|
-
* the kind (
|
|
55871
|
+
* the kind (saving an instance refuses what it does not accept). A field its
|
|
55849
55872
|
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
55850
55873
|
* keychain, never in the row, and reads back as the redaction marker.
|
|
55851
55874
|
*/
|
|
55852
55875
|
var LlmProviderConfigSchema = record(string(), unknown());
|
|
55853
|
-
|
|
55876
|
+
object({
|
|
55854
55877
|
id: string(),
|
|
55855
55878
|
name: string(),
|
|
55856
55879
|
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
@@ -55944,8 +55967,8 @@ var LlmProviderWidgetSchema = object({
|
|
|
55944
55967
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
55945
55968
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
55946
55969
|
* notification-output.cap.ts:151); the exported TS type re-tightens it. */
|
|
55947
|
-
var ConfigSchemaPassthrough$
|
|
55948
|
-
|
|
55970
|
+
var ConfigSchemaPassthrough$1 = unknown();
|
|
55971
|
+
object({
|
|
55949
55972
|
kind: LlmProfileKindSchema,
|
|
55950
55973
|
label: string(),
|
|
55951
55974
|
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
@@ -55953,9 +55976,9 @@ var LlmProfileKindDescriptorSchema = object({
|
|
|
55953
55976
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
55954
55977
|
addonId: string(),
|
|
55955
55978
|
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
55956
|
-
connectionSchema: ConfigSchemaPassthrough$
|
|
55979
|
+
connectionSchema: ConfigSchemaPassthrough$1,
|
|
55957
55980
|
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
55958
|
-
advancedSchema: ConfigSchemaPassthrough$
|
|
55981
|
+
advancedSchema: ConfigSchemaPassthrough$1.optional(),
|
|
55959
55982
|
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
55960
55983
|
features: LlmModelFeaturesSchema,
|
|
55961
55984
|
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
@@ -56084,20 +56107,7 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
56084
56107
|
}), method(object({
|
|
56085
56108
|
addonId: string().optional(),
|
|
56086
56109
|
requestId: string()
|
|
56087
|
-
}), _void(), { kind: "mutation" }), method(
|
|
56088
|
-
kind: "mutation",
|
|
56089
|
-
auth: "admin"
|
|
56090
|
-
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
56091
|
-
kind: "mutation",
|
|
56092
|
-
auth: "admin"
|
|
56093
|
-
}), method(ProfileRefInputSchema, _void(), {
|
|
56094
|
-
kind: "mutation",
|
|
56095
|
-
auth: "admin"
|
|
56096
|
-
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
56097
|
-
kind: "mutation",
|
|
56098
|
-
auth: "admin",
|
|
56099
|
-
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
56100
|
-
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
56110
|
+
}), _void(), { kind: "mutation" }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
56101
56111
|
kind: "mutation",
|
|
56102
56112
|
auth: "admin"
|
|
56103
56113
|
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
@@ -57092,20 +57102,7 @@ method(_void(), MeshStatusSchema), method(object({
|
|
|
57092
57102
|
/** Optional hostname override the host should advertise once joined. */
|
|
57093
57103
|
hostname: string().optional() }), object({
|
|
57094
57104
|
/** Authentication URL the operator should open in a browser. */
|
|
57095
|
-
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() }))
|
|
57096
|
-
/** Optional auth key — when provided, probes the key validity
|
|
57097
|
-
* against the provider's API. Omit when already joined to
|
|
57098
|
-
* just ping the daemon. */
|
|
57099
|
-
authKey: string().optional() }), object({
|
|
57100
|
-
ok: boolean(),
|
|
57101
|
-
/** Provider-side identifier resolved by the probe (tailnet
|
|
57102
|
-
* name for Tailscale, network id for ZeroTier, etc.). */
|
|
57103
|
-
tenant: string().optional(),
|
|
57104
|
-
/** Daemon binary version, when reachable. */
|
|
57105
|
-
daemonVersion: string().optional(),
|
|
57106
|
-
/** Human-readable error when `ok: false`. */
|
|
57107
|
-
error: string().optional()
|
|
57108
|
-
}), { kind: "mutation" });
|
|
57105
|
+
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() }));
|
|
57109
57106
|
object({
|
|
57110
57107
|
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
57111
57108
|
lastFetchedAt: number()
|
|
@@ -66779,61 +66776,6 @@ var oauthIntegrationCapability = {
|
|
|
66779
66776
|
getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
|
|
66780
66777
|
};
|
|
66781
66778
|
/**
|
|
66782
|
-
* `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
|
|
66783
|
-
*
|
|
66784
|
-
* One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
|
|
66785
|
-
* ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
|
|
66786
|
-
* Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
|
|
66787
|
-
* immutable after create.
|
|
66788
|
-
*/
|
|
66789
|
-
var ConfigSchemaPassthrough$1 = unknown();
|
|
66790
|
-
var OidcConnectionSchema = object({
|
|
66791
|
-
id: string().min(1),
|
|
66792
|
-
displayName: string(),
|
|
66793
|
-
icon: string(),
|
|
66794
|
-
issuerUrl: string(),
|
|
66795
|
-
clientId: string(),
|
|
66796
|
-
/** Client id + secret present — never the secret value. */
|
|
66797
|
-
configured: boolean(),
|
|
66798
|
-
/**
|
|
66799
|
-
* Values for the connection form schema. `clientSecret` is a keychain
|
|
66800
|
-
* {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
|
|
66801
|
-
*/
|
|
66802
|
-
formValues: record(string(), unknown()).optional()
|
|
66803
|
-
});
|
|
66804
|
-
/**
|
|
66805
|
-
* Patch one connection. Omitted or empty `clientSecret` keeps the stored
|
|
66806
|
-
* secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
|
|
66807
|
-
*/
|
|
66808
|
-
var OidcConnectionUpdateInputSchema = object({
|
|
66809
|
-
id: string().min(1),
|
|
66810
|
-
displayName: string().min(1),
|
|
66811
|
-
icon: string().optional(),
|
|
66812
|
-
issuerUrl: string().optional(),
|
|
66813
|
-
clientId: string().optional(),
|
|
66814
|
-
clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
|
|
66815
|
-
redirectUri: string().optional(),
|
|
66816
|
-
scopes: string().optional(),
|
|
66817
|
-
usernameClaim: _enum([
|
|
66818
|
-
"preferred_username",
|
|
66819
|
-
"email",
|
|
66820
|
-
"sub"
|
|
66821
|
-
]).optional()
|
|
66822
|
-
});
|
|
66823
|
-
method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
|
|
66824
|
-
id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
|
|
66825
|
-
displayName: string().min(1)
|
|
66826
|
-
}), object({ id: string() }), {
|
|
66827
|
-
kind: "mutation",
|
|
66828
|
-
auth: "admin"
|
|
66829
|
-
}), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
|
|
66830
|
-
kind: "mutation",
|
|
66831
|
-
auth: "admin"
|
|
66832
|
-
}), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
|
|
66833
|
-
kind: "mutation",
|
|
66834
|
-
auth: "admin"
|
|
66835
|
-
});
|
|
66836
|
-
/**
|
|
66837
66779
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
66838
66780
|
* a firmware-defined list of overlays (channel name, timestamp,
|
|
66839
66781
|
* watermark, logo, …); the cap models them as a homogeneous array of
|
|
@@ -73006,21 +72948,6 @@ method(object({
|
|
|
73006
72948
|
*/
|
|
73007
72949
|
ttlSec: union([number().int().positive(), literal("never")]).optional()
|
|
73008
72950
|
}), object({ token: string() }), { auth: "admin" }), method(object({ token: string() }), SsoBridgeClaimsSchema.nullable(), { auth: "admin" });
|
|
73009
|
-
var ProviderListEntrySchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
73010
|
-
providerId: string().min(1),
|
|
73011
|
-
displayName: string().min(1),
|
|
73012
|
-
configSchema: unknown(),
|
|
73013
|
-
nodeLocal: boolean(),
|
|
73014
|
-
shouldSaveDiskSpace: literal(true),
|
|
73015
|
-
minFreePercent: number().min(0).max(100)
|
|
73016
|
-
}), object({
|
|
73017
|
-
providerId: string().min(1),
|
|
73018
|
-
displayName: string().min(1),
|
|
73019
|
-
configSchema: unknown(),
|
|
73020
|
-
nodeLocal: boolean(),
|
|
73021
|
-
shouldSaveDiskSpace: literal(false),
|
|
73022
|
-
minFreePercent: literal(null)
|
|
73023
|
-
})]);
|
|
73024
72951
|
method(object({
|
|
73025
72952
|
location: StorageLocationRefSchema,
|
|
73026
72953
|
relativePath: string()
|
|
@@ -73082,42 +73009,7 @@ method(object({
|
|
|
73082
73009
|
}), _instanceof(Uint8Array), { auth: "admin" }), method(object({ downloadId: string() }), _void(), {
|
|
73083
73010
|
kind: "mutation",
|
|
73084
73011
|
auth: "admin"
|
|
73085
|
-
}), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(
|
|
73086
|
-
createdAt: true,
|
|
73087
|
-
updatedAt: true
|
|
73088
|
-
}), StorageLocationSchema, {
|
|
73089
|
-
kind: "mutation",
|
|
73090
|
-
auth: "admin"
|
|
73091
|
-
}), method(object({
|
|
73092
|
-
id: string(),
|
|
73093
|
-
force: boolean().optional()
|
|
73094
|
-
}), _void(), {
|
|
73095
|
-
kind: "mutation",
|
|
73096
|
-
auth: "admin"
|
|
73097
|
-
}), method(_void(), array(StorageDrainProgressSchema).readonly()), method(object({ id: string() }), object({
|
|
73098
|
-
ok: boolean(),
|
|
73099
|
-
error: string().optional()
|
|
73100
|
-
}), { auth: "admin" }), method(_void(), array(ProviderListEntrySchema).readonly()), method(object({
|
|
73101
|
-
providerId: string(),
|
|
73102
|
-
/**
|
|
73103
|
-
* The location this config is an UNSAVED edit of, when there is one.
|
|
73104
|
-
*
|
|
73105
|
-
* `listLocations` replaces every declared secret with the redaction
|
|
73106
|
-
* sentinel, so the edit modal's form state holds the sentinel for any
|
|
73107
|
-
* credential the operator did not retype — and posting that here
|
|
73108
|
-
* without a way to resolve it makes the provider try to authenticate
|
|
73109
|
-
* as `__camstack_redacted__` and report the operator's own working
|
|
73110
|
-
* password as wrong. Given this id, the orchestrator restores each
|
|
73111
|
-
* sentinel from the stored config (same rule as `upsertLocation`)
|
|
73112
|
-
* before dispatching. Omitted by the "Add location" wizard, where
|
|
73113
|
-
* every value was typed just now and nothing is stored yet.
|
|
73114
|
-
*/
|
|
73115
|
-
locationId: string().optional(),
|
|
73116
|
-
config: record(string(), unknown())
|
|
73117
|
-
}), object({
|
|
73118
|
-
ok: boolean(),
|
|
73119
|
-
error: string().optional()
|
|
73120
|
-
}), { auth: "admin" });
|
|
73012
|
+
}), method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()), method(_void(), array(StorageLocationDeclarationSchema).readonly()), method(_void(), array(StorageDrainProgressSchema).readonly());
|
|
73121
73013
|
/** One table of the settings database. */
|
|
73122
73014
|
var StorageTableSchema = object({
|
|
73123
73015
|
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
@@ -80729,13 +80621,6 @@ Object.freeze({
|
|
|
80729
80621
|
access: "delete",
|
|
80730
80622
|
role: "admin"
|
|
80731
80623
|
},
|
|
80732
|
-
"llm.deleteProfile": {
|
|
80733
|
-
capName: "llm",
|
|
80734
|
-
capScope: "system",
|
|
80735
|
-
addonId: null,
|
|
80736
|
-
access: "delete",
|
|
80737
|
-
role: "admin"
|
|
80738
|
-
},
|
|
80739
80624
|
"llm.generate": {
|
|
80740
80625
|
capName: "llm",
|
|
80741
80626
|
capScope: "system",
|
|
@@ -80799,20 +80684,6 @@ Object.freeze({
|
|
|
80799
80684
|
access: "view",
|
|
80800
80685
|
role: "admin"
|
|
80801
80686
|
},
|
|
80802
|
-
"llm.listProfileKinds": {
|
|
80803
|
-
capName: "llm",
|
|
80804
|
-
capScope: "system",
|
|
80805
|
-
addonId: null,
|
|
80806
|
-
access: "view",
|
|
80807
|
-
role: "admin"
|
|
80808
|
-
},
|
|
80809
|
-
"llm.listProfiles": {
|
|
80810
|
-
capName: "llm",
|
|
80811
|
-
capScope: "system",
|
|
80812
|
-
addonId: null,
|
|
80813
|
-
access: "view",
|
|
80814
|
-
role: "admin"
|
|
80815
|
-
},
|
|
80816
80687
|
"llm.listRuntimeNodes": {
|
|
80817
80688
|
capName: "llm",
|
|
80818
80689
|
capScope: "system",
|
|
@@ -80820,13 +80691,6 @@ Object.freeze({
|
|
|
80820
80691
|
access: "view",
|
|
80821
80692
|
role: "admin"
|
|
80822
80693
|
},
|
|
80823
|
-
"llm.migrateRawSecrets": {
|
|
80824
|
-
capName: "llm",
|
|
80825
|
-
capScope: "system",
|
|
80826
|
-
addonId: null,
|
|
80827
|
-
access: "create",
|
|
80828
|
-
role: "admin"
|
|
80829
|
-
},
|
|
80830
80694
|
"llm.resolveModelRef": {
|
|
80831
80695
|
capName: "llm",
|
|
80832
80696
|
capScope: "system",
|
|
@@ -80855,20 +80719,6 @@ Object.freeze({
|
|
|
80855
80719
|
access: "create",
|
|
80856
80720
|
role: "admin"
|
|
80857
80721
|
},
|
|
80858
|
-
"llm.testProfile": {
|
|
80859
|
-
capName: "llm",
|
|
80860
|
-
capScope: "system",
|
|
80861
|
-
addonId: null,
|
|
80862
|
-
access: "create",
|
|
80863
|
-
role: "admin"
|
|
80864
|
-
},
|
|
80865
|
-
"llm.upsertProfile": {
|
|
80866
|
-
capName: "llm",
|
|
80867
|
-
capScope: "system",
|
|
80868
|
-
addonId: null,
|
|
80869
|
-
access: "create",
|
|
80870
|
-
role: "admin"
|
|
80871
|
-
},
|
|
80872
80722
|
"llmRuntime.appleAvailability": {
|
|
80873
80723
|
capName: "llm-runtime",
|
|
80874
80724
|
capScope: "system",
|
|
@@ -81373,13 +81223,6 @@ Object.freeze({
|
|
|
81373
81223
|
access: "create",
|
|
81374
81224
|
role: "admin"
|
|
81375
81225
|
},
|
|
81376
|
-
"meshNetwork.testConnection": {
|
|
81377
|
-
capName: "mesh-network",
|
|
81378
|
-
capScope: "system",
|
|
81379
|
-
addonId: null,
|
|
81380
|
-
access: "create",
|
|
81381
|
-
role: "admin"
|
|
81382
|
-
},
|
|
81383
81226
|
"meter.getStatus": {
|
|
81384
81227
|
capName: "meter",
|
|
81385
81228
|
capScope: "device",
|
|
@@ -82038,13 +81881,6 @@ Object.freeze({
|
|
|
82038
81881
|
access: "create",
|
|
82039
81882
|
role: "admin"
|
|
82040
81883
|
},
|
|
82041
|
-
"notificationOutput.deleteTarget": {
|
|
82042
|
-
capName: "notification-output",
|
|
82043
|
-
capScope: "system",
|
|
82044
|
-
addonId: null,
|
|
82045
|
-
access: "delete",
|
|
82046
|
-
role: "admin"
|
|
82047
|
-
},
|
|
82048
81884
|
"notificationOutput.discoverTargets": {
|
|
82049
81885
|
capName: "notification-output",
|
|
82050
81886
|
capScope: "system",
|
|
@@ -82052,13 +81888,6 @@ Object.freeze({
|
|
|
82052
81888
|
access: "view",
|
|
82053
81889
|
role: "admin"
|
|
82054
81890
|
},
|
|
82055
|
-
"notificationOutput.getTarget": {
|
|
82056
|
-
capName: "notification-output",
|
|
82057
|
-
capScope: "system",
|
|
82058
|
-
addonId: null,
|
|
82059
|
-
access: "view",
|
|
82060
|
-
role: "admin"
|
|
82061
|
-
},
|
|
82062
81891
|
"notificationOutput.listTargetKinds": {
|
|
82063
81892
|
capName: "notification-output",
|
|
82064
81893
|
capScope: "system",
|
|
@@ -82066,13 +81895,6 @@ Object.freeze({
|
|
|
82066
81895
|
access: "view",
|
|
82067
81896
|
role: "admin"
|
|
82068
81897
|
},
|
|
82069
|
-
"notificationOutput.listTargets": {
|
|
82070
|
-
capName: "notification-output",
|
|
82071
|
-
capScope: "system",
|
|
82072
|
-
addonId: null,
|
|
82073
|
-
access: "view",
|
|
82074
|
-
role: "admin"
|
|
82075
|
-
},
|
|
82076
81898
|
"notificationOutput.probeTargetConfig": {
|
|
82077
81899
|
capName: "notification-output",
|
|
82078
81900
|
capScope: "system",
|
|
@@ -82087,13 +81909,6 @@ Object.freeze({
|
|
|
82087
81909
|
access: "create",
|
|
82088
81910
|
role: "admin"
|
|
82089
81911
|
},
|
|
82090
|
-
"notificationOutput.setTargetEnabled": {
|
|
82091
|
-
capName: "notification-output",
|
|
82092
|
-
capScope: "system",
|
|
82093
|
-
addonId: null,
|
|
82094
|
-
access: "create",
|
|
82095
|
-
role: "admin"
|
|
82096
|
-
},
|
|
82097
81912
|
"notificationOutput.testTarget": {
|
|
82098
81913
|
capName: "notification-output",
|
|
82099
81914
|
capScope: "system",
|
|
@@ -82101,13 +81916,6 @@ Object.freeze({
|
|
|
82101
81916
|
access: "create",
|
|
82102
81917
|
role: "admin"
|
|
82103
81918
|
},
|
|
82104
|
-
"notificationOutput.upsertTarget": {
|
|
82105
|
-
capName: "notification-output",
|
|
82106
|
-
capScope: "system",
|
|
82107
|
-
addonId: null,
|
|
82108
|
-
access: "create",
|
|
82109
|
-
role: "admin"
|
|
82110
|
-
},
|
|
82111
81919
|
"notificationRules.activateAlarmProfile": {
|
|
82112
81920
|
capName: "notification-rules",
|
|
82113
81921
|
capScope: "system",
|
|
@@ -82367,41 +82175,6 @@ Object.freeze({
|
|
|
82367
82175
|
access: "view",
|
|
82368
82176
|
role: "admin"
|
|
82369
82177
|
},
|
|
82370
|
-
"oidcConnections.connectionFormSchema": {
|
|
82371
|
-
capName: "oidc-connections",
|
|
82372
|
-
capScope: "system",
|
|
82373
|
-
addonId: null,
|
|
82374
|
-
access: "view",
|
|
82375
|
-
role: "admin"
|
|
82376
|
-
},
|
|
82377
|
-
"oidcConnections.createConnection": {
|
|
82378
|
-
capName: "oidc-connections",
|
|
82379
|
-
capScope: "system",
|
|
82380
|
-
addonId: null,
|
|
82381
|
-
access: "create",
|
|
82382
|
-
role: "admin"
|
|
82383
|
-
},
|
|
82384
|
-
"oidcConnections.deleteConnection": {
|
|
82385
|
-
capName: "oidc-connections",
|
|
82386
|
-
capScope: "system",
|
|
82387
|
-
addonId: null,
|
|
82388
|
-
access: "delete",
|
|
82389
|
-
role: "admin"
|
|
82390
|
-
},
|
|
82391
|
-
"oidcConnections.listConnections": {
|
|
82392
|
-
capName: "oidc-connections",
|
|
82393
|
-
capScope: "system",
|
|
82394
|
-
addonId: null,
|
|
82395
|
-
access: "view",
|
|
82396
|
-
role: "admin"
|
|
82397
|
-
},
|
|
82398
|
-
"oidcConnections.updateConnection": {
|
|
82399
|
-
capName: "oidc-connections",
|
|
82400
|
-
capScope: "system",
|
|
82401
|
-
addonId: null,
|
|
82402
|
-
access: "create",
|
|
82403
|
-
role: "admin"
|
|
82404
|
-
},
|
|
82405
82178
|
"osd.getStatus": {
|
|
82406
82179
|
capName: "osd",
|
|
82407
82180
|
capScope: "device",
|
|
@@ -85433,13 +85206,6 @@ Object.freeze({
|
|
|
85433
85206
|
access: "delete",
|
|
85434
85207
|
role: "admin"
|
|
85435
85208
|
},
|
|
85436
|
-
"storage.deleteLocation": {
|
|
85437
|
-
capName: "storage",
|
|
85438
|
-
capScope: "system",
|
|
85439
|
-
addonId: null,
|
|
85440
|
-
access: "delete",
|
|
85441
|
-
role: "admin"
|
|
85442
|
-
},
|
|
85443
85209
|
"storage.endDownload": {
|
|
85444
85210
|
capName: "storage",
|
|
85445
85211
|
capScope: "system",
|
|
@@ -85496,13 +85262,6 @@ Object.freeze({
|
|
|
85496
85262
|
access: "view",
|
|
85497
85263
|
role: "admin"
|
|
85498
85264
|
},
|
|
85499
|
-
"storage.listProviders": {
|
|
85500
|
-
capName: "storage",
|
|
85501
|
-
capScope: "system",
|
|
85502
|
-
addonId: null,
|
|
85503
|
-
access: "view",
|
|
85504
|
-
role: "admin"
|
|
85505
|
-
},
|
|
85506
85265
|
"storage.read": {
|
|
85507
85266
|
capName: "storage",
|
|
85508
85267
|
capScope: "system",
|
|
@@ -85524,27 +85283,6 @@ Object.freeze({
|
|
|
85524
85283
|
access: "view",
|
|
85525
85284
|
role: "admin"
|
|
85526
85285
|
},
|
|
85527
|
-
"storage.testConfig": {
|
|
85528
|
-
capName: "storage",
|
|
85529
|
-
capScope: "system",
|
|
85530
|
-
addonId: null,
|
|
85531
|
-
access: "view",
|
|
85532
|
-
role: "admin"
|
|
85533
|
-
},
|
|
85534
|
-
"storage.testLocation": {
|
|
85535
|
-
capName: "storage",
|
|
85536
|
-
capScope: "system",
|
|
85537
|
-
addonId: null,
|
|
85538
|
-
access: "view",
|
|
85539
|
-
role: "admin"
|
|
85540
|
-
},
|
|
85541
|
-
"storage.upsertLocation": {
|
|
85542
|
-
capName: "storage",
|
|
85543
|
-
capScope: "system",
|
|
85544
|
-
addonId: null,
|
|
85545
|
-
access: "create",
|
|
85546
|
-
role: "admin"
|
|
85547
|
-
},
|
|
85548
85286
|
"storage.write": {
|
|
85549
85287
|
capName: "storage",
|
|
85550
85288
|
capScope: "system",
|