@camstack/addon-provider-rtsp 1.2.130 → 1.2.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +496 -141
- package/dist/addon.mjs +496 -141
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5438,7 +5438,7 @@ var ZodIssueCode = {
|
|
|
5438
5438
|
var ZodFirstPartyTypeKind;
|
|
5439
5439
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5440
5440
|
//#endregion
|
|
5441
|
-
//#region ../types/dist/sleep-
|
|
5441
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5442
5442
|
/**
|
|
5443
5443
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5444
5444
|
* window to float samples (D455).
|
|
@@ -7821,9 +7821,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7821
7821
|
return result;
|
|
7822
7822
|
}
|
|
7823
7823
|
/**
|
|
7824
|
-
* The share-view scope kinds a
|
|
7825
|
-
* and validates them (`
|
|
7826
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7824
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7825
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7826
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7827
7827
|
*/
|
|
7828
7828
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7829
7829
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12634,7 +12634,7 @@ var ConvertResultSchema = object({
|
|
|
12634
12634
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12635
12635
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12636
12636
|
* distinction was only ever used to route role-specific procedures
|
|
12637
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12637
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12638
12638
|
* with `isAdmin: false` + an explicit scope list.
|
|
12639
12639
|
*/
|
|
12640
12640
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12823,10 +12823,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12823
12823
|
type: literal("addon-routes"),
|
|
12824
12824
|
access: array(MethodAccessSchema).min(1)
|
|
12825
12825
|
});
|
|
12826
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12826
12827
|
var CredentialScopeSchema = union([
|
|
12827
12828
|
literal("*"),
|
|
12828
12829
|
ShareViewScopeSchema,
|
|
12829
12830
|
AddonRoutesScopeSchema,
|
|
12831
|
+
PreferencesSelfScopeSchema,
|
|
12830
12832
|
TokenScopeSchema
|
|
12831
12833
|
]);
|
|
12832
12834
|
object({
|
|
@@ -12835,6 +12837,55 @@ object({
|
|
|
12835
12837
|
jti: string().min(16),
|
|
12836
12838
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12837
12839
|
});
|
|
12840
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12841
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12842
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12843
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12844
|
+
/** A stored row, as the owner reads it. */
|
|
12845
|
+
var PreferenceRowSchema = object({
|
|
12846
|
+
namespace: PreferenceNamespaceSchema,
|
|
12847
|
+
value: PreferenceValueSchema,
|
|
12848
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12849
|
+
revision: number().int().positive(),
|
|
12850
|
+
updatedAt: number().int(),
|
|
12851
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12852
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12853
|
+
});
|
|
12854
|
+
object({
|
|
12855
|
+
/** Absent: every namespace the caller holds. */
|
|
12856
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12857
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12858
|
+
object({
|
|
12859
|
+
namespace: PreferenceNamespaceSchema,
|
|
12860
|
+
value: PreferenceValueSchema,
|
|
12861
|
+
/**
|
|
12862
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12863
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12864
|
+
* revision answers `conflict` and writes nothing.
|
|
12865
|
+
*/
|
|
12866
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12867
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12868
|
+
});
|
|
12869
|
+
discriminatedUnion("status", [object({
|
|
12870
|
+
status: literal("saved"),
|
|
12871
|
+
row: PreferenceRowSchema
|
|
12872
|
+
}), object({
|
|
12873
|
+
status: literal("conflict"),
|
|
12874
|
+
current: PreferenceRowSchema.nullable()
|
|
12875
|
+
})]);
|
|
12876
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12877
|
+
object({
|
|
12878
|
+
/** `false` when the namespace did not exist. */
|
|
12879
|
+
deleted: boolean() });
|
|
12880
|
+
object({
|
|
12881
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12882
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12883
|
+
object({
|
|
12884
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12885
|
+
rows: array(PreferenceRowSchema),
|
|
12886
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12887
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12888
|
+
});
|
|
12838
12889
|
_enum(["new-session", "step-up"]);
|
|
12839
12890
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12840
12891
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -17088,7 +17139,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17088
17139
|
kind: literal("node"),
|
|
17089
17140
|
nodeId: string().min(1)
|
|
17090
17141
|
})]);
|
|
17142
|
+
/**
|
|
17143
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17144
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17145
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17146
|
+
*/
|
|
17091
17147
|
var DeviceHistoryKindSchema = _enum([
|
|
17148
|
+
"gauge",
|
|
17149
|
+
"counter",
|
|
17150
|
+
"boolean",
|
|
17151
|
+
"enum"
|
|
17152
|
+
]);
|
|
17153
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17154
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17092
17155
|
"gauge",
|
|
17093
17156
|
"counter",
|
|
17094
17157
|
"boolean"
|
|
@@ -17125,7 +17188,13 @@ var SeriesInfoSchema = object({
|
|
|
17125
17188
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17126
17189
|
unit: string().nullable(),
|
|
17127
17190
|
displayName: string(),
|
|
17128
|
-
source: _enum([
|
|
17191
|
+
source: _enum([
|
|
17192
|
+
"cap",
|
|
17193
|
+
"addon",
|
|
17194
|
+
"derived"
|
|
17195
|
+
]),
|
|
17196
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17197
|
+
values: array(string()).readonly().nullable(),
|
|
17129
17198
|
firstTs: number(),
|
|
17130
17199
|
lastTs: number()
|
|
17131
17200
|
});
|
|
@@ -17139,17 +17208,31 @@ var QueryPointSchema = object({
|
|
|
17139
17208
|
twMean: number().nullable(),
|
|
17140
17209
|
min: number(),
|
|
17141
17210
|
max: number(),
|
|
17142
|
-
/** `null` is unknown, never zero (D393). */
|
|
17143
|
-
last: number().nullable()
|
|
17211
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17212
|
+
last: number().nullable(),
|
|
17213
|
+
/**
|
|
17214
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17215
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17216
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17217
|
+
* every other kind, and when it cannot be known.
|
|
17218
|
+
*/
|
|
17219
|
+
delta: number().nullable(),
|
|
17220
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17221
|
+
state: string().nullable(),
|
|
17222
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17223
|
+
states: record(string(), number()).nullable()
|
|
17144
17224
|
});
|
|
17145
17225
|
var QuerySeriesSchema = object({
|
|
17146
17226
|
scope: string(),
|
|
17147
17227
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17148
17228
|
before: object({
|
|
17149
17229
|
t: number(),
|
|
17150
|
-
value: number().nullable()
|
|
17230
|
+
value: number().nullable(),
|
|
17231
|
+
state: string().nullable()
|
|
17151
17232
|
}).nullable(),
|
|
17152
|
-
points: array(QueryPointSchema).readonly()
|
|
17233
|
+
points: array(QueryPointSchema).readonly(),
|
|
17234
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17235
|
+
derivedFrom: string().nullable()
|
|
17153
17236
|
});
|
|
17154
17237
|
/** The window part of a query, shared by the device and node forms. */
|
|
17155
17238
|
var QueryWindowShape = {
|
|
@@ -17165,6 +17248,23 @@ var QueryResultSchema = object({
|
|
|
17165
17248
|
series: array(QuerySeriesSchema).readonly(),
|
|
17166
17249
|
truncated: boolean()
|
|
17167
17250
|
});
|
|
17251
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17252
|
+
var QueryManyItemSchema = union([object({
|
|
17253
|
+
deviceId: number().int(),
|
|
17254
|
+
key: string(),
|
|
17255
|
+
scope: string().optional()
|
|
17256
|
+
}), object({
|
|
17257
|
+
forNodeId: string().min(1),
|
|
17258
|
+
key: string(),
|
|
17259
|
+
scope: string().optional()
|
|
17260
|
+
})]);
|
|
17261
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17262
|
+
ok: literal(true),
|
|
17263
|
+
result: QueryResultSchema
|
|
17264
|
+
}), object({
|
|
17265
|
+
ok: literal(false),
|
|
17266
|
+
error: string()
|
|
17267
|
+
})]);
|
|
17168
17268
|
var TierStatusSchema = object({
|
|
17169
17269
|
tier: DeviceHistoryResolutionSchema,
|
|
17170
17270
|
/** `null` until the first background count answered. */
|
|
@@ -17220,16 +17320,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17220
17320
|
lastRefreshAt: number().nullable()
|
|
17221
17321
|
})
|
|
17222
17322
|
});
|
|
17223
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17323
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17224
17324
|
deviceId: number().int(),
|
|
17225
17325
|
...QueryWindowShape
|
|
17226
17326
|
}), QueryResultSchema), method(object({
|
|
17227
|
-
|
|
17327
|
+
forNodeId: string().min(1),
|
|
17228
17328
|
...QueryWindowShape
|
|
17229
17329
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17330
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17331
|
+
from: QueryWindowShape.from,
|
|
17332
|
+
to: QueryWindowShape.to,
|
|
17333
|
+
resolution: QueryWindowShape.resolution,
|
|
17334
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17335
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17230
17336
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17231
17337
|
subjectKind: _enum(["device", "node"]),
|
|
17232
|
-
kind:
|
|
17338
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17233
17339
|
unit: string().optional(),
|
|
17234
17340
|
displayName: string().min(1),
|
|
17235
17341
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40011,38 +40117,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40011
40117
|
auth: "admin",
|
|
40012
40118
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40013
40119
|
});
|
|
40120
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40121
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40122
|
+
var LlmModelFeaturesSchema = object({
|
|
40123
|
+
vision: boolean(),
|
|
40124
|
+
tools: boolean(),
|
|
40125
|
+
streaming: boolean()
|
|
40126
|
+
});
|
|
40127
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40128
|
+
var LlmModelInfoSchema = object({
|
|
40129
|
+
id: string(),
|
|
40130
|
+
label: string().optional(),
|
|
40131
|
+
contextLength: number().int().positive().optional(),
|
|
40132
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40133
|
+
});
|
|
40014
40134
|
/**
|
|
40015
|
-
*
|
|
40016
|
-
*
|
|
40017
|
-
*
|
|
40018
|
-
*
|
|
40019
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40020
|
-
*
|
|
40021
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40022
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40023
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40135
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40136
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40137
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40138
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40024
40139
|
*/
|
|
40025
|
-
var
|
|
40026
|
-
"openai-compatible",
|
|
40027
|
-
"openai",
|
|
40028
|
-
"anthropic",
|
|
40029
|
-
"google",
|
|
40030
|
-
"managed-local",
|
|
40031
|
-
"apple-foundation"
|
|
40032
|
-
]);
|
|
40140
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40033
40141
|
var LlmProfileSchema = object({
|
|
40034
40142
|
id: string(),
|
|
40035
40143
|
name: string(),
|
|
40144
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40036
40145
|
kind: LlmProfileKindSchema,
|
|
40037
40146
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40038
40147
|
addonId: string(),
|
|
40039
40148
|
enabled: boolean(),
|
|
40040
40149
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40041
40150
|
model: string(),
|
|
40042
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40043
|
-
baseUrl: string().optional(),
|
|
40044
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40045
|
-
apiKey: string().optional(),
|
|
40046
40151
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40047
40152
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40048
40153
|
* question about a picture nobody sent. */
|
|
@@ -40050,15 +40155,11 @@ var LlmProfileSchema = object({
|
|
|
40050
40155
|
temperature: number().min(0).max(2).optional(),
|
|
40051
40156
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40052
40157
|
topP: number().min(0).max(1).optional(),
|
|
40053
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40054
|
-
*
|
|
40055
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40056
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40158
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40159
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40057
40160
|
topK: number().int().positive().optional(),
|
|
40058
40161
|
maxTokens: number().int().positive().optional(),
|
|
40059
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40060
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40061
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40162
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40062
40163
|
contextLength: number().int().positive().optional(),
|
|
40063
40164
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40064
40165
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40084,16 +40185,37 @@ var LlmProfileSchema = object({
|
|
|
40084
40185
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40085
40186
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40086
40187
|
toolsEnabled: boolean().default(false),
|
|
40087
|
-
|
|
40088
|
-
|
|
40089
|
-
|
|
40090
|
-
|
|
40091
|
-
|
|
40092
|
-
|
|
40093
|
-
|
|
40094
|
-
|
|
40095
|
-
|
|
40096
|
-
|
|
40188
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40189
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40190
|
+
});
|
|
40191
|
+
/**
|
|
40192
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40193
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40194
|
+
*/
|
|
40195
|
+
var LlmProfileFieldSchema = _enum([
|
|
40196
|
+
"temperature",
|
|
40197
|
+
"topP",
|
|
40198
|
+
"topK",
|
|
40199
|
+
"maxTokens",
|
|
40200
|
+
"contextLength",
|
|
40201
|
+
"systemPrompt",
|
|
40202
|
+
"timeoutMs",
|
|
40203
|
+
"connectTimeoutMs",
|
|
40204
|
+
"firstTokenTimeoutMs",
|
|
40205
|
+
"idleTimeoutMs",
|
|
40206
|
+
"retry",
|
|
40207
|
+
"toolsEnabled"
|
|
40208
|
+
]);
|
|
40209
|
+
/**
|
|
40210
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40211
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40212
|
+
* picker: that widget owns the model choice.
|
|
40213
|
+
*/
|
|
40214
|
+
var LlmProviderWidgetSchema = object({
|
|
40215
|
+
id: string(),
|
|
40216
|
+
placement: _enum(["connection", "model"]),
|
|
40217
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40218
|
+
requires: array(string()).optional()
|
|
40097
40219
|
});
|
|
40098
40220
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40099
40221
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40102,11 +40224,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40102
40224
|
var LlmProfileKindDescriptorSchema = object({
|
|
40103
40225
|
kind: LlmProfileKindSchema,
|
|
40104
40226
|
label: string(),
|
|
40227
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40105
40228
|
icon: string(),
|
|
40106
40229
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40107
40230
|
addonId: string(),
|
|
40108
|
-
|
|
40231
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40232
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40233
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40234
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40235
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40236
|
+
features: LlmModelFeaturesSchema,
|
|
40237
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40238
|
+
visionEditable: boolean(),
|
|
40239
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40240
|
+
modelCatalog: _enum([
|
|
40241
|
+
"fetch",
|
|
40242
|
+
"static",
|
|
40243
|
+
"none"
|
|
40244
|
+
]),
|
|
40245
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40246
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40247
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40248
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40109
40249
|
});
|
|
40250
|
+
/**
|
|
40251
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40252
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40253
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40254
|
+
* stored profile — the browser never receives it.
|
|
40255
|
+
*/
|
|
40256
|
+
var LlmListModelsInputSchema = object({
|
|
40257
|
+
addonId: string(),
|
|
40258
|
+
kind: LlmProfileKindSchema,
|
|
40259
|
+
profileId: string().optional(),
|
|
40260
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40261
|
+
});
|
|
40262
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40263
|
+
"auth",
|
|
40264
|
+
"network",
|
|
40265
|
+
"unsupported",
|
|
40266
|
+
"invalid"
|
|
40267
|
+
]);
|
|
40268
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40269
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40270
|
+
ok: literal(true),
|
|
40271
|
+
models: array(LlmModelInfoSchema)
|
|
40272
|
+
}), object({
|
|
40273
|
+
ok: literal(false),
|
|
40274
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40275
|
+
message: string()
|
|
40276
|
+
})]);
|
|
40110
40277
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40111
40278
|
var LlmDefaultSchema = object({
|
|
40112
40279
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40206,7 +40373,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40206
40373
|
kind: "mutation",
|
|
40207
40374
|
auth: "admin",
|
|
40208
40375
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40209
|
-
}), method(
|
|
40376
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40377
|
+
kind: "mutation",
|
|
40378
|
+
auth: "admin"
|
|
40379
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40210
40380
|
selector: LlmDefaultSelectorSchema,
|
|
40211
40381
|
profileId: string().nullable()
|
|
40212
40382
|
}), _void(), {
|
|
@@ -40374,14 +40544,106 @@ var LogEntrySchema = object({
|
|
|
40374
40544
|
meta: record(string(), unknown()).optional(),
|
|
40375
40545
|
tags: record(string(), string()).optional()
|
|
40376
40546
|
});
|
|
40377
|
-
|
|
40378
|
-
|
|
40547
|
+
/**
|
|
40548
|
+
* A history READ against one destination (D898).
|
|
40549
|
+
*
|
|
40550
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40551
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40552
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40553
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40554
|
+
* nanosecond timestamp for Loki.
|
|
40555
|
+
*
|
|
40556
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40557
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40558
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40559
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40560
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40561
|
+
*/
|
|
40562
|
+
var LogReadQuerySchema = object({
|
|
40563
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40564
|
+
requestId: string().min(1).max(64).optional(),
|
|
40565
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40566
|
+
deviceId: number().int().optional(),
|
|
40567
|
+
/**
|
|
40568
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40569
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40570
|
+
*/
|
|
40571
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40572
|
+
/**
|
|
40573
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40574
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40575
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40576
|
+
* name as "which node's provider".
|
|
40577
|
+
*/
|
|
40578
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40579
|
+
/** Any other tag, exact match (AND). */
|
|
40580
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40581
|
+
/** Severity FLOOR: this level and above. */
|
|
40379
40582
|
level: LogLevelSchema.optional(),
|
|
40380
|
-
|
|
40381
|
-
|
|
40382
|
-
|
|
40383
|
-
|
|
40384
|
-
|
|
40583
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40584
|
+
text: string().min(1).max(200).optional(),
|
|
40585
|
+
/** Epoch ms, inclusive. */
|
|
40586
|
+
since: number().optional(),
|
|
40587
|
+
/** Epoch ms, inclusive. */
|
|
40588
|
+
until: number().optional(),
|
|
40589
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40590
|
+
before: string().min(1).max(1024).optional(),
|
|
40591
|
+
/** Newer than this cursor (exclusive). */
|
|
40592
|
+
after: string().min(1).max(1024).optional(),
|
|
40593
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40594
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40595
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40596
|
+
});
|
|
40597
|
+
var LogReadResultSchema = object({
|
|
40598
|
+
/** Newest first. */
|
|
40599
|
+
entries: array(object({
|
|
40600
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40601
|
+
id: string().optional(),
|
|
40602
|
+
/** Epoch ms. */
|
|
40603
|
+
timestamp: number(),
|
|
40604
|
+
level: LogLevelSchema,
|
|
40605
|
+
scope: string().optional(),
|
|
40606
|
+
message: string(),
|
|
40607
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40608
|
+
meta: record(string(), unknown()).optional()
|
|
40609
|
+
})),
|
|
40610
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40611
|
+
nextBefore: string().nullable(),
|
|
40612
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40613
|
+
nextAfter: string().nullable(),
|
|
40614
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40615
|
+
scannedBytes: number().int().nonnegative(),
|
|
40616
|
+
/**
|
|
40617
|
+
* True when the scan in this direction reached the end of the store.
|
|
40618
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40619
|
+
* call again with `nextBefore` to go on.
|
|
40620
|
+
*/
|
|
40621
|
+
done: boolean(),
|
|
40622
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40623
|
+
cancelled: boolean().optional()
|
|
40624
|
+
});
|
|
40625
|
+
var LogReadCapabilitiesSchema = object({
|
|
40626
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40627
|
+
readable: boolean(),
|
|
40628
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40629
|
+
reason: string().nullable(),
|
|
40630
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40631
|
+
filters: object({
|
|
40632
|
+
deviceId: boolean(),
|
|
40633
|
+
addonId: boolean(),
|
|
40634
|
+
nodeId: boolean(),
|
|
40635
|
+
tags: boolean(),
|
|
40636
|
+
level: boolean(),
|
|
40637
|
+
text: boolean(),
|
|
40638
|
+
timeRange: boolean()
|
|
40639
|
+
}),
|
|
40640
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40641
|
+
retentionDays: number().nullable()
|
|
40642
|
+
});
|
|
40643
|
+
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() }), {
|
|
40644
|
+
kind: "mutation",
|
|
40645
|
+
auth: "admin"
|
|
40646
|
+
});
|
|
40385
40647
|
/**
|
|
40386
40648
|
* `login-method` — collection cap through which auth addons contribute
|
|
40387
40649
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42099,9 +42361,11 @@ var alarmPanelCapability = {
|
|
|
42099
42361
|
*/
|
|
42100
42362
|
durability: "restored",
|
|
42101
42363
|
/**
|
|
42102
|
-
* History (D850):
|
|
42364
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42365
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42366
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42103
42367
|
*/
|
|
42104
|
-
history: "
|
|
42368
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42105
42369
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42106
42370
|
* whether persisting is worth a SQLite commit. */
|
|
42107
42371
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -42979,6 +43243,33 @@ var NcRuleTargetSchema = object({
|
|
|
42979
43243
|
params: record(string(), unknown()).optional()
|
|
42980
43244
|
});
|
|
42981
43245
|
/**
|
|
43246
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43247
|
+
*
|
|
43248
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43249
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43250
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43251
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43252
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43253
|
+
* labelled with class and confidence ("dog 87%").
|
|
43254
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43255
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43256
|
+
* - `none` — no picture.
|
|
43257
|
+
*
|
|
43258
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43259
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43260
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43261
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43262
|
+
* stored kind had landed.
|
|
43263
|
+
*/
|
|
43264
|
+
var NcMediaImageSchema = _enum([
|
|
43265
|
+
"scene-boxes",
|
|
43266
|
+
"crop",
|
|
43267
|
+
"clean",
|
|
43268
|
+
"none"
|
|
43269
|
+
]);
|
|
43270
|
+
/**
|
|
43271
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43272
|
+
*
|
|
42982
43273
|
* Media attachment policy (P1 still-image subset).
|
|
42983
43274
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42984
43275
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42992,6 +43283,8 @@ var NcRuleTargetSchema = object({
|
|
|
42992
43283
|
* - `none` — no attachment.
|
|
42993
43284
|
*/
|
|
42994
43285
|
/**
|
|
43286
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43287
|
+
*
|
|
42995
43288
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42996
43289
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42997
43290
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43020,16 +43313,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43020
43313
|
*/
|
|
43021
43314
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43022
43315
|
var NcMediaPolicySchema = object({
|
|
43316
|
+
/**
|
|
43317
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43318
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43319
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43320
|
+
*/
|
|
43321
|
+
image: NcMediaImageSchema.optional(),
|
|
43322
|
+
/**
|
|
43323
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43324
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43325
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43326
|
+
* Replaces `zoneCrop`.
|
|
43327
|
+
*/
|
|
43328
|
+
showTriggerZone: boolean().optional(),
|
|
43329
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43023
43330
|
attach: _enum([
|
|
43024
43331
|
"best",
|
|
43025
43332
|
"best-matching",
|
|
43026
43333
|
"keyFrame",
|
|
43027
43334
|
"none"
|
|
43028
|
-
]).
|
|
43029
|
-
/**
|
|
43335
|
+
]).optional(),
|
|
43336
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43030
43337
|
frame: NcMediaFrameSchema.optional(),
|
|
43031
|
-
/**
|
|
43032
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43338
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43033
43339
|
zoneCrop: boolean().optional(),
|
|
43034
43340
|
/**
|
|
43035
43341
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43201,7 +43507,9 @@ var NcRuleInputSchema = object({
|
|
|
43201
43507
|
* targets.
|
|
43202
43508
|
*/
|
|
43203
43509
|
targetUsers: array(string()).optional(),
|
|
43204
|
-
|
|
43510
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43511
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43512
|
+
media: NcMediaPolicySchema.default({}),
|
|
43205
43513
|
throttle: NcThrottleSchema.default({
|
|
43206
43514
|
cooldownSec: 60,
|
|
43207
43515
|
scope: "rule-device"
|
|
@@ -44138,13 +44446,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44138
44446
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44139
44447
|
unknown: array(number().int())
|
|
44140
44448
|
});
|
|
44449
|
+
/**
|
|
44450
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44451
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44452
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44453
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44454
|
+
*/
|
|
44455
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44456
|
+
ruleId: string(),
|
|
44457
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44458
|
+
ruleName: string(),
|
|
44459
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44460
|
+
deviceId: number().int(),
|
|
44461
|
+
/** The input's current name. */
|
|
44462
|
+
name: string(),
|
|
44463
|
+
/** When it was bypassed (ms epoch). */
|
|
44464
|
+
since: number(),
|
|
44465
|
+
/** Triggers from this input dropped since. */
|
|
44466
|
+
dropped: number().int().min(0)
|
|
44467
|
+
});
|
|
44141
44468
|
var NcAlarmLiveSchema = object({
|
|
44142
44469
|
state: AlarmStateSchema,
|
|
44143
44470
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44144
44471
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44145
44472
|
availableModes: array(AlarmArmModeSchema),
|
|
44146
44473
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44147
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44474
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44475
|
+
/**
|
|
44476
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44477
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44478
|
+
*/
|
|
44479
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44148
44480
|
});
|
|
44149
44481
|
var NcAlarmConfigSchema = object({
|
|
44150
44482
|
/**
|
|
@@ -54975,9 +55307,11 @@ var connectivityCapability = {
|
|
|
54975
55307
|
*/
|
|
54976
55308
|
durability: "restored",
|
|
54977
55309
|
/**
|
|
54978
|
-
* History (D850):
|
|
55310
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55311
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55312
|
+
* device's reachability, which stays `device-status.online`.
|
|
54979
55313
|
*/
|
|
54980
|
-
history: "
|
|
55314
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54981
55315
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54982
55316
|
* whether persisting is worth a SQLite commit. */
|
|
54983
55317
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55801,11 +56135,22 @@ var dishwasherCapability = {
|
|
|
55801
56135
|
},
|
|
55802
56136
|
runtimeState: DishwasherStatusSchema,
|
|
55803
56137
|
durability: "session",
|
|
55804
|
-
history: { fields: {
|
|
55805
|
-
|
|
55806
|
-
|
|
55807
|
-
|
|
55808
|
-
|
|
56138
|
+
history: { fields: {
|
|
56139
|
+
progressPercent: {
|
|
56140
|
+
kind: "gauge",
|
|
56141
|
+
unit: "%",
|
|
56142
|
+
deadband: 2
|
|
56143
|
+
},
|
|
56144
|
+
state: { kind: "enum" },
|
|
56145
|
+
operationState: { kind: "enum" },
|
|
56146
|
+
remainingSeconds: {
|
|
56147
|
+
kind: "gauge",
|
|
56148
|
+
unit: "s",
|
|
56149
|
+
minIntervalMs: 6e4
|
|
56150
|
+
},
|
|
56151
|
+
doorOpen: { kind: "boolean" },
|
|
56152
|
+
powerOn: { kind: "boolean" }
|
|
56153
|
+
} }
|
|
55809
56154
|
};
|
|
55810
56155
|
var DoorbellStatusSchema = object({
|
|
55811
56156
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55922,9 +56267,15 @@ var enumSensorCapability = {
|
|
|
55922
56267
|
*/
|
|
55923
56268
|
durability: "restored",
|
|
55924
56269
|
/**
|
|
55925
|
-
* History (D850):
|
|
56270
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56271
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56272
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56273
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55926
56274
|
*/
|
|
55927
|
-
history:
|
|
56275
|
+
history: { fields: { value: {
|
|
56276
|
+
kind: "enum",
|
|
56277
|
+
skipWhenSet: "format"
|
|
56278
|
+
} } },
|
|
55928
56279
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55929
56280
|
* whether persisting is worth a SQLite commit. */
|
|
55930
56281
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57898,9 +58249,10 @@ var lockControlCapability = {
|
|
|
57898
58249
|
*/
|
|
57899
58250
|
durability: "restored",
|
|
57900
58251
|
/**
|
|
57901
|
-
* History (D850):
|
|
58252
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58253
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57902
58254
|
*/
|
|
57903
|
-
history: "
|
|
58255
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57904
58256
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57905
58257
|
* whether persisting is worth a SQLite commit. */
|
|
57906
58258
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58074,9 +58426,18 @@ var mediaPlayerCapability = {
|
|
|
58074
58426
|
*/
|
|
58075
58427
|
durability: "session",
|
|
58076
58428
|
/**
|
|
58077
|
-
* History (D850):
|
|
58429
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58430
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58431
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58078
58432
|
*/
|
|
58079
|
-
history:
|
|
58433
|
+
history: { fields: {
|
|
58434
|
+
volumeLevel: {
|
|
58435
|
+
kind: "gauge",
|
|
58436
|
+
unit: "%",
|
|
58437
|
+
deadband: 1
|
|
58438
|
+
},
|
|
58439
|
+
isMuted: { kind: "boolean" }
|
|
58440
|
+
} }
|
|
58080
58441
|
};
|
|
58081
58442
|
/**
|
|
58082
58443
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63369,9 +63730,29 @@ var streamParamsCapability = {
|
|
|
63369
63730
|
*/
|
|
63370
63731
|
durability: "restored",
|
|
63371
63732
|
/**
|
|
63372
|
-
* History (D850):
|
|
63733
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63734
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63735
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63736
|
+
* quality over time must show.
|
|
63373
63737
|
*/
|
|
63374
|
-
history:
|
|
63738
|
+
history: { fields: {
|
|
63739
|
+
"main.bitrate": {
|
|
63740
|
+
kind: "gauge",
|
|
63741
|
+
unit: "kbps"
|
|
63742
|
+
},
|
|
63743
|
+
"main.framerate": {
|
|
63744
|
+
kind: "gauge",
|
|
63745
|
+
unit: "fps"
|
|
63746
|
+
},
|
|
63747
|
+
"sub.bitrate": {
|
|
63748
|
+
kind: "gauge",
|
|
63749
|
+
unit: "kbps"
|
|
63750
|
+
},
|
|
63751
|
+
"sub.framerate": {
|
|
63752
|
+
kind: "gauge",
|
|
63753
|
+
unit: "fps"
|
|
63754
|
+
}
|
|
63755
|
+
} },
|
|
63375
63756
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63376
63757
|
* whether persisting is worth a SQLite commit. */
|
|
63377
63758
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64206,26 +64587,6 @@ var ApiKeySummarySchema = object({
|
|
|
64206
64587
|
createdAt: number(),
|
|
64207
64588
|
lastUsedAt: number().optional()
|
|
64208
64589
|
});
|
|
64209
|
-
var ScopedTokenSummarySchema = object({
|
|
64210
|
-
id: string(),
|
|
64211
|
-
userId: string(),
|
|
64212
|
-
name: string(),
|
|
64213
|
-
tokenPrefix: string(),
|
|
64214
|
-
scopes: array(TokenScopeSchema),
|
|
64215
|
-
expiresAt: number().nullish(),
|
|
64216
|
-
lastUsedAt: number().nullish(),
|
|
64217
|
-
createdAt: number()
|
|
64218
|
-
});
|
|
64219
|
-
var CreateScopedTokenInputSchema = object({
|
|
64220
|
-
userId: string(),
|
|
64221
|
-
name: string(),
|
|
64222
|
-
scopes: array(TokenScopeSchema),
|
|
64223
|
-
expiresAt: number().optional()
|
|
64224
|
-
});
|
|
64225
|
-
var CreateScopedTokenResultSchema = object({
|
|
64226
|
-
token: string(),
|
|
64227
|
-
record: ScopedTokenSummarySchema
|
|
64228
|
-
});
|
|
64229
64590
|
var OauthSessionSummarySchema = object({
|
|
64230
64591
|
id: string(),
|
|
64231
64592
|
userId: string(),
|
|
@@ -64247,11 +64608,11 @@ var TotpStatusSchema = object({
|
|
|
64247
64608
|
confirmedAt: number().nullable()
|
|
64248
64609
|
});
|
|
64249
64610
|
/**
|
|
64250
|
-
* user-management — singleton capability for user accounts
|
|
64251
|
-
*
|
|
64611
|
+
* user-management — singleton capability for user accounts and the
|
|
64612
|
+
* legacy API-key rows.
|
|
64252
64613
|
*
|
|
64253
64614
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64254
|
-
* — the subset check on `setUserScopes`
|
|
64615
|
+
* — the subset check on `setUserScopes` is moot
|
|
64255
64616
|
* because non-admins never reach these. If/when we open non-admin
|
|
64256
64617
|
* delegation, structural caller-scope subset check goes inside the
|
|
64257
64618
|
* provider.
|
|
@@ -64308,15 +64669,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64308
64669
|
kind: "mutation",
|
|
64309
64670
|
auth: "admin",
|
|
64310
64671
|
access: "delete"
|
|
64311
|
-
}), method(
|
|
64312
|
-
kind: "mutation",
|
|
64313
|
-
auth: "admin",
|
|
64314
|
-
access: "create"
|
|
64315
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64316
|
-
kind: "mutation",
|
|
64317
|
-
auth: "admin",
|
|
64318
|
-
access: "delete"
|
|
64319
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64672
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64320
64673
|
kind: "mutation",
|
|
64321
64674
|
auth: "admin",
|
|
64322
64675
|
access: "create"
|
|
@@ -66577,6 +66930,15 @@ var BaseDevice = class {
|
|
|
66577
66930
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66578
66931
|
* with a typed cast.
|
|
66579
66932
|
*
|
|
66933
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66934
|
+
* while this device is `online` and probed; return
|
|
66935
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66936
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66937
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66938
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66939
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66940
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66941
|
+
*
|
|
66580
66942
|
* Default: no children.
|
|
66581
66943
|
*/
|
|
66582
66944
|
getAccessoryChildren() {
|
|
@@ -70406,7 +70768,7 @@ Object.freeze({
|
|
|
70406
70768
|
capName: "llm",
|
|
70407
70769
|
capScope: "system",
|
|
70408
70770
|
addonId: null,
|
|
70409
|
-
access: "
|
|
70771
|
+
access: "create"
|
|
70410
70772
|
},
|
|
70411
70773
|
"llm.listNodeModels": {
|
|
70412
70774
|
capName: "llm",
|
|
@@ -70708,7 +71070,19 @@ Object.freeze({
|
|
|
70708
71070
|
addonId: null,
|
|
70709
71071
|
access: "view"
|
|
70710
71072
|
},
|
|
70711
|
-
"logDestination.
|
|
71073
|
+
"logDestination.cancelRead": {
|
|
71074
|
+
capName: "log-destination",
|
|
71075
|
+
capScope: "system",
|
|
71076
|
+
addonId: null,
|
|
71077
|
+
access: "create"
|
|
71078
|
+
},
|
|
71079
|
+
"logDestination.describeRead": {
|
|
71080
|
+
capName: "log-destination",
|
|
71081
|
+
capScope: "system",
|
|
71082
|
+
addonId: null,
|
|
71083
|
+
access: "view"
|
|
71084
|
+
},
|
|
71085
|
+
"logDestination.read": {
|
|
70712
71086
|
capName: "log-destination",
|
|
70713
71087
|
capScope: "system",
|
|
70714
71088
|
addonId: null,
|
|
@@ -75070,12 +75444,6 @@ Object.freeze({
|
|
|
75070
75444
|
addonId: null,
|
|
75071
75445
|
access: "create"
|
|
75072
75446
|
},
|
|
75073
|
-
"userManagement.createScopedToken": {
|
|
75074
|
-
capName: "user-management",
|
|
75075
|
-
capScope: "system",
|
|
75076
|
-
addonId: null,
|
|
75077
|
-
access: "create"
|
|
75078
|
-
},
|
|
75079
75447
|
"userManagement.createUser": {
|
|
75080
75448
|
capName: "user-management",
|
|
75081
75449
|
capScope: "system",
|
|
@@ -75124,12 +75492,6 @@ Object.freeze({
|
|
|
75124
75492
|
addonId: null,
|
|
75125
75493
|
access: "view"
|
|
75126
75494
|
},
|
|
75127
|
-
"userManagement.listScopedTokens": {
|
|
75128
|
-
capName: "user-management",
|
|
75129
|
-
capScope: "system",
|
|
75130
|
-
addonId: null,
|
|
75131
|
-
access: "view"
|
|
75132
|
-
},
|
|
75133
75495
|
"userManagement.listUsers": {
|
|
75134
75496
|
capName: "user-management",
|
|
75135
75497
|
capScope: "system",
|
|
@@ -75184,12 +75546,6 @@ Object.freeze({
|
|
|
75184
75546
|
addonId: null,
|
|
75185
75547
|
access: "delete"
|
|
75186
75548
|
},
|
|
75187
|
-
"userManagement.revokeScopedToken": {
|
|
75188
|
-
capName: "user-management",
|
|
75189
|
-
capScope: "system",
|
|
75190
|
-
addonId: null,
|
|
75191
|
-
access: "delete"
|
|
75192
|
-
},
|
|
75193
75549
|
"userManagement.setupTotp": {
|
|
75194
75550
|
capName: "user-management",
|
|
75195
75551
|
capScope: "system",
|
|
@@ -75220,12 +75576,6 @@ Object.freeze({
|
|
|
75220
75576
|
addonId: null,
|
|
75221
75577
|
access: "view"
|
|
75222
75578
|
},
|
|
75223
|
-
"userManagement.validateScopedToken": {
|
|
75224
|
-
capName: "user-management",
|
|
75225
|
-
capScope: "system",
|
|
75226
|
-
addonId: null,
|
|
75227
|
-
access: "view"
|
|
75228
|
-
},
|
|
75229
75579
|
"userManagement.verifyTotp": {
|
|
75230
75580
|
capName: "user-management",
|
|
75231
75581
|
capScope: "system",
|
|
@@ -76805,6 +77155,11 @@ Object.freeze({
|
|
|
76805
77155
|
form: "single",
|
|
76806
77156
|
optional: false
|
|
76807
77157
|
}],
|
|
77158
|
+
"logDestination.read": [{
|
|
77159
|
+
name: "deviceId",
|
|
77160
|
+
form: "single",
|
|
77161
|
+
optional: true
|
|
77162
|
+
}],
|
|
76808
77163
|
"mediaPlayer.getStatus": [{
|
|
76809
77164
|
name: "deviceId",
|
|
76810
77165
|
form: "single",
|