@camstack/addon-provider-bosch 0.1.4 → 0.1.6
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/{account-integration-offline-DKdrL0V9.mjs → account-integration-offline-BTR3H0Hn.mjs} +1 -1
- package/dist/{account-integration-offline-C_Tvsemc.js → account-integration-offline-Bba0sEkT.js} +1 -1
- package/dist/{dist-LJMt_ZXW.mjs → dist-CWrnWIxD.mjs} +496 -141
- package/dist/{dist-BsKpHOt8.js → dist-CWtMn1_5.js} +496 -141
- package/dist/home-connect/addon.js +42 -14
- package/dist/home-connect/addon.mjs +42 -14
- package/dist/homecom/addon.js +2 -2
- package/dist/homecom/addon.mjs +2 -2
- package/dist/shc/addon.js +1 -1
- package/dist/shc/addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
|
|
|
5414
5414
|
var ZodFirstPartyTypeKind;
|
|
5415
5415
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5416
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
5417
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5418
5418
|
/**
|
|
5419
5419
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5420
5420
|
* window to float samples (D455).
|
|
@@ -7801,9 +7801,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7801
7801
|
return result;
|
|
7802
7802
|
}
|
|
7803
7803
|
/**
|
|
7804
|
-
* The share-view scope kinds a
|
|
7805
|
-
* and validates them (`
|
|
7806
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7804
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7805
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7806
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7807
7807
|
*/
|
|
7808
7808
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7809
7809
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12515,7 +12515,7 @@ var ConvertResultSchema = object({
|
|
|
12515
12515
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12516
12516
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12517
12517
|
* distinction was only ever used to route role-specific procedures
|
|
12518
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12518
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12519
12519
|
* with `isAdmin: false` + an explicit scope list.
|
|
12520
12520
|
*/
|
|
12521
12521
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12704,10 +12704,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12704
12704
|
type: literal("addon-routes"),
|
|
12705
12705
|
access: array(MethodAccessSchema).min(1)
|
|
12706
12706
|
});
|
|
12707
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12707
12708
|
var CredentialScopeSchema = union([
|
|
12708
12709
|
literal("*"),
|
|
12709
12710
|
ShareViewScopeSchema,
|
|
12710
12711
|
AddonRoutesScopeSchema,
|
|
12712
|
+
PreferencesSelfScopeSchema,
|
|
12711
12713
|
TokenScopeSchema
|
|
12712
12714
|
]);
|
|
12713
12715
|
object({
|
|
@@ -12716,6 +12718,55 @@ object({
|
|
|
12716
12718
|
jti: string().min(16),
|
|
12717
12719
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12718
12720
|
});
|
|
12721
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12722
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12723
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12724
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12725
|
+
/** A stored row, as the owner reads it. */
|
|
12726
|
+
var PreferenceRowSchema = object({
|
|
12727
|
+
namespace: PreferenceNamespaceSchema,
|
|
12728
|
+
value: PreferenceValueSchema,
|
|
12729
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12730
|
+
revision: number().int().positive(),
|
|
12731
|
+
updatedAt: number().int(),
|
|
12732
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12733
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12734
|
+
});
|
|
12735
|
+
object({
|
|
12736
|
+
/** Absent: every namespace the caller holds. */
|
|
12737
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12738
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12739
|
+
object({
|
|
12740
|
+
namespace: PreferenceNamespaceSchema,
|
|
12741
|
+
value: PreferenceValueSchema,
|
|
12742
|
+
/**
|
|
12743
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12744
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12745
|
+
* revision answers `conflict` and writes nothing.
|
|
12746
|
+
*/
|
|
12747
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12748
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12749
|
+
});
|
|
12750
|
+
discriminatedUnion("status", [object({
|
|
12751
|
+
status: literal("saved"),
|
|
12752
|
+
row: PreferenceRowSchema
|
|
12753
|
+
}), object({
|
|
12754
|
+
status: literal("conflict"),
|
|
12755
|
+
current: PreferenceRowSchema.nullable()
|
|
12756
|
+
})]);
|
|
12757
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12758
|
+
object({
|
|
12759
|
+
/** `false` when the namespace did not exist. */
|
|
12760
|
+
deleted: boolean() });
|
|
12761
|
+
object({
|
|
12762
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12763
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12764
|
+
object({
|
|
12765
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12766
|
+
rows: array(PreferenceRowSchema),
|
|
12767
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12768
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12769
|
+
});
|
|
12719
12770
|
_enum(["new-session", "step-up"]);
|
|
12720
12771
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12721
12772
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -16969,7 +17020,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16969
17020
|
kind: literal("node"),
|
|
16970
17021
|
nodeId: string().min(1)
|
|
16971
17022
|
})]);
|
|
17023
|
+
/**
|
|
17024
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17025
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17026
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17027
|
+
*/
|
|
16972
17028
|
var DeviceHistoryKindSchema = _enum([
|
|
17029
|
+
"gauge",
|
|
17030
|
+
"counter",
|
|
17031
|
+
"boolean",
|
|
17032
|
+
"enum"
|
|
17033
|
+
]);
|
|
17034
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17035
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16973
17036
|
"gauge",
|
|
16974
17037
|
"counter",
|
|
16975
17038
|
"boolean"
|
|
@@ -17006,7 +17069,13 @@ var SeriesInfoSchema = object({
|
|
|
17006
17069
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17007
17070
|
unit: string().nullable(),
|
|
17008
17071
|
displayName: string(),
|
|
17009
|
-
source: _enum([
|
|
17072
|
+
source: _enum([
|
|
17073
|
+
"cap",
|
|
17074
|
+
"addon",
|
|
17075
|
+
"derived"
|
|
17076
|
+
]),
|
|
17077
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17078
|
+
values: array(string()).readonly().nullable(),
|
|
17010
17079
|
firstTs: number(),
|
|
17011
17080
|
lastTs: number()
|
|
17012
17081
|
});
|
|
@@ -17020,17 +17089,31 @@ var QueryPointSchema = object({
|
|
|
17020
17089
|
twMean: number().nullable(),
|
|
17021
17090
|
min: number(),
|
|
17022
17091
|
max: number(),
|
|
17023
|
-
/** `null` is unknown, never zero (D393). */
|
|
17024
|
-
last: number().nullable()
|
|
17092
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17093
|
+
last: number().nullable(),
|
|
17094
|
+
/**
|
|
17095
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17096
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17097
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17098
|
+
* every other kind, and when it cannot be known.
|
|
17099
|
+
*/
|
|
17100
|
+
delta: number().nullable(),
|
|
17101
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17102
|
+
state: string().nullable(),
|
|
17103
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17104
|
+
states: record(string(), number()).nullable()
|
|
17025
17105
|
});
|
|
17026
17106
|
var QuerySeriesSchema = object({
|
|
17027
17107
|
scope: string(),
|
|
17028
17108
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17029
17109
|
before: object({
|
|
17030
17110
|
t: number(),
|
|
17031
|
-
value: number().nullable()
|
|
17111
|
+
value: number().nullable(),
|
|
17112
|
+
state: string().nullable()
|
|
17032
17113
|
}).nullable(),
|
|
17033
|
-
points: array(QueryPointSchema).readonly()
|
|
17114
|
+
points: array(QueryPointSchema).readonly(),
|
|
17115
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17116
|
+
derivedFrom: string().nullable()
|
|
17034
17117
|
});
|
|
17035
17118
|
/** The window part of a query, shared by the device and node forms. */
|
|
17036
17119
|
var QueryWindowShape = {
|
|
@@ -17046,6 +17129,23 @@ var QueryResultSchema = object({
|
|
|
17046
17129
|
series: array(QuerySeriesSchema).readonly(),
|
|
17047
17130
|
truncated: boolean()
|
|
17048
17131
|
});
|
|
17132
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17133
|
+
var QueryManyItemSchema = union([object({
|
|
17134
|
+
deviceId: number().int(),
|
|
17135
|
+
key: string(),
|
|
17136
|
+
scope: string().optional()
|
|
17137
|
+
}), object({
|
|
17138
|
+
forNodeId: string().min(1),
|
|
17139
|
+
key: string(),
|
|
17140
|
+
scope: string().optional()
|
|
17141
|
+
})]);
|
|
17142
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17143
|
+
ok: literal(true),
|
|
17144
|
+
result: QueryResultSchema
|
|
17145
|
+
}), object({
|
|
17146
|
+
ok: literal(false),
|
|
17147
|
+
error: string()
|
|
17148
|
+
})]);
|
|
17049
17149
|
var TierStatusSchema = object({
|
|
17050
17150
|
tier: DeviceHistoryResolutionSchema,
|
|
17051
17151
|
/** `null` until the first background count answered. */
|
|
@@ -17101,16 +17201,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17101
17201
|
lastRefreshAt: number().nullable()
|
|
17102
17202
|
})
|
|
17103
17203
|
});
|
|
17104
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17204
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17105
17205
|
deviceId: number().int(),
|
|
17106
17206
|
...QueryWindowShape
|
|
17107
17207
|
}), QueryResultSchema), method(object({
|
|
17108
|
-
|
|
17208
|
+
forNodeId: string().min(1),
|
|
17109
17209
|
...QueryWindowShape
|
|
17110
17210
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17211
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17212
|
+
from: QueryWindowShape.from,
|
|
17213
|
+
to: QueryWindowShape.to,
|
|
17214
|
+
resolution: QueryWindowShape.resolution,
|
|
17215
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17216
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17111
17217
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17112
17218
|
subjectKind: _enum(["device", "node"]),
|
|
17113
|
-
kind:
|
|
17219
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17114
17220
|
unit: string().optional(),
|
|
17115
17221
|
displayName: string().min(1),
|
|
17116
17222
|
ingest: _enum(["points", "buckets"])
|
|
@@ -39909,38 +40015,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
39909
40015
|
auth: "admin",
|
|
39910
40016
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
39911
40017
|
});
|
|
40018
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40019
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40020
|
+
var LlmModelFeaturesSchema = object({
|
|
40021
|
+
vision: boolean(),
|
|
40022
|
+
tools: boolean(),
|
|
40023
|
+
streaming: boolean()
|
|
40024
|
+
});
|
|
40025
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40026
|
+
var LlmModelInfoSchema = object({
|
|
40027
|
+
id: string(),
|
|
40028
|
+
label: string().optional(),
|
|
40029
|
+
contextLength: number().int().positive().optional(),
|
|
40030
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40031
|
+
});
|
|
39912
40032
|
/**
|
|
39913
|
-
*
|
|
39914
|
-
*
|
|
39915
|
-
*
|
|
39916
|
-
*
|
|
39917
|
-
* (hub-placed); the cap stays open for future providers.
|
|
39918
|
-
*
|
|
39919
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
39920
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
39921
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40033
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40034
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40035
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40036
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
39922
40037
|
*/
|
|
39923
|
-
var
|
|
39924
|
-
"openai-compatible",
|
|
39925
|
-
"openai",
|
|
39926
|
-
"anthropic",
|
|
39927
|
-
"google",
|
|
39928
|
-
"managed-local",
|
|
39929
|
-
"apple-foundation"
|
|
39930
|
-
]);
|
|
40038
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
39931
40039
|
var LlmProfileSchema = object({
|
|
39932
40040
|
id: string(),
|
|
39933
40041
|
name: string(),
|
|
40042
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
39934
40043
|
kind: LlmProfileKindSchema,
|
|
39935
40044
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
39936
40045
|
addonId: string(),
|
|
39937
40046
|
enabled: boolean(),
|
|
39938
40047
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
39939
40048
|
model: string(),
|
|
39940
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
39941
|
-
baseUrl: string().optional(),
|
|
39942
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
39943
|
-
apiKey: string().optional(),
|
|
39944
40049
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
39945
40050
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
39946
40051
|
* question about a picture nobody sent. */
|
|
@@ -39948,15 +40053,11 @@ var LlmProfileSchema = object({
|
|
|
39948
40053
|
temperature: number().min(0).max(2).optional(),
|
|
39949
40054
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
39950
40055
|
topP: number().min(0).max(1).optional(),
|
|
39951
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
39952
|
-
*
|
|
39953
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
39954
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40056
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40057
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
39955
40058
|
topK: number().int().positive().optional(),
|
|
39956
40059
|
maxTokens: number().int().positive().optional(),
|
|
39957
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
39958
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
39959
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40060
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
39960
40061
|
contextLength: number().int().positive().optional(),
|
|
39961
40062
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
39962
40063
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -39982,16 +40083,37 @@ var LlmProfileSchema = object({
|
|
|
39982
40083
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
39983
40084
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
39984
40085
|
toolsEnabled: boolean().default(false),
|
|
39985
|
-
|
|
39986
|
-
|
|
39987
|
-
|
|
39988
|
-
|
|
39989
|
-
|
|
39990
|
-
|
|
39991
|
-
|
|
39992
|
-
|
|
39993
|
-
|
|
39994
|
-
|
|
40086
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40087
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40088
|
+
});
|
|
40089
|
+
/**
|
|
40090
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40091
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40092
|
+
*/
|
|
40093
|
+
var LlmProfileFieldSchema = _enum([
|
|
40094
|
+
"temperature",
|
|
40095
|
+
"topP",
|
|
40096
|
+
"topK",
|
|
40097
|
+
"maxTokens",
|
|
40098
|
+
"contextLength",
|
|
40099
|
+
"systemPrompt",
|
|
40100
|
+
"timeoutMs",
|
|
40101
|
+
"connectTimeoutMs",
|
|
40102
|
+
"firstTokenTimeoutMs",
|
|
40103
|
+
"idleTimeoutMs",
|
|
40104
|
+
"retry",
|
|
40105
|
+
"toolsEnabled"
|
|
40106
|
+
]);
|
|
40107
|
+
/**
|
|
40108
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40109
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40110
|
+
* picker: that widget owns the model choice.
|
|
40111
|
+
*/
|
|
40112
|
+
var LlmProviderWidgetSchema = object({
|
|
40113
|
+
id: string(),
|
|
40114
|
+
placement: _enum(["connection", "model"]),
|
|
40115
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40116
|
+
requires: array(string()).optional()
|
|
39995
40117
|
});
|
|
39996
40118
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
39997
40119
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40000,11 +40122,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40000
40122
|
var LlmProfileKindDescriptorSchema = object({
|
|
40001
40123
|
kind: LlmProfileKindSchema,
|
|
40002
40124
|
label: string(),
|
|
40125
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40003
40126
|
icon: string(),
|
|
40004
40127
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40005
40128
|
addonId: string(),
|
|
40006
|
-
|
|
40129
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40130
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40131
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40132
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40133
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40134
|
+
features: LlmModelFeaturesSchema,
|
|
40135
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40136
|
+
visionEditable: boolean(),
|
|
40137
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40138
|
+
modelCatalog: _enum([
|
|
40139
|
+
"fetch",
|
|
40140
|
+
"static",
|
|
40141
|
+
"none"
|
|
40142
|
+
]),
|
|
40143
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40144
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40145
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40146
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40007
40147
|
});
|
|
40148
|
+
/**
|
|
40149
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40150
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40151
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40152
|
+
* stored profile — the browser never receives it.
|
|
40153
|
+
*/
|
|
40154
|
+
var LlmListModelsInputSchema = object({
|
|
40155
|
+
addonId: string(),
|
|
40156
|
+
kind: LlmProfileKindSchema,
|
|
40157
|
+
profileId: string().optional(),
|
|
40158
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40159
|
+
});
|
|
40160
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40161
|
+
"auth",
|
|
40162
|
+
"network",
|
|
40163
|
+
"unsupported",
|
|
40164
|
+
"invalid"
|
|
40165
|
+
]);
|
|
40166
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40167
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40168
|
+
ok: literal(true),
|
|
40169
|
+
models: array(LlmModelInfoSchema)
|
|
40170
|
+
}), object({
|
|
40171
|
+
ok: literal(false),
|
|
40172
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40173
|
+
message: string()
|
|
40174
|
+
})]);
|
|
40008
40175
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40009
40176
|
var LlmDefaultSchema = object({
|
|
40010
40177
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40104,7 +40271,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40104
40271
|
kind: "mutation",
|
|
40105
40272
|
auth: "admin",
|
|
40106
40273
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40107
|
-
}), method(
|
|
40274
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40275
|
+
kind: "mutation",
|
|
40276
|
+
auth: "admin"
|
|
40277
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40108
40278
|
selector: LlmDefaultSelectorSchema,
|
|
40109
40279
|
profileId: string().nullable()
|
|
40110
40280
|
}), _void(), {
|
|
@@ -40272,14 +40442,106 @@ var LogEntrySchema = object({
|
|
|
40272
40442
|
meta: record(string(), unknown()).optional(),
|
|
40273
40443
|
tags: record(string(), string()).optional()
|
|
40274
40444
|
});
|
|
40275
|
-
|
|
40276
|
-
|
|
40445
|
+
/**
|
|
40446
|
+
* A history READ against one destination (D898).
|
|
40447
|
+
*
|
|
40448
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40449
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40450
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40451
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40452
|
+
* nanosecond timestamp for Loki.
|
|
40453
|
+
*
|
|
40454
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40455
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40456
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40457
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40458
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40459
|
+
*/
|
|
40460
|
+
var LogReadQuerySchema = object({
|
|
40461
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40462
|
+
requestId: string().min(1).max(64).optional(),
|
|
40463
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40464
|
+
deviceId: number().int().optional(),
|
|
40465
|
+
/**
|
|
40466
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40467
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40468
|
+
*/
|
|
40469
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40470
|
+
/**
|
|
40471
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40472
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40473
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40474
|
+
* name as "which node's provider".
|
|
40475
|
+
*/
|
|
40476
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40477
|
+
/** Any other tag, exact match (AND). */
|
|
40478
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40479
|
+
/** Severity FLOOR: this level and above. */
|
|
40277
40480
|
level: LogLevelSchema.optional(),
|
|
40278
|
-
|
|
40279
|
-
|
|
40280
|
-
|
|
40281
|
-
|
|
40282
|
-
|
|
40481
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40482
|
+
text: string().min(1).max(200).optional(),
|
|
40483
|
+
/** Epoch ms, inclusive. */
|
|
40484
|
+
since: number().optional(),
|
|
40485
|
+
/** Epoch ms, inclusive. */
|
|
40486
|
+
until: number().optional(),
|
|
40487
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40488
|
+
before: string().min(1).max(1024).optional(),
|
|
40489
|
+
/** Newer than this cursor (exclusive). */
|
|
40490
|
+
after: string().min(1).max(1024).optional(),
|
|
40491
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40492
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40493
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40494
|
+
});
|
|
40495
|
+
var LogReadResultSchema = object({
|
|
40496
|
+
/** Newest first. */
|
|
40497
|
+
entries: array(object({
|
|
40498
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40499
|
+
id: string().optional(),
|
|
40500
|
+
/** Epoch ms. */
|
|
40501
|
+
timestamp: number(),
|
|
40502
|
+
level: LogLevelSchema,
|
|
40503
|
+
scope: string().optional(),
|
|
40504
|
+
message: string(),
|
|
40505
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40506
|
+
meta: record(string(), unknown()).optional()
|
|
40507
|
+
})),
|
|
40508
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40509
|
+
nextBefore: string().nullable(),
|
|
40510
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40511
|
+
nextAfter: string().nullable(),
|
|
40512
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40513
|
+
scannedBytes: number().int().nonnegative(),
|
|
40514
|
+
/**
|
|
40515
|
+
* True when the scan in this direction reached the end of the store.
|
|
40516
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40517
|
+
* call again with `nextBefore` to go on.
|
|
40518
|
+
*/
|
|
40519
|
+
done: boolean(),
|
|
40520
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40521
|
+
cancelled: boolean().optional()
|
|
40522
|
+
});
|
|
40523
|
+
var LogReadCapabilitiesSchema = object({
|
|
40524
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40525
|
+
readable: boolean(),
|
|
40526
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40527
|
+
reason: string().nullable(),
|
|
40528
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40529
|
+
filters: object({
|
|
40530
|
+
deviceId: boolean(),
|
|
40531
|
+
addonId: boolean(),
|
|
40532
|
+
nodeId: boolean(),
|
|
40533
|
+
tags: boolean(),
|
|
40534
|
+
level: boolean(),
|
|
40535
|
+
text: boolean(),
|
|
40536
|
+
timeRange: boolean()
|
|
40537
|
+
}),
|
|
40538
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40539
|
+
retentionDays: number().nullable()
|
|
40540
|
+
});
|
|
40541
|
+
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() }), {
|
|
40542
|
+
kind: "mutation",
|
|
40543
|
+
auth: "admin"
|
|
40544
|
+
});
|
|
40283
40545
|
/**
|
|
40284
40546
|
* `login-method` — collection cap through which auth addons contribute
|
|
40285
40547
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -41997,9 +42259,11 @@ var alarmPanelCapability = {
|
|
|
41997
42259
|
*/
|
|
41998
42260
|
durability: "restored",
|
|
41999
42261
|
/**
|
|
42000
|
-
* History (D850):
|
|
42262
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42263
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42264
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42001
42265
|
*/
|
|
42002
|
-
history: "
|
|
42266
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42003
42267
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42004
42268
|
* whether persisting is worth a SQLite commit. */
|
|
42005
42269
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -42877,6 +43141,33 @@ var NcRuleTargetSchema = object({
|
|
|
42877
43141
|
params: record(string(), unknown()).optional()
|
|
42878
43142
|
});
|
|
42879
43143
|
/**
|
|
43144
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43145
|
+
*
|
|
43146
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43147
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43148
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43149
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43150
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43151
|
+
* labelled with class and confidence ("dog 87%").
|
|
43152
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43153
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43154
|
+
* - `none` — no picture.
|
|
43155
|
+
*
|
|
43156
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43157
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43158
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43159
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43160
|
+
* stored kind had landed.
|
|
43161
|
+
*/
|
|
43162
|
+
var NcMediaImageSchema = _enum([
|
|
43163
|
+
"scene-boxes",
|
|
43164
|
+
"crop",
|
|
43165
|
+
"clean",
|
|
43166
|
+
"none"
|
|
43167
|
+
]);
|
|
43168
|
+
/**
|
|
43169
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43170
|
+
*
|
|
42880
43171
|
* Media attachment policy (P1 still-image subset).
|
|
42881
43172
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42882
43173
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42890,6 +43181,8 @@ var NcRuleTargetSchema = object({
|
|
|
42890
43181
|
* - `none` — no attachment.
|
|
42891
43182
|
*/
|
|
42892
43183
|
/**
|
|
43184
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43185
|
+
*
|
|
42893
43186
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42894
43187
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42895
43188
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42918,16 +43211,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42918
43211
|
*/
|
|
42919
43212
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42920
43213
|
var NcMediaPolicySchema = object({
|
|
43214
|
+
/**
|
|
43215
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43216
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43217
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43218
|
+
*/
|
|
43219
|
+
image: NcMediaImageSchema.optional(),
|
|
43220
|
+
/**
|
|
43221
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43222
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43223
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43224
|
+
* Replaces `zoneCrop`.
|
|
43225
|
+
*/
|
|
43226
|
+
showTriggerZone: boolean().optional(),
|
|
43227
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42921
43228
|
attach: _enum([
|
|
42922
43229
|
"best",
|
|
42923
43230
|
"best-matching",
|
|
42924
43231
|
"keyFrame",
|
|
42925
43232
|
"none"
|
|
42926
|
-
]).
|
|
42927
|
-
/**
|
|
43233
|
+
]).optional(),
|
|
43234
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42928
43235
|
frame: NcMediaFrameSchema.optional(),
|
|
42929
|
-
/**
|
|
42930
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43236
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42931
43237
|
zoneCrop: boolean().optional(),
|
|
42932
43238
|
/**
|
|
42933
43239
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43099,7 +43405,9 @@ var NcRuleInputSchema = object({
|
|
|
43099
43405
|
* targets.
|
|
43100
43406
|
*/
|
|
43101
43407
|
targetUsers: array(string()).optional(),
|
|
43102
|
-
|
|
43408
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43409
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43410
|
+
media: NcMediaPolicySchema.default({}),
|
|
43103
43411
|
throttle: NcThrottleSchema.default({
|
|
43104
43412
|
cooldownSec: 60,
|
|
43105
43413
|
scope: "rule-device"
|
|
@@ -44036,13 +44344,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44036
44344
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44037
44345
|
unknown: array(number().int())
|
|
44038
44346
|
});
|
|
44347
|
+
/**
|
|
44348
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44349
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44350
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44351
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44352
|
+
*/
|
|
44353
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44354
|
+
ruleId: string(),
|
|
44355
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44356
|
+
ruleName: string(),
|
|
44357
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44358
|
+
deviceId: number().int(),
|
|
44359
|
+
/** The input's current name. */
|
|
44360
|
+
name: string(),
|
|
44361
|
+
/** When it was bypassed (ms epoch). */
|
|
44362
|
+
since: number(),
|
|
44363
|
+
/** Triggers from this input dropped since. */
|
|
44364
|
+
dropped: number().int().min(0)
|
|
44365
|
+
});
|
|
44039
44366
|
var NcAlarmLiveSchema = object({
|
|
44040
44367
|
state: AlarmStateSchema,
|
|
44041
44368
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44042
44369
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44043
44370
|
availableModes: array(AlarmArmModeSchema),
|
|
44044
44371
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44045
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44372
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44373
|
+
/**
|
|
44374
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44375
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44376
|
+
*/
|
|
44377
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44046
44378
|
});
|
|
44047
44379
|
var NcAlarmConfigSchema = object({
|
|
44048
44380
|
/**
|
|
@@ -54769,9 +55101,11 @@ var connectivityCapability = {
|
|
|
54769
55101
|
*/
|
|
54770
55102
|
durability: "restored",
|
|
54771
55103
|
/**
|
|
54772
|
-
* History (D850):
|
|
55104
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55105
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55106
|
+
* device's reachability, which stays `device-status.online`.
|
|
54773
55107
|
*/
|
|
54774
|
-
history: "
|
|
55108
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
54775
55109
|
/** Clock fields: written, but excluded from the compare that decides
|
|
54776
55110
|
* whether persisting is worth a SQLite commit. */
|
|
54777
55111
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -55595,11 +55929,22 @@ var dishwasherCapability = {
|
|
|
55595
55929
|
},
|
|
55596
55930
|
runtimeState: DishwasherStatusSchema,
|
|
55597
55931
|
durability: "session",
|
|
55598
|
-
history: { fields: {
|
|
55599
|
-
|
|
55600
|
-
|
|
55601
|
-
|
|
55602
|
-
|
|
55932
|
+
history: { fields: {
|
|
55933
|
+
progressPercent: {
|
|
55934
|
+
kind: "gauge",
|
|
55935
|
+
unit: "%",
|
|
55936
|
+
deadband: 2
|
|
55937
|
+
},
|
|
55938
|
+
state: { kind: "enum" },
|
|
55939
|
+
operationState: { kind: "enum" },
|
|
55940
|
+
remainingSeconds: {
|
|
55941
|
+
kind: "gauge",
|
|
55942
|
+
unit: "s",
|
|
55943
|
+
minIntervalMs: 6e4
|
|
55944
|
+
},
|
|
55945
|
+
doorOpen: { kind: "boolean" },
|
|
55946
|
+
powerOn: { kind: "boolean" }
|
|
55947
|
+
} }
|
|
55603
55948
|
};
|
|
55604
55949
|
var DoorbellStatusSchema = object({
|
|
55605
55950
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -55716,9 +56061,15 @@ var enumSensorCapability = {
|
|
|
55716
56061
|
*/
|
|
55717
56062
|
durability: "restored",
|
|
55718
56063
|
/**
|
|
55719
|
-
* History (D850):
|
|
56064
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56065
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56066
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56067
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
55720
56068
|
*/
|
|
55721
|
-
history:
|
|
56069
|
+
history: { fields: { value: {
|
|
56070
|
+
kind: "enum",
|
|
56071
|
+
skipWhenSet: "format"
|
|
56072
|
+
} } },
|
|
55722
56073
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55723
56074
|
* whether persisting is worth a SQLite commit. */
|
|
55724
56075
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -57692,9 +58043,10 @@ var lockControlCapability = {
|
|
|
57692
58043
|
*/
|
|
57693
58044
|
durability: "restored",
|
|
57694
58045
|
/**
|
|
57695
|
-
* History (D850):
|
|
58046
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58047
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
57696
58048
|
*/
|
|
57697
|
-
history: "
|
|
58049
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
57698
58050
|
/** Clock fields: written, but excluded from the compare that decides
|
|
57699
58051
|
* whether persisting is worth a SQLite commit. */
|
|
57700
58052
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -57868,9 +58220,18 @@ var mediaPlayerCapability = {
|
|
|
57868
58220
|
*/
|
|
57869
58221
|
durability: "session",
|
|
57870
58222
|
/**
|
|
57871
|
-
* History (D850):
|
|
58223
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58224
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58225
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
57872
58226
|
*/
|
|
57873
|
-
history:
|
|
58227
|
+
history: { fields: {
|
|
58228
|
+
volumeLevel: {
|
|
58229
|
+
kind: "gauge",
|
|
58230
|
+
unit: "%",
|
|
58231
|
+
deadband: 1
|
|
58232
|
+
},
|
|
58233
|
+
isMuted: { kind: "boolean" }
|
|
58234
|
+
} }
|
|
57874
58235
|
};
|
|
57875
58236
|
/**
|
|
57876
58237
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63163,9 +63524,29 @@ var streamParamsCapability = {
|
|
|
63163
63524
|
*/
|
|
63164
63525
|
durability: "restored",
|
|
63165
63526
|
/**
|
|
63166
|
-
* History (D850):
|
|
63527
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63528
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63529
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
63530
|
+
* quality over time must show.
|
|
63167
63531
|
*/
|
|
63168
|
-
history:
|
|
63532
|
+
history: { fields: {
|
|
63533
|
+
"main.bitrate": {
|
|
63534
|
+
kind: "gauge",
|
|
63535
|
+
unit: "kbps"
|
|
63536
|
+
},
|
|
63537
|
+
"main.framerate": {
|
|
63538
|
+
kind: "gauge",
|
|
63539
|
+
unit: "fps"
|
|
63540
|
+
},
|
|
63541
|
+
"sub.bitrate": {
|
|
63542
|
+
kind: "gauge",
|
|
63543
|
+
unit: "kbps"
|
|
63544
|
+
},
|
|
63545
|
+
"sub.framerate": {
|
|
63546
|
+
kind: "gauge",
|
|
63547
|
+
unit: "fps"
|
|
63548
|
+
}
|
|
63549
|
+
} },
|
|
63169
63550
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63170
63551
|
* whether persisting is worth a SQLite commit. */
|
|
63171
63552
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64000,26 +64381,6 @@ var ApiKeySummarySchema = object({
|
|
|
64000
64381
|
createdAt: number(),
|
|
64001
64382
|
lastUsedAt: number().optional()
|
|
64002
64383
|
});
|
|
64003
|
-
var ScopedTokenSummarySchema = object({
|
|
64004
|
-
id: string(),
|
|
64005
|
-
userId: string(),
|
|
64006
|
-
name: string(),
|
|
64007
|
-
tokenPrefix: string(),
|
|
64008
|
-
scopes: array(TokenScopeSchema),
|
|
64009
|
-
expiresAt: number().nullish(),
|
|
64010
|
-
lastUsedAt: number().nullish(),
|
|
64011
|
-
createdAt: number()
|
|
64012
|
-
});
|
|
64013
|
-
var CreateScopedTokenInputSchema = object({
|
|
64014
|
-
userId: string(),
|
|
64015
|
-
name: string(),
|
|
64016
|
-
scopes: array(TokenScopeSchema),
|
|
64017
|
-
expiresAt: number().optional()
|
|
64018
|
-
});
|
|
64019
|
-
var CreateScopedTokenResultSchema = object({
|
|
64020
|
-
token: string(),
|
|
64021
|
-
record: ScopedTokenSummarySchema
|
|
64022
|
-
});
|
|
64023
64384
|
var OauthSessionSummarySchema = object({
|
|
64024
64385
|
id: string(),
|
|
64025
64386
|
userId: string(),
|
|
@@ -64041,11 +64402,11 @@ var TotpStatusSchema = object({
|
|
|
64041
64402
|
confirmedAt: number().nullable()
|
|
64042
64403
|
});
|
|
64043
64404
|
/**
|
|
64044
|
-
* user-management — singleton capability for user accounts
|
|
64045
|
-
*
|
|
64405
|
+
* user-management — singleton capability for user accounts and the
|
|
64406
|
+
* legacy API-key rows.
|
|
64046
64407
|
*
|
|
64047
64408
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64048
|
-
* — the subset check on `setUserScopes`
|
|
64409
|
+
* — the subset check on `setUserScopes` is moot
|
|
64049
64410
|
* because non-admins never reach these. If/when we open non-admin
|
|
64050
64411
|
* delegation, structural caller-scope subset check goes inside the
|
|
64051
64412
|
* provider.
|
|
@@ -64102,15 +64463,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64102
64463
|
kind: "mutation",
|
|
64103
64464
|
auth: "admin",
|
|
64104
64465
|
access: "delete"
|
|
64105
|
-
}), method(
|
|
64106
|
-
kind: "mutation",
|
|
64107
|
-
auth: "admin",
|
|
64108
|
-
access: "create"
|
|
64109
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64110
|
-
kind: "mutation",
|
|
64111
|
-
auth: "admin",
|
|
64112
|
-
access: "delete"
|
|
64113
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64466
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64114
64467
|
kind: "mutation",
|
|
64115
64468
|
auth: "admin",
|
|
64116
64469
|
access: "create"
|
|
@@ -66371,6 +66724,15 @@ var BaseDevice = class {
|
|
|
66371
66724
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66372
66725
|
* with a typed cast.
|
|
66373
66726
|
*
|
|
66727
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
66728
|
+
* while this device is `online` and probed; return
|
|
66729
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
66730
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
66731
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
66732
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
66733
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
66734
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
66735
|
+
*
|
|
66374
66736
|
* Default: no children.
|
|
66375
66737
|
*/
|
|
66376
66738
|
getAccessoryChildren() {
|
|
@@ -70200,7 +70562,7 @@ Object.freeze({
|
|
|
70200
70562
|
capName: "llm",
|
|
70201
70563
|
capScope: "system",
|
|
70202
70564
|
addonId: null,
|
|
70203
|
-
access: "
|
|
70565
|
+
access: "create"
|
|
70204
70566
|
},
|
|
70205
70567
|
"llm.listNodeModels": {
|
|
70206
70568
|
capName: "llm",
|
|
@@ -70502,7 +70864,19 @@ Object.freeze({
|
|
|
70502
70864
|
addonId: null,
|
|
70503
70865
|
access: "view"
|
|
70504
70866
|
},
|
|
70505
|
-
"logDestination.
|
|
70867
|
+
"logDestination.cancelRead": {
|
|
70868
|
+
capName: "log-destination",
|
|
70869
|
+
capScope: "system",
|
|
70870
|
+
addonId: null,
|
|
70871
|
+
access: "create"
|
|
70872
|
+
},
|
|
70873
|
+
"logDestination.describeRead": {
|
|
70874
|
+
capName: "log-destination",
|
|
70875
|
+
capScope: "system",
|
|
70876
|
+
addonId: null,
|
|
70877
|
+
access: "view"
|
|
70878
|
+
},
|
|
70879
|
+
"logDestination.read": {
|
|
70506
70880
|
capName: "log-destination",
|
|
70507
70881
|
capScope: "system",
|
|
70508
70882
|
addonId: null,
|
|
@@ -74864,12 +75238,6 @@ Object.freeze({
|
|
|
74864
75238
|
addonId: null,
|
|
74865
75239
|
access: "create"
|
|
74866
75240
|
},
|
|
74867
|
-
"userManagement.createScopedToken": {
|
|
74868
|
-
capName: "user-management",
|
|
74869
|
-
capScope: "system",
|
|
74870
|
-
addonId: null,
|
|
74871
|
-
access: "create"
|
|
74872
|
-
},
|
|
74873
75241
|
"userManagement.createUser": {
|
|
74874
75242
|
capName: "user-management",
|
|
74875
75243
|
capScope: "system",
|
|
@@ -74918,12 +75286,6 @@ Object.freeze({
|
|
|
74918
75286
|
addonId: null,
|
|
74919
75287
|
access: "view"
|
|
74920
75288
|
},
|
|
74921
|
-
"userManagement.listScopedTokens": {
|
|
74922
|
-
capName: "user-management",
|
|
74923
|
-
capScope: "system",
|
|
74924
|
-
addonId: null,
|
|
74925
|
-
access: "view"
|
|
74926
|
-
},
|
|
74927
75289
|
"userManagement.listUsers": {
|
|
74928
75290
|
capName: "user-management",
|
|
74929
75291
|
capScope: "system",
|
|
@@ -74978,12 +75340,6 @@ Object.freeze({
|
|
|
74978
75340
|
addonId: null,
|
|
74979
75341
|
access: "delete"
|
|
74980
75342
|
},
|
|
74981
|
-
"userManagement.revokeScopedToken": {
|
|
74982
|
-
capName: "user-management",
|
|
74983
|
-
capScope: "system",
|
|
74984
|
-
addonId: null,
|
|
74985
|
-
access: "delete"
|
|
74986
|
-
},
|
|
74987
75343
|
"userManagement.setupTotp": {
|
|
74988
75344
|
capName: "user-management",
|
|
74989
75345
|
capScope: "system",
|
|
@@ -75014,12 +75370,6 @@ Object.freeze({
|
|
|
75014
75370
|
addonId: null,
|
|
75015
75371
|
access: "view"
|
|
75016
75372
|
},
|
|
75017
|
-
"userManagement.validateScopedToken": {
|
|
75018
|
-
capName: "user-management",
|
|
75019
|
-
capScope: "system",
|
|
75020
|
-
addonId: null,
|
|
75021
|
-
access: "view"
|
|
75022
|
-
},
|
|
75023
75373
|
"userManagement.verifyTotp": {
|
|
75024
75374
|
capName: "user-management",
|
|
75025
75375
|
capScope: "system",
|
|
@@ -76533,6 +76883,11 @@ Object.freeze({
|
|
|
76533
76883
|
form: "single",
|
|
76534
76884
|
optional: false
|
|
76535
76885
|
}],
|
|
76886
|
+
"logDestination.read": [{
|
|
76887
|
+
name: "deviceId",
|
|
76888
|
+
form: "single",
|
|
76889
|
+
optional: true
|
|
76890
|
+
}],
|
|
76536
76891
|
"mediaPlayer.getStatus": [{
|
|
76537
76892
|
name: "deviceId",
|
|
76538
76893
|
form: "single",
|