@camstack/addon-provider-dreo 0.2.130 → 0.2.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +496 -141
- package/dist/addon.mjs +496 -141
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
|
|
|
5450
5450
|
var ZodFirstPartyTypeKind;
|
|
5451
5451
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5452
5452
|
//#endregion
|
|
5453
|
-
//#region ../types/dist/sleep-
|
|
5453
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5454
5454
|
/**
|
|
5455
5455
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5456
5456
|
* window to float samples (D455).
|
|
@@ -7833,9 +7833,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7833
7833
|
return result;
|
|
7834
7834
|
}
|
|
7835
7835
|
/**
|
|
7836
|
-
* The share-view scope kinds a
|
|
7837
|
-
* and validates them (`
|
|
7838
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7836
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7837
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7838
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7839
7839
|
*/
|
|
7840
7840
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7841
7841
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12525,7 +12525,7 @@ var ConvertResultSchema = object({
|
|
|
12525
12525
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12526
12526
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12527
12527
|
* distinction was only ever used to route role-specific procedures
|
|
12528
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12528
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12529
12529
|
* with `isAdmin: false` + an explicit scope list.
|
|
12530
12530
|
*/
|
|
12531
12531
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12714,10 +12714,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12714
12714
|
type: literal("addon-routes"),
|
|
12715
12715
|
access: array(MethodAccessSchema).min(1)
|
|
12716
12716
|
});
|
|
12717
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12717
12718
|
var CredentialScopeSchema = union([
|
|
12718
12719
|
literal("*"),
|
|
12719
12720
|
ShareViewScopeSchema,
|
|
12720
12721
|
AddonRoutesScopeSchema,
|
|
12722
|
+
PreferencesSelfScopeSchema,
|
|
12721
12723
|
TokenScopeSchema
|
|
12722
12724
|
]);
|
|
12723
12725
|
object({
|
|
@@ -12726,6 +12728,55 @@ object({
|
|
|
12726
12728
|
jti: string().min(16),
|
|
12727
12729
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12728
12730
|
});
|
|
12731
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12732
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12733
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12734
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12735
|
+
/** A stored row, as the owner reads it. */
|
|
12736
|
+
var PreferenceRowSchema = object({
|
|
12737
|
+
namespace: PreferenceNamespaceSchema,
|
|
12738
|
+
value: PreferenceValueSchema,
|
|
12739
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12740
|
+
revision: number().int().positive(),
|
|
12741
|
+
updatedAt: number().int(),
|
|
12742
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12743
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12744
|
+
});
|
|
12745
|
+
object({
|
|
12746
|
+
/** Absent: every namespace the caller holds. */
|
|
12747
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12748
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12749
|
+
object({
|
|
12750
|
+
namespace: PreferenceNamespaceSchema,
|
|
12751
|
+
value: PreferenceValueSchema,
|
|
12752
|
+
/**
|
|
12753
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12754
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12755
|
+
* revision answers `conflict` and writes nothing.
|
|
12756
|
+
*/
|
|
12757
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12758
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12759
|
+
});
|
|
12760
|
+
discriminatedUnion("status", [object({
|
|
12761
|
+
status: literal("saved"),
|
|
12762
|
+
row: PreferenceRowSchema
|
|
12763
|
+
}), object({
|
|
12764
|
+
status: literal("conflict"),
|
|
12765
|
+
current: PreferenceRowSchema.nullable()
|
|
12766
|
+
})]);
|
|
12767
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12768
|
+
object({
|
|
12769
|
+
/** `false` when the namespace did not exist. */
|
|
12770
|
+
deleted: boolean() });
|
|
12771
|
+
object({
|
|
12772
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12773
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12774
|
+
object({
|
|
12775
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12776
|
+
rows: array(PreferenceRowSchema),
|
|
12777
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12778
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12779
|
+
});
|
|
12729
12780
|
_enum(["new-session", "step-up"]);
|
|
12730
12781
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12731
12782
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -16979,7 +17030,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16979
17030
|
kind: literal("node"),
|
|
16980
17031
|
nodeId: string().min(1)
|
|
16981
17032
|
})]);
|
|
17033
|
+
/**
|
|
17034
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17035
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17036
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17037
|
+
*/
|
|
16982
17038
|
var DeviceHistoryKindSchema = _enum([
|
|
17039
|
+
"gauge",
|
|
17040
|
+
"counter",
|
|
17041
|
+
"boolean",
|
|
17042
|
+
"enum"
|
|
17043
|
+
]);
|
|
17044
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17045
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16983
17046
|
"gauge",
|
|
16984
17047
|
"counter",
|
|
16985
17048
|
"boolean"
|
|
@@ -17016,7 +17079,13 @@ var SeriesInfoSchema = object({
|
|
|
17016
17079
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17017
17080
|
unit: string().nullable(),
|
|
17018
17081
|
displayName: string(),
|
|
17019
|
-
source: _enum([
|
|
17082
|
+
source: _enum([
|
|
17083
|
+
"cap",
|
|
17084
|
+
"addon",
|
|
17085
|
+
"derived"
|
|
17086
|
+
]),
|
|
17087
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17088
|
+
values: array(string()).readonly().nullable(),
|
|
17020
17089
|
firstTs: number(),
|
|
17021
17090
|
lastTs: number()
|
|
17022
17091
|
});
|
|
@@ -17030,17 +17099,31 @@ var QueryPointSchema = object({
|
|
|
17030
17099
|
twMean: number().nullable(),
|
|
17031
17100
|
min: number(),
|
|
17032
17101
|
max: number(),
|
|
17033
|
-
/** `null` is unknown, never zero (D393). */
|
|
17034
|
-
last: number().nullable()
|
|
17102
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17103
|
+
last: number().nullable(),
|
|
17104
|
+
/**
|
|
17105
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17106
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17107
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17108
|
+
* every other kind, and when it cannot be known.
|
|
17109
|
+
*/
|
|
17110
|
+
delta: number().nullable(),
|
|
17111
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17112
|
+
state: string().nullable(),
|
|
17113
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17114
|
+
states: record(string(), number()).nullable()
|
|
17035
17115
|
});
|
|
17036
17116
|
var QuerySeriesSchema = object({
|
|
17037
17117
|
scope: string(),
|
|
17038
17118
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17039
17119
|
before: object({
|
|
17040
17120
|
t: number(),
|
|
17041
|
-
value: number().nullable()
|
|
17121
|
+
value: number().nullable(),
|
|
17122
|
+
state: string().nullable()
|
|
17042
17123
|
}).nullable(),
|
|
17043
|
-
points: array(QueryPointSchema).readonly()
|
|
17124
|
+
points: array(QueryPointSchema).readonly(),
|
|
17125
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17126
|
+
derivedFrom: string().nullable()
|
|
17044
17127
|
});
|
|
17045
17128
|
/** The window part of a query, shared by the device and node forms. */
|
|
17046
17129
|
var QueryWindowShape = {
|
|
@@ -17056,6 +17139,23 @@ var QueryResultSchema = object({
|
|
|
17056
17139
|
series: array(QuerySeriesSchema).readonly(),
|
|
17057
17140
|
truncated: boolean()
|
|
17058
17141
|
});
|
|
17142
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17143
|
+
var QueryManyItemSchema = union([object({
|
|
17144
|
+
deviceId: number().int(),
|
|
17145
|
+
key: string(),
|
|
17146
|
+
scope: string().optional()
|
|
17147
|
+
}), object({
|
|
17148
|
+
forNodeId: string().min(1),
|
|
17149
|
+
key: string(),
|
|
17150
|
+
scope: string().optional()
|
|
17151
|
+
})]);
|
|
17152
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17153
|
+
ok: literal(true),
|
|
17154
|
+
result: QueryResultSchema
|
|
17155
|
+
}), object({
|
|
17156
|
+
ok: literal(false),
|
|
17157
|
+
error: string()
|
|
17158
|
+
})]);
|
|
17059
17159
|
var TierStatusSchema = object({
|
|
17060
17160
|
tier: DeviceHistoryResolutionSchema,
|
|
17061
17161
|
/** `null` until the first background count answered. */
|
|
@@ -17111,16 +17211,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17111
17211
|
lastRefreshAt: number().nullable()
|
|
17112
17212
|
})
|
|
17113
17213
|
});
|
|
17114
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17214
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17115
17215
|
deviceId: number().int(),
|
|
17116
17216
|
...QueryWindowShape
|
|
17117
17217
|
}), QueryResultSchema), method(object({
|
|
17118
|
-
|
|
17218
|
+
forNodeId: string().min(1),
|
|
17119
17219
|
...QueryWindowShape
|
|
17120
17220
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17221
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17222
|
+
from: QueryWindowShape.from,
|
|
17223
|
+
to: QueryWindowShape.to,
|
|
17224
|
+
resolution: QueryWindowShape.resolution,
|
|
17225
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17226
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17121
17227
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17122
17228
|
subjectKind: _enum(["device", "node"]),
|
|
17123
|
-
kind:
|
|
17229
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17124
17230
|
unit: string().optional(),
|
|
17125
17231
|
displayName: string().min(1),
|
|
17126
17232
|
ingest: _enum(["points", "buckets"])
|
|
@@ -39919,38 +40025,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
39919
40025
|
auth: "admin",
|
|
39920
40026
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
39921
40027
|
});
|
|
40028
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40029
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40030
|
+
var LlmModelFeaturesSchema = object({
|
|
40031
|
+
vision: boolean(),
|
|
40032
|
+
tools: boolean(),
|
|
40033
|
+
streaming: boolean()
|
|
40034
|
+
});
|
|
40035
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40036
|
+
var LlmModelInfoSchema = object({
|
|
40037
|
+
id: string(),
|
|
40038
|
+
label: string().optional(),
|
|
40039
|
+
contextLength: number().int().positive().optional(),
|
|
40040
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40041
|
+
});
|
|
39922
40042
|
/**
|
|
39923
|
-
*
|
|
39924
|
-
*
|
|
39925
|
-
*
|
|
39926
|
-
*
|
|
39927
|
-
* (hub-placed); the cap stays open for future providers.
|
|
39928
|
-
*
|
|
39929
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
39930
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
39931
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40043
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40044
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40045
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40046
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
39932
40047
|
*/
|
|
39933
|
-
var
|
|
39934
|
-
"openai-compatible",
|
|
39935
|
-
"openai",
|
|
39936
|
-
"anthropic",
|
|
39937
|
-
"google",
|
|
39938
|
-
"managed-local",
|
|
39939
|
-
"apple-foundation"
|
|
39940
|
-
]);
|
|
40048
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
39941
40049
|
var LlmProfileSchema = object({
|
|
39942
40050
|
id: string(),
|
|
39943
40051
|
name: string(),
|
|
40052
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
39944
40053
|
kind: LlmProfileKindSchema,
|
|
39945
40054
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
39946
40055
|
addonId: string(),
|
|
39947
40056
|
enabled: boolean(),
|
|
39948
40057
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
39949
40058
|
model: string(),
|
|
39950
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
39951
|
-
baseUrl: string().optional(),
|
|
39952
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
39953
|
-
apiKey: string().optional(),
|
|
39954
40059
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
39955
40060
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
39956
40061
|
* question about a picture nobody sent. */
|
|
@@ -39958,15 +40063,11 @@ var LlmProfileSchema = object({
|
|
|
39958
40063
|
temperature: number().min(0).max(2).optional(),
|
|
39959
40064
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
39960
40065
|
topP: number().min(0).max(1).optional(),
|
|
39961
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
39962
|
-
*
|
|
39963
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
39964
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40066
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40067
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
39965
40068
|
topK: number().int().positive().optional(),
|
|
39966
40069
|
maxTokens: number().int().positive().optional(),
|
|
39967
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
39968
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
39969
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40070
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
39970
40071
|
contextLength: number().int().positive().optional(),
|
|
39971
40072
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
39972
40073
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -39992,16 +40093,37 @@ var LlmProfileSchema = object({
|
|
|
39992
40093
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
39993
40094
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
39994
40095
|
toolsEnabled: boolean().default(false),
|
|
39995
|
-
|
|
39996
|
-
|
|
39997
|
-
|
|
39998
|
-
|
|
39999
|
-
|
|
40000
|
-
|
|
40001
|
-
|
|
40002
|
-
|
|
40003
|
-
|
|
40004
|
-
|
|
40096
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40097
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40098
|
+
});
|
|
40099
|
+
/**
|
|
40100
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40101
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40102
|
+
*/
|
|
40103
|
+
var LlmProfileFieldSchema = _enum([
|
|
40104
|
+
"temperature",
|
|
40105
|
+
"topP",
|
|
40106
|
+
"topK",
|
|
40107
|
+
"maxTokens",
|
|
40108
|
+
"contextLength",
|
|
40109
|
+
"systemPrompt",
|
|
40110
|
+
"timeoutMs",
|
|
40111
|
+
"connectTimeoutMs",
|
|
40112
|
+
"firstTokenTimeoutMs",
|
|
40113
|
+
"idleTimeoutMs",
|
|
40114
|
+
"retry",
|
|
40115
|
+
"toolsEnabled"
|
|
40116
|
+
]);
|
|
40117
|
+
/**
|
|
40118
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40119
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40120
|
+
* picker: that widget owns the model choice.
|
|
40121
|
+
*/
|
|
40122
|
+
var LlmProviderWidgetSchema = object({
|
|
40123
|
+
id: string(),
|
|
40124
|
+
placement: _enum(["connection", "model"]),
|
|
40125
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40126
|
+
requires: array(string()).optional()
|
|
40005
40127
|
});
|
|
40006
40128
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40007
40129
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40010,11 +40132,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40010
40132
|
var LlmProfileKindDescriptorSchema = object({
|
|
40011
40133
|
kind: LlmProfileKindSchema,
|
|
40012
40134
|
label: string(),
|
|
40135
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40013
40136
|
icon: string(),
|
|
40014
40137
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40015
40138
|
addonId: string(),
|
|
40016
|
-
|
|
40139
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40140
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40141
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40142
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40143
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40144
|
+
features: LlmModelFeaturesSchema,
|
|
40145
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40146
|
+
visionEditable: boolean(),
|
|
40147
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40148
|
+
modelCatalog: _enum([
|
|
40149
|
+
"fetch",
|
|
40150
|
+
"static",
|
|
40151
|
+
"none"
|
|
40152
|
+
]),
|
|
40153
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40154
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40155
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40156
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40017
40157
|
});
|
|
40158
|
+
/**
|
|
40159
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40160
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40161
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40162
|
+
* stored profile — the browser never receives it.
|
|
40163
|
+
*/
|
|
40164
|
+
var LlmListModelsInputSchema = object({
|
|
40165
|
+
addonId: string(),
|
|
40166
|
+
kind: LlmProfileKindSchema,
|
|
40167
|
+
profileId: string().optional(),
|
|
40168
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40169
|
+
});
|
|
40170
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40171
|
+
"auth",
|
|
40172
|
+
"network",
|
|
40173
|
+
"unsupported",
|
|
40174
|
+
"invalid"
|
|
40175
|
+
]);
|
|
40176
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40177
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40178
|
+
ok: literal(true),
|
|
40179
|
+
models: array(LlmModelInfoSchema)
|
|
40180
|
+
}), object({
|
|
40181
|
+
ok: literal(false),
|
|
40182
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40183
|
+
message: string()
|
|
40184
|
+
})]);
|
|
40018
40185
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40019
40186
|
var LlmDefaultSchema = object({
|
|
40020
40187
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40114,7 +40281,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40114
40281
|
kind: "mutation",
|
|
40115
40282
|
auth: "admin",
|
|
40116
40283
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40117
|
-
}), method(
|
|
40284
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40285
|
+
kind: "mutation",
|
|
40286
|
+
auth: "admin"
|
|
40287
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40118
40288
|
selector: LlmDefaultSelectorSchema,
|
|
40119
40289
|
profileId: string().nullable()
|
|
40120
40290
|
}), _void(), {
|
|
@@ -40282,14 +40452,106 @@ var LogEntrySchema = object({
|
|
|
40282
40452
|
meta: record(string(), unknown()).optional(),
|
|
40283
40453
|
tags: record(string(), string()).optional()
|
|
40284
40454
|
});
|
|
40285
|
-
|
|
40286
|
-
|
|
40455
|
+
/**
|
|
40456
|
+
* A history READ against one destination (D898).
|
|
40457
|
+
*
|
|
40458
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40459
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40460
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40461
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40462
|
+
* nanosecond timestamp for Loki.
|
|
40463
|
+
*
|
|
40464
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40465
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40466
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40467
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40468
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40469
|
+
*/
|
|
40470
|
+
var LogReadQuerySchema = object({
|
|
40471
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40472
|
+
requestId: string().min(1).max(64).optional(),
|
|
40473
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40474
|
+
deviceId: number().int().optional(),
|
|
40475
|
+
/**
|
|
40476
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40477
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40478
|
+
*/
|
|
40479
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40480
|
+
/**
|
|
40481
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40482
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40483
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40484
|
+
* name as "which node's provider".
|
|
40485
|
+
*/
|
|
40486
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40487
|
+
/** Any other tag, exact match (AND). */
|
|
40488
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40489
|
+
/** Severity FLOOR: this level and above. */
|
|
40287
40490
|
level: LogLevelSchema.optional(),
|
|
40288
|
-
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
|
|
40292
|
-
|
|
40491
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40492
|
+
text: string().min(1).max(200).optional(),
|
|
40493
|
+
/** Epoch ms, inclusive. */
|
|
40494
|
+
since: number().optional(),
|
|
40495
|
+
/** Epoch ms, inclusive. */
|
|
40496
|
+
until: number().optional(),
|
|
40497
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40498
|
+
before: string().min(1).max(1024).optional(),
|
|
40499
|
+
/** Newer than this cursor (exclusive). */
|
|
40500
|
+
after: string().min(1).max(1024).optional(),
|
|
40501
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40502
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40503
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40504
|
+
});
|
|
40505
|
+
var LogReadResultSchema = object({
|
|
40506
|
+
/** Newest first. */
|
|
40507
|
+
entries: array(object({
|
|
40508
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40509
|
+
id: string().optional(),
|
|
40510
|
+
/** Epoch ms. */
|
|
40511
|
+
timestamp: number(),
|
|
40512
|
+
level: LogLevelSchema,
|
|
40513
|
+
scope: string().optional(),
|
|
40514
|
+
message: string(),
|
|
40515
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40516
|
+
meta: record(string(), unknown()).optional()
|
|
40517
|
+
})),
|
|
40518
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40519
|
+
nextBefore: string().nullable(),
|
|
40520
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40521
|
+
nextAfter: string().nullable(),
|
|
40522
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40523
|
+
scannedBytes: number().int().nonnegative(),
|
|
40524
|
+
/**
|
|
40525
|
+
* True when the scan in this direction reached the end of the store.
|
|
40526
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40527
|
+
* call again with `nextBefore` to go on.
|
|
40528
|
+
*/
|
|
40529
|
+
done: boolean(),
|
|
40530
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40531
|
+
cancelled: boolean().optional()
|
|
40532
|
+
});
|
|
40533
|
+
var LogReadCapabilitiesSchema = object({
|
|
40534
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40535
|
+
readable: boolean(),
|
|
40536
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40537
|
+
reason: string().nullable(),
|
|
40538
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40539
|
+
filters: object({
|
|
40540
|
+
deviceId: boolean(),
|
|
40541
|
+
addonId: boolean(),
|
|
40542
|
+
nodeId: boolean(),
|
|
40543
|
+
tags: boolean(),
|
|
40544
|
+
level: boolean(),
|
|
40545
|
+
text: boolean(),
|
|
40546
|
+
timeRange: boolean()
|
|
40547
|
+
}),
|
|
40548
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40549
|
+
retentionDays: number().nullable()
|
|
40550
|
+
});
|
|
40551
|
+
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() }), {
|
|
40552
|
+
kind: "mutation",
|
|
40553
|
+
auth: "admin"
|
|
40554
|
+
});
|
|
40293
40555
|
/**
|
|
40294
40556
|
* `login-method` — collection cap through which auth addons contribute
|
|
40295
40557
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42007,9 +42269,11 @@ var alarmPanelCapability = {
|
|
|
42007
42269
|
*/
|
|
42008
42270
|
durability: "restored",
|
|
42009
42271
|
/**
|
|
42010
|
-
* History (D850):
|
|
42272
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42273
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42274
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42011
42275
|
*/
|
|
42012
|
-
history: "
|
|
42276
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42013
42277
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42014
42278
|
* whether persisting is worth a SQLite commit. */
|
|
42015
42279
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -42887,6 +43151,33 @@ var NcRuleTargetSchema = object({
|
|
|
42887
43151
|
params: record(string(), unknown()).optional()
|
|
42888
43152
|
});
|
|
42889
43153
|
/**
|
|
43154
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43155
|
+
*
|
|
43156
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43157
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43158
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43159
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43160
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43161
|
+
* labelled with class and confidence ("dog 87%").
|
|
43162
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43163
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43164
|
+
* - `none` — no picture.
|
|
43165
|
+
*
|
|
43166
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43167
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43168
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43169
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43170
|
+
* stored kind had landed.
|
|
43171
|
+
*/
|
|
43172
|
+
var NcMediaImageSchema = _enum([
|
|
43173
|
+
"scene-boxes",
|
|
43174
|
+
"crop",
|
|
43175
|
+
"clean",
|
|
43176
|
+
"none"
|
|
43177
|
+
]);
|
|
43178
|
+
/**
|
|
43179
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43180
|
+
*
|
|
42890
43181
|
* Media attachment policy (P1 still-image subset).
|
|
42891
43182
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42892
43183
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42900,6 +43191,8 @@ var NcRuleTargetSchema = object({
|
|
|
42900
43191
|
* - `none` — no attachment.
|
|
42901
43192
|
*/
|
|
42902
43193
|
/**
|
|
43194
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43195
|
+
*
|
|
42903
43196
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42904
43197
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42905
43198
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42928,16 +43221,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42928
43221
|
*/
|
|
42929
43222
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42930
43223
|
var NcMediaPolicySchema = object({
|
|
43224
|
+
/**
|
|
43225
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43226
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43227
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43228
|
+
*/
|
|
43229
|
+
image: NcMediaImageSchema.optional(),
|
|
43230
|
+
/**
|
|
43231
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43232
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43233
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43234
|
+
* Replaces `zoneCrop`.
|
|
43235
|
+
*/
|
|
43236
|
+
showTriggerZone: boolean().optional(),
|
|
43237
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42931
43238
|
attach: _enum([
|
|
42932
43239
|
"best",
|
|
42933
43240
|
"best-matching",
|
|
42934
43241
|
"keyFrame",
|
|
42935
43242
|
"none"
|
|
42936
|
-
]).
|
|
42937
|
-
/**
|
|
43243
|
+
]).optional(),
|
|
43244
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42938
43245
|
frame: NcMediaFrameSchema.optional(),
|
|
42939
|
-
/**
|
|
42940
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43246
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42941
43247
|
zoneCrop: boolean().optional(),
|
|
42942
43248
|
/**
|
|
42943
43249
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43109,7 +43415,9 @@ var NcRuleInputSchema = object({
|
|
|
43109
43415
|
* targets.
|
|
43110
43416
|
*/
|
|
43111
43417
|
targetUsers: array(string()).optional(),
|
|
43112
|
-
|
|
43418
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43419
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43420
|
+
media: NcMediaPolicySchema.default({}),
|
|
43113
43421
|
throttle: NcThrottleSchema.default({
|
|
43114
43422
|
cooldownSec: 60,
|
|
43115
43423
|
scope: "rule-device"
|
|
@@ -44046,13 +44354,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44046
44354
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44047
44355
|
unknown: array(number().int())
|
|
44048
44356
|
});
|
|
44357
|
+
/**
|
|
44358
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44359
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44360
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44361
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44362
|
+
*/
|
|
44363
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44364
|
+
ruleId: string(),
|
|
44365
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44366
|
+
ruleName: string(),
|
|
44367
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44368
|
+
deviceId: number().int(),
|
|
44369
|
+
/** The input's current name. */
|
|
44370
|
+
name: string(),
|
|
44371
|
+
/** When it was bypassed (ms epoch). */
|
|
44372
|
+
since: number(),
|
|
44373
|
+
/** Triggers from this input dropped since. */
|
|
44374
|
+
dropped: number().int().min(0)
|
|
44375
|
+
});
|
|
44049
44376
|
var NcAlarmLiveSchema = object({
|
|
44050
44377
|
state: AlarmStateSchema,
|
|
44051
44378
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44052
44379
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44053
44380
|
availableModes: array(AlarmArmModeSchema),
|
|
44054
44381
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44055
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44382
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44383
|
+
/**
|
|
44384
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44385
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44386
|
+
*/
|
|
44387
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44056
44388
|
});
|
|
44057
44389
|
var NcAlarmConfigSchema = object({
|
|
44058
44390
|
/**
|
|
@@ -54779,9 +55111,11 @@ var connectivityCapability = {
|
|
|
54779
55111
|
*/
|
|
54780
55112
|
durability: "restored",
|
|
54781
55113
|
/**
|
|
54782
|
-
* History (D850):
|
|
55114
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55115
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55116
|
+
* device's reachability, which stays `device-status.online`.
|
|
54783
55117
|
*/
|
|
54784
|
-
history: "
|
|
55118
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54785
55119
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54786
55120
|
* whether persisting is worth a SQLite commit. */
|
|
54787
55121
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55605,11 +55939,22 @@ var dishwasherCapability = {
|
|
|
55605
55939
|
},
|
|
55606
55940
|
runtimeState: DishwasherStatusSchema,
|
|
55607
55941
|
durability: "session",
|
|
55608
|
-
history: { fields: {
|
|
55609
|
-
|
|
55610
|
-
|
|
55611
|
-
|
|
55612
|
-
|
|
55942
|
+
history: { fields: {
|
|
55943
|
+
progressPercent: {
|
|
55944
|
+
kind: "gauge",
|
|
55945
|
+
unit: "%",
|
|
55946
|
+
deadband: 2
|
|
55947
|
+
},
|
|
55948
|
+
state: { kind: "enum" },
|
|
55949
|
+
operationState: { kind: "enum" },
|
|
55950
|
+
remainingSeconds: {
|
|
55951
|
+
kind: "gauge",
|
|
55952
|
+
unit: "s",
|
|
55953
|
+
minIntervalMs: 6e4
|
|
55954
|
+
},
|
|
55955
|
+
doorOpen: { kind: "boolean" },
|
|
55956
|
+
powerOn: { kind: "boolean" }
|
|
55957
|
+
} }
|
|
55613
55958
|
};
|
|
55614
55959
|
var DoorbellStatusSchema = object({
|
|
55615
55960
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55726,9 +56071,15 @@ var enumSensorCapability = {
|
|
|
55726
56071
|
*/
|
|
55727
56072
|
durability: "restored",
|
|
55728
56073
|
/**
|
|
55729
|
-
* History (D850):
|
|
56074
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56075
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56076
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56077
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55730
56078
|
*/
|
|
55731
|
-
history:
|
|
56079
|
+
history: { fields: { value: {
|
|
56080
|
+
kind: "enum",
|
|
56081
|
+
skipWhenSet: "format"
|
|
56082
|
+
} } },
|
|
55732
56083
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55733
56084
|
* whether persisting is worth a SQLite commit. */
|
|
55734
56085
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57702,9 +58053,10 @@ var lockControlCapability = {
|
|
|
57702
58053
|
*/
|
|
57703
58054
|
durability: "restored",
|
|
57704
58055
|
/**
|
|
57705
|
-
* History (D850):
|
|
58056
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58057
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57706
58058
|
*/
|
|
57707
|
-
history: "
|
|
58059
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57708
58060
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57709
58061
|
* whether persisting is worth a SQLite commit. */
|
|
57710
58062
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -57878,9 +58230,18 @@ var mediaPlayerCapability = {
|
|
|
57878
58230
|
*/
|
|
57879
58231
|
durability: "session",
|
|
57880
58232
|
/**
|
|
57881
|
-
* History (D850):
|
|
58233
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58234
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58235
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
57882
58236
|
*/
|
|
57883
|
-
history:
|
|
58237
|
+
history: { fields: {
|
|
58238
|
+
volumeLevel: {
|
|
58239
|
+
kind: "gauge",
|
|
58240
|
+
unit: "%",
|
|
58241
|
+
deadband: 1
|
|
58242
|
+
},
|
|
58243
|
+
isMuted: { kind: "boolean" }
|
|
58244
|
+
} }
|
|
57884
58245
|
};
|
|
57885
58246
|
/**
|
|
57886
58247
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63173,9 +63534,29 @@ var streamParamsCapability = {
|
|
|
63173
63534
|
*/
|
|
63174
63535
|
durability: "restored",
|
|
63175
63536
|
/**
|
|
63176
|
-
* History (D850):
|
|
63537
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63538
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63539
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63540
|
+
* quality over time must show.
|
|
63177
63541
|
*/
|
|
63178
|
-
history:
|
|
63542
|
+
history: { fields: {
|
|
63543
|
+
"main.bitrate": {
|
|
63544
|
+
kind: "gauge",
|
|
63545
|
+
unit: "kbps"
|
|
63546
|
+
},
|
|
63547
|
+
"main.framerate": {
|
|
63548
|
+
kind: "gauge",
|
|
63549
|
+
unit: "fps"
|
|
63550
|
+
},
|
|
63551
|
+
"sub.bitrate": {
|
|
63552
|
+
kind: "gauge",
|
|
63553
|
+
unit: "kbps"
|
|
63554
|
+
},
|
|
63555
|
+
"sub.framerate": {
|
|
63556
|
+
kind: "gauge",
|
|
63557
|
+
unit: "fps"
|
|
63558
|
+
}
|
|
63559
|
+
} },
|
|
63179
63560
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63180
63561
|
* whether persisting is worth a SQLite commit. */
|
|
63181
63562
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64010,26 +64391,6 @@ var ApiKeySummarySchema = object({
|
|
|
64010
64391
|
createdAt: number(),
|
|
64011
64392
|
lastUsedAt: number().optional()
|
|
64012
64393
|
});
|
|
64013
|
-
var ScopedTokenSummarySchema = object({
|
|
64014
|
-
id: string(),
|
|
64015
|
-
userId: string(),
|
|
64016
|
-
name: string(),
|
|
64017
|
-
tokenPrefix: string(),
|
|
64018
|
-
scopes: array(TokenScopeSchema),
|
|
64019
|
-
expiresAt: number().nullish(),
|
|
64020
|
-
lastUsedAt: number().nullish(),
|
|
64021
|
-
createdAt: number()
|
|
64022
|
-
});
|
|
64023
|
-
var CreateScopedTokenInputSchema = object({
|
|
64024
|
-
userId: string(),
|
|
64025
|
-
name: string(),
|
|
64026
|
-
scopes: array(TokenScopeSchema),
|
|
64027
|
-
expiresAt: number().optional()
|
|
64028
|
-
});
|
|
64029
|
-
var CreateScopedTokenResultSchema = object({
|
|
64030
|
-
token: string(),
|
|
64031
|
-
record: ScopedTokenSummarySchema
|
|
64032
|
-
});
|
|
64033
64394
|
var OauthSessionSummarySchema = object({
|
|
64034
64395
|
id: string(),
|
|
64035
64396
|
userId: string(),
|
|
@@ -64051,11 +64412,11 @@ var TotpStatusSchema = object({
|
|
|
64051
64412
|
confirmedAt: number().nullable()
|
|
64052
64413
|
});
|
|
64053
64414
|
/**
|
|
64054
|
-
* user-management — singleton capability for user accounts
|
|
64055
|
-
*
|
|
64415
|
+
* user-management — singleton capability for user accounts and the
|
|
64416
|
+
* legacy API-key rows.
|
|
64056
64417
|
*
|
|
64057
64418
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64058
|
-
* — the subset check on `setUserScopes`
|
|
64419
|
+
* — the subset check on `setUserScopes` is moot
|
|
64059
64420
|
* because non-admins never reach these. If/when we open non-admin
|
|
64060
64421
|
* delegation, structural caller-scope subset check goes inside the
|
|
64061
64422
|
* provider.
|
|
@@ -64112,15 +64473,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64112
64473
|
kind: "mutation",
|
|
64113
64474
|
auth: "admin",
|
|
64114
64475
|
access: "delete"
|
|
64115
|
-
}), method(
|
|
64116
|
-
kind: "mutation",
|
|
64117
|
-
auth: "admin",
|
|
64118
|
-
access: "create"
|
|
64119
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64120
|
-
kind: "mutation",
|
|
64121
|
-
auth: "admin",
|
|
64122
|
-
access: "delete"
|
|
64123
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64476
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64124
64477
|
kind: "mutation",
|
|
64125
64478
|
auth: "admin",
|
|
64126
64479
|
access: "create"
|
|
@@ -66381,6 +66734,15 @@ var BaseDevice$1 = class {
|
|
|
66381
66734
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66382
66735
|
* with a typed cast.
|
|
66383
66736
|
*
|
|
66737
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66738
|
+
* while this device is `online` and probed; return
|
|
66739
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66740
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66741
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66742
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66743
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66744
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66745
|
+
*
|
|
66384
66746
|
* Default: no children.
|
|
66385
66747
|
*/
|
|
66386
66748
|
getAccessoryChildren() {
|
|
@@ -70210,7 +70572,7 @@ Object.freeze({
|
|
|
70210
70572
|
capName: "llm",
|
|
70211
70573
|
capScope: "system",
|
|
70212
70574
|
addonId: null,
|
|
70213
|
-
access: "
|
|
70575
|
+
access: "create"
|
|
70214
70576
|
},
|
|
70215
70577
|
"llm.listNodeModels": {
|
|
70216
70578
|
capName: "llm",
|
|
@@ -70512,7 +70874,19 @@ Object.freeze({
|
|
|
70512
70874
|
addonId: null,
|
|
70513
70875
|
access: "view"
|
|
70514
70876
|
},
|
|
70515
|
-
"logDestination.
|
|
70877
|
+
"logDestination.cancelRead": {
|
|
70878
|
+
capName: "log-destination",
|
|
70879
|
+
capScope: "system",
|
|
70880
|
+
addonId: null,
|
|
70881
|
+
access: "create"
|
|
70882
|
+
},
|
|
70883
|
+
"logDestination.describeRead": {
|
|
70884
|
+
capName: "log-destination",
|
|
70885
|
+
capScope: "system",
|
|
70886
|
+
addonId: null,
|
|
70887
|
+
access: "view"
|
|
70888
|
+
},
|
|
70889
|
+
"logDestination.read": {
|
|
70516
70890
|
capName: "log-destination",
|
|
70517
70891
|
capScope: "system",
|
|
70518
70892
|
addonId: null,
|
|
@@ -74874,12 +75248,6 @@ Object.freeze({
|
|
|
74874
75248
|
addonId: null,
|
|
74875
75249
|
access: "create"
|
|
74876
75250
|
},
|
|
74877
|
-
"userManagement.createScopedToken": {
|
|
74878
|
-
capName: "user-management",
|
|
74879
|
-
capScope: "system",
|
|
74880
|
-
addonId: null,
|
|
74881
|
-
access: "create"
|
|
74882
|
-
},
|
|
74883
75251
|
"userManagement.createUser": {
|
|
74884
75252
|
capName: "user-management",
|
|
74885
75253
|
capScope: "system",
|
|
@@ -74928,12 +75296,6 @@ Object.freeze({
|
|
|
74928
75296
|
addonId: null,
|
|
74929
75297
|
access: "view"
|
|
74930
75298
|
},
|
|
74931
|
-
"userManagement.listScopedTokens": {
|
|
74932
|
-
capName: "user-management",
|
|
74933
|
-
capScope: "system",
|
|
74934
|
-
addonId: null,
|
|
74935
|
-
access: "view"
|
|
74936
|
-
},
|
|
74937
75299
|
"userManagement.listUsers": {
|
|
74938
75300
|
capName: "user-management",
|
|
74939
75301
|
capScope: "system",
|
|
@@ -74988,12 +75350,6 @@ Object.freeze({
|
|
|
74988
75350
|
addonId: null,
|
|
74989
75351
|
access: "delete"
|
|
74990
75352
|
},
|
|
74991
|
-
"userManagement.revokeScopedToken": {
|
|
74992
|
-
capName: "user-management",
|
|
74993
|
-
capScope: "system",
|
|
74994
|
-
addonId: null,
|
|
74995
|
-
access: "delete"
|
|
74996
|
-
},
|
|
74997
75353
|
"userManagement.setupTotp": {
|
|
74998
75354
|
capName: "user-management",
|
|
74999
75355
|
capScope: "system",
|
|
@@ -75024,12 +75380,6 @@ Object.freeze({
|
|
|
75024
75380
|
addonId: null,
|
|
75025
75381
|
access: "view"
|
|
75026
75382
|
},
|
|
75027
|
-
"userManagement.validateScopedToken": {
|
|
75028
|
-
capName: "user-management",
|
|
75029
|
-
capScope: "system",
|
|
75030
|
-
addonId: null,
|
|
75031
|
-
access: "view"
|
|
75032
|
-
},
|
|
75033
75383
|
"userManagement.verifyTotp": {
|
|
75034
75384
|
capName: "user-management",
|
|
75035
75385
|
capScope: "system",
|
|
@@ -76543,6 +76893,11 @@ Object.freeze({
|
|
|
76543
76893
|
form: "single",
|
|
76544
76894
|
optional: false
|
|
76545
76895
|
}],
|
|
76896
|
+
"logDestination.read": [{
|
|
76897
|
+
name: "deviceId",
|
|
76898
|
+
form: "single",
|
|
76899
|
+
optional: true
|
|
76900
|
+
}],
|
|
76546
76901
|
"mediaPlayer.getStatus": [{
|
|
76547
76902
|
name: "deviceId",
|
|
76548
76903
|
form: "single",
|