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