@camstack/addon-provider-homeassistant 1.2.605 → 1.2.607
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/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-DV_2NKnd.mjs → dist-CziryNRD.mjs} +496 -141
- package/dist/{dist-DWBNf9hd.js → dist-DpZriMEh.js} +496 -141
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -5546,7 +5546,7 @@ var ZodIssueCode = {
|
|
|
5546
5546
|
var ZodFirstPartyTypeKind;
|
|
5547
5547
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5548
5548
|
//#endregion
|
|
5549
|
-
//#region ../types/dist/sleep-
|
|
5549
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5550
5550
|
/**
|
|
5551
5551
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5552
5552
|
* window to float samples (D455).
|
|
@@ -7929,9 +7929,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7929
7929
|
return result;
|
|
7930
7930
|
}
|
|
7931
7931
|
/**
|
|
7932
|
-
* The share-view scope kinds a
|
|
7933
|
-
* and validates them (`
|
|
7934
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7932
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7933
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7934
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7935
7935
|
*/
|
|
7936
7936
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7937
7937
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -13024,7 +13024,7 @@ var ConvertResultSchema = object({
|
|
|
13024
13024
|
* `super_admin` — collapsed onto the single boolean because every
|
|
13025
13025
|
* non-admin caller is governed by the same scope-check rules; the
|
|
13026
13026
|
* distinction was only ever used to route role-specific procedures
|
|
13027
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
13027
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
13028
13028
|
* with `isAdmin: false` + an explicit scope list.
|
|
13029
13029
|
*/
|
|
13030
13030
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -13213,10 +13213,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
13213
13213
|
type: literal("addon-routes"),
|
|
13214
13214
|
access: array(MethodAccessSchema).min(1)
|
|
13215
13215
|
});
|
|
13216
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
13216
13217
|
var CredentialScopeSchema = union([
|
|
13217
13218
|
literal("*"),
|
|
13218
13219
|
ShareViewScopeSchema,
|
|
13219
13220
|
AddonRoutesScopeSchema,
|
|
13221
|
+
PreferencesSelfScopeSchema,
|
|
13220
13222
|
TokenScopeSchema
|
|
13221
13223
|
]);
|
|
13222
13224
|
object({
|
|
@@ -13225,6 +13227,55 @@ object({
|
|
|
13225
13227
|
jti: string().min(16),
|
|
13226
13228
|
scopes: array(CredentialScopeSchema).min(1)
|
|
13227
13229
|
});
|
|
13230
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
13231
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
13232
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
13233
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
13234
|
+
/** A stored row, as the owner reads it. */
|
|
13235
|
+
var PreferenceRowSchema = object({
|
|
13236
|
+
namespace: PreferenceNamespaceSchema,
|
|
13237
|
+
value: PreferenceValueSchema,
|
|
13238
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
13239
|
+
revision: number().int().positive(),
|
|
13240
|
+
updatedAt: number().int(),
|
|
13241
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
13242
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
13243
|
+
});
|
|
13244
|
+
object({
|
|
13245
|
+
/** Absent: every namespace the caller holds. */
|
|
13246
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
13247
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
13248
|
+
object({
|
|
13249
|
+
namespace: PreferenceNamespaceSchema,
|
|
13250
|
+
value: PreferenceValueSchema,
|
|
13251
|
+
/**
|
|
13252
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
13253
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
13254
|
+
* revision answers `conflict` and writes nothing.
|
|
13255
|
+
*/
|
|
13256
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
13257
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
13258
|
+
});
|
|
13259
|
+
discriminatedUnion("status", [object({
|
|
13260
|
+
status: literal("saved"),
|
|
13261
|
+
row: PreferenceRowSchema
|
|
13262
|
+
}), object({
|
|
13263
|
+
status: literal("conflict"),
|
|
13264
|
+
current: PreferenceRowSchema.nullable()
|
|
13265
|
+
})]);
|
|
13266
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
13267
|
+
object({
|
|
13268
|
+
/** `false` when the namespace did not exist. */
|
|
13269
|
+
deleted: boolean() });
|
|
13270
|
+
object({
|
|
13271
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
13272
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
13273
|
+
object({
|
|
13274
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
13275
|
+
rows: array(PreferenceRowSchema),
|
|
13276
|
+
/** Namespaces the client listed that no longer exist. */
|
|
13277
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
13278
|
+
});
|
|
13228
13279
|
_enum(["new-session", "step-up"]);
|
|
13229
13280
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13230
13281
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -17546,7 +17597,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17546
17597
|
kind: literal("node"),
|
|
17547
17598
|
nodeId: string().min(1)
|
|
17548
17599
|
})]);
|
|
17600
|
+
/**
|
|
17601
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17602
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17603
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17604
|
+
*/
|
|
17549
17605
|
var DeviceHistoryKindSchema = _enum([
|
|
17606
|
+
"gauge",
|
|
17607
|
+
"counter",
|
|
17608
|
+
"boolean",
|
|
17609
|
+
"enum"
|
|
17610
|
+
]);
|
|
17611
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17612
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17550
17613
|
"gauge",
|
|
17551
17614
|
"counter",
|
|
17552
17615
|
"boolean"
|
|
@@ -17583,7 +17646,13 @@ var SeriesInfoSchema = object({
|
|
|
17583
17646
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17584
17647
|
unit: string().nullable(),
|
|
17585
17648
|
displayName: string(),
|
|
17586
|
-
source: _enum([
|
|
17649
|
+
source: _enum([
|
|
17650
|
+
"cap",
|
|
17651
|
+
"addon",
|
|
17652
|
+
"derived"
|
|
17653
|
+
]),
|
|
17654
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17655
|
+
values: array(string()).readonly().nullable(),
|
|
17587
17656
|
firstTs: number(),
|
|
17588
17657
|
lastTs: number()
|
|
17589
17658
|
});
|
|
@@ -17597,17 +17666,31 @@ var QueryPointSchema = object({
|
|
|
17597
17666
|
twMean: number().nullable(),
|
|
17598
17667
|
min: number(),
|
|
17599
17668
|
max: number(),
|
|
17600
|
-
/** `null` is unknown, never zero (D393). */
|
|
17601
|
-
last: number().nullable()
|
|
17669
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17670
|
+
last: number().nullable(),
|
|
17671
|
+
/**
|
|
17672
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17673
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17674
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17675
|
+
* every other kind, and when it cannot be known.
|
|
17676
|
+
*/
|
|
17677
|
+
delta: number().nullable(),
|
|
17678
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17679
|
+
state: string().nullable(),
|
|
17680
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17681
|
+
states: record(string(), number()).nullable()
|
|
17602
17682
|
});
|
|
17603
17683
|
var QuerySeriesSchema = object({
|
|
17604
17684
|
scope: string(),
|
|
17605
17685
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17606
17686
|
before: object({
|
|
17607
17687
|
t: number(),
|
|
17608
|
-
value: number().nullable()
|
|
17688
|
+
value: number().nullable(),
|
|
17689
|
+
state: string().nullable()
|
|
17609
17690
|
}).nullable(),
|
|
17610
|
-
points: array(QueryPointSchema).readonly()
|
|
17691
|
+
points: array(QueryPointSchema).readonly(),
|
|
17692
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17693
|
+
derivedFrom: string().nullable()
|
|
17611
17694
|
});
|
|
17612
17695
|
/** The window part of a query, shared by the device and node forms. */
|
|
17613
17696
|
var QueryWindowShape = {
|
|
@@ -17623,6 +17706,23 @@ var QueryResultSchema = object({
|
|
|
17623
17706
|
series: array(QuerySeriesSchema).readonly(),
|
|
17624
17707
|
truncated: boolean()
|
|
17625
17708
|
});
|
|
17709
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17710
|
+
var QueryManyItemSchema = union([object({
|
|
17711
|
+
deviceId: number().int(),
|
|
17712
|
+
key: string(),
|
|
17713
|
+
scope: string().optional()
|
|
17714
|
+
}), object({
|
|
17715
|
+
forNodeId: string().min(1),
|
|
17716
|
+
key: string(),
|
|
17717
|
+
scope: string().optional()
|
|
17718
|
+
})]);
|
|
17719
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17720
|
+
ok: literal(true),
|
|
17721
|
+
result: QueryResultSchema
|
|
17722
|
+
}), object({
|
|
17723
|
+
ok: literal(false),
|
|
17724
|
+
error: string()
|
|
17725
|
+
})]);
|
|
17626
17726
|
var TierStatusSchema = object({
|
|
17627
17727
|
tier: DeviceHistoryResolutionSchema,
|
|
17628
17728
|
/** `null` until the first background count answered. */
|
|
@@ -17678,16 +17778,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17678
17778
|
lastRefreshAt: number().nullable()
|
|
17679
17779
|
})
|
|
17680
17780
|
});
|
|
17681
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17781
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17682
17782
|
deviceId: number().int(),
|
|
17683
17783
|
...QueryWindowShape
|
|
17684
17784
|
}), QueryResultSchema), method(object({
|
|
17685
|
-
|
|
17785
|
+
forNodeId: string().min(1),
|
|
17686
17786
|
...QueryWindowShape
|
|
17687
17787
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17788
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17789
|
+
from: QueryWindowShape.from,
|
|
17790
|
+
to: QueryWindowShape.to,
|
|
17791
|
+
resolution: QueryWindowShape.resolution,
|
|
17792
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17793
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17688
17794
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17689
17795
|
subjectKind: _enum(["device", "node"]),
|
|
17690
|
-
kind:
|
|
17796
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17691
17797
|
unit: string().optional(),
|
|
17692
17798
|
displayName: string().min(1),
|
|
17693
17799
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40703,38 +40809,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40703
40809
|
auth: "admin",
|
|
40704
40810
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40705
40811
|
});
|
|
40812
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40813
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40814
|
+
var LlmModelFeaturesSchema = object({
|
|
40815
|
+
vision: boolean(),
|
|
40816
|
+
tools: boolean(),
|
|
40817
|
+
streaming: boolean()
|
|
40818
|
+
});
|
|
40819
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40820
|
+
var LlmModelInfoSchema = object({
|
|
40821
|
+
id: string(),
|
|
40822
|
+
label: string().optional(),
|
|
40823
|
+
contextLength: number().int().positive().optional(),
|
|
40824
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40825
|
+
});
|
|
40706
40826
|
/**
|
|
40707
|
-
*
|
|
40708
|
-
*
|
|
40709
|
-
*
|
|
40710
|
-
*
|
|
40711
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40712
|
-
*
|
|
40713
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40714
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40715
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40827
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40828
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40829
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40830
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40716
40831
|
*/
|
|
40717
|
-
var
|
|
40718
|
-
"openai-compatible",
|
|
40719
|
-
"openai",
|
|
40720
|
-
"anthropic",
|
|
40721
|
-
"google",
|
|
40722
|
-
"managed-local",
|
|
40723
|
-
"apple-foundation"
|
|
40724
|
-
]);
|
|
40832
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40725
40833
|
var LlmProfileSchema = object({
|
|
40726
40834
|
id: string(),
|
|
40727
40835
|
name: string(),
|
|
40836
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40728
40837
|
kind: LlmProfileKindSchema,
|
|
40729
40838
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40730
40839
|
addonId: string(),
|
|
40731
40840
|
enabled: boolean(),
|
|
40732
40841
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40733
40842
|
model: string(),
|
|
40734
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40735
|
-
baseUrl: string().optional(),
|
|
40736
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40737
|
-
apiKey: string().optional(),
|
|
40738
40843
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40739
40844
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40740
40845
|
* question about a picture nobody sent. */
|
|
@@ -40742,15 +40847,11 @@ var LlmProfileSchema = object({
|
|
|
40742
40847
|
temperature: number().min(0).max(2).optional(),
|
|
40743
40848
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40744
40849
|
topP: number().min(0).max(1).optional(),
|
|
40745
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40746
|
-
*
|
|
40747
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40748
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40850
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40851
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40749
40852
|
topK: number().int().positive().optional(),
|
|
40750
40853
|
maxTokens: number().int().positive().optional(),
|
|
40751
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40752
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40753
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40854
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40754
40855
|
contextLength: number().int().positive().optional(),
|
|
40755
40856
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40756
40857
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40776,16 +40877,37 @@ var LlmProfileSchema = object({
|
|
|
40776
40877
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40777
40878
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40778
40879
|
toolsEnabled: boolean().default(false),
|
|
40779
|
-
|
|
40780
|
-
|
|
40781
|
-
|
|
40782
|
-
|
|
40783
|
-
|
|
40784
|
-
|
|
40785
|
-
|
|
40786
|
-
|
|
40787
|
-
|
|
40788
|
-
|
|
40880
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40881
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40882
|
+
});
|
|
40883
|
+
/**
|
|
40884
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40885
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40886
|
+
*/
|
|
40887
|
+
var LlmProfileFieldSchema = _enum([
|
|
40888
|
+
"temperature",
|
|
40889
|
+
"topP",
|
|
40890
|
+
"topK",
|
|
40891
|
+
"maxTokens",
|
|
40892
|
+
"contextLength",
|
|
40893
|
+
"systemPrompt",
|
|
40894
|
+
"timeoutMs",
|
|
40895
|
+
"connectTimeoutMs",
|
|
40896
|
+
"firstTokenTimeoutMs",
|
|
40897
|
+
"idleTimeoutMs",
|
|
40898
|
+
"retry",
|
|
40899
|
+
"toolsEnabled"
|
|
40900
|
+
]);
|
|
40901
|
+
/**
|
|
40902
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40903
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40904
|
+
* picker: that widget owns the model choice.
|
|
40905
|
+
*/
|
|
40906
|
+
var LlmProviderWidgetSchema = object({
|
|
40907
|
+
id: string(),
|
|
40908
|
+
placement: _enum(["connection", "model"]),
|
|
40909
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40910
|
+
requires: array(string()).optional()
|
|
40789
40911
|
});
|
|
40790
40912
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40791
40913
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40794,11 +40916,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40794
40916
|
var LlmProfileKindDescriptorSchema = object({
|
|
40795
40917
|
kind: LlmProfileKindSchema,
|
|
40796
40918
|
label: string(),
|
|
40919
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40797
40920
|
icon: string(),
|
|
40798
40921
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40799
40922
|
addonId: string(),
|
|
40800
|
-
|
|
40923
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40924
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40925
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40926
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40927
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40928
|
+
features: LlmModelFeaturesSchema,
|
|
40929
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40930
|
+
visionEditable: boolean(),
|
|
40931
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40932
|
+
modelCatalog: _enum([
|
|
40933
|
+
"fetch",
|
|
40934
|
+
"static",
|
|
40935
|
+
"none"
|
|
40936
|
+
]),
|
|
40937
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40938
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40939
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40940
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40801
40941
|
});
|
|
40942
|
+
/**
|
|
40943
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40944
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40945
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40946
|
+
* stored profile — the browser never receives it.
|
|
40947
|
+
*/
|
|
40948
|
+
var LlmListModelsInputSchema = object({
|
|
40949
|
+
addonId: string(),
|
|
40950
|
+
kind: LlmProfileKindSchema,
|
|
40951
|
+
profileId: string().optional(),
|
|
40952
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40953
|
+
});
|
|
40954
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40955
|
+
"auth",
|
|
40956
|
+
"network",
|
|
40957
|
+
"unsupported",
|
|
40958
|
+
"invalid"
|
|
40959
|
+
]);
|
|
40960
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40961
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40962
|
+
ok: literal(true),
|
|
40963
|
+
models: array(LlmModelInfoSchema)
|
|
40964
|
+
}), object({
|
|
40965
|
+
ok: literal(false),
|
|
40966
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40967
|
+
message: string()
|
|
40968
|
+
})]);
|
|
40802
40969
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40803
40970
|
var LlmDefaultSchema = object({
|
|
40804
40971
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40898,7 +41065,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40898
41065
|
kind: "mutation",
|
|
40899
41066
|
auth: "admin",
|
|
40900
41067
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40901
|
-
}), method(
|
|
41068
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
41069
|
+
kind: "mutation",
|
|
41070
|
+
auth: "admin"
|
|
41071
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40902
41072
|
selector: LlmDefaultSelectorSchema,
|
|
40903
41073
|
profileId: string().nullable()
|
|
40904
41074
|
}), _void(), {
|
|
@@ -41066,14 +41236,106 @@ var LogEntrySchema = object({
|
|
|
41066
41236
|
meta: record(string(), unknown()).optional(),
|
|
41067
41237
|
tags: record(string(), string()).optional()
|
|
41068
41238
|
});
|
|
41069
|
-
|
|
41070
|
-
|
|
41239
|
+
/**
|
|
41240
|
+
* A history READ against one destination (D898).
|
|
41241
|
+
*
|
|
41242
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
41243
|
+
* browser applied after the limit is what made a rare device's lines
|
|
41244
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
41245
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
41246
|
+
* nanosecond timestamp for Loki.
|
|
41247
|
+
*
|
|
41248
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
41249
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
41250
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
41251
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
41252
|
+
* flight, and not asking for the next slice ends the scan.
|
|
41253
|
+
*/
|
|
41254
|
+
var LogReadQuerySchema = object({
|
|
41255
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
41256
|
+
requestId: string().min(1).max(64).optional(),
|
|
41257
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
41258
|
+
deviceId: number().int().optional(),
|
|
41259
|
+
/**
|
|
41260
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
41261
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
41262
|
+
*/
|
|
41263
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
41264
|
+
/**
|
|
41265
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
41266
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
41267
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
41268
|
+
* name as "which node's provider".
|
|
41269
|
+
*/
|
|
41270
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
41271
|
+
/** Any other tag, exact match (AND). */
|
|
41272
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41273
|
+
/** Severity FLOOR: this level and above. */
|
|
41071
41274
|
level: LogLevelSchema.optional(),
|
|
41072
|
-
|
|
41073
|
-
|
|
41074
|
-
|
|
41075
|
-
|
|
41076
|
-
|
|
41275
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
41276
|
+
text: string().min(1).max(200).optional(),
|
|
41277
|
+
/** Epoch ms, inclusive. */
|
|
41278
|
+
since: number().optional(),
|
|
41279
|
+
/** Epoch ms, inclusive. */
|
|
41280
|
+
until: number().optional(),
|
|
41281
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
41282
|
+
before: string().min(1).max(1024).optional(),
|
|
41283
|
+
/** Newer than this cursor (exclusive). */
|
|
41284
|
+
after: string().min(1).max(1024).optional(),
|
|
41285
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
41286
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
41287
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
41288
|
+
});
|
|
41289
|
+
var LogReadResultSchema = object({
|
|
41290
|
+
/** Newest first. */
|
|
41291
|
+
entries: array(object({
|
|
41292
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
41293
|
+
id: string().optional(),
|
|
41294
|
+
/** Epoch ms. */
|
|
41295
|
+
timestamp: number(),
|
|
41296
|
+
level: LogLevelSchema,
|
|
41297
|
+
scope: string().optional(),
|
|
41298
|
+
message: string(),
|
|
41299
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41300
|
+
meta: record(string(), unknown()).optional()
|
|
41301
|
+
})),
|
|
41302
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
41303
|
+
nextBefore: string().nullable(),
|
|
41304
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
41305
|
+
nextAfter: string().nullable(),
|
|
41306
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
41307
|
+
scannedBytes: number().int().nonnegative(),
|
|
41308
|
+
/**
|
|
41309
|
+
* True when the scan in this direction reached the end of the store.
|
|
41310
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
41311
|
+
* call again with `nextBefore` to go on.
|
|
41312
|
+
*/
|
|
41313
|
+
done: boolean(),
|
|
41314
|
+
/** True when `cancelRead` ended this slice early. */
|
|
41315
|
+
cancelled: boolean().optional()
|
|
41316
|
+
});
|
|
41317
|
+
var LogReadCapabilitiesSchema = object({
|
|
41318
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
41319
|
+
readable: boolean(),
|
|
41320
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
41321
|
+
reason: string().nullable(),
|
|
41322
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
41323
|
+
filters: object({
|
|
41324
|
+
deviceId: boolean(),
|
|
41325
|
+
addonId: boolean(),
|
|
41326
|
+
nodeId: boolean(),
|
|
41327
|
+
tags: boolean(),
|
|
41328
|
+
level: boolean(),
|
|
41329
|
+
text: boolean(),
|
|
41330
|
+
timeRange: boolean()
|
|
41331
|
+
}),
|
|
41332
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
41333
|
+
retentionDays: number().nullable()
|
|
41334
|
+
});
|
|
41335
|
+
method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
|
|
41336
|
+
kind: "mutation",
|
|
41337
|
+
auth: "admin"
|
|
41338
|
+
});
|
|
41077
41339
|
/**
|
|
41078
41340
|
* `login-method` — collection cap through which auth addons contribute
|
|
41079
41341
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42813,9 +43075,11 @@ var alarmPanelCapability = {
|
|
|
42813
43075
|
*/
|
|
42814
43076
|
durability: "restored",
|
|
42815
43077
|
/**
|
|
42816
|
-
* History (D850):
|
|
43078
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
43079
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
43080
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42817
43081
|
*/
|
|
42818
|
-
history: "
|
|
43082
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42819
43083
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42820
43084
|
* whether persisting is worth a SQLite commit. */
|
|
42821
43085
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43693,6 +43957,33 @@ var NcRuleTargetSchema = object({
|
|
|
43693
43957
|
params: record(string(), unknown()).optional()
|
|
43694
43958
|
});
|
|
43695
43959
|
/**
|
|
43960
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43961
|
+
*
|
|
43962
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43963
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43964
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43965
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43966
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43967
|
+
* labelled with class and confidence ("dog 87%").
|
|
43968
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43969
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43970
|
+
* - `none` — no picture.
|
|
43971
|
+
*
|
|
43972
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43973
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43974
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43975
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43976
|
+
* stored kind had landed.
|
|
43977
|
+
*/
|
|
43978
|
+
var NcMediaImageSchema = _enum([
|
|
43979
|
+
"scene-boxes",
|
|
43980
|
+
"crop",
|
|
43981
|
+
"clean",
|
|
43982
|
+
"none"
|
|
43983
|
+
]);
|
|
43984
|
+
/**
|
|
43985
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43986
|
+
*
|
|
43696
43987
|
* Media attachment policy (P1 still-image subset).
|
|
43697
43988
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43698
43989
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43706,6 +43997,8 @@ var NcRuleTargetSchema = object({
|
|
|
43706
43997
|
* - `none` — no attachment.
|
|
43707
43998
|
*/
|
|
43708
43999
|
/**
|
|
44000
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
44001
|
+
*
|
|
43709
44002
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43710
44003
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43711
44004
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43734,16 +44027,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43734
44027
|
*/
|
|
43735
44028
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43736
44029
|
var NcMediaPolicySchema = object({
|
|
44030
|
+
/**
|
|
44031
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
44032
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
44033
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
44034
|
+
*/
|
|
44035
|
+
image: NcMediaImageSchema.optional(),
|
|
44036
|
+
/**
|
|
44037
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
44038
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
44039
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
44040
|
+
* Replaces `zoneCrop`.
|
|
44041
|
+
*/
|
|
44042
|
+
showTriggerZone: boolean().optional(),
|
|
44043
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43737
44044
|
attach: _enum([
|
|
43738
44045
|
"best",
|
|
43739
44046
|
"best-matching",
|
|
43740
44047
|
"keyFrame",
|
|
43741
44048
|
"none"
|
|
43742
|
-
]).
|
|
43743
|
-
/**
|
|
44049
|
+
]).optional(),
|
|
44050
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43744
44051
|
frame: NcMediaFrameSchema.optional(),
|
|
43745
|
-
/**
|
|
43746
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
44052
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43747
44053
|
zoneCrop: boolean().optional(),
|
|
43748
44054
|
/**
|
|
43749
44055
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43915,7 +44221,9 @@ var NcRuleInputSchema = object({
|
|
|
43915
44221
|
* targets.
|
|
43916
44222
|
*/
|
|
43917
44223
|
targetUsers: array(string()).optional(),
|
|
43918
|
-
|
|
44224
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
44225
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
44226
|
+
media: NcMediaPolicySchema.default({}),
|
|
43919
44227
|
throttle: NcThrottleSchema.default({
|
|
43920
44228
|
cooldownSec: 60,
|
|
43921
44229
|
scope: "rule-device"
|
|
@@ -44852,13 +45160,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44852
45160
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44853
45161
|
unknown: array(number().int())
|
|
44854
45162
|
});
|
|
45163
|
+
/**
|
|
45164
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
45165
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
45166
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
45167
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
45168
|
+
*/
|
|
45169
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
45170
|
+
ruleId: string(),
|
|
45171
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
45172
|
+
ruleName: string(),
|
|
45173
|
+
/** The input: the sensor of the match, else its camera. */
|
|
45174
|
+
deviceId: number().int(),
|
|
45175
|
+
/** The input's current name. */
|
|
45176
|
+
name: string(),
|
|
45177
|
+
/** When it was bypassed (ms epoch). */
|
|
45178
|
+
since: number(),
|
|
45179
|
+
/** Triggers from this input dropped since. */
|
|
45180
|
+
dropped: number().int().min(0)
|
|
45181
|
+
});
|
|
44855
45182
|
var NcAlarmLiveSchema = object({
|
|
44856
45183
|
state: AlarmStateSchema,
|
|
44857
45184
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44858
45185
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44859
45186
|
availableModes: array(AlarmArmModeSchema),
|
|
44860
45187
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44861
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
45188
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
45189
|
+
/**
|
|
45190
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
45191
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
45192
|
+
*/
|
|
45193
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44862
45194
|
});
|
|
44863
45195
|
var NcAlarmConfigSchema = object({
|
|
44864
45196
|
/**
|
|
@@ -55692,9 +56024,11 @@ var connectivityCapability = {
|
|
|
55692
56024
|
*/
|
|
55693
56025
|
durability: "restored",
|
|
55694
56026
|
/**
|
|
55695
|
-
* History (D850):
|
|
56027
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
56028
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
56029
|
+
* device's reachability, which stays `device-status.online`.
|
|
55696
56030
|
*/
|
|
55697
|
-
history: "
|
|
56031
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
55698
56032
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55699
56033
|
* whether persisting is worth a SQLite commit. */
|
|
55700
56034
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -56518,11 +56852,22 @@ var dishwasherCapability = {
|
|
|
56518
56852
|
},
|
|
56519
56853
|
runtimeState: DishwasherStatusSchema,
|
|
56520
56854
|
durability: "session",
|
|
56521
|
-
history: { fields: {
|
|
56522
|
-
|
|
56523
|
-
|
|
56524
|
-
|
|
56525
|
-
|
|
56855
|
+
history: { fields: {
|
|
56856
|
+
progressPercent: {
|
|
56857
|
+
kind: "gauge",
|
|
56858
|
+
unit: "%",
|
|
56859
|
+
deadband: 2
|
|
56860
|
+
},
|
|
56861
|
+
state: { kind: "enum" },
|
|
56862
|
+
operationState: { kind: "enum" },
|
|
56863
|
+
remainingSeconds: {
|
|
56864
|
+
kind: "gauge",
|
|
56865
|
+
unit: "s",
|
|
56866
|
+
minIntervalMs: 6e4
|
|
56867
|
+
},
|
|
56868
|
+
doorOpen: { kind: "boolean" },
|
|
56869
|
+
powerOn: { kind: "boolean" }
|
|
56870
|
+
} }
|
|
56526
56871
|
};
|
|
56527
56872
|
var DoorbellStatusSchema = object({
|
|
56528
56873
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -56639,9 +56984,15 @@ var enumSensorCapability = {
|
|
|
56639
56984
|
*/
|
|
56640
56985
|
durability: "restored",
|
|
56641
56986
|
/**
|
|
56642
|
-
* History (D850):
|
|
56987
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56988
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56989
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56990
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
56643
56991
|
*/
|
|
56644
|
-
history:
|
|
56992
|
+
history: { fields: { value: {
|
|
56993
|
+
kind: "enum",
|
|
56994
|
+
skipWhenSet: "format"
|
|
56995
|
+
} } },
|
|
56645
56996
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56646
56997
|
* whether persisting is worth a SQLite commit. */
|
|
56647
56998
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -58615,9 +58966,10 @@ var lockControlCapability = {
|
|
|
58615
58966
|
*/
|
|
58616
58967
|
durability: "restored",
|
|
58617
58968
|
/**
|
|
58618
|
-
* History (D850):
|
|
58969
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58970
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
58619
58971
|
*/
|
|
58620
|
-
history: "
|
|
58972
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
58621
58973
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58622
58974
|
* whether persisting is worth a SQLite commit. */
|
|
58623
58975
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58791,9 +59143,18 @@ var mediaPlayerCapability = {
|
|
|
58791
59143
|
*/
|
|
58792
59144
|
durability: "session",
|
|
58793
59145
|
/**
|
|
58794
|
-
* History (D850):
|
|
59146
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
59147
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
59148
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58795
59149
|
*/
|
|
58796
|
-
history:
|
|
59150
|
+
history: { fields: {
|
|
59151
|
+
volumeLevel: {
|
|
59152
|
+
kind: "gauge",
|
|
59153
|
+
unit: "%",
|
|
59154
|
+
deadband: 1
|
|
59155
|
+
},
|
|
59156
|
+
isMuted: { kind: "boolean" }
|
|
59157
|
+
} }
|
|
58797
59158
|
};
|
|
58798
59159
|
/**
|
|
58799
59160
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -64086,9 +64447,29 @@ var streamParamsCapability = {
|
|
|
64086
64447
|
*/
|
|
64087
64448
|
durability: "restored",
|
|
64088
64449
|
/**
|
|
64089
|
-
* History (D850):
|
|
64450
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
64451
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
64452
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
64453
|
+
* quality over time must show.
|
|
64090
64454
|
*/
|
|
64091
|
-
history:
|
|
64455
|
+
history: { fields: {
|
|
64456
|
+
"main.bitrate": {
|
|
64457
|
+
kind: "gauge",
|
|
64458
|
+
unit: "kbps"
|
|
64459
|
+
},
|
|
64460
|
+
"main.framerate": {
|
|
64461
|
+
kind: "gauge",
|
|
64462
|
+
unit: "fps"
|
|
64463
|
+
},
|
|
64464
|
+
"sub.bitrate": {
|
|
64465
|
+
kind: "gauge",
|
|
64466
|
+
unit: "kbps"
|
|
64467
|
+
},
|
|
64468
|
+
"sub.framerate": {
|
|
64469
|
+
kind: "gauge",
|
|
64470
|
+
unit: "fps"
|
|
64471
|
+
}
|
|
64472
|
+
} },
|
|
64092
64473
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64093
64474
|
* whether persisting is worth a SQLite commit. */
|
|
64094
64475
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64923,26 +65304,6 @@ var ApiKeySummarySchema = object({
|
|
|
64923
65304
|
createdAt: number(),
|
|
64924
65305
|
lastUsedAt: number().optional()
|
|
64925
65306
|
});
|
|
64926
|
-
var ScopedTokenSummarySchema = object({
|
|
64927
|
-
id: string(),
|
|
64928
|
-
userId: string(),
|
|
64929
|
-
name: string(),
|
|
64930
|
-
tokenPrefix: string(),
|
|
64931
|
-
scopes: array(TokenScopeSchema),
|
|
64932
|
-
expiresAt: number().nullish(),
|
|
64933
|
-
lastUsedAt: number().nullish(),
|
|
64934
|
-
createdAt: number()
|
|
64935
|
-
});
|
|
64936
|
-
var CreateScopedTokenInputSchema = object({
|
|
64937
|
-
userId: string(),
|
|
64938
|
-
name: string(),
|
|
64939
|
-
scopes: array(TokenScopeSchema),
|
|
64940
|
-
expiresAt: number().optional()
|
|
64941
|
-
});
|
|
64942
|
-
var CreateScopedTokenResultSchema = object({
|
|
64943
|
-
token: string(),
|
|
64944
|
-
record: ScopedTokenSummarySchema
|
|
64945
|
-
});
|
|
64946
65307
|
var OauthSessionSummarySchema = object({
|
|
64947
65308
|
id: string(),
|
|
64948
65309
|
userId: string(),
|
|
@@ -64964,11 +65325,11 @@ var TotpStatusSchema = object({
|
|
|
64964
65325
|
confirmedAt: number().nullable()
|
|
64965
65326
|
});
|
|
64966
65327
|
/**
|
|
64967
|
-
* user-management — singleton capability for user accounts
|
|
64968
|
-
*
|
|
65328
|
+
* user-management — singleton capability for user accounts and the
|
|
65329
|
+
* legacy API-key rows.
|
|
64969
65330
|
*
|
|
64970
65331
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64971
|
-
* — the subset check on `setUserScopes`
|
|
65332
|
+
* — the subset check on `setUserScopes` is moot
|
|
64972
65333
|
* because non-admins never reach these. If/when we open non-admin
|
|
64973
65334
|
* delegation, structural caller-scope subset check goes inside the
|
|
64974
65335
|
* provider.
|
|
@@ -65025,15 +65386,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65025
65386
|
kind: "mutation",
|
|
65026
65387
|
auth: "admin",
|
|
65027
65388
|
access: "delete"
|
|
65028
|
-
}), method(
|
|
65029
|
-
kind: "mutation",
|
|
65030
|
-
auth: "admin",
|
|
65031
|
-
access: "create"
|
|
65032
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65033
|
-
kind: "mutation",
|
|
65034
|
-
auth: "admin",
|
|
65035
|
-
access: "delete"
|
|
65036
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65389
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65037
65390
|
kind: "mutation",
|
|
65038
65391
|
auth: "admin",
|
|
65039
65392
|
access: "create"
|
|
@@ -67294,6 +67647,15 @@ var BaseDevice = class {
|
|
|
67294
67647
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
67295
67648
|
* with a typed cast.
|
|
67296
67649
|
*
|
|
67650
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
67651
|
+
* while this device is `online` and probed; return
|
|
67652
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
67653
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
67654
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
67655
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
67656
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
67657
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
67658
|
+
*
|
|
67297
67659
|
* Default: no children.
|
|
67298
67660
|
*/
|
|
67299
67661
|
getAccessoryChildren() {
|
|
@@ -71123,7 +71485,7 @@ Object.freeze({
|
|
|
71123
71485
|
capName: "llm",
|
|
71124
71486
|
capScope: "system",
|
|
71125
71487
|
addonId: null,
|
|
71126
|
-
access: "
|
|
71488
|
+
access: "create"
|
|
71127
71489
|
},
|
|
71128
71490
|
"llm.listNodeModels": {
|
|
71129
71491
|
capName: "llm",
|
|
@@ -71425,7 +71787,19 @@ Object.freeze({
|
|
|
71425
71787
|
addonId: null,
|
|
71426
71788
|
access: "view"
|
|
71427
71789
|
},
|
|
71428
|
-
"logDestination.
|
|
71790
|
+
"logDestination.cancelRead": {
|
|
71791
|
+
capName: "log-destination",
|
|
71792
|
+
capScope: "system",
|
|
71793
|
+
addonId: null,
|
|
71794
|
+
access: "create"
|
|
71795
|
+
},
|
|
71796
|
+
"logDestination.describeRead": {
|
|
71797
|
+
capName: "log-destination",
|
|
71798
|
+
capScope: "system",
|
|
71799
|
+
addonId: null,
|
|
71800
|
+
access: "view"
|
|
71801
|
+
},
|
|
71802
|
+
"logDestination.read": {
|
|
71429
71803
|
capName: "log-destination",
|
|
71430
71804
|
capScope: "system",
|
|
71431
71805
|
addonId: null,
|
|
@@ -75787,12 +76161,6 @@ Object.freeze({
|
|
|
75787
76161
|
addonId: null,
|
|
75788
76162
|
access: "create"
|
|
75789
76163
|
},
|
|
75790
|
-
"userManagement.createScopedToken": {
|
|
75791
|
-
capName: "user-management",
|
|
75792
|
-
capScope: "system",
|
|
75793
|
-
addonId: null,
|
|
75794
|
-
access: "create"
|
|
75795
|
-
},
|
|
75796
76164
|
"userManagement.createUser": {
|
|
75797
76165
|
capName: "user-management",
|
|
75798
76166
|
capScope: "system",
|
|
@@ -75841,12 +76209,6 @@ Object.freeze({
|
|
|
75841
76209
|
addonId: null,
|
|
75842
76210
|
access: "view"
|
|
75843
76211
|
},
|
|
75844
|
-
"userManagement.listScopedTokens": {
|
|
75845
|
-
capName: "user-management",
|
|
75846
|
-
capScope: "system",
|
|
75847
|
-
addonId: null,
|
|
75848
|
-
access: "view"
|
|
75849
|
-
},
|
|
75850
76212
|
"userManagement.listUsers": {
|
|
75851
76213
|
capName: "user-management",
|
|
75852
76214
|
capScope: "system",
|
|
@@ -75901,12 +76263,6 @@ Object.freeze({
|
|
|
75901
76263
|
addonId: null,
|
|
75902
76264
|
access: "delete"
|
|
75903
76265
|
},
|
|
75904
|
-
"userManagement.revokeScopedToken": {
|
|
75905
|
-
capName: "user-management",
|
|
75906
|
-
capScope: "system",
|
|
75907
|
-
addonId: null,
|
|
75908
|
-
access: "delete"
|
|
75909
|
-
},
|
|
75910
76266
|
"userManagement.setupTotp": {
|
|
75911
76267
|
capName: "user-management",
|
|
75912
76268
|
capScope: "system",
|
|
@@ -75937,12 +76293,6 @@ Object.freeze({
|
|
|
75937
76293
|
addonId: null,
|
|
75938
76294
|
access: "view"
|
|
75939
76295
|
},
|
|
75940
|
-
"userManagement.validateScopedToken": {
|
|
75941
|
-
capName: "user-management",
|
|
75942
|
-
capScope: "system",
|
|
75943
|
-
addonId: null,
|
|
75944
|
-
access: "view"
|
|
75945
|
-
},
|
|
75946
76296
|
"userManagement.verifyTotp": {
|
|
75947
76297
|
capName: "user-management",
|
|
75948
76298
|
capScope: "system",
|
|
@@ -77456,6 +77806,11 @@ Object.freeze({
|
|
|
77456
77806
|
form: "single",
|
|
77457
77807
|
optional: false
|
|
77458
77808
|
}],
|
|
77809
|
+
"logDestination.read": [{
|
|
77810
|
+
name: "deviceId",
|
|
77811
|
+
form: "single",
|
|
77812
|
+
optional: true
|
|
77813
|
+
}],
|
|
77459
77814
|
"mediaPlayer.getStatus": [{
|
|
77460
77815
|
name: "deviceId",
|
|
77461
77816
|
form: "single",
|