@camstack/addon-provider-velux 0.2.130 → 0.2.132
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 +496 -141
- package/dist/addon.mjs +496 -141
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
|
|
|
5414
5414
|
var ZodFirstPartyTypeKind;
|
|
5415
5415
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5416
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
5417
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5418
5418
|
/**
|
|
5419
5419
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5420
5420
|
* window to float samples (D455).
|
|
@@ -7797,9 +7797,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7797
7797
|
return result;
|
|
7798
7798
|
}
|
|
7799
7799
|
/**
|
|
7800
|
-
* The share-view scope kinds a
|
|
7801
|
-
* and validates them (`
|
|
7802
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7800
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7801
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7802
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7803
7803
|
*/
|
|
7804
7804
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7805
7805
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12503,7 +12503,7 @@ var ConvertResultSchema = object({
|
|
|
12503
12503
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12504
12504
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12505
12505
|
* distinction was only ever used to route role-specific procedures
|
|
12506
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12506
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12507
12507
|
* with `isAdmin: false` + an explicit scope list.
|
|
12508
12508
|
*/
|
|
12509
12509
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12692,10 +12692,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12692
12692
|
type: literal("addon-routes"),
|
|
12693
12693
|
access: array(MethodAccessSchema).min(1)
|
|
12694
12694
|
});
|
|
12695
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12695
12696
|
var CredentialScopeSchema = union([
|
|
12696
12697
|
literal("*"),
|
|
12697
12698
|
ShareViewScopeSchema,
|
|
12698
12699
|
AddonRoutesScopeSchema,
|
|
12700
|
+
PreferencesSelfScopeSchema,
|
|
12699
12701
|
TokenScopeSchema
|
|
12700
12702
|
]);
|
|
12701
12703
|
object({
|
|
@@ -12704,6 +12706,55 @@ object({
|
|
|
12704
12706
|
jti: string().min(16),
|
|
12705
12707
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12706
12708
|
});
|
|
12709
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12710
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12711
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12712
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12713
|
+
/** A stored row, as the owner reads it. */
|
|
12714
|
+
var PreferenceRowSchema = object({
|
|
12715
|
+
namespace: PreferenceNamespaceSchema,
|
|
12716
|
+
value: PreferenceValueSchema,
|
|
12717
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12718
|
+
revision: number().int().positive(),
|
|
12719
|
+
updatedAt: number().int(),
|
|
12720
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12721
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12722
|
+
});
|
|
12723
|
+
object({
|
|
12724
|
+
/** Absent: every namespace the caller holds. */
|
|
12725
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12726
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12727
|
+
object({
|
|
12728
|
+
namespace: PreferenceNamespaceSchema,
|
|
12729
|
+
value: PreferenceValueSchema,
|
|
12730
|
+
/**
|
|
12731
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12732
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12733
|
+
* revision answers `conflict` and writes nothing.
|
|
12734
|
+
*/
|
|
12735
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12736
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12737
|
+
});
|
|
12738
|
+
discriminatedUnion("status", [object({
|
|
12739
|
+
status: literal("saved"),
|
|
12740
|
+
row: PreferenceRowSchema
|
|
12741
|
+
}), object({
|
|
12742
|
+
status: literal("conflict"),
|
|
12743
|
+
current: PreferenceRowSchema.nullable()
|
|
12744
|
+
})]);
|
|
12745
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12746
|
+
object({
|
|
12747
|
+
/** `false` when the namespace did not exist. */
|
|
12748
|
+
deleted: boolean() });
|
|
12749
|
+
object({
|
|
12750
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12751
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12752
|
+
object({
|
|
12753
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12754
|
+
rows: array(PreferenceRowSchema),
|
|
12755
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12756
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12757
|
+
});
|
|
12707
12758
|
_enum(["new-session", "step-up"]);
|
|
12708
12759
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12709
12760
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -16957,7 +17008,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16957
17008
|
kind: literal("node"),
|
|
16958
17009
|
nodeId: string().min(1)
|
|
16959
17010
|
})]);
|
|
17011
|
+
/**
|
|
17012
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17013
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17014
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17015
|
+
*/
|
|
16960
17016
|
var DeviceHistoryKindSchema = _enum([
|
|
17017
|
+
"gauge",
|
|
17018
|
+
"counter",
|
|
17019
|
+
"boolean",
|
|
17020
|
+
"enum"
|
|
17021
|
+
]);
|
|
17022
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17023
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16961
17024
|
"gauge",
|
|
16962
17025
|
"counter",
|
|
16963
17026
|
"boolean"
|
|
@@ -16994,7 +17057,13 @@ var SeriesInfoSchema = object({
|
|
|
16994
17057
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16995
17058
|
unit: string().nullable(),
|
|
16996
17059
|
displayName: string(),
|
|
16997
|
-
source: _enum([
|
|
17060
|
+
source: _enum([
|
|
17061
|
+
"cap",
|
|
17062
|
+
"addon",
|
|
17063
|
+
"derived"
|
|
17064
|
+
]),
|
|
17065
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17066
|
+
values: array(string()).readonly().nullable(),
|
|
16998
17067
|
firstTs: number(),
|
|
16999
17068
|
lastTs: number()
|
|
17000
17069
|
});
|
|
@@ -17008,17 +17077,31 @@ var QueryPointSchema = object({
|
|
|
17008
17077
|
twMean: number().nullable(),
|
|
17009
17078
|
min: number(),
|
|
17010
17079
|
max: number(),
|
|
17011
|
-
/** `null` is unknown, never zero (D393). */
|
|
17012
|
-
last: number().nullable()
|
|
17080
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17081
|
+
last: number().nullable(),
|
|
17082
|
+
/**
|
|
17083
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17084
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17085
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17086
|
+
* every other kind, and when it cannot be known.
|
|
17087
|
+
*/
|
|
17088
|
+
delta: number().nullable(),
|
|
17089
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17090
|
+
state: string().nullable(),
|
|
17091
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17092
|
+
states: record(string(), number()).nullable()
|
|
17013
17093
|
});
|
|
17014
17094
|
var QuerySeriesSchema = object({
|
|
17015
17095
|
scope: string(),
|
|
17016
17096
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17017
17097
|
before: object({
|
|
17018
17098
|
t: number(),
|
|
17019
|
-
value: number().nullable()
|
|
17099
|
+
value: number().nullable(),
|
|
17100
|
+
state: string().nullable()
|
|
17020
17101
|
}).nullable(),
|
|
17021
|
-
points: array(QueryPointSchema).readonly()
|
|
17102
|
+
points: array(QueryPointSchema).readonly(),
|
|
17103
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17104
|
+
derivedFrom: string().nullable()
|
|
17022
17105
|
});
|
|
17023
17106
|
/** The window part of a query, shared by the device and node forms. */
|
|
17024
17107
|
var QueryWindowShape = {
|
|
@@ -17034,6 +17117,23 @@ var QueryResultSchema = object({
|
|
|
17034
17117
|
series: array(QuerySeriesSchema).readonly(),
|
|
17035
17118
|
truncated: boolean()
|
|
17036
17119
|
});
|
|
17120
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17121
|
+
var QueryManyItemSchema = union([object({
|
|
17122
|
+
deviceId: number().int(),
|
|
17123
|
+
key: string(),
|
|
17124
|
+
scope: string().optional()
|
|
17125
|
+
}), object({
|
|
17126
|
+
forNodeId: string().min(1),
|
|
17127
|
+
key: string(),
|
|
17128
|
+
scope: string().optional()
|
|
17129
|
+
})]);
|
|
17130
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17131
|
+
ok: literal(true),
|
|
17132
|
+
result: QueryResultSchema
|
|
17133
|
+
}), object({
|
|
17134
|
+
ok: literal(false),
|
|
17135
|
+
error: string()
|
|
17136
|
+
})]);
|
|
17037
17137
|
var TierStatusSchema = object({
|
|
17038
17138
|
tier: DeviceHistoryResolutionSchema,
|
|
17039
17139
|
/** `null` until the first background count answered. */
|
|
@@ -17089,16 +17189,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17089
17189
|
lastRefreshAt: number().nullable()
|
|
17090
17190
|
})
|
|
17091
17191
|
});
|
|
17092
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17192
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17093
17193
|
deviceId: number().int(),
|
|
17094
17194
|
...QueryWindowShape
|
|
17095
17195
|
}), QueryResultSchema), method(object({
|
|
17096
|
-
|
|
17196
|
+
forNodeId: string().min(1),
|
|
17097
17197
|
...QueryWindowShape
|
|
17098
17198
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17199
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17200
|
+
from: QueryWindowShape.from,
|
|
17201
|
+
to: QueryWindowShape.to,
|
|
17202
|
+
resolution: QueryWindowShape.resolution,
|
|
17203
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17204
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17099
17205
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17100
17206
|
subjectKind: _enum(["device", "node"]),
|
|
17101
|
-
kind:
|
|
17207
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17102
17208
|
unit: string().optional(),
|
|
17103
17209
|
displayName: string().min(1),
|
|
17104
17210
|
ingest: _enum(["points", "buckets"])
|
|
@@ -39993,38 +40099,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
39993
40099
|
auth: "admin",
|
|
39994
40100
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
39995
40101
|
});
|
|
40102
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40103
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40104
|
+
var LlmModelFeaturesSchema = object({
|
|
40105
|
+
vision: boolean(),
|
|
40106
|
+
tools: boolean(),
|
|
40107
|
+
streaming: boolean()
|
|
40108
|
+
});
|
|
40109
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40110
|
+
var LlmModelInfoSchema = object({
|
|
40111
|
+
id: string(),
|
|
40112
|
+
label: string().optional(),
|
|
40113
|
+
contextLength: number().int().positive().optional(),
|
|
40114
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40115
|
+
});
|
|
39996
40116
|
/**
|
|
39997
|
-
*
|
|
39998
|
-
*
|
|
39999
|
-
*
|
|
40000
|
-
*
|
|
40001
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40002
|
-
*
|
|
40003
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40004
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40005
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40117
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40118
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40119
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40120
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40006
40121
|
*/
|
|
40007
|
-
var
|
|
40008
|
-
"openai-compatible",
|
|
40009
|
-
"openai",
|
|
40010
|
-
"anthropic",
|
|
40011
|
-
"google",
|
|
40012
|
-
"managed-local",
|
|
40013
|
-
"apple-foundation"
|
|
40014
|
-
]);
|
|
40122
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40015
40123
|
var LlmProfileSchema = object({
|
|
40016
40124
|
id: string(),
|
|
40017
40125
|
name: string(),
|
|
40126
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40018
40127
|
kind: LlmProfileKindSchema,
|
|
40019
40128
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40020
40129
|
addonId: string(),
|
|
40021
40130
|
enabled: boolean(),
|
|
40022
40131
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40023
40132
|
model: string(),
|
|
40024
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40025
|
-
baseUrl: string().optional(),
|
|
40026
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40027
|
-
apiKey: string().optional(),
|
|
40028
40133
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40029
40134
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40030
40135
|
* question about a picture nobody sent. */
|
|
@@ -40032,15 +40137,11 @@ var LlmProfileSchema = object({
|
|
|
40032
40137
|
temperature: number().min(0).max(2).optional(),
|
|
40033
40138
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40034
40139
|
topP: number().min(0).max(1).optional(),
|
|
40035
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40036
|
-
*
|
|
40037
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40038
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40140
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40141
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40039
40142
|
topK: number().int().positive().optional(),
|
|
40040
40143
|
maxTokens: number().int().positive().optional(),
|
|
40041
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40042
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40043
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40144
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40044
40145
|
contextLength: number().int().positive().optional(),
|
|
40045
40146
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40046
40147
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40066,16 +40167,37 @@ var LlmProfileSchema = object({
|
|
|
40066
40167
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40067
40168
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40068
40169
|
toolsEnabled: boolean().default(false),
|
|
40069
|
-
|
|
40070
|
-
|
|
40071
|
-
|
|
40072
|
-
|
|
40073
|
-
|
|
40074
|
-
|
|
40075
|
-
|
|
40076
|
-
|
|
40077
|
-
|
|
40078
|
-
|
|
40170
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40171
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40172
|
+
});
|
|
40173
|
+
/**
|
|
40174
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40175
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40176
|
+
*/
|
|
40177
|
+
var LlmProfileFieldSchema = _enum([
|
|
40178
|
+
"temperature",
|
|
40179
|
+
"topP",
|
|
40180
|
+
"topK",
|
|
40181
|
+
"maxTokens",
|
|
40182
|
+
"contextLength",
|
|
40183
|
+
"systemPrompt",
|
|
40184
|
+
"timeoutMs",
|
|
40185
|
+
"connectTimeoutMs",
|
|
40186
|
+
"firstTokenTimeoutMs",
|
|
40187
|
+
"idleTimeoutMs",
|
|
40188
|
+
"retry",
|
|
40189
|
+
"toolsEnabled"
|
|
40190
|
+
]);
|
|
40191
|
+
/**
|
|
40192
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40193
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40194
|
+
* picker: that widget owns the model choice.
|
|
40195
|
+
*/
|
|
40196
|
+
var LlmProviderWidgetSchema = object({
|
|
40197
|
+
id: string(),
|
|
40198
|
+
placement: _enum(["connection", "model"]),
|
|
40199
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40200
|
+
requires: array(string()).optional()
|
|
40079
40201
|
});
|
|
40080
40202
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40081
40203
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40084,11 +40206,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40084
40206
|
var LlmProfileKindDescriptorSchema = object({
|
|
40085
40207
|
kind: LlmProfileKindSchema,
|
|
40086
40208
|
label: string(),
|
|
40209
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40087
40210
|
icon: string(),
|
|
40088
40211
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40089
40212
|
addonId: string(),
|
|
40090
|
-
|
|
40213
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40214
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40215
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40216
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40217
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40218
|
+
features: LlmModelFeaturesSchema,
|
|
40219
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40220
|
+
visionEditable: boolean(),
|
|
40221
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40222
|
+
modelCatalog: _enum([
|
|
40223
|
+
"fetch",
|
|
40224
|
+
"static",
|
|
40225
|
+
"none"
|
|
40226
|
+
]),
|
|
40227
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40228
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40229
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40230
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40091
40231
|
});
|
|
40232
|
+
/**
|
|
40233
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40234
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40235
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40236
|
+
* stored profile — the browser never receives it.
|
|
40237
|
+
*/
|
|
40238
|
+
var LlmListModelsInputSchema = object({
|
|
40239
|
+
addonId: string(),
|
|
40240
|
+
kind: LlmProfileKindSchema,
|
|
40241
|
+
profileId: string().optional(),
|
|
40242
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40243
|
+
});
|
|
40244
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40245
|
+
"auth",
|
|
40246
|
+
"network",
|
|
40247
|
+
"unsupported",
|
|
40248
|
+
"invalid"
|
|
40249
|
+
]);
|
|
40250
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40251
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40252
|
+
ok: literal(true),
|
|
40253
|
+
models: array(LlmModelInfoSchema)
|
|
40254
|
+
}), object({
|
|
40255
|
+
ok: literal(false),
|
|
40256
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40257
|
+
message: string()
|
|
40258
|
+
})]);
|
|
40092
40259
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40093
40260
|
var LlmDefaultSchema = object({
|
|
40094
40261
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40188,7 +40355,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40188
40355
|
kind: "mutation",
|
|
40189
40356
|
auth: "admin",
|
|
40190
40357
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40191
|
-
}), method(
|
|
40358
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40359
|
+
kind: "mutation",
|
|
40360
|
+
auth: "admin"
|
|
40361
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40192
40362
|
selector: LlmDefaultSelectorSchema,
|
|
40193
40363
|
profileId: string().nullable()
|
|
40194
40364
|
}), _void(), {
|
|
@@ -40356,14 +40526,106 @@ var LogEntrySchema = object({
|
|
|
40356
40526
|
meta: record(string(), unknown()).optional(),
|
|
40357
40527
|
tags: record(string(), string()).optional()
|
|
40358
40528
|
});
|
|
40359
|
-
|
|
40360
|
-
|
|
40529
|
+
/**
|
|
40530
|
+
* A history READ against one destination (D898).
|
|
40531
|
+
*
|
|
40532
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40533
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40534
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40535
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40536
|
+
* nanosecond timestamp for Loki.
|
|
40537
|
+
*
|
|
40538
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40539
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40540
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40541
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40542
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40543
|
+
*/
|
|
40544
|
+
var LogReadQuerySchema = object({
|
|
40545
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40546
|
+
requestId: string().min(1).max(64).optional(),
|
|
40547
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40548
|
+
deviceId: number().int().optional(),
|
|
40549
|
+
/**
|
|
40550
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40551
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40552
|
+
*/
|
|
40553
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40554
|
+
/**
|
|
40555
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40556
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40557
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40558
|
+
* name as "which node's provider".
|
|
40559
|
+
*/
|
|
40560
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40561
|
+
/** Any other tag, exact match (AND). */
|
|
40562
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40563
|
+
/** Severity FLOOR: this level and above. */
|
|
40361
40564
|
level: LogLevelSchema.optional(),
|
|
40362
|
-
|
|
40363
|
-
|
|
40364
|
-
|
|
40365
|
-
|
|
40366
|
-
|
|
40565
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40566
|
+
text: string().min(1).max(200).optional(),
|
|
40567
|
+
/** Epoch ms, inclusive. */
|
|
40568
|
+
since: number().optional(),
|
|
40569
|
+
/** Epoch ms, inclusive. */
|
|
40570
|
+
until: number().optional(),
|
|
40571
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40572
|
+
before: string().min(1).max(1024).optional(),
|
|
40573
|
+
/** Newer than this cursor (exclusive). */
|
|
40574
|
+
after: string().min(1).max(1024).optional(),
|
|
40575
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40576
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40577
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40578
|
+
});
|
|
40579
|
+
var LogReadResultSchema = object({
|
|
40580
|
+
/** Newest first. */
|
|
40581
|
+
entries: array(object({
|
|
40582
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40583
|
+
id: string().optional(),
|
|
40584
|
+
/** Epoch ms. */
|
|
40585
|
+
timestamp: number(),
|
|
40586
|
+
level: LogLevelSchema,
|
|
40587
|
+
scope: string().optional(),
|
|
40588
|
+
message: string(),
|
|
40589
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40590
|
+
meta: record(string(), unknown()).optional()
|
|
40591
|
+
})),
|
|
40592
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40593
|
+
nextBefore: string().nullable(),
|
|
40594
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40595
|
+
nextAfter: string().nullable(),
|
|
40596
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40597
|
+
scannedBytes: number().int().nonnegative(),
|
|
40598
|
+
/**
|
|
40599
|
+
* True when the scan in this direction reached the end of the store.
|
|
40600
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40601
|
+
* call again with `nextBefore` to go on.
|
|
40602
|
+
*/
|
|
40603
|
+
done: boolean(),
|
|
40604
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40605
|
+
cancelled: boolean().optional()
|
|
40606
|
+
});
|
|
40607
|
+
var LogReadCapabilitiesSchema = object({
|
|
40608
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40609
|
+
readable: boolean(),
|
|
40610
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40611
|
+
reason: string().nullable(),
|
|
40612
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40613
|
+
filters: object({
|
|
40614
|
+
deviceId: boolean(),
|
|
40615
|
+
addonId: boolean(),
|
|
40616
|
+
nodeId: boolean(),
|
|
40617
|
+
tags: boolean(),
|
|
40618
|
+
level: boolean(),
|
|
40619
|
+
text: boolean(),
|
|
40620
|
+
timeRange: boolean()
|
|
40621
|
+
}),
|
|
40622
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40623
|
+
retentionDays: number().nullable()
|
|
40624
|
+
});
|
|
40625
|
+
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() }), {
|
|
40626
|
+
kind: "mutation",
|
|
40627
|
+
auth: "admin"
|
|
40628
|
+
});
|
|
40367
40629
|
/**
|
|
40368
40630
|
* `login-method` — collection cap through which auth addons contribute
|
|
40369
40631
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42081,9 +42343,11 @@ var alarmPanelCapability = {
|
|
|
42081
42343
|
*/
|
|
42082
42344
|
durability: "restored",
|
|
42083
42345
|
/**
|
|
42084
|
-
* History (D850):
|
|
42346
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42347
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42348
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42085
42349
|
*/
|
|
42086
|
-
history: "
|
|
42350
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42087
42351
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42088
42352
|
* whether persisting is worth a SQLite commit. */
|
|
42089
42353
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -42961,6 +43225,33 @@ var NcRuleTargetSchema = object({
|
|
|
42961
43225
|
params: record(string(), unknown()).optional()
|
|
42962
43226
|
});
|
|
42963
43227
|
/**
|
|
43228
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43229
|
+
*
|
|
43230
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43231
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43232
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43233
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43234
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43235
|
+
* labelled with class and confidence ("dog 87%").
|
|
43236
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43237
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43238
|
+
* - `none` — no picture.
|
|
43239
|
+
*
|
|
43240
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43241
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43242
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43243
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43244
|
+
* stored kind had landed.
|
|
43245
|
+
*/
|
|
43246
|
+
var NcMediaImageSchema = _enum([
|
|
43247
|
+
"scene-boxes",
|
|
43248
|
+
"crop",
|
|
43249
|
+
"clean",
|
|
43250
|
+
"none"
|
|
43251
|
+
]);
|
|
43252
|
+
/**
|
|
43253
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43254
|
+
*
|
|
42964
43255
|
* Media attachment policy (P1 still-image subset).
|
|
42965
43256
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42966
43257
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42974,6 +43265,8 @@ var NcRuleTargetSchema = object({
|
|
|
42974
43265
|
* - `none` — no attachment.
|
|
42975
43266
|
*/
|
|
42976
43267
|
/**
|
|
43268
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43269
|
+
*
|
|
42977
43270
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42978
43271
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42979
43272
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43002,16 +43295,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43002
43295
|
*/
|
|
43003
43296
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43004
43297
|
var NcMediaPolicySchema = object({
|
|
43298
|
+
/**
|
|
43299
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43300
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43301
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43302
|
+
*/
|
|
43303
|
+
image: NcMediaImageSchema.optional(),
|
|
43304
|
+
/**
|
|
43305
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43306
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43307
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43308
|
+
* Replaces `zoneCrop`.
|
|
43309
|
+
*/
|
|
43310
|
+
showTriggerZone: boolean().optional(),
|
|
43311
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43005
43312
|
attach: _enum([
|
|
43006
43313
|
"best",
|
|
43007
43314
|
"best-matching",
|
|
43008
43315
|
"keyFrame",
|
|
43009
43316
|
"none"
|
|
43010
|
-
]).
|
|
43011
|
-
/**
|
|
43317
|
+
]).optional(),
|
|
43318
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43012
43319
|
frame: NcMediaFrameSchema.optional(),
|
|
43013
|
-
/**
|
|
43014
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43320
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43015
43321
|
zoneCrop: boolean().optional(),
|
|
43016
43322
|
/**
|
|
43017
43323
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43183,7 +43489,9 @@ var NcRuleInputSchema = object({
|
|
|
43183
43489
|
* targets.
|
|
43184
43490
|
*/
|
|
43185
43491
|
targetUsers: array(string()).optional(),
|
|
43186
|
-
|
|
43492
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43493
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43494
|
+
media: NcMediaPolicySchema.default({}),
|
|
43187
43495
|
throttle: NcThrottleSchema.default({
|
|
43188
43496
|
cooldownSec: 60,
|
|
43189
43497
|
scope: "rule-device"
|
|
@@ -44120,13 +44428,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44120
44428
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44121
44429
|
unknown: array(number().int())
|
|
44122
44430
|
});
|
|
44431
|
+
/**
|
|
44432
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44433
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44434
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44435
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44436
|
+
*/
|
|
44437
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44438
|
+
ruleId: string(),
|
|
44439
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44440
|
+
ruleName: string(),
|
|
44441
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44442
|
+
deviceId: number().int(),
|
|
44443
|
+
/** The input's current name. */
|
|
44444
|
+
name: string(),
|
|
44445
|
+
/** When it was bypassed (ms epoch). */
|
|
44446
|
+
since: number(),
|
|
44447
|
+
/** Triggers from this input dropped since. */
|
|
44448
|
+
dropped: number().int().min(0)
|
|
44449
|
+
});
|
|
44123
44450
|
var NcAlarmLiveSchema = object({
|
|
44124
44451
|
state: AlarmStateSchema,
|
|
44125
44452
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44126
44453
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44127
44454
|
availableModes: array(AlarmArmModeSchema),
|
|
44128
44455
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44129
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44456
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44457
|
+
/**
|
|
44458
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44459
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44460
|
+
*/
|
|
44461
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44130
44462
|
});
|
|
44131
44463
|
var NcAlarmConfigSchema = object({
|
|
44132
44464
|
/**
|
|
@@ -54845,9 +55177,11 @@ var connectivityCapability = {
|
|
|
54845
55177
|
*/
|
|
54846
55178
|
durability: "restored",
|
|
54847
55179
|
/**
|
|
54848
|
-
* History (D850):
|
|
55180
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55181
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55182
|
+
* device's reachability, which stays `device-status.online`.
|
|
54849
55183
|
*/
|
|
54850
|
-
history: "
|
|
55184
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54851
55185
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54852
55186
|
* whether persisting is worth a SQLite commit. */
|
|
54853
55187
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55671,11 +56005,22 @@ var dishwasherCapability = {
|
|
|
55671
56005
|
},
|
|
55672
56006
|
runtimeState: DishwasherStatusSchema,
|
|
55673
56007
|
durability: "session",
|
|
55674
|
-
history: { fields: {
|
|
55675
|
-
|
|
55676
|
-
|
|
55677
|
-
|
|
55678
|
-
|
|
56008
|
+
history: { fields: {
|
|
56009
|
+
progressPercent: {
|
|
56010
|
+
kind: "gauge",
|
|
56011
|
+
unit: "%",
|
|
56012
|
+
deadband: 2
|
|
56013
|
+
},
|
|
56014
|
+
state: { kind: "enum" },
|
|
56015
|
+
operationState: { kind: "enum" },
|
|
56016
|
+
remainingSeconds: {
|
|
56017
|
+
kind: "gauge",
|
|
56018
|
+
unit: "s",
|
|
56019
|
+
minIntervalMs: 6e4
|
|
56020
|
+
},
|
|
56021
|
+
doorOpen: { kind: "boolean" },
|
|
56022
|
+
powerOn: { kind: "boolean" }
|
|
56023
|
+
} }
|
|
55679
56024
|
};
|
|
55680
56025
|
var DoorbellStatusSchema = object({
|
|
55681
56026
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55792,9 +56137,15 @@ var enumSensorCapability = {
|
|
|
55792
56137
|
*/
|
|
55793
56138
|
durability: "restored",
|
|
55794
56139
|
/**
|
|
55795
|
-
* History (D850):
|
|
56140
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56141
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56142
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56143
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55796
56144
|
*/
|
|
55797
|
-
history:
|
|
56145
|
+
history: { fields: { value: {
|
|
56146
|
+
kind: "enum",
|
|
56147
|
+
skipWhenSet: "format"
|
|
56148
|
+
} } },
|
|
55798
56149
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55799
56150
|
* whether persisting is worth a SQLite commit. */
|
|
55800
56151
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57768,9 +58119,10 @@ var lockControlCapability = {
|
|
|
57768
58119
|
*/
|
|
57769
58120
|
durability: "restored",
|
|
57770
58121
|
/**
|
|
57771
|
-
* History (D850):
|
|
58122
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58123
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57772
58124
|
*/
|
|
57773
|
-
history: "
|
|
58125
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57774
58126
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57775
58127
|
* whether persisting is worth a SQLite commit. */
|
|
57776
58128
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -57944,9 +58296,18 @@ var mediaPlayerCapability = {
|
|
|
57944
58296
|
*/
|
|
57945
58297
|
durability: "session",
|
|
57946
58298
|
/**
|
|
57947
|
-
* History (D850):
|
|
58299
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58300
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58301
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
57948
58302
|
*/
|
|
57949
|
-
history:
|
|
58303
|
+
history: { fields: {
|
|
58304
|
+
volumeLevel: {
|
|
58305
|
+
kind: "gauge",
|
|
58306
|
+
unit: "%",
|
|
58307
|
+
deadband: 1
|
|
58308
|
+
},
|
|
58309
|
+
isMuted: { kind: "boolean" }
|
|
58310
|
+
} }
|
|
57950
58311
|
};
|
|
57951
58312
|
/**
|
|
57952
58313
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63239,9 +63600,29 @@ var streamParamsCapability = {
|
|
|
63239
63600
|
*/
|
|
63240
63601
|
durability: "restored",
|
|
63241
63602
|
/**
|
|
63242
|
-
* History (D850):
|
|
63603
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63604
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63605
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63606
|
+
* quality over time must show.
|
|
63243
63607
|
*/
|
|
63244
|
-
history:
|
|
63608
|
+
history: { fields: {
|
|
63609
|
+
"main.bitrate": {
|
|
63610
|
+
kind: "gauge",
|
|
63611
|
+
unit: "kbps"
|
|
63612
|
+
},
|
|
63613
|
+
"main.framerate": {
|
|
63614
|
+
kind: "gauge",
|
|
63615
|
+
unit: "fps"
|
|
63616
|
+
},
|
|
63617
|
+
"sub.bitrate": {
|
|
63618
|
+
kind: "gauge",
|
|
63619
|
+
unit: "kbps"
|
|
63620
|
+
},
|
|
63621
|
+
"sub.framerate": {
|
|
63622
|
+
kind: "gauge",
|
|
63623
|
+
unit: "fps"
|
|
63624
|
+
}
|
|
63625
|
+
} },
|
|
63245
63626
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63246
63627
|
* whether persisting is worth a SQLite commit. */
|
|
63247
63628
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64076,26 +64457,6 @@ var ApiKeySummarySchema = object({
|
|
|
64076
64457
|
createdAt: number(),
|
|
64077
64458
|
lastUsedAt: number().optional()
|
|
64078
64459
|
});
|
|
64079
|
-
var ScopedTokenSummarySchema = object({
|
|
64080
|
-
id: string(),
|
|
64081
|
-
userId: string(),
|
|
64082
|
-
name: string(),
|
|
64083
|
-
tokenPrefix: string(),
|
|
64084
|
-
scopes: array(TokenScopeSchema),
|
|
64085
|
-
expiresAt: number().nullish(),
|
|
64086
|
-
lastUsedAt: number().nullish(),
|
|
64087
|
-
createdAt: number()
|
|
64088
|
-
});
|
|
64089
|
-
var CreateScopedTokenInputSchema = object({
|
|
64090
|
-
userId: string(),
|
|
64091
|
-
name: string(),
|
|
64092
|
-
scopes: array(TokenScopeSchema),
|
|
64093
|
-
expiresAt: number().optional()
|
|
64094
|
-
});
|
|
64095
|
-
var CreateScopedTokenResultSchema = object({
|
|
64096
|
-
token: string(),
|
|
64097
|
-
record: ScopedTokenSummarySchema
|
|
64098
|
-
});
|
|
64099
64460
|
var OauthSessionSummarySchema = object({
|
|
64100
64461
|
id: string(),
|
|
64101
64462
|
userId: string(),
|
|
@@ -64117,11 +64478,11 @@ var TotpStatusSchema = object({
|
|
|
64117
64478
|
confirmedAt: number().nullable()
|
|
64118
64479
|
});
|
|
64119
64480
|
/**
|
|
64120
|
-
* user-management — singleton capability for user accounts
|
|
64121
|
-
*
|
|
64481
|
+
* user-management — singleton capability for user accounts and the
|
|
64482
|
+
* legacy API-key rows.
|
|
64122
64483
|
*
|
|
64123
64484
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64124
|
-
* — the subset check on `setUserScopes`
|
|
64485
|
+
* — the subset check on `setUserScopes` is moot
|
|
64125
64486
|
* because non-admins never reach these. If/when we open non-admin
|
|
64126
64487
|
* delegation, structural caller-scope subset check goes inside the
|
|
64127
64488
|
* provider.
|
|
@@ -64178,15 +64539,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64178
64539
|
kind: "mutation",
|
|
64179
64540
|
auth: "admin",
|
|
64180
64541
|
access: "delete"
|
|
64181
|
-
}), method(
|
|
64182
|
-
kind: "mutation",
|
|
64183
|
-
auth: "admin",
|
|
64184
|
-
access: "create"
|
|
64185
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64186
|
-
kind: "mutation",
|
|
64187
|
-
auth: "admin",
|
|
64188
|
-
access: "delete"
|
|
64189
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64542
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64190
64543
|
kind: "mutation",
|
|
64191
64544
|
auth: "admin",
|
|
64192
64545
|
access: "create"
|
|
@@ -66447,6 +66800,15 @@ var BaseDevice = class {
|
|
|
66447
66800
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66448
66801
|
* with a typed cast.
|
|
66449
66802
|
*
|
|
66803
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66804
|
+
* while this device is `online` and probed; return
|
|
66805
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66806
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66807
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66808
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66809
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66810
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66811
|
+
*
|
|
66450
66812
|
* Default: no children.
|
|
66451
66813
|
*/
|
|
66452
66814
|
getAccessoryChildren() {
|
|
@@ -70276,7 +70638,7 @@ Object.freeze({
|
|
|
70276
70638
|
capName: "llm",
|
|
70277
70639
|
capScope: "system",
|
|
70278
70640
|
addonId: null,
|
|
70279
|
-
access: "
|
|
70641
|
+
access: "create"
|
|
70280
70642
|
},
|
|
70281
70643
|
"llm.listNodeModels": {
|
|
70282
70644
|
capName: "llm",
|
|
@@ -70578,7 +70940,19 @@ Object.freeze({
|
|
|
70578
70940
|
addonId: null,
|
|
70579
70941
|
access: "view"
|
|
70580
70942
|
},
|
|
70581
|
-
"logDestination.
|
|
70943
|
+
"logDestination.cancelRead": {
|
|
70944
|
+
capName: "log-destination",
|
|
70945
|
+
capScope: "system",
|
|
70946
|
+
addonId: null,
|
|
70947
|
+
access: "create"
|
|
70948
|
+
},
|
|
70949
|
+
"logDestination.describeRead": {
|
|
70950
|
+
capName: "log-destination",
|
|
70951
|
+
capScope: "system",
|
|
70952
|
+
addonId: null,
|
|
70953
|
+
access: "view"
|
|
70954
|
+
},
|
|
70955
|
+
"logDestination.read": {
|
|
70582
70956
|
capName: "log-destination",
|
|
70583
70957
|
capScope: "system",
|
|
70584
70958
|
addonId: null,
|
|
@@ -74940,12 +75314,6 @@ Object.freeze({
|
|
|
74940
75314
|
addonId: null,
|
|
74941
75315
|
access: "create"
|
|
74942
75316
|
},
|
|
74943
|
-
"userManagement.createScopedToken": {
|
|
74944
|
-
capName: "user-management",
|
|
74945
|
-
capScope: "system",
|
|
74946
|
-
addonId: null,
|
|
74947
|
-
access: "create"
|
|
74948
|
-
},
|
|
74949
75317
|
"userManagement.createUser": {
|
|
74950
75318
|
capName: "user-management",
|
|
74951
75319
|
capScope: "system",
|
|
@@ -74994,12 +75362,6 @@ Object.freeze({
|
|
|
74994
75362
|
addonId: null,
|
|
74995
75363
|
access: "view"
|
|
74996
75364
|
},
|
|
74997
|
-
"userManagement.listScopedTokens": {
|
|
74998
|
-
capName: "user-management",
|
|
74999
|
-
capScope: "system",
|
|
75000
|
-
addonId: null,
|
|
75001
|
-
access: "view"
|
|
75002
|
-
},
|
|
75003
75365
|
"userManagement.listUsers": {
|
|
75004
75366
|
capName: "user-management",
|
|
75005
75367
|
capScope: "system",
|
|
@@ -75054,12 +75416,6 @@ Object.freeze({
|
|
|
75054
75416
|
addonId: null,
|
|
75055
75417
|
access: "delete"
|
|
75056
75418
|
},
|
|
75057
|
-
"userManagement.revokeScopedToken": {
|
|
75058
|
-
capName: "user-management",
|
|
75059
|
-
capScope: "system",
|
|
75060
|
-
addonId: null,
|
|
75061
|
-
access: "delete"
|
|
75062
|
-
},
|
|
75063
75419
|
"userManagement.setupTotp": {
|
|
75064
75420
|
capName: "user-management",
|
|
75065
75421
|
capScope: "system",
|
|
@@ -75090,12 +75446,6 @@ Object.freeze({
|
|
|
75090
75446
|
addonId: null,
|
|
75091
75447
|
access: "view"
|
|
75092
75448
|
},
|
|
75093
|
-
"userManagement.validateScopedToken": {
|
|
75094
|
-
capName: "user-management",
|
|
75095
|
-
capScope: "system",
|
|
75096
|
-
addonId: null,
|
|
75097
|
-
access: "view"
|
|
75098
|
-
},
|
|
75099
75449
|
"userManagement.verifyTotp": {
|
|
75100
75450
|
capName: "user-management",
|
|
75101
75451
|
capScope: "system",
|
|
@@ -76609,6 +76959,11 @@ Object.freeze({
|
|
|
76609
76959
|
form: "single",
|
|
76610
76960
|
optional: false
|
|
76611
76961
|
}],
|
|
76962
|
+
"logDestination.read": [{
|
|
76963
|
+
name: "deviceId",
|
|
76964
|
+
form: "single",
|
|
76965
|
+
optional: true
|
|
76966
|
+
}],
|
|
76612
76967
|
"mediaPlayer.getStatus": [{
|
|
76613
76968
|
name: "deviceId",
|
|
76614
76969
|
form: "single",
|