@camstack/addon-provider-petkit 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
|
@@ -6515,7 +6515,7 @@ var ZodIssueCode = {
|
|
|
6515
6515
|
var ZodFirstPartyTypeKind;
|
|
6516
6516
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6517
6517
|
//#endregion
|
|
6518
|
-
//#region ../types/dist/sleep-
|
|
6518
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
6519
6519
|
/**
|
|
6520
6520
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6521
6521
|
* window to float samples (D455).
|
|
@@ -8898,9 +8898,9 @@ function normalizeAddonInitResult(result) {
|
|
|
8898
8898
|
return result;
|
|
8899
8899
|
}
|
|
8900
8900
|
/**
|
|
8901
|
-
* The share-view scope kinds a
|
|
8902
|
-
* and validates them (`
|
|
8903
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
8901
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
8902
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
8903
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
8904
8904
|
*/
|
|
8905
8905
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
8906
8906
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -13590,7 +13590,7 @@ var ConvertResultSchema = object({
|
|
|
13590
13590
|
* `super_admin` — collapsed onto the single boolean because every
|
|
13591
13591
|
* non-admin caller is governed by the same scope-check rules; the
|
|
13592
13592
|
* distinction was only ever used to route role-specific procedures
|
|
13593
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
13593
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
13594
13594
|
* with `isAdmin: false` + an explicit scope list.
|
|
13595
13595
|
*/
|
|
13596
13596
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -13779,10 +13779,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
13779
13779
|
type: literal("addon-routes"),
|
|
13780
13780
|
access: array(MethodAccessSchema).min(1)
|
|
13781
13781
|
});
|
|
13782
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
13782
13783
|
var CredentialScopeSchema = union([
|
|
13783
13784
|
literal("*"),
|
|
13784
13785
|
ShareViewScopeSchema,
|
|
13785
13786
|
AddonRoutesScopeSchema,
|
|
13787
|
+
PreferencesSelfScopeSchema,
|
|
13786
13788
|
TokenScopeSchema
|
|
13787
13789
|
]);
|
|
13788
13790
|
object({
|
|
@@ -13791,6 +13793,55 @@ object({
|
|
|
13791
13793
|
jti: string().min(16),
|
|
13792
13794
|
scopes: array(CredentialScopeSchema).min(1)
|
|
13793
13795
|
});
|
|
13796
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
13797
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
13798
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
13799
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
13800
|
+
/** A stored row, as the owner reads it. */
|
|
13801
|
+
var PreferenceRowSchema = object({
|
|
13802
|
+
namespace: PreferenceNamespaceSchema,
|
|
13803
|
+
value: PreferenceValueSchema,
|
|
13804
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
13805
|
+
revision: number().int().positive(),
|
|
13806
|
+
updatedAt: number().int(),
|
|
13807
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
13808
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
13809
|
+
});
|
|
13810
|
+
object({
|
|
13811
|
+
/** Absent: every namespace the caller holds. */
|
|
13812
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
13813
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
13814
|
+
object({
|
|
13815
|
+
namespace: PreferenceNamespaceSchema,
|
|
13816
|
+
value: PreferenceValueSchema,
|
|
13817
|
+
/**
|
|
13818
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
13819
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
13820
|
+
* revision answers `conflict` and writes nothing.
|
|
13821
|
+
*/
|
|
13822
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
13823
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
13824
|
+
});
|
|
13825
|
+
discriminatedUnion("status", [object({
|
|
13826
|
+
status: literal("saved"),
|
|
13827
|
+
row: PreferenceRowSchema
|
|
13828
|
+
}), object({
|
|
13829
|
+
status: literal("conflict"),
|
|
13830
|
+
current: PreferenceRowSchema.nullable()
|
|
13831
|
+
})]);
|
|
13832
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
13833
|
+
object({
|
|
13834
|
+
/** `false` when the namespace did not exist. */
|
|
13835
|
+
deleted: boolean() });
|
|
13836
|
+
object({
|
|
13837
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
13838
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
13839
|
+
object({
|
|
13840
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
13841
|
+
rows: array(PreferenceRowSchema),
|
|
13842
|
+
/** Namespaces the client listed that no longer exist. */
|
|
13843
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
13844
|
+
});
|
|
13794
13845
|
_enum(["new-session", "step-up"]);
|
|
13795
13846
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13796
13847
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -18044,7 +18095,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
18044
18095
|
kind: literal("node"),
|
|
18045
18096
|
nodeId: string().min(1)
|
|
18046
18097
|
})]);
|
|
18098
|
+
/**
|
|
18099
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
18100
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
18101
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
18102
|
+
*/
|
|
18047
18103
|
var DeviceHistoryKindSchema = _enum([
|
|
18104
|
+
"gauge",
|
|
18105
|
+
"counter",
|
|
18106
|
+
"boolean",
|
|
18107
|
+
"enum"
|
|
18108
|
+
]);
|
|
18109
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
18110
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
18048
18111
|
"gauge",
|
|
18049
18112
|
"counter",
|
|
18050
18113
|
"boolean"
|
|
@@ -18081,7 +18144,13 @@ var SeriesInfoSchema = object({
|
|
|
18081
18144
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
18082
18145
|
unit: string().nullable(),
|
|
18083
18146
|
displayName: string(),
|
|
18084
|
-
source: _enum([
|
|
18147
|
+
source: _enum([
|
|
18148
|
+
"cap",
|
|
18149
|
+
"addon",
|
|
18150
|
+
"derived"
|
|
18151
|
+
]),
|
|
18152
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
18153
|
+
values: array(string()).readonly().nullable(),
|
|
18085
18154
|
firstTs: number(),
|
|
18086
18155
|
lastTs: number()
|
|
18087
18156
|
});
|
|
@@ -18095,17 +18164,31 @@ var QueryPointSchema = object({
|
|
|
18095
18164
|
twMean: number().nullable(),
|
|
18096
18165
|
min: number(),
|
|
18097
18166
|
max: number(),
|
|
18098
|
-
/** `null` is unknown, never zero (D393). */
|
|
18099
|
-
last: number().nullable()
|
|
18167
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
18168
|
+
last: number().nullable(),
|
|
18169
|
+
/**
|
|
18170
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
18171
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
18172
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
18173
|
+
* every other kind, and when it cannot be known.
|
|
18174
|
+
*/
|
|
18175
|
+
delta: number().nullable(),
|
|
18176
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
18177
|
+
state: string().nullable(),
|
|
18178
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
18179
|
+
states: record(string(), number()).nullable()
|
|
18100
18180
|
});
|
|
18101
18181
|
var QuerySeriesSchema = object({
|
|
18102
18182
|
scope: string(),
|
|
18103
18183
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
18104
18184
|
before: object({
|
|
18105
18185
|
t: number(),
|
|
18106
|
-
value: number().nullable()
|
|
18186
|
+
value: number().nullable(),
|
|
18187
|
+
state: string().nullable()
|
|
18107
18188
|
}).nullable(),
|
|
18108
|
-
points: array(QueryPointSchema).readonly()
|
|
18189
|
+
points: array(QueryPointSchema).readonly(),
|
|
18190
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
18191
|
+
derivedFrom: string().nullable()
|
|
18109
18192
|
});
|
|
18110
18193
|
/** The window part of a query, shared by the device and node forms. */
|
|
18111
18194
|
var QueryWindowShape = {
|
|
@@ -18121,6 +18204,23 @@ var QueryResultSchema = object({
|
|
|
18121
18204
|
series: array(QuerySeriesSchema).readonly(),
|
|
18122
18205
|
truncated: boolean()
|
|
18123
18206
|
});
|
|
18207
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
18208
|
+
var QueryManyItemSchema = union([object({
|
|
18209
|
+
deviceId: number().int(),
|
|
18210
|
+
key: string(),
|
|
18211
|
+
scope: string().optional()
|
|
18212
|
+
}), object({
|
|
18213
|
+
forNodeId: string().min(1),
|
|
18214
|
+
key: string(),
|
|
18215
|
+
scope: string().optional()
|
|
18216
|
+
})]);
|
|
18217
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
18218
|
+
ok: literal(true),
|
|
18219
|
+
result: QueryResultSchema
|
|
18220
|
+
}), object({
|
|
18221
|
+
ok: literal(false),
|
|
18222
|
+
error: string()
|
|
18223
|
+
})]);
|
|
18124
18224
|
var TierStatusSchema = object({
|
|
18125
18225
|
tier: DeviceHistoryResolutionSchema,
|
|
18126
18226
|
/** `null` until the first background count answered. */
|
|
@@ -18176,16 +18276,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
18176
18276
|
lastRefreshAt: number().nullable()
|
|
18177
18277
|
})
|
|
18178
18278
|
});
|
|
18179
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
18279
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
18180
18280
|
deviceId: number().int(),
|
|
18181
18281
|
...QueryWindowShape
|
|
18182
18282
|
}), QueryResultSchema), method(object({
|
|
18183
|
-
|
|
18283
|
+
forNodeId: string().min(1),
|
|
18184
18284
|
...QueryWindowShape
|
|
18185
18285
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
18286
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
18287
|
+
from: QueryWindowShape.from,
|
|
18288
|
+
to: QueryWindowShape.to,
|
|
18289
|
+
resolution: QueryWindowShape.resolution,
|
|
18290
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
18291
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
18186
18292
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
18187
18293
|
subjectKind: _enum(["device", "node"]),
|
|
18188
|
-
kind:
|
|
18294
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
18189
18295
|
unit: string().optional(),
|
|
18190
18296
|
displayName: string().min(1),
|
|
18191
18297
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40984,38 +41090,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40984
41090
|
auth: "admin",
|
|
40985
41091
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40986
41092
|
});
|
|
41093
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
41094
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
41095
|
+
var LlmModelFeaturesSchema = object({
|
|
41096
|
+
vision: boolean(),
|
|
41097
|
+
tools: boolean(),
|
|
41098
|
+
streaming: boolean()
|
|
41099
|
+
});
|
|
41100
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
41101
|
+
var LlmModelInfoSchema = object({
|
|
41102
|
+
id: string(),
|
|
41103
|
+
label: string().optional(),
|
|
41104
|
+
contextLength: number().int().positive().optional(),
|
|
41105
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
41106
|
+
});
|
|
40987
41107
|
/**
|
|
40988
|
-
*
|
|
40989
|
-
*
|
|
40990
|
-
*
|
|
40991
|
-
*
|
|
40992
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40993
|
-
*
|
|
40994
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40995
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40996
|
-
* write; a stored key NEVER round-trips to a client.
|
|
41108
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
41109
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
41110
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
41111
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40997
41112
|
*/
|
|
40998
|
-
var
|
|
40999
|
-
"openai-compatible",
|
|
41000
|
-
"openai",
|
|
41001
|
-
"anthropic",
|
|
41002
|
-
"google",
|
|
41003
|
-
"managed-local",
|
|
41004
|
-
"apple-foundation"
|
|
41005
|
-
]);
|
|
41113
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
41006
41114
|
var LlmProfileSchema = object({
|
|
41007
41115
|
id: string(),
|
|
41008
41116
|
name: string(),
|
|
41117
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
41009
41118
|
kind: LlmProfileKindSchema,
|
|
41010
41119
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
41011
41120
|
addonId: string(),
|
|
41012
41121
|
enabled: boolean(),
|
|
41013
41122
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
41014
41123
|
model: string(),
|
|
41015
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
41016
|
-
baseUrl: string().optional(),
|
|
41017
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
41018
|
-
apiKey: string().optional(),
|
|
41019
41124
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
41020
41125
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
41021
41126
|
* question about a picture nobody sent. */
|
|
@@ -41023,15 +41128,11 @@ var LlmProfileSchema = object({
|
|
|
41023
41128
|
temperature: number().min(0).max(2).optional(),
|
|
41024
41129
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
41025
41130
|
topP: number().min(0).max(1).optional(),
|
|
41026
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
41027
|
-
*
|
|
41028
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
41029
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
41131
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
41132
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
41030
41133
|
topK: number().int().positive().optional(),
|
|
41031
41134
|
maxTokens: number().int().positive().optional(),
|
|
41032
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
41033
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
41034
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
41135
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
41035
41136
|
contextLength: number().int().positive().optional(),
|
|
41036
41137
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
41037
41138
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -41057,16 +41158,37 @@ var LlmProfileSchema = object({
|
|
|
41057
41158
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
41058
41159
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
41059
41160
|
toolsEnabled: boolean().default(false),
|
|
41060
|
-
|
|
41061
|
-
|
|
41062
|
-
|
|
41063
|
-
|
|
41064
|
-
|
|
41065
|
-
|
|
41066
|
-
|
|
41067
|
-
|
|
41068
|
-
|
|
41069
|
-
|
|
41161
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
41162
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
41163
|
+
});
|
|
41164
|
+
/**
|
|
41165
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
41166
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
41167
|
+
*/
|
|
41168
|
+
var LlmProfileFieldSchema = _enum([
|
|
41169
|
+
"temperature",
|
|
41170
|
+
"topP",
|
|
41171
|
+
"topK",
|
|
41172
|
+
"maxTokens",
|
|
41173
|
+
"contextLength",
|
|
41174
|
+
"systemPrompt",
|
|
41175
|
+
"timeoutMs",
|
|
41176
|
+
"connectTimeoutMs",
|
|
41177
|
+
"firstTokenTimeoutMs",
|
|
41178
|
+
"idleTimeoutMs",
|
|
41179
|
+
"retry",
|
|
41180
|
+
"toolsEnabled"
|
|
41181
|
+
]);
|
|
41182
|
+
/**
|
|
41183
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
41184
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
41185
|
+
* picker: that widget owns the model choice.
|
|
41186
|
+
*/
|
|
41187
|
+
var LlmProviderWidgetSchema = object({
|
|
41188
|
+
id: string(),
|
|
41189
|
+
placement: _enum(["connection", "model"]),
|
|
41190
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
41191
|
+
requires: array(string()).optional()
|
|
41070
41192
|
});
|
|
41071
41193
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
41072
41194
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -41075,11 +41197,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
41075
41197
|
var LlmProfileKindDescriptorSchema = object({
|
|
41076
41198
|
kind: LlmProfileKindSchema,
|
|
41077
41199
|
label: string(),
|
|
41200
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
41078
41201
|
icon: string(),
|
|
41079
41202
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
41080
41203
|
addonId: string(),
|
|
41081
|
-
|
|
41204
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
41205
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
41206
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
41207
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
41208
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
41209
|
+
features: LlmModelFeaturesSchema,
|
|
41210
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
41211
|
+
visionEditable: boolean(),
|
|
41212
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
41213
|
+
modelCatalog: _enum([
|
|
41214
|
+
"fetch",
|
|
41215
|
+
"static",
|
|
41216
|
+
"none"
|
|
41217
|
+
]),
|
|
41218
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
41219
|
+
/** The common fields that mean something on this kind's wire. */
|
|
41220
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
41221
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
41082
41222
|
});
|
|
41223
|
+
/**
|
|
41224
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
41225
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
41226
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
41227
|
+
* stored profile — the browser never receives it.
|
|
41228
|
+
*/
|
|
41229
|
+
var LlmListModelsInputSchema = object({
|
|
41230
|
+
addonId: string(),
|
|
41231
|
+
kind: LlmProfileKindSchema,
|
|
41232
|
+
profileId: string().optional(),
|
|
41233
|
+
connection: LlmProviderConfigSchema.optional()
|
|
41234
|
+
});
|
|
41235
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
41236
|
+
"auth",
|
|
41237
|
+
"network",
|
|
41238
|
+
"unsupported",
|
|
41239
|
+
"invalid"
|
|
41240
|
+
]);
|
|
41241
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
41242
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
41243
|
+
ok: literal(true),
|
|
41244
|
+
models: array(LlmModelInfoSchema)
|
|
41245
|
+
}), object({
|
|
41246
|
+
ok: literal(false),
|
|
41247
|
+
code: LlmListModelsErrorCodeSchema,
|
|
41248
|
+
message: string()
|
|
41249
|
+
})]);
|
|
41083
41250
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
41084
41251
|
var LlmDefaultSchema = object({
|
|
41085
41252
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -41179,7 +41346,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
41179
41346
|
kind: "mutation",
|
|
41180
41347
|
auth: "admin",
|
|
41181
41348
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
41182
|
-
}), method(
|
|
41349
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
41350
|
+
kind: "mutation",
|
|
41351
|
+
auth: "admin"
|
|
41352
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
41183
41353
|
selector: LlmDefaultSelectorSchema,
|
|
41184
41354
|
profileId: string().nullable()
|
|
41185
41355
|
}), _void(), {
|
|
@@ -41347,14 +41517,106 @@ var LogEntrySchema = object({
|
|
|
41347
41517
|
meta: record(string(), unknown()).optional(),
|
|
41348
41518
|
tags: record(string(), string()).optional()
|
|
41349
41519
|
});
|
|
41350
|
-
|
|
41351
|
-
|
|
41520
|
+
/**
|
|
41521
|
+
* A history READ against one destination (D898).
|
|
41522
|
+
*
|
|
41523
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
41524
|
+
* browser applied after the limit is what made a rare device's lines
|
|
41525
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
41526
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
41527
|
+
* nanosecond timestamp for Loki.
|
|
41528
|
+
*
|
|
41529
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
41530
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
41531
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
41532
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
41533
|
+
* flight, and not asking for the next slice ends the scan.
|
|
41534
|
+
*/
|
|
41535
|
+
var LogReadQuerySchema = object({
|
|
41536
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
41537
|
+
requestId: string().min(1).max(64).optional(),
|
|
41538
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
41539
|
+
deviceId: number().int().optional(),
|
|
41540
|
+
/**
|
|
41541
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
41542
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
41543
|
+
*/
|
|
41544
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
41545
|
+
/**
|
|
41546
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
41547
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
41548
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
41549
|
+
* name as "which node's provider".
|
|
41550
|
+
*/
|
|
41551
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
41552
|
+
/** Any other tag, exact match (AND). */
|
|
41553
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41554
|
+
/** Severity FLOOR: this level and above. */
|
|
41352
41555
|
level: LogLevelSchema.optional(),
|
|
41353
|
-
|
|
41354
|
-
|
|
41355
|
-
|
|
41356
|
-
|
|
41357
|
-
|
|
41556
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
41557
|
+
text: string().min(1).max(200).optional(),
|
|
41558
|
+
/** Epoch ms, inclusive. */
|
|
41559
|
+
since: number().optional(),
|
|
41560
|
+
/** Epoch ms, inclusive. */
|
|
41561
|
+
until: number().optional(),
|
|
41562
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
41563
|
+
before: string().min(1).max(1024).optional(),
|
|
41564
|
+
/** Newer than this cursor (exclusive). */
|
|
41565
|
+
after: string().min(1).max(1024).optional(),
|
|
41566
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
41567
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
41568
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
41569
|
+
});
|
|
41570
|
+
var LogReadResultSchema = object({
|
|
41571
|
+
/** Newest first. */
|
|
41572
|
+
entries: array(object({
|
|
41573
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
41574
|
+
id: string().optional(),
|
|
41575
|
+
/** Epoch ms. */
|
|
41576
|
+
timestamp: number(),
|
|
41577
|
+
level: LogLevelSchema,
|
|
41578
|
+
scope: string().optional(),
|
|
41579
|
+
message: string(),
|
|
41580
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41581
|
+
meta: record(string(), unknown()).optional()
|
|
41582
|
+
})),
|
|
41583
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
41584
|
+
nextBefore: string().nullable(),
|
|
41585
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
41586
|
+
nextAfter: string().nullable(),
|
|
41587
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
41588
|
+
scannedBytes: number().int().nonnegative(),
|
|
41589
|
+
/**
|
|
41590
|
+
* True when the scan in this direction reached the end of the store.
|
|
41591
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
41592
|
+
* call again with `nextBefore` to go on.
|
|
41593
|
+
*/
|
|
41594
|
+
done: boolean(),
|
|
41595
|
+
/** True when `cancelRead` ended this slice early. */
|
|
41596
|
+
cancelled: boolean().optional()
|
|
41597
|
+
});
|
|
41598
|
+
var LogReadCapabilitiesSchema = object({
|
|
41599
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
41600
|
+
readable: boolean(),
|
|
41601
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
41602
|
+
reason: string().nullable(),
|
|
41603
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
41604
|
+
filters: object({
|
|
41605
|
+
deviceId: boolean(),
|
|
41606
|
+
addonId: boolean(),
|
|
41607
|
+
nodeId: boolean(),
|
|
41608
|
+
tags: boolean(),
|
|
41609
|
+
level: boolean(),
|
|
41610
|
+
text: boolean(),
|
|
41611
|
+
timeRange: boolean()
|
|
41612
|
+
}),
|
|
41613
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
41614
|
+
retentionDays: number().nullable()
|
|
41615
|
+
});
|
|
41616
|
+
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() }), {
|
|
41617
|
+
kind: "mutation",
|
|
41618
|
+
auth: "admin"
|
|
41619
|
+
});
|
|
41358
41620
|
/**
|
|
41359
41621
|
* `login-method` — collection cap through which auth addons contribute
|
|
41360
41622
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -43072,9 +43334,11 @@ var alarmPanelCapability = {
|
|
|
43072
43334
|
*/
|
|
43073
43335
|
durability: "restored",
|
|
43074
43336
|
/**
|
|
43075
|
-
* History (D850):
|
|
43337
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
43338
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
43339
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
43076
43340
|
*/
|
|
43077
|
-
history: "
|
|
43341
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
43078
43342
|
/** Clock fields: written, but excluded from the compare that decides
|
|
43079
43343
|
* whether persisting is worth a SQLite commit. */
|
|
43080
43344
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43952,6 +44216,33 @@ var NcRuleTargetSchema = object({
|
|
|
43952
44216
|
params: record(string(), unknown()).optional()
|
|
43953
44217
|
});
|
|
43954
44218
|
/**
|
|
44219
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
44220
|
+
*
|
|
44221
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
44222
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
44223
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
44224
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
44225
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
44226
|
+
* labelled with class and confidence ("dog 87%").
|
|
44227
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
44228
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
44229
|
+
* - `none` — no picture.
|
|
44230
|
+
*
|
|
44231
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
44232
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
44233
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
44234
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
44235
|
+
* stored kind had landed.
|
|
44236
|
+
*/
|
|
44237
|
+
var NcMediaImageSchema = _enum([
|
|
44238
|
+
"scene-boxes",
|
|
44239
|
+
"crop",
|
|
44240
|
+
"clean",
|
|
44241
|
+
"none"
|
|
44242
|
+
]);
|
|
44243
|
+
/**
|
|
44244
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
44245
|
+
*
|
|
43955
44246
|
* Media attachment policy (P1 still-image subset).
|
|
43956
44247
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43957
44248
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43965,6 +44256,8 @@ var NcRuleTargetSchema = object({
|
|
|
43965
44256
|
* - `none` — no attachment.
|
|
43966
44257
|
*/
|
|
43967
44258
|
/**
|
|
44259
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
44260
|
+
*
|
|
43968
44261
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43969
44262
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43970
44263
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43993,16 +44286,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43993
44286
|
*/
|
|
43994
44287
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43995
44288
|
var NcMediaPolicySchema = object({
|
|
44289
|
+
/**
|
|
44290
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
44291
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
44292
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
44293
|
+
*/
|
|
44294
|
+
image: NcMediaImageSchema.optional(),
|
|
44295
|
+
/**
|
|
44296
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
44297
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
44298
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
44299
|
+
* Replaces `zoneCrop`.
|
|
44300
|
+
*/
|
|
44301
|
+
showTriggerZone: boolean().optional(),
|
|
44302
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43996
44303
|
attach: _enum([
|
|
43997
44304
|
"best",
|
|
43998
44305
|
"best-matching",
|
|
43999
44306
|
"keyFrame",
|
|
44000
44307
|
"none"
|
|
44001
|
-
]).
|
|
44002
|
-
/**
|
|
44308
|
+
]).optional(),
|
|
44309
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
44003
44310
|
frame: NcMediaFrameSchema.optional(),
|
|
44004
|
-
/**
|
|
44005
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
44311
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
44006
44312
|
zoneCrop: boolean().optional(),
|
|
44007
44313
|
/**
|
|
44008
44314
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -44174,7 +44480,9 @@ var NcRuleInputSchema = object({
|
|
|
44174
44480
|
* targets.
|
|
44175
44481
|
*/
|
|
44176
44482
|
targetUsers: array(string()).optional(),
|
|
44177
|
-
|
|
44483
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
44484
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
44485
|
+
media: NcMediaPolicySchema.default({}),
|
|
44178
44486
|
throttle: NcThrottleSchema.default({
|
|
44179
44487
|
cooldownSec: 60,
|
|
44180
44488
|
scope: "rule-device"
|
|
@@ -45111,13 +45419,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
45111
45419
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
45112
45420
|
unknown: array(number().int())
|
|
45113
45421
|
});
|
|
45422
|
+
/**
|
|
45423
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
45424
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
45425
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
45426
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
45427
|
+
*/
|
|
45428
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
45429
|
+
ruleId: string(),
|
|
45430
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
45431
|
+
ruleName: string(),
|
|
45432
|
+
/** The input: the sensor of the match, else its camera. */
|
|
45433
|
+
deviceId: number().int(),
|
|
45434
|
+
/** The input's current name. */
|
|
45435
|
+
name: string(),
|
|
45436
|
+
/** When it was bypassed (ms epoch). */
|
|
45437
|
+
since: number(),
|
|
45438
|
+
/** Triggers from this input dropped since. */
|
|
45439
|
+
dropped: number().int().min(0)
|
|
45440
|
+
});
|
|
45114
45441
|
var NcAlarmLiveSchema = object({
|
|
45115
45442
|
state: AlarmStateSchema,
|
|
45116
45443
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
45117
45444
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
45118
45445
|
availableModes: array(AlarmArmModeSchema),
|
|
45119
45446
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
45120
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
45447
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
45448
|
+
/**
|
|
45449
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
45450
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
45451
|
+
*/
|
|
45452
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
45121
45453
|
});
|
|
45122
45454
|
var NcAlarmConfigSchema = object({
|
|
45123
45455
|
/**
|
|
@@ -55844,9 +56176,11 @@ var connectivityCapability = {
|
|
|
55844
56176
|
*/
|
|
55845
56177
|
durability: "restored",
|
|
55846
56178
|
/**
|
|
55847
|
-
* History (D850):
|
|
56179
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
56180
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
56181
|
+
* device's reachability, which stays `device-status.online`.
|
|
55848
56182
|
*/
|
|
55849
|
-
history: "
|
|
56183
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
55850
56184
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55851
56185
|
* whether persisting is worth a SQLite commit. */
|
|
55852
56186
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -56670,11 +57004,22 @@ var dishwasherCapability = {
|
|
|
56670
57004
|
},
|
|
56671
57005
|
runtimeState: DishwasherStatusSchema,
|
|
56672
57006
|
durability: "session",
|
|
56673
|
-
history: { fields: {
|
|
56674
|
-
|
|
56675
|
-
|
|
56676
|
-
|
|
56677
|
-
|
|
57007
|
+
history: { fields: {
|
|
57008
|
+
progressPercent: {
|
|
57009
|
+
kind: "gauge",
|
|
57010
|
+
unit: "%",
|
|
57011
|
+
deadband: 2
|
|
57012
|
+
},
|
|
57013
|
+
state: { kind: "enum" },
|
|
57014
|
+
operationState: { kind: "enum" },
|
|
57015
|
+
remainingSeconds: {
|
|
57016
|
+
kind: "gauge",
|
|
57017
|
+
unit: "s",
|
|
57018
|
+
minIntervalMs: 6e4
|
|
57019
|
+
},
|
|
57020
|
+
doorOpen: { kind: "boolean" },
|
|
57021
|
+
powerOn: { kind: "boolean" }
|
|
57022
|
+
} }
|
|
56678
57023
|
};
|
|
56679
57024
|
var DoorbellStatusSchema = object({
|
|
56680
57025
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -56791,9 +57136,15 @@ var enumSensorCapability = {
|
|
|
56791
57136
|
*/
|
|
56792
57137
|
durability: "restored",
|
|
56793
57138
|
/**
|
|
56794
|
-
* History (D850):
|
|
57139
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
57140
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
57141
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
57142
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
56795
57143
|
*/
|
|
56796
|
-
history:
|
|
57144
|
+
history: { fields: { value: {
|
|
57145
|
+
kind: "enum",
|
|
57146
|
+
skipWhenSet: "format"
|
|
57147
|
+
} } },
|
|
56797
57148
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56798
57149
|
* whether persisting is worth a SQLite commit. */
|
|
56799
57150
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -58767,9 +59118,10 @@ var lockControlCapability = {
|
|
|
58767
59118
|
*/
|
|
58768
59119
|
durability: "restored",
|
|
58769
59120
|
/**
|
|
58770
|
-
* History (D850):
|
|
59121
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
59122
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
58771
59123
|
*/
|
|
58772
|
-
history: "
|
|
59124
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
58773
59125
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58774
59126
|
* whether persisting is worth a SQLite commit. */
|
|
58775
59127
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58943,9 +59295,18 @@ var mediaPlayerCapability = {
|
|
|
58943
59295
|
*/
|
|
58944
59296
|
durability: "session",
|
|
58945
59297
|
/**
|
|
58946
|
-
* History (D850):
|
|
59298
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
59299
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
59300
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58947
59301
|
*/
|
|
58948
|
-
history:
|
|
59302
|
+
history: { fields: {
|
|
59303
|
+
volumeLevel: {
|
|
59304
|
+
kind: "gauge",
|
|
59305
|
+
unit: "%",
|
|
59306
|
+
deadband: 1
|
|
59307
|
+
},
|
|
59308
|
+
isMuted: { kind: "boolean" }
|
|
59309
|
+
} }
|
|
58949
59310
|
};
|
|
58950
59311
|
/**
|
|
58951
59312
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -64238,9 +64599,29 @@ var streamParamsCapability = {
|
|
|
64238
64599
|
*/
|
|
64239
64600
|
durability: "restored",
|
|
64240
64601
|
/**
|
|
64241
|
-
* History (D850):
|
|
64602
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
64603
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
64604
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
64605
|
+
* quality over time must show.
|
|
64242
64606
|
*/
|
|
64243
|
-
history:
|
|
64607
|
+
history: { fields: {
|
|
64608
|
+
"main.bitrate": {
|
|
64609
|
+
kind: "gauge",
|
|
64610
|
+
unit: "kbps"
|
|
64611
|
+
},
|
|
64612
|
+
"main.framerate": {
|
|
64613
|
+
kind: "gauge",
|
|
64614
|
+
unit: "fps"
|
|
64615
|
+
},
|
|
64616
|
+
"sub.bitrate": {
|
|
64617
|
+
kind: "gauge",
|
|
64618
|
+
unit: "kbps"
|
|
64619
|
+
},
|
|
64620
|
+
"sub.framerate": {
|
|
64621
|
+
kind: "gauge",
|
|
64622
|
+
unit: "fps"
|
|
64623
|
+
}
|
|
64624
|
+
} },
|
|
64244
64625
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64245
64626
|
* whether persisting is worth a SQLite commit. */
|
|
64246
64627
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -65075,26 +65456,6 @@ var ApiKeySummarySchema = object({
|
|
|
65075
65456
|
createdAt: number(),
|
|
65076
65457
|
lastUsedAt: number().optional()
|
|
65077
65458
|
});
|
|
65078
|
-
var ScopedTokenSummarySchema = object({
|
|
65079
|
-
id: string(),
|
|
65080
|
-
userId: string(),
|
|
65081
|
-
name: string(),
|
|
65082
|
-
tokenPrefix: string(),
|
|
65083
|
-
scopes: array(TokenScopeSchema),
|
|
65084
|
-
expiresAt: number().nullish(),
|
|
65085
|
-
lastUsedAt: number().nullish(),
|
|
65086
|
-
createdAt: number()
|
|
65087
|
-
});
|
|
65088
|
-
var CreateScopedTokenInputSchema = object({
|
|
65089
|
-
userId: string(),
|
|
65090
|
-
name: string(),
|
|
65091
|
-
scopes: array(TokenScopeSchema),
|
|
65092
|
-
expiresAt: number().optional()
|
|
65093
|
-
});
|
|
65094
|
-
var CreateScopedTokenResultSchema = object({
|
|
65095
|
-
token: string(),
|
|
65096
|
-
record: ScopedTokenSummarySchema
|
|
65097
|
-
});
|
|
65098
65459
|
var OauthSessionSummarySchema = object({
|
|
65099
65460
|
id: string(),
|
|
65100
65461
|
userId: string(),
|
|
@@ -65116,11 +65477,11 @@ var TotpStatusSchema = object({
|
|
|
65116
65477
|
confirmedAt: number().nullable()
|
|
65117
65478
|
});
|
|
65118
65479
|
/**
|
|
65119
|
-
* user-management — singleton capability for user accounts
|
|
65120
|
-
*
|
|
65480
|
+
* user-management — singleton capability for user accounts and the
|
|
65481
|
+
* legacy API-key rows.
|
|
65121
65482
|
*
|
|
65122
65483
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
65123
|
-
* — the subset check on `setUserScopes`
|
|
65484
|
+
* — the subset check on `setUserScopes` is moot
|
|
65124
65485
|
* because non-admins never reach these. If/when we open non-admin
|
|
65125
65486
|
* delegation, structural caller-scope subset check goes inside the
|
|
65126
65487
|
* provider.
|
|
@@ -65177,15 +65538,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65177
65538
|
kind: "mutation",
|
|
65178
65539
|
auth: "admin",
|
|
65179
65540
|
access: "delete"
|
|
65180
|
-
}), method(
|
|
65181
|
-
kind: "mutation",
|
|
65182
|
-
auth: "admin",
|
|
65183
|
-
access: "create"
|
|
65184
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65185
|
-
kind: "mutation",
|
|
65186
|
-
auth: "admin",
|
|
65187
|
-
access: "delete"
|
|
65188
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65541
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65189
65542
|
kind: "mutation",
|
|
65190
65543
|
auth: "admin",
|
|
65191
65544
|
access: "create"
|
|
@@ -67446,6 +67799,15 @@ var BaseDevice = class {
|
|
|
67446
67799
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
67447
67800
|
* with a typed cast.
|
|
67448
67801
|
*
|
|
67802
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
67803
|
+
* while this device is `online` and probed; return
|
|
67804
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
67805
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
67806
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
67807
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
67808
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
67809
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
67810
|
+
*
|
|
67449
67811
|
* Default: no children.
|
|
67450
67812
|
*/
|
|
67451
67813
|
getAccessoryChildren() {
|
|
@@ -71275,7 +71637,7 @@ Object.freeze({
|
|
|
71275
71637
|
capName: "llm",
|
|
71276
71638
|
capScope: "system",
|
|
71277
71639
|
addonId: null,
|
|
71278
|
-
access: "
|
|
71640
|
+
access: "create"
|
|
71279
71641
|
},
|
|
71280
71642
|
"llm.listNodeModels": {
|
|
71281
71643
|
capName: "llm",
|
|
@@ -71577,7 +71939,19 @@ Object.freeze({
|
|
|
71577
71939
|
addonId: null,
|
|
71578
71940
|
access: "view"
|
|
71579
71941
|
},
|
|
71580
|
-
"logDestination.
|
|
71942
|
+
"logDestination.cancelRead": {
|
|
71943
|
+
capName: "log-destination",
|
|
71944
|
+
capScope: "system",
|
|
71945
|
+
addonId: null,
|
|
71946
|
+
access: "create"
|
|
71947
|
+
},
|
|
71948
|
+
"logDestination.describeRead": {
|
|
71949
|
+
capName: "log-destination",
|
|
71950
|
+
capScope: "system",
|
|
71951
|
+
addonId: null,
|
|
71952
|
+
access: "view"
|
|
71953
|
+
},
|
|
71954
|
+
"logDestination.read": {
|
|
71581
71955
|
capName: "log-destination",
|
|
71582
71956
|
capScope: "system",
|
|
71583
71957
|
addonId: null,
|
|
@@ -75939,12 +76313,6 @@ Object.freeze({
|
|
|
75939
76313
|
addonId: null,
|
|
75940
76314
|
access: "create"
|
|
75941
76315
|
},
|
|
75942
|
-
"userManagement.createScopedToken": {
|
|
75943
|
-
capName: "user-management",
|
|
75944
|
-
capScope: "system",
|
|
75945
|
-
addonId: null,
|
|
75946
|
-
access: "create"
|
|
75947
|
-
},
|
|
75948
76316
|
"userManagement.createUser": {
|
|
75949
76317
|
capName: "user-management",
|
|
75950
76318
|
capScope: "system",
|
|
@@ -75993,12 +76361,6 @@ Object.freeze({
|
|
|
75993
76361
|
addonId: null,
|
|
75994
76362
|
access: "view"
|
|
75995
76363
|
},
|
|
75996
|
-
"userManagement.listScopedTokens": {
|
|
75997
|
-
capName: "user-management",
|
|
75998
|
-
capScope: "system",
|
|
75999
|
-
addonId: null,
|
|
76000
|
-
access: "view"
|
|
76001
|
-
},
|
|
76002
76364
|
"userManagement.listUsers": {
|
|
76003
76365
|
capName: "user-management",
|
|
76004
76366
|
capScope: "system",
|
|
@@ -76053,12 +76415,6 @@ Object.freeze({
|
|
|
76053
76415
|
addonId: null,
|
|
76054
76416
|
access: "delete"
|
|
76055
76417
|
},
|
|
76056
|
-
"userManagement.revokeScopedToken": {
|
|
76057
|
-
capName: "user-management",
|
|
76058
|
-
capScope: "system",
|
|
76059
|
-
addonId: null,
|
|
76060
|
-
access: "delete"
|
|
76061
|
-
},
|
|
76062
76418
|
"userManagement.setupTotp": {
|
|
76063
76419
|
capName: "user-management",
|
|
76064
76420
|
capScope: "system",
|
|
@@ -76089,12 +76445,6 @@ Object.freeze({
|
|
|
76089
76445
|
addonId: null,
|
|
76090
76446
|
access: "view"
|
|
76091
76447
|
},
|
|
76092
|
-
"userManagement.validateScopedToken": {
|
|
76093
|
-
capName: "user-management",
|
|
76094
|
-
capScope: "system",
|
|
76095
|
-
addonId: null,
|
|
76096
|
-
access: "view"
|
|
76097
|
-
},
|
|
76098
76448
|
"userManagement.verifyTotp": {
|
|
76099
76449
|
capName: "user-management",
|
|
76100
76450
|
capScope: "system",
|
|
@@ -77608,6 +77958,11 @@ Object.freeze({
|
|
|
77608
77958
|
form: "single",
|
|
77609
77959
|
optional: false
|
|
77610
77960
|
}],
|
|
77961
|
+
"logDestination.read": [{
|
|
77962
|
+
name: "deviceId",
|
|
77963
|
+
form: "single",
|
|
77964
|
+
optional: true
|
|
77965
|
+
}],
|
|
77611
77966
|
"mediaPlayer.getStatus": [{
|
|
77612
77967
|
name: "deviceId",
|
|
77613
77968
|
form: "single",
|