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