@camstack/addon-provider-amcrest 0.2.141 → 0.2.143
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
|
@@ -5429,7 +5429,7 @@ var ZodIssueCode = {
|
|
|
5429
5429
|
var ZodFirstPartyTypeKind;
|
|
5430
5430
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5431
5431
|
//#endregion
|
|
5432
|
-
//#region ../types/dist/sleep-
|
|
5432
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5433
5433
|
/**
|
|
5434
5434
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5435
5435
|
* window to float samples (D455).
|
|
@@ -7812,9 +7812,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7812
7812
|
return result;
|
|
7813
7813
|
}
|
|
7814
7814
|
/**
|
|
7815
|
-
* The share-view scope kinds a
|
|
7816
|
-
* and validates them (`
|
|
7817
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7815
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7816
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7817
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7818
7818
|
*/
|
|
7819
7819
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7820
7820
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12528,7 +12528,7 @@ var ConvertResultSchema = object({
|
|
|
12528
12528
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12529
12529
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12530
12530
|
* distinction was only ever used to route role-specific procedures
|
|
12531
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12531
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12532
12532
|
* with `isAdmin: false` + an explicit scope list.
|
|
12533
12533
|
*/
|
|
12534
12534
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12717,10 +12717,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12717
12717
|
type: literal("addon-routes"),
|
|
12718
12718
|
access: array(MethodAccessSchema).min(1)
|
|
12719
12719
|
});
|
|
12720
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12720
12721
|
var CredentialScopeSchema = union([
|
|
12721
12722
|
literal("*"),
|
|
12722
12723
|
ShareViewScopeSchema,
|
|
12723
12724
|
AddonRoutesScopeSchema,
|
|
12725
|
+
PreferencesSelfScopeSchema,
|
|
12724
12726
|
TokenScopeSchema
|
|
12725
12727
|
]);
|
|
12726
12728
|
object({
|
|
@@ -12729,6 +12731,55 @@ object({
|
|
|
12729
12731
|
jti: string().min(16),
|
|
12730
12732
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12731
12733
|
});
|
|
12734
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12735
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12736
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12737
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12738
|
+
/** A stored row, as the owner reads it. */
|
|
12739
|
+
var PreferenceRowSchema = object({
|
|
12740
|
+
namespace: PreferenceNamespaceSchema,
|
|
12741
|
+
value: PreferenceValueSchema,
|
|
12742
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12743
|
+
revision: number().int().positive(),
|
|
12744
|
+
updatedAt: number().int(),
|
|
12745
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12746
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12747
|
+
});
|
|
12748
|
+
object({
|
|
12749
|
+
/** Absent: every namespace the caller holds. */
|
|
12750
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12751
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12752
|
+
object({
|
|
12753
|
+
namespace: PreferenceNamespaceSchema,
|
|
12754
|
+
value: PreferenceValueSchema,
|
|
12755
|
+
/**
|
|
12756
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12757
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12758
|
+
* revision answers `conflict` and writes nothing.
|
|
12759
|
+
*/
|
|
12760
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12761
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12762
|
+
});
|
|
12763
|
+
discriminatedUnion("status", [object({
|
|
12764
|
+
status: literal("saved"),
|
|
12765
|
+
row: PreferenceRowSchema
|
|
12766
|
+
}), object({
|
|
12767
|
+
status: literal("conflict"),
|
|
12768
|
+
current: PreferenceRowSchema.nullable()
|
|
12769
|
+
})]);
|
|
12770
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12771
|
+
object({
|
|
12772
|
+
/** `false` when the namespace did not exist. */
|
|
12773
|
+
deleted: boolean() });
|
|
12774
|
+
object({
|
|
12775
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12776
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12777
|
+
object({
|
|
12778
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12779
|
+
rows: array(PreferenceRowSchema),
|
|
12780
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12781
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12782
|
+
});
|
|
12732
12783
|
_enum(["new-session", "step-up"]);
|
|
12733
12784
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12734
12785
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -16982,7 +17033,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16982
17033
|
kind: literal("node"),
|
|
16983
17034
|
nodeId: string().min(1)
|
|
16984
17035
|
})]);
|
|
17036
|
+
/**
|
|
17037
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17038
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17039
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17040
|
+
*/
|
|
16985
17041
|
var DeviceHistoryKindSchema = _enum([
|
|
17042
|
+
"gauge",
|
|
17043
|
+
"counter",
|
|
17044
|
+
"boolean",
|
|
17045
|
+
"enum"
|
|
17046
|
+
]);
|
|
17047
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17048
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16986
17049
|
"gauge",
|
|
16987
17050
|
"counter",
|
|
16988
17051
|
"boolean"
|
|
@@ -17019,7 +17082,13 @@ var SeriesInfoSchema = object({
|
|
|
17019
17082
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17020
17083
|
unit: string().nullable(),
|
|
17021
17084
|
displayName: string(),
|
|
17022
|
-
source: _enum([
|
|
17085
|
+
source: _enum([
|
|
17086
|
+
"cap",
|
|
17087
|
+
"addon",
|
|
17088
|
+
"derived"
|
|
17089
|
+
]),
|
|
17090
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17091
|
+
values: array(string()).readonly().nullable(),
|
|
17023
17092
|
firstTs: number(),
|
|
17024
17093
|
lastTs: number()
|
|
17025
17094
|
});
|
|
@@ -17033,17 +17102,31 @@ var QueryPointSchema = object({
|
|
|
17033
17102
|
twMean: number().nullable(),
|
|
17034
17103
|
min: number(),
|
|
17035
17104
|
max: number(),
|
|
17036
|
-
/** `null` is unknown, never zero (D393). */
|
|
17037
|
-
last: number().nullable()
|
|
17105
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17106
|
+
last: number().nullable(),
|
|
17107
|
+
/**
|
|
17108
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17109
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17110
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17111
|
+
* every other kind, and when it cannot be known.
|
|
17112
|
+
*/
|
|
17113
|
+
delta: number().nullable(),
|
|
17114
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17115
|
+
state: string().nullable(),
|
|
17116
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17117
|
+
states: record(string(), number()).nullable()
|
|
17038
17118
|
});
|
|
17039
17119
|
var QuerySeriesSchema = object({
|
|
17040
17120
|
scope: string(),
|
|
17041
17121
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17042
17122
|
before: object({
|
|
17043
17123
|
t: number(),
|
|
17044
|
-
value: number().nullable()
|
|
17124
|
+
value: number().nullable(),
|
|
17125
|
+
state: string().nullable()
|
|
17045
17126
|
}).nullable(),
|
|
17046
|
-
points: array(QueryPointSchema).readonly()
|
|
17127
|
+
points: array(QueryPointSchema).readonly(),
|
|
17128
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17129
|
+
derivedFrom: string().nullable()
|
|
17047
17130
|
});
|
|
17048
17131
|
/** The window part of a query, shared by the device and node forms. */
|
|
17049
17132
|
var QueryWindowShape = {
|
|
@@ -17059,6 +17142,23 @@ var QueryResultSchema = object({
|
|
|
17059
17142
|
series: array(QuerySeriesSchema).readonly(),
|
|
17060
17143
|
truncated: boolean()
|
|
17061
17144
|
});
|
|
17145
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17146
|
+
var QueryManyItemSchema = union([object({
|
|
17147
|
+
deviceId: number().int(),
|
|
17148
|
+
key: string(),
|
|
17149
|
+
scope: string().optional()
|
|
17150
|
+
}), object({
|
|
17151
|
+
forNodeId: string().min(1),
|
|
17152
|
+
key: string(),
|
|
17153
|
+
scope: string().optional()
|
|
17154
|
+
})]);
|
|
17155
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17156
|
+
ok: literal(true),
|
|
17157
|
+
result: QueryResultSchema
|
|
17158
|
+
}), object({
|
|
17159
|
+
ok: literal(false),
|
|
17160
|
+
error: string()
|
|
17161
|
+
})]);
|
|
17062
17162
|
var TierStatusSchema = object({
|
|
17063
17163
|
tier: DeviceHistoryResolutionSchema,
|
|
17064
17164
|
/** `null` until the first background count answered. */
|
|
@@ -17114,16 +17214,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17114
17214
|
lastRefreshAt: number().nullable()
|
|
17115
17215
|
})
|
|
17116
17216
|
});
|
|
17117
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17217
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17118
17218
|
deviceId: number().int(),
|
|
17119
17219
|
...QueryWindowShape
|
|
17120
17220
|
}), QueryResultSchema), method(object({
|
|
17121
|
-
|
|
17221
|
+
forNodeId: string().min(1),
|
|
17122
17222
|
...QueryWindowShape
|
|
17123
17223
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17224
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17225
|
+
from: QueryWindowShape.from,
|
|
17226
|
+
to: QueryWindowShape.to,
|
|
17227
|
+
resolution: QueryWindowShape.resolution,
|
|
17228
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17229
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17124
17230
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17125
17231
|
subjectKind: _enum(["device", "node"]),
|
|
17126
|
-
kind:
|
|
17232
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17127
17233
|
unit: string().optional(),
|
|
17128
17234
|
displayName: string().min(1),
|
|
17129
17235
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40018,38 +40124,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40018
40124
|
auth: "admin",
|
|
40019
40125
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40020
40126
|
});
|
|
40127
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40128
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40129
|
+
var LlmModelFeaturesSchema = object({
|
|
40130
|
+
vision: boolean(),
|
|
40131
|
+
tools: boolean(),
|
|
40132
|
+
streaming: boolean()
|
|
40133
|
+
});
|
|
40134
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40135
|
+
var LlmModelInfoSchema = object({
|
|
40136
|
+
id: string(),
|
|
40137
|
+
label: string().optional(),
|
|
40138
|
+
contextLength: number().int().positive().optional(),
|
|
40139
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40140
|
+
});
|
|
40021
40141
|
/**
|
|
40022
|
-
*
|
|
40023
|
-
*
|
|
40024
|
-
*
|
|
40025
|
-
*
|
|
40026
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40027
|
-
*
|
|
40028
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40029
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40030
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40142
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40143
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40144
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40145
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40031
40146
|
*/
|
|
40032
|
-
var
|
|
40033
|
-
"openai-compatible",
|
|
40034
|
-
"openai",
|
|
40035
|
-
"anthropic",
|
|
40036
|
-
"google",
|
|
40037
|
-
"managed-local",
|
|
40038
|
-
"apple-foundation"
|
|
40039
|
-
]);
|
|
40147
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40040
40148
|
var LlmProfileSchema = object({
|
|
40041
40149
|
id: string(),
|
|
40042
40150
|
name: string(),
|
|
40151
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40043
40152
|
kind: LlmProfileKindSchema,
|
|
40044
40153
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40045
40154
|
addonId: string(),
|
|
40046
40155
|
enabled: boolean(),
|
|
40047
40156
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40048
40157
|
model: string(),
|
|
40049
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40050
|
-
baseUrl: string().optional(),
|
|
40051
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40052
|
-
apiKey: string().optional(),
|
|
40053
40158
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40054
40159
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40055
40160
|
* question about a picture nobody sent. */
|
|
@@ -40057,15 +40162,11 @@ var LlmProfileSchema = object({
|
|
|
40057
40162
|
temperature: number().min(0).max(2).optional(),
|
|
40058
40163
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40059
40164
|
topP: number().min(0).max(1).optional(),
|
|
40060
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40061
|
-
*
|
|
40062
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40063
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40165
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40166
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40064
40167
|
topK: number().int().positive().optional(),
|
|
40065
40168
|
maxTokens: number().int().positive().optional(),
|
|
40066
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40067
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40068
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40169
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40069
40170
|
contextLength: number().int().positive().optional(),
|
|
40070
40171
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40071
40172
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40091,16 +40192,37 @@ var LlmProfileSchema = object({
|
|
|
40091
40192
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40092
40193
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40093
40194
|
toolsEnabled: boolean().default(false),
|
|
40094
|
-
|
|
40095
|
-
|
|
40096
|
-
|
|
40097
|
-
|
|
40098
|
-
|
|
40099
|
-
|
|
40100
|
-
|
|
40101
|
-
|
|
40102
|
-
|
|
40103
|
-
|
|
40195
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40196
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40197
|
+
});
|
|
40198
|
+
/**
|
|
40199
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40200
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40201
|
+
*/
|
|
40202
|
+
var LlmProfileFieldSchema = _enum([
|
|
40203
|
+
"temperature",
|
|
40204
|
+
"topP",
|
|
40205
|
+
"topK",
|
|
40206
|
+
"maxTokens",
|
|
40207
|
+
"contextLength",
|
|
40208
|
+
"systemPrompt",
|
|
40209
|
+
"timeoutMs",
|
|
40210
|
+
"connectTimeoutMs",
|
|
40211
|
+
"firstTokenTimeoutMs",
|
|
40212
|
+
"idleTimeoutMs",
|
|
40213
|
+
"retry",
|
|
40214
|
+
"toolsEnabled"
|
|
40215
|
+
]);
|
|
40216
|
+
/**
|
|
40217
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40218
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40219
|
+
* picker: that widget owns the model choice.
|
|
40220
|
+
*/
|
|
40221
|
+
var LlmProviderWidgetSchema = object({
|
|
40222
|
+
id: string(),
|
|
40223
|
+
placement: _enum(["connection", "model"]),
|
|
40224
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40225
|
+
requires: array(string()).optional()
|
|
40104
40226
|
});
|
|
40105
40227
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40106
40228
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40109,11 +40231,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40109
40231
|
var LlmProfileKindDescriptorSchema = object({
|
|
40110
40232
|
kind: LlmProfileKindSchema,
|
|
40111
40233
|
label: string(),
|
|
40234
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40112
40235
|
icon: string(),
|
|
40113
40236
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40114
40237
|
addonId: string(),
|
|
40115
|
-
|
|
40238
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40239
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40240
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40241
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40242
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40243
|
+
features: LlmModelFeaturesSchema,
|
|
40244
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40245
|
+
visionEditable: boolean(),
|
|
40246
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40247
|
+
modelCatalog: _enum([
|
|
40248
|
+
"fetch",
|
|
40249
|
+
"static",
|
|
40250
|
+
"none"
|
|
40251
|
+
]),
|
|
40252
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40253
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40254
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40255
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40256
|
+
});
|
|
40257
|
+
/**
|
|
40258
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40259
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40260
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40261
|
+
* stored profile — the browser never receives it.
|
|
40262
|
+
*/
|
|
40263
|
+
var LlmListModelsInputSchema = object({
|
|
40264
|
+
addonId: string(),
|
|
40265
|
+
kind: LlmProfileKindSchema,
|
|
40266
|
+
profileId: string().optional(),
|
|
40267
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40116
40268
|
});
|
|
40269
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40270
|
+
"auth",
|
|
40271
|
+
"network",
|
|
40272
|
+
"unsupported",
|
|
40273
|
+
"invalid"
|
|
40274
|
+
]);
|
|
40275
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40276
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40277
|
+
ok: literal(true),
|
|
40278
|
+
models: array(LlmModelInfoSchema)
|
|
40279
|
+
}), object({
|
|
40280
|
+
ok: literal(false),
|
|
40281
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40282
|
+
message: string()
|
|
40283
|
+
})]);
|
|
40117
40284
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40118
40285
|
var LlmDefaultSchema = object({
|
|
40119
40286
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40213,7 +40380,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40213
40380
|
kind: "mutation",
|
|
40214
40381
|
auth: "admin",
|
|
40215
40382
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40216
|
-
}), method(
|
|
40383
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40384
|
+
kind: "mutation",
|
|
40385
|
+
auth: "admin"
|
|
40386
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40217
40387
|
selector: LlmDefaultSelectorSchema,
|
|
40218
40388
|
profileId: string().nullable()
|
|
40219
40389
|
}), _void(), {
|
|
@@ -40381,14 +40551,106 @@ var LogEntrySchema = object({
|
|
|
40381
40551
|
meta: record(string(), unknown()).optional(),
|
|
40382
40552
|
tags: record(string(), string()).optional()
|
|
40383
40553
|
});
|
|
40384
|
-
|
|
40385
|
-
|
|
40554
|
+
/**
|
|
40555
|
+
* A history READ against one destination (D898).
|
|
40556
|
+
*
|
|
40557
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40558
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40559
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40560
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40561
|
+
* nanosecond timestamp for Loki.
|
|
40562
|
+
*
|
|
40563
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40564
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40565
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40566
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40567
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40568
|
+
*/
|
|
40569
|
+
var LogReadQuerySchema = object({
|
|
40570
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40571
|
+
requestId: string().min(1).max(64).optional(),
|
|
40572
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40573
|
+
deviceId: number().int().optional(),
|
|
40574
|
+
/**
|
|
40575
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40576
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40577
|
+
*/
|
|
40578
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40579
|
+
/**
|
|
40580
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40581
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40582
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40583
|
+
* name as "which node's provider".
|
|
40584
|
+
*/
|
|
40585
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40586
|
+
/** Any other tag, exact match (AND). */
|
|
40587
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40588
|
+
/** Severity FLOOR: this level and above. */
|
|
40386
40589
|
level: LogLevelSchema.optional(),
|
|
40387
|
-
|
|
40388
|
-
|
|
40389
|
-
|
|
40390
|
-
|
|
40391
|
-
|
|
40590
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40591
|
+
text: string().min(1).max(200).optional(),
|
|
40592
|
+
/** Epoch ms, inclusive. */
|
|
40593
|
+
since: number().optional(),
|
|
40594
|
+
/** Epoch ms, inclusive. */
|
|
40595
|
+
until: number().optional(),
|
|
40596
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40597
|
+
before: string().min(1).max(1024).optional(),
|
|
40598
|
+
/** Newer than this cursor (exclusive). */
|
|
40599
|
+
after: string().min(1).max(1024).optional(),
|
|
40600
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40601
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40602
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40603
|
+
});
|
|
40604
|
+
var LogReadResultSchema = object({
|
|
40605
|
+
/** Newest first. */
|
|
40606
|
+
entries: array(object({
|
|
40607
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40608
|
+
id: string().optional(),
|
|
40609
|
+
/** Epoch ms. */
|
|
40610
|
+
timestamp: number(),
|
|
40611
|
+
level: LogLevelSchema,
|
|
40612
|
+
scope: string().optional(),
|
|
40613
|
+
message: string(),
|
|
40614
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40615
|
+
meta: record(string(), unknown()).optional()
|
|
40616
|
+
})),
|
|
40617
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40618
|
+
nextBefore: string().nullable(),
|
|
40619
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40620
|
+
nextAfter: string().nullable(),
|
|
40621
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40622
|
+
scannedBytes: number().int().nonnegative(),
|
|
40623
|
+
/**
|
|
40624
|
+
* True when the scan in this direction reached the end of the store.
|
|
40625
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40626
|
+
* call again with `nextBefore` to go on.
|
|
40627
|
+
*/
|
|
40628
|
+
done: boolean(),
|
|
40629
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40630
|
+
cancelled: boolean().optional()
|
|
40631
|
+
});
|
|
40632
|
+
var LogReadCapabilitiesSchema = object({
|
|
40633
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40634
|
+
readable: boolean(),
|
|
40635
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40636
|
+
reason: string().nullable(),
|
|
40637
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40638
|
+
filters: object({
|
|
40639
|
+
deviceId: boolean(),
|
|
40640
|
+
addonId: boolean(),
|
|
40641
|
+
nodeId: boolean(),
|
|
40642
|
+
tags: boolean(),
|
|
40643
|
+
level: boolean(),
|
|
40644
|
+
text: boolean(),
|
|
40645
|
+
timeRange: boolean()
|
|
40646
|
+
}),
|
|
40647
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40648
|
+
retentionDays: number().nullable()
|
|
40649
|
+
});
|
|
40650
|
+
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() }), {
|
|
40651
|
+
kind: "mutation",
|
|
40652
|
+
auth: "admin"
|
|
40653
|
+
});
|
|
40392
40654
|
/**
|
|
40393
40655
|
* `login-method` — collection cap through which auth addons contribute
|
|
40394
40656
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42106,9 +42368,11 @@ var alarmPanelCapability = {
|
|
|
42106
42368
|
*/
|
|
42107
42369
|
durability: "restored",
|
|
42108
42370
|
/**
|
|
42109
|
-
* History (D850):
|
|
42371
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42372
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42373
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42110
42374
|
*/
|
|
42111
|
-
history: "
|
|
42375
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42112
42376
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42113
42377
|
* whether persisting is worth a SQLite commit. */
|
|
42114
42378
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -42986,6 +43250,33 @@ var NcRuleTargetSchema = object({
|
|
|
42986
43250
|
params: record(string(), unknown()).optional()
|
|
42987
43251
|
});
|
|
42988
43252
|
/**
|
|
43253
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43254
|
+
*
|
|
43255
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43256
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43257
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43258
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43259
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43260
|
+
* labelled with class and confidence ("dog 87%").
|
|
43261
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43262
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43263
|
+
* - `none` — no picture.
|
|
43264
|
+
*
|
|
43265
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43266
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43267
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43268
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43269
|
+
* stored kind had landed.
|
|
43270
|
+
*/
|
|
43271
|
+
var NcMediaImageSchema = _enum([
|
|
43272
|
+
"scene-boxes",
|
|
43273
|
+
"crop",
|
|
43274
|
+
"clean",
|
|
43275
|
+
"none"
|
|
43276
|
+
]);
|
|
43277
|
+
/**
|
|
43278
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43279
|
+
*
|
|
42989
43280
|
* Media attachment policy (P1 still-image subset).
|
|
42990
43281
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42991
43282
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42999,6 +43290,8 @@ var NcRuleTargetSchema = object({
|
|
|
42999
43290
|
* - `none` — no attachment.
|
|
43000
43291
|
*/
|
|
43001
43292
|
/**
|
|
43293
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43294
|
+
*
|
|
43002
43295
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43003
43296
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43004
43297
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43027,16 +43320,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43027
43320
|
*/
|
|
43028
43321
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43029
43322
|
var NcMediaPolicySchema = object({
|
|
43323
|
+
/**
|
|
43324
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43325
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43326
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43327
|
+
*/
|
|
43328
|
+
image: NcMediaImageSchema.optional(),
|
|
43329
|
+
/**
|
|
43330
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43331
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43332
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43333
|
+
* Replaces `zoneCrop`.
|
|
43334
|
+
*/
|
|
43335
|
+
showTriggerZone: boolean().optional(),
|
|
43336
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43030
43337
|
attach: _enum([
|
|
43031
43338
|
"best",
|
|
43032
43339
|
"best-matching",
|
|
43033
43340
|
"keyFrame",
|
|
43034
43341
|
"none"
|
|
43035
|
-
]).
|
|
43036
|
-
/**
|
|
43342
|
+
]).optional(),
|
|
43343
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43037
43344
|
frame: NcMediaFrameSchema.optional(),
|
|
43038
|
-
/**
|
|
43039
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43345
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43040
43346
|
zoneCrop: boolean().optional(),
|
|
43041
43347
|
/**
|
|
43042
43348
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43208,7 +43514,9 @@ var NcRuleInputSchema = object({
|
|
|
43208
43514
|
* targets.
|
|
43209
43515
|
*/
|
|
43210
43516
|
targetUsers: array(string()).optional(),
|
|
43211
|
-
|
|
43517
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43518
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43519
|
+
media: NcMediaPolicySchema.default({}),
|
|
43212
43520
|
throttle: NcThrottleSchema.default({
|
|
43213
43521
|
cooldownSec: 60,
|
|
43214
43522
|
scope: "rule-device"
|
|
@@ -44145,13 +44453,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44145
44453
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44146
44454
|
unknown: array(number().int())
|
|
44147
44455
|
});
|
|
44456
|
+
/**
|
|
44457
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44458
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44459
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44460
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44461
|
+
*/
|
|
44462
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44463
|
+
ruleId: string(),
|
|
44464
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44465
|
+
ruleName: string(),
|
|
44466
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44467
|
+
deviceId: number().int(),
|
|
44468
|
+
/** The input's current name. */
|
|
44469
|
+
name: string(),
|
|
44470
|
+
/** When it was bypassed (ms epoch). */
|
|
44471
|
+
since: number(),
|
|
44472
|
+
/** Triggers from this input dropped since. */
|
|
44473
|
+
dropped: number().int().min(0)
|
|
44474
|
+
});
|
|
44148
44475
|
var NcAlarmLiveSchema = object({
|
|
44149
44476
|
state: AlarmStateSchema,
|
|
44150
44477
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44151
44478
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44152
44479
|
availableModes: array(AlarmArmModeSchema),
|
|
44153
44480
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44154
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44481
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44482
|
+
/**
|
|
44483
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44484
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44485
|
+
*/
|
|
44486
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44155
44487
|
});
|
|
44156
44488
|
var NcAlarmConfigSchema = object({
|
|
44157
44489
|
/**
|
|
@@ -55383,9 +55715,11 @@ var connectivityCapability = {
|
|
|
55383
55715
|
*/
|
|
55384
55716
|
durability: "restored",
|
|
55385
55717
|
/**
|
|
55386
|
-
* History (D850):
|
|
55718
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55719
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55720
|
+
* device's reachability, which stays `device-status.online`.
|
|
55387
55721
|
*/
|
|
55388
|
-
history: "
|
|
55722
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
55389
55723
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55390
55724
|
* whether persisting is worth a SQLite commit. */
|
|
55391
55725
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -56209,11 +56543,22 @@ var dishwasherCapability = {
|
|
|
56209
56543
|
},
|
|
56210
56544
|
runtimeState: DishwasherStatusSchema,
|
|
56211
56545
|
durability: "session",
|
|
56212
|
-
history: { fields: {
|
|
56213
|
-
|
|
56214
|
-
|
|
56215
|
-
|
|
56216
|
-
|
|
56546
|
+
history: { fields: {
|
|
56547
|
+
progressPercent: {
|
|
56548
|
+
kind: "gauge",
|
|
56549
|
+
unit: "%",
|
|
56550
|
+
deadband: 2
|
|
56551
|
+
},
|
|
56552
|
+
state: { kind: "enum" },
|
|
56553
|
+
operationState: { kind: "enum" },
|
|
56554
|
+
remainingSeconds: {
|
|
56555
|
+
kind: "gauge",
|
|
56556
|
+
unit: "s",
|
|
56557
|
+
minIntervalMs: 6e4
|
|
56558
|
+
},
|
|
56559
|
+
doorOpen: { kind: "boolean" },
|
|
56560
|
+
powerOn: { kind: "boolean" }
|
|
56561
|
+
} }
|
|
56217
56562
|
};
|
|
56218
56563
|
var DoorbellStatusSchema = object({
|
|
56219
56564
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -56330,9 +56675,15 @@ var enumSensorCapability = {
|
|
|
56330
56675
|
*/
|
|
56331
56676
|
durability: "restored",
|
|
56332
56677
|
/**
|
|
56333
|
-
* History (D850):
|
|
56678
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56679
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56680
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56681
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
56334
56682
|
*/
|
|
56335
|
-
history:
|
|
56683
|
+
history: { fields: { value: {
|
|
56684
|
+
kind: "enum",
|
|
56685
|
+
skipWhenSet: "format"
|
|
56686
|
+
} } },
|
|
56336
56687
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56337
56688
|
* whether persisting is worth a SQLite commit. */
|
|
56338
56689
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -58306,9 +58657,10 @@ var lockControlCapability = {
|
|
|
58306
58657
|
*/
|
|
58307
58658
|
durability: "restored",
|
|
58308
58659
|
/**
|
|
58309
|
-
* History (D850):
|
|
58660
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58661
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
58310
58662
|
*/
|
|
58311
|
-
history: "
|
|
58663
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
58312
58664
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58313
58665
|
* whether persisting is worth a SQLite commit. */
|
|
58314
58666
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58482,9 +58834,18 @@ var mediaPlayerCapability = {
|
|
|
58482
58834
|
*/
|
|
58483
58835
|
durability: "session",
|
|
58484
58836
|
/**
|
|
58485
|
-
* History (D850):
|
|
58837
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58838
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58839
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58486
58840
|
*/
|
|
58487
|
-
history:
|
|
58841
|
+
history: { fields: {
|
|
58842
|
+
volumeLevel: {
|
|
58843
|
+
kind: "gauge",
|
|
58844
|
+
unit: "%",
|
|
58845
|
+
deadband: 1
|
|
58846
|
+
},
|
|
58847
|
+
isMuted: { kind: "boolean" }
|
|
58848
|
+
} }
|
|
58488
58849
|
};
|
|
58489
58850
|
/**
|
|
58490
58851
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -64041,9 +64402,29 @@ var streamParamsCapability = {
|
|
|
64041
64402
|
*/
|
|
64042
64403
|
durability: "restored",
|
|
64043
64404
|
/**
|
|
64044
|
-
* History (D850):
|
|
64405
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
64406
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
64407
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
64408
|
+
* quality over time must show.
|
|
64045
64409
|
*/
|
|
64046
|
-
history:
|
|
64410
|
+
history: { fields: {
|
|
64411
|
+
"main.bitrate": {
|
|
64412
|
+
kind: "gauge",
|
|
64413
|
+
unit: "kbps"
|
|
64414
|
+
},
|
|
64415
|
+
"main.framerate": {
|
|
64416
|
+
kind: "gauge",
|
|
64417
|
+
unit: "fps"
|
|
64418
|
+
},
|
|
64419
|
+
"sub.bitrate": {
|
|
64420
|
+
kind: "gauge",
|
|
64421
|
+
unit: "kbps"
|
|
64422
|
+
},
|
|
64423
|
+
"sub.framerate": {
|
|
64424
|
+
kind: "gauge",
|
|
64425
|
+
unit: "fps"
|
|
64426
|
+
}
|
|
64427
|
+
} },
|
|
64047
64428
|
/** Clock fields: written, but excluded from the compare that decides
|
|
64048
64429
|
* whether persisting is worth a SQLite commit. */
|
|
64049
64430
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -65076,26 +65457,6 @@ var ApiKeySummarySchema = object({
|
|
|
65076
65457
|
createdAt: number(),
|
|
65077
65458
|
lastUsedAt: number().optional()
|
|
65078
65459
|
});
|
|
65079
|
-
var ScopedTokenSummarySchema = object({
|
|
65080
|
-
id: string(),
|
|
65081
|
-
userId: string(),
|
|
65082
|
-
name: string(),
|
|
65083
|
-
tokenPrefix: string(),
|
|
65084
|
-
scopes: array(TokenScopeSchema),
|
|
65085
|
-
expiresAt: number().nullish(),
|
|
65086
|
-
lastUsedAt: number().nullish(),
|
|
65087
|
-
createdAt: number()
|
|
65088
|
-
});
|
|
65089
|
-
var CreateScopedTokenInputSchema = object({
|
|
65090
|
-
userId: string(),
|
|
65091
|
-
name: string(),
|
|
65092
|
-
scopes: array(TokenScopeSchema),
|
|
65093
|
-
expiresAt: number().optional()
|
|
65094
|
-
});
|
|
65095
|
-
var CreateScopedTokenResultSchema = object({
|
|
65096
|
-
token: string(),
|
|
65097
|
-
record: ScopedTokenSummarySchema
|
|
65098
|
-
});
|
|
65099
65460
|
var OauthSessionSummarySchema = object({
|
|
65100
65461
|
id: string(),
|
|
65101
65462
|
userId: string(),
|
|
@@ -65117,11 +65478,11 @@ var TotpStatusSchema = object({
|
|
|
65117
65478
|
confirmedAt: number().nullable()
|
|
65118
65479
|
});
|
|
65119
65480
|
/**
|
|
65120
|
-
* user-management — singleton capability for user accounts
|
|
65121
|
-
*
|
|
65481
|
+
* user-management — singleton capability for user accounts and the
|
|
65482
|
+
* legacy API-key rows.
|
|
65122
65483
|
*
|
|
65123
65484
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
65124
|
-
* — the subset check on `setUserScopes`
|
|
65485
|
+
* — the subset check on `setUserScopes` is moot
|
|
65125
65486
|
* because non-admins never reach these. If/when we open non-admin
|
|
65126
65487
|
* delegation, structural caller-scope subset check goes inside the
|
|
65127
65488
|
* provider.
|
|
@@ -65178,15 +65539,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
65178
65539
|
kind: "mutation",
|
|
65179
65540
|
auth: "admin",
|
|
65180
65541
|
access: "delete"
|
|
65181
|
-
}), method(
|
|
65182
|
-
kind: "mutation",
|
|
65183
|
-
auth: "admin",
|
|
65184
|
-
access: "create"
|
|
65185
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
65186
|
-
kind: "mutation",
|
|
65187
|
-
auth: "admin",
|
|
65188
|
-
access: "delete"
|
|
65189
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65542
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65190
65543
|
kind: "mutation",
|
|
65191
65544
|
auth: "admin",
|
|
65192
65545
|
access: "create"
|
|
@@ -67447,6 +67800,15 @@ var BaseDevice = class {
|
|
|
67447
67800
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
67448
67801
|
* with a typed cast.
|
|
67449
67802
|
*
|
|
67803
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
67804
|
+
* while this device is `online` and probed; return
|
|
67805
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
67806
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
67807
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
67808
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
67809
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
67810
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
67811
|
+
*
|
|
67450
67812
|
* Default: no children.
|
|
67451
67813
|
*/
|
|
67452
67814
|
getAccessoryChildren() {
|
|
@@ -71280,7 +71642,7 @@ Object.freeze({
|
|
|
71280
71642
|
capName: "llm",
|
|
71281
71643
|
capScope: "system",
|
|
71282
71644
|
addonId: null,
|
|
71283
|
-
access: "
|
|
71645
|
+
access: "create"
|
|
71284
71646
|
},
|
|
71285
71647
|
"llm.listNodeModels": {
|
|
71286
71648
|
capName: "llm",
|
|
@@ -71582,7 +71944,19 @@ Object.freeze({
|
|
|
71582
71944
|
addonId: null,
|
|
71583
71945
|
access: "view"
|
|
71584
71946
|
},
|
|
71585
|
-
"logDestination.
|
|
71947
|
+
"logDestination.cancelRead": {
|
|
71948
|
+
capName: "log-destination",
|
|
71949
|
+
capScope: "system",
|
|
71950
|
+
addonId: null,
|
|
71951
|
+
access: "create"
|
|
71952
|
+
},
|
|
71953
|
+
"logDestination.describeRead": {
|
|
71954
|
+
capName: "log-destination",
|
|
71955
|
+
capScope: "system",
|
|
71956
|
+
addonId: null,
|
|
71957
|
+
access: "view"
|
|
71958
|
+
},
|
|
71959
|
+
"logDestination.read": {
|
|
71586
71960
|
capName: "log-destination",
|
|
71587
71961
|
capScope: "system",
|
|
71588
71962
|
addonId: null,
|
|
@@ -75944,12 +76318,6 @@ Object.freeze({
|
|
|
75944
76318
|
addonId: null,
|
|
75945
76319
|
access: "create"
|
|
75946
76320
|
},
|
|
75947
|
-
"userManagement.createScopedToken": {
|
|
75948
|
-
capName: "user-management",
|
|
75949
|
-
capScope: "system",
|
|
75950
|
-
addonId: null,
|
|
75951
|
-
access: "create"
|
|
75952
|
-
},
|
|
75953
76321
|
"userManagement.createUser": {
|
|
75954
76322
|
capName: "user-management",
|
|
75955
76323
|
capScope: "system",
|
|
@@ -75998,12 +76366,6 @@ Object.freeze({
|
|
|
75998
76366
|
addonId: null,
|
|
75999
76367
|
access: "view"
|
|
76000
76368
|
},
|
|
76001
|
-
"userManagement.listScopedTokens": {
|
|
76002
|
-
capName: "user-management",
|
|
76003
|
-
capScope: "system",
|
|
76004
|
-
addonId: null,
|
|
76005
|
-
access: "view"
|
|
76006
|
-
},
|
|
76007
76369
|
"userManagement.listUsers": {
|
|
76008
76370
|
capName: "user-management",
|
|
76009
76371
|
capScope: "system",
|
|
@@ -76058,12 +76420,6 @@ Object.freeze({
|
|
|
76058
76420
|
addonId: null,
|
|
76059
76421
|
access: "delete"
|
|
76060
76422
|
},
|
|
76061
|
-
"userManagement.revokeScopedToken": {
|
|
76062
|
-
capName: "user-management",
|
|
76063
|
-
capScope: "system",
|
|
76064
|
-
addonId: null,
|
|
76065
|
-
access: "delete"
|
|
76066
|
-
},
|
|
76067
76423
|
"userManagement.setupTotp": {
|
|
76068
76424
|
capName: "user-management",
|
|
76069
76425
|
capScope: "system",
|
|
@@ -76094,12 +76450,6 @@ Object.freeze({
|
|
|
76094
76450
|
addonId: null,
|
|
76095
76451
|
access: "view"
|
|
76096
76452
|
},
|
|
76097
|
-
"userManagement.validateScopedToken": {
|
|
76098
|
-
capName: "user-management",
|
|
76099
|
-
capScope: "system",
|
|
76100
|
-
addonId: null,
|
|
76101
|
-
access: "view"
|
|
76102
|
-
},
|
|
76103
76453
|
"userManagement.verifyTotp": {
|
|
76104
76454
|
capName: "user-management",
|
|
76105
76455
|
capScope: "system",
|
|
@@ -77819,6 +78169,11 @@ Object.freeze({
|
|
|
77819
78169
|
form: "single",
|
|
77820
78170
|
optional: false
|
|
77821
78171
|
}],
|
|
78172
|
+
"logDestination.read": [{
|
|
78173
|
+
name: "deviceId",
|
|
78174
|
+
form: "single",
|
|
78175
|
+
optional: true
|
|
78176
|
+
}],
|
|
77822
78177
|
"mediaPlayer.getStatus": [{
|
|
77823
78178
|
name: "deviceId",
|
|
77824
78179
|
form: "single",
|