@camstack/addon-provider-tuya 0.2.129 → 0.2.131
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
|
@@ -6234,7 +6234,7 @@ var ZodIssueCode = {
|
|
|
6234
6234
|
var ZodFirstPartyTypeKind;
|
|
6235
6235
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6236
6236
|
//#endregion
|
|
6237
|
-
//#region ../types/dist/sleep-
|
|
6237
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
6238
6238
|
/**
|
|
6239
6239
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6240
6240
|
* window to float samples (D455).
|
|
@@ -8617,9 +8617,9 @@ function normalizeAddonInitResult(result) {
|
|
|
8617
8617
|
return result;
|
|
8618
8618
|
}
|
|
8619
8619
|
/**
|
|
8620
|
-
* The share-view scope kinds a
|
|
8621
|
-
* and validates them (`
|
|
8622
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
8620
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
8621
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
8622
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
8623
8623
|
*/
|
|
8624
8624
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
8625
8625
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -13309,7 +13309,7 @@ var ConvertResultSchema = object({
|
|
|
13309
13309
|
* `super_admin` — collapsed onto the single boolean because every
|
|
13310
13310
|
* non-admin caller is governed by the same scope-check rules; the
|
|
13311
13311
|
* distinction was only ever used to route role-specific procedures
|
|
13312
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
13312
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
13313
13313
|
* with `isAdmin: false` + an explicit scope list.
|
|
13314
13314
|
*/
|
|
13315
13315
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -13498,10 +13498,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
13498
13498
|
type: literal("addon-routes"),
|
|
13499
13499
|
access: array(MethodAccessSchema).min(1)
|
|
13500
13500
|
});
|
|
13501
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
13501
13502
|
var CredentialScopeSchema = union([
|
|
13502
13503
|
literal("*"),
|
|
13503
13504
|
ShareViewScopeSchema,
|
|
13504
13505
|
AddonRoutesScopeSchema,
|
|
13506
|
+
PreferencesSelfScopeSchema,
|
|
13505
13507
|
TokenScopeSchema
|
|
13506
13508
|
]);
|
|
13507
13509
|
object({
|
|
@@ -13510,6 +13512,55 @@ object({
|
|
|
13510
13512
|
jti: string().min(16),
|
|
13511
13513
|
scopes: array(CredentialScopeSchema).min(1)
|
|
13512
13514
|
});
|
|
13515
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
13516
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
13517
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
13518
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
13519
|
+
/** A stored row, as the owner reads it. */
|
|
13520
|
+
var PreferenceRowSchema = object({
|
|
13521
|
+
namespace: PreferenceNamespaceSchema,
|
|
13522
|
+
value: PreferenceValueSchema,
|
|
13523
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
13524
|
+
revision: number().int().positive(),
|
|
13525
|
+
updatedAt: number().int(),
|
|
13526
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
13527
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
13528
|
+
});
|
|
13529
|
+
object({
|
|
13530
|
+
/** Absent: every namespace the caller holds. */
|
|
13531
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
13532
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
13533
|
+
object({
|
|
13534
|
+
namespace: PreferenceNamespaceSchema,
|
|
13535
|
+
value: PreferenceValueSchema,
|
|
13536
|
+
/**
|
|
13537
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
13538
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
13539
|
+
* revision answers `conflict` and writes nothing.
|
|
13540
|
+
*/
|
|
13541
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
13542
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
13543
|
+
});
|
|
13544
|
+
discriminatedUnion("status", [object({
|
|
13545
|
+
status: literal("saved"),
|
|
13546
|
+
row: PreferenceRowSchema
|
|
13547
|
+
}), object({
|
|
13548
|
+
status: literal("conflict"),
|
|
13549
|
+
current: PreferenceRowSchema.nullable()
|
|
13550
|
+
})]);
|
|
13551
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
13552
|
+
object({
|
|
13553
|
+
/** `false` when the namespace did not exist. */
|
|
13554
|
+
deleted: boolean() });
|
|
13555
|
+
object({
|
|
13556
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
13557
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
13558
|
+
object({
|
|
13559
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
13560
|
+
rows: array(PreferenceRowSchema),
|
|
13561
|
+
/** Namespaces the client listed that no longer exist. */
|
|
13562
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
13563
|
+
});
|
|
13513
13564
|
_enum(["new-session", "step-up"]);
|
|
13514
13565
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13515
13566
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -17763,7 +17814,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17763
17814
|
kind: literal("node"),
|
|
17764
17815
|
nodeId: string().min(1)
|
|
17765
17816
|
})]);
|
|
17817
|
+
/**
|
|
17818
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17819
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17820
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17821
|
+
*/
|
|
17766
17822
|
var DeviceHistoryKindSchema = _enum([
|
|
17823
|
+
"gauge",
|
|
17824
|
+
"counter",
|
|
17825
|
+
"boolean",
|
|
17826
|
+
"enum"
|
|
17827
|
+
]);
|
|
17828
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17829
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17767
17830
|
"gauge",
|
|
17768
17831
|
"counter",
|
|
17769
17832
|
"boolean"
|
|
@@ -17800,7 +17863,13 @@ var SeriesInfoSchema = object({
|
|
|
17800
17863
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17801
17864
|
unit: string().nullable(),
|
|
17802
17865
|
displayName: string(),
|
|
17803
|
-
source: _enum([
|
|
17866
|
+
source: _enum([
|
|
17867
|
+
"cap",
|
|
17868
|
+
"addon",
|
|
17869
|
+
"derived"
|
|
17870
|
+
]),
|
|
17871
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17872
|
+
values: array(string()).readonly().nullable(),
|
|
17804
17873
|
firstTs: number(),
|
|
17805
17874
|
lastTs: number()
|
|
17806
17875
|
});
|
|
@@ -17814,17 +17883,31 @@ var QueryPointSchema = object({
|
|
|
17814
17883
|
twMean: number().nullable(),
|
|
17815
17884
|
min: number(),
|
|
17816
17885
|
max: number(),
|
|
17817
|
-
/** `null` is unknown, never zero (D393). */
|
|
17818
|
-
last: number().nullable()
|
|
17886
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17887
|
+
last: number().nullable(),
|
|
17888
|
+
/**
|
|
17889
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17890
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17891
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17892
|
+
* every other kind, and when it cannot be known.
|
|
17893
|
+
*/
|
|
17894
|
+
delta: number().nullable(),
|
|
17895
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17896
|
+
state: string().nullable(),
|
|
17897
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17898
|
+
states: record(string(), number()).nullable()
|
|
17819
17899
|
});
|
|
17820
17900
|
var QuerySeriesSchema = object({
|
|
17821
17901
|
scope: string(),
|
|
17822
17902
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17823
17903
|
before: object({
|
|
17824
17904
|
t: number(),
|
|
17825
|
-
value: number().nullable()
|
|
17905
|
+
value: number().nullable(),
|
|
17906
|
+
state: string().nullable()
|
|
17826
17907
|
}).nullable(),
|
|
17827
|
-
points: array(QueryPointSchema).readonly()
|
|
17908
|
+
points: array(QueryPointSchema).readonly(),
|
|
17909
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17910
|
+
derivedFrom: string().nullable()
|
|
17828
17911
|
});
|
|
17829
17912
|
/** The window part of a query, shared by the device and node forms. */
|
|
17830
17913
|
var QueryWindowShape = {
|
|
@@ -17840,6 +17923,23 @@ var QueryResultSchema = object({
|
|
|
17840
17923
|
series: array(QuerySeriesSchema).readonly(),
|
|
17841
17924
|
truncated: boolean()
|
|
17842
17925
|
});
|
|
17926
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17927
|
+
var QueryManyItemSchema = union([object({
|
|
17928
|
+
deviceId: number().int(),
|
|
17929
|
+
key: string(),
|
|
17930
|
+
scope: string().optional()
|
|
17931
|
+
}), object({
|
|
17932
|
+
forNodeId: string().min(1),
|
|
17933
|
+
key: string(),
|
|
17934
|
+
scope: string().optional()
|
|
17935
|
+
})]);
|
|
17936
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17937
|
+
ok: literal(true),
|
|
17938
|
+
result: QueryResultSchema
|
|
17939
|
+
}), object({
|
|
17940
|
+
ok: literal(false),
|
|
17941
|
+
error: string()
|
|
17942
|
+
})]);
|
|
17843
17943
|
var TierStatusSchema = object({
|
|
17844
17944
|
tier: DeviceHistoryResolutionSchema,
|
|
17845
17945
|
/** `null` until the first background count answered. */
|
|
@@ -17895,16 +17995,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17895
17995
|
lastRefreshAt: number().nullable()
|
|
17896
17996
|
})
|
|
17897
17997
|
});
|
|
17898
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17998
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17899
17999
|
deviceId: number().int(),
|
|
17900
18000
|
...QueryWindowShape
|
|
17901
18001
|
}), QueryResultSchema), method(object({
|
|
17902
|
-
|
|
18002
|
+
forNodeId: string().min(1),
|
|
17903
18003
|
...QueryWindowShape
|
|
17904
18004
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
18005
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
18006
|
+
from: QueryWindowShape.from,
|
|
18007
|
+
to: QueryWindowShape.to,
|
|
18008
|
+
resolution: QueryWindowShape.resolution,
|
|
18009
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
18010
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17905
18011
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17906
18012
|
subjectKind: _enum(["device", "node"]),
|
|
17907
|
-
kind:
|
|
18013
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17908
18014
|
unit: string().optional(),
|
|
17909
18015
|
displayName: string().min(1),
|
|
17910
18016
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40703,38 +40809,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40703
40809
|
auth: "admin",
|
|
40704
40810
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40705
40811
|
});
|
|
40812
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40813
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40814
|
+
var LlmModelFeaturesSchema = object({
|
|
40815
|
+
vision: boolean(),
|
|
40816
|
+
tools: boolean(),
|
|
40817
|
+
streaming: boolean()
|
|
40818
|
+
});
|
|
40819
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40820
|
+
var LlmModelInfoSchema = object({
|
|
40821
|
+
id: string(),
|
|
40822
|
+
label: string().optional(),
|
|
40823
|
+
contextLength: number().int().positive().optional(),
|
|
40824
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40825
|
+
});
|
|
40706
40826
|
/**
|
|
40707
|
-
*
|
|
40708
|
-
*
|
|
40709
|
-
*
|
|
40710
|
-
*
|
|
40711
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40712
|
-
*
|
|
40713
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40714
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40715
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40827
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40828
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40829
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40830
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40716
40831
|
*/
|
|
40717
|
-
var
|
|
40718
|
-
"openai-compatible",
|
|
40719
|
-
"openai",
|
|
40720
|
-
"anthropic",
|
|
40721
|
-
"google",
|
|
40722
|
-
"managed-local",
|
|
40723
|
-
"apple-foundation"
|
|
40724
|
-
]);
|
|
40832
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40725
40833
|
var LlmProfileSchema = object({
|
|
40726
40834
|
id: string(),
|
|
40727
40835
|
name: string(),
|
|
40836
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40728
40837
|
kind: LlmProfileKindSchema,
|
|
40729
40838
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40730
40839
|
addonId: string(),
|
|
40731
40840
|
enabled: boolean(),
|
|
40732
40841
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40733
40842
|
model: string(),
|
|
40734
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40735
|
-
baseUrl: string().optional(),
|
|
40736
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40737
|
-
apiKey: string().optional(),
|
|
40738
40843
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40739
40844
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40740
40845
|
* question about a picture nobody sent. */
|
|
@@ -40742,15 +40847,11 @@ var LlmProfileSchema = object({
|
|
|
40742
40847
|
temperature: number().min(0).max(2).optional(),
|
|
40743
40848
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40744
40849
|
topP: number().min(0).max(1).optional(),
|
|
40745
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40746
|
-
*
|
|
40747
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40748
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40850
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40851
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40749
40852
|
topK: number().int().positive().optional(),
|
|
40750
40853
|
maxTokens: number().int().positive().optional(),
|
|
40751
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40752
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40753
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40854
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40754
40855
|
contextLength: number().int().positive().optional(),
|
|
40755
40856
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40756
40857
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40776,16 +40877,37 @@ var LlmProfileSchema = object({
|
|
|
40776
40877
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40777
40878
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40778
40879
|
toolsEnabled: boolean().default(false),
|
|
40779
|
-
|
|
40780
|
-
|
|
40781
|
-
|
|
40782
|
-
|
|
40783
|
-
|
|
40784
|
-
|
|
40785
|
-
|
|
40786
|
-
|
|
40787
|
-
|
|
40788
|
-
|
|
40880
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40881
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40882
|
+
});
|
|
40883
|
+
/**
|
|
40884
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40885
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40886
|
+
*/
|
|
40887
|
+
var LlmProfileFieldSchema = _enum([
|
|
40888
|
+
"temperature",
|
|
40889
|
+
"topP",
|
|
40890
|
+
"topK",
|
|
40891
|
+
"maxTokens",
|
|
40892
|
+
"contextLength",
|
|
40893
|
+
"systemPrompt",
|
|
40894
|
+
"timeoutMs",
|
|
40895
|
+
"connectTimeoutMs",
|
|
40896
|
+
"firstTokenTimeoutMs",
|
|
40897
|
+
"idleTimeoutMs",
|
|
40898
|
+
"retry",
|
|
40899
|
+
"toolsEnabled"
|
|
40900
|
+
]);
|
|
40901
|
+
/**
|
|
40902
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40903
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40904
|
+
* picker: that widget owns the model choice.
|
|
40905
|
+
*/
|
|
40906
|
+
var LlmProviderWidgetSchema = object({
|
|
40907
|
+
id: string(),
|
|
40908
|
+
placement: _enum(["connection", "model"]),
|
|
40909
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40910
|
+
requires: array(string()).optional()
|
|
40789
40911
|
});
|
|
40790
40912
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40791
40913
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40794,11 +40916,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40794
40916
|
var LlmProfileKindDescriptorSchema = object({
|
|
40795
40917
|
kind: LlmProfileKindSchema,
|
|
40796
40918
|
label: string(),
|
|
40919
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40797
40920
|
icon: string(),
|
|
40798
40921
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40799
40922
|
addonId: string(),
|
|
40800
|
-
|
|
40923
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40924
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40925
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40926
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40927
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40928
|
+
features: LlmModelFeaturesSchema,
|
|
40929
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40930
|
+
visionEditable: boolean(),
|
|
40931
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40932
|
+
modelCatalog: _enum([
|
|
40933
|
+
"fetch",
|
|
40934
|
+
"static",
|
|
40935
|
+
"none"
|
|
40936
|
+
]),
|
|
40937
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40938
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40939
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40940
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40801
40941
|
});
|
|
40942
|
+
/**
|
|
40943
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40944
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40945
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40946
|
+
* stored profile — the browser never receives it.
|
|
40947
|
+
*/
|
|
40948
|
+
var LlmListModelsInputSchema = object({
|
|
40949
|
+
addonId: string(),
|
|
40950
|
+
kind: LlmProfileKindSchema,
|
|
40951
|
+
profileId: string().optional(),
|
|
40952
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40953
|
+
});
|
|
40954
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40955
|
+
"auth",
|
|
40956
|
+
"network",
|
|
40957
|
+
"unsupported",
|
|
40958
|
+
"invalid"
|
|
40959
|
+
]);
|
|
40960
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40961
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40962
|
+
ok: literal(true),
|
|
40963
|
+
models: array(LlmModelInfoSchema)
|
|
40964
|
+
}), object({
|
|
40965
|
+
ok: literal(false),
|
|
40966
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40967
|
+
message: string()
|
|
40968
|
+
})]);
|
|
40802
40969
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40803
40970
|
var LlmDefaultSchema = object({
|
|
40804
40971
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40898,7 +41065,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40898
41065
|
kind: "mutation",
|
|
40899
41066
|
auth: "admin",
|
|
40900
41067
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40901
|
-
}), method(
|
|
41068
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
41069
|
+
kind: "mutation",
|
|
41070
|
+
auth: "admin"
|
|
41071
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40902
41072
|
selector: LlmDefaultSelectorSchema,
|
|
40903
41073
|
profileId: string().nullable()
|
|
40904
41074
|
}), _void(), {
|
|
@@ -41066,14 +41236,106 @@ var LogEntrySchema = object({
|
|
|
41066
41236
|
meta: record(string(), unknown()).optional(),
|
|
41067
41237
|
tags: record(string(), string()).optional()
|
|
41068
41238
|
});
|
|
41069
|
-
|
|
41070
|
-
|
|
41239
|
+
/**
|
|
41240
|
+
* A history READ against one destination (D898).
|
|
41241
|
+
*
|
|
41242
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
41243
|
+
* browser applied after the limit is what made a rare device's lines
|
|
41244
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
41245
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
41246
|
+
* nanosecond timestamp for Loki.
|
|
41247
|
+
*
|
|
41248
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
41249
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
41250
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
41251
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
41252
|
+
* flight, and not asking for the next slice ends the scan.
|
|
41253
|
+
*/
|
|
41254
|
+
var LogReadQuerySchema = object({
|
|
41255
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
41256
|
+
requestId: string().min(1).max(64).optional(),
|
|
41257
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
41258
|
+
deviceId: number().int().optional(),
|
|
41259
|
+
/**
|
|
41260
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
41261
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
41262
|
+
*/
|
|
41263
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
41264
|
+
/**
|
|
41265
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
41266
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
41267
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
41268
|
+
* name as "which node's provider".
|
|
41269
|
+
*/
|
|
41270
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
41271
|
+
/** Any other tag, exact match (AND). */
|
|
41272
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41273
|
+
/** Severity FLOOR: this level and above. */
|
|
41071
41274
|
level: LogLevelSchema.optional(),
|
|
41072
|
-
|
|
41073
|
-
|
|
41074
|
-
|
|
41075
|
-
|
|
41076
|
-
|
|
41275
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
41276
|
+
text: string().min(1).max(200).optional(),
|
|
41277
|
+
/** Epoch ms, inclusive. */
|
|
41278
|
+
since: number().optional(),
|
|
41279
|
+
/** Epoch ms, inclusive. */
|
|
41280
|
+
until: number().optional(),
|
|
41281
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
41282
|
+
before: string().min(1).max(1024).optional(),
|
|
41283
|
+
/** Newer than this cursor (exclusive). */
|
|
41284
|
+
after: string().min(1).max(1024).optional(),
|
|
41285
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
41286
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
41287
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
41288
|
+
});
|
|
41289
|
+
var LogReadResultSchema = object({
|
|
41290
|
+
/** Newest first. */
|
|
41291
|
+
entries: array(object({
|
|
41292
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
41293
|
+
id: string().optional(),
|
|
41294
|
+
/** Epoch ms. */
|
|
41295
|
+
timestamp: number(),
|
|
41296
|
+
level: LogLevelSchema,
|
|
41297
|
+
scope: string().optional(),
|
|
41298
|
+
message: string(),
|
|
41299
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
41300
|
+
meta: record(string(), unknown()).optional()
|
|
41301
|
+
})),
|
|
41302
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
41303
|
+
nextBefore: string().nullable(),
|
|
41304
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
41305
|
+
nextAfter: string().nullable(),
|
|
41306
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
41307
|
+
scannedBytes: number().int().nonnegative(),
|
|
41308
|
+
/**
|
|
41309
|
+
* True when the scan in this direction reached the end of the store.
|
|
41310
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
41311
|
+
* call again with `nextBefore` to go on.
|
|
41312
|
+
*/
|
|
41313
|
+
done: boolean(),
|
|
41314
|
+
/** True when `cancelRead` ended this slice early. */
|
|
41315
|
+
cancelled: boolean().optional()
|
|
41316
|
+
});
|
|
41317
|
+
var LogReadCapabilitiesSchema = object({
|
|
41318
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
41319
|
+
readable: boolean(),
|
|
41320
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
41321
|
+
reason: string().nullable(),
|
|
41322
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
41323
|
+
filters: object({
|
|
41324
|
+
deviceId: boolean(),
|
|
41325
|
+
addonId: boolean(),
|
|
41326
|
+
nodeId: boolean(),
|
|
41327
|
+
tags: boolean(),
|
|
41328
|
+
level: boolean(),
|
|
41329
|
+
text: boolean(),
|
|
41330
|
+
timeRange: boolean()
|
|
41331
|
+
}),
|
|
41332
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
41333
|
+
retentionDays: number().nullable()
|
|
41334
|
+
});
|
|
41335
|
+
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() }), {
|
|
41336
|
+
kind: "mutation",
|
|
41337
|
+
auth: "admin"
|
|
41338
|
+
});
|
|
41077
41339
|
/**
|
|
41078
41340
|
* `login-method` — collection cap through which auth addons contribute
|
|
41079
41341
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42791,9 +43053,11 @@ var alarmPanelCapability = {
|
|
|
42791
43053
|
*/
|
|
42792
43054
|
durability: "restored",
|
|
42793
43055
|
/**
|
|
42794
|
-
* History (D850):
|
|
43056
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
43057
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
43058
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42795
43059
|
*/
|
|
42796
|
-
history: "
|
|
43060
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42797
43061
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42798
43062
|
* whether persisting is worth a SQLite commit. */
|
|
42799
43063
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43671,6 +43935,33 @@ var NcRuleTargetSchema = object({
|
|
|
43671
43935
|
params: record(string(), unknown()).optional()
|
|
43672
43936
|
});
|
|
43673
43937
|
/**
|
|
43938
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43939
|
+
*
|
|
43940
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43941
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43942
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43943
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43944
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43945
|
+
* labelled with class and confidence ("dog 87%").
|
|
43946
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43947
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43948
|
+
* - `none` — no picture.
|
|
43949
|
+
*
|
|
43950
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43951
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43952
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43953
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43954
|
+
* stored kind had landed.
|
|
43955
|
+
*/
|
|
43956
|
+
var NcMediaImageSchema = _enum([
|
|
43957
|
+
"scene-boxes",
|
|
43958
|
+
"crop",
|
|
43959
|
+
"clean",
|
|
43960
|
+
"none"
|
|
43961
|
+
]);
|
|
43962
|
+
/**
|
|
43963
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43964
|
+
*
|
|
43674
43965
|
* Media attachment policy (P1 still-image subset).
|
|
43675
43966
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43676
43967
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43684,6 +43975,8 @@ var NcRuleTargetSchema = object({
|
|
|
43684
43975
|
* - `none` — no attachment.
|
|
43685
43976
|
*/
|
|
43686
43977
|
/**
|
|
43978
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43979
|
+
*
|
|
43687
43980
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43688
43981
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43689
43982
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43712,16 +44005,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43712
44005
|
*/
|
|
43713
44006
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43714
44007
|
var NcMediaPolicySchema = object({
|
|
44008
|
+
/**
|
|
44009
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
44010
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
44011
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
44012
|
+
*/
|
|
44013
|
+
image: NcMediaImageSchema.optional(),
|
|
44014
|
+
/**
|
|
44015
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
44016
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
44017
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
44018
|
+
* Replaces `zoneCrop`.
|
|
44019
|
+
*/
|
|
44020
|
+
showTriggerZone: boolean().optional(),
|
|
44021
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43715
44022
|
attach: _enum([
|
|
43716
44023
|
"best",
|
|
43717
44024
|
"best-matching",
|
|
43718
44025
|
"keyFrame",
|
|
43719
44026
|
"none"
|
|
43720
|
-
]).
|
|
43721
|
-
/**
|
|
44027
|
+
]).optional(),
|
|
44028
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43722
44029
|
frame: NcMediaFrameSchema.optional(),
|
|
43723
|
-
/**
|
|
43724
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
44030
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43725
44031
|
zoneCrop: boolean().optional(),
|
|
43726
44032
|
/**
|
|
43727
44033
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43893,7 +44199,9 @@ var NcRuleInputSchema = object({
|
|
|
43893
44199
|
* targets.
|
|
43894
44200
|
*/
|
|
43895
44201
|
targetUsers: array(string()).optional(),
|
|
43896
|
-
|
|
44202
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
44203
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
44204
|
+
media: NcMediaPolicySchema.default({}),
|
|
43897
44205
|
throttle: NcThrottleSchema.default({
|
|
43898
44206
|
cooldownSec: 60,
|
|
43899
44207
|
scope: "rule-device"
|
|
@@ -44830,13 +45138,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44830
45138
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44831
45139
|
unknown: array(number().int())
|
|
44832
45140
|
});
|
|
45141
|
+
/**
|
|
45142
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
45143
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
45144
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
45145
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
45146
|
+
*/
|
|
45147
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
45148
|
+
ruleId: string(),
|
|
45149
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
45150
|
+
ruleName: string(),
|
|
45151
|
+
/** The input: the sensor of the match, else its camera. */
|
|
45152
|
+
deviceId: number().int(),
|
|
45153
|
+
/** The input's current name. */
|
|
45154
|
+
name: string(),
|
|
45155
|
+
/** When it was bypassed (ms epoch). */
|
|
45156
|
+
since: number(),
|
|
45157
|
+
/** Triggers from this input dropped since. */
|
|
45158
|
+
dropped: number().int().min(0)
|
|
45159
|
+
});
|
|
44833
45160
|
var NcAlarmLiveSchema = object({
|
|
44834
45161
|
state: AlarmStateSchema,
|
|
44835
45162
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44836
45163
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44837
45164
|
availableModes: array(AlarmArmModeSchema),
|
|
44838
45165
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44839
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
45166
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
45167
|
+
/**
|
|
45168
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
45169
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
45170
|
+
*/
|
|
45171
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44840
45172
|
});
|
|
44841
45173
|
var NcAlarmConfigSchema = object({
|
|
44842
45174
|
/**
|
|
@@ -55563,9 +55895,11 @@ var connectivityCapability = {
|
|
|
55563
55895
|
*/
|
|
55564
55896
|
durability: "restored",
|
|
55565
55897
|
/**
|
|
55566
|
-
* History (D850):
|
|
55898
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55899
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55900
|
+
* device's reachability, which stays `device-status.online`.
|
|
55567
55901
|
*/
|
|
55568
|
-
history: "
|
|
55902
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
55569
55903
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55570
55904
|
* whether persisting is worth a SQLite commit. */
|
|
55571
55905
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -56389,11 +56723,22 @@ var dishwasherCapability = {
|
|
|
56389
56723
|
},
|
|
56390
56724
|
runtimeState: DishwasherStatusSchema,
|
|
56391
56725
|
durability: "session",
|
|
56392
|
-
history: { fields: {
|
|
56393
|
-
|
|
56394
|
-
|
|
56395
|
-
|
|
56396
|
-
|
|
56726
|
+
history: { fields: {
|
|
56727
|
+
progressPercent: {
|
|
56728
|
+
kind: "gauge",
|
|
56729
|
+
unit: "%",
|
|
56730
|
+
deadband: 2
|
|
56731
|
+
},
|
|
56732
|
+
state: { kind: "enum" },
|
|
56733
|
+
operationState: { kind: "enum" },
|
|
56734
|
+
remainingSeconds: {
|
|
56735
|
+
kind: "gauge",
|
|
56736
|
+
unit: "s",
|
|
56737
|
+
minIntervalMs: 6e4
|
|
56738
|
+
},
|
|
56739
|
+
doorOpen: { kind: "boolean" },
|
|
56740
|
+
powerOn: { kind: "boolean" }
|
|
56741
|
+
} }
|
|
56397
56742
|
};
|
|
56398
56743
|
var DoorbellStatusSchema = object({
|
|
56399
56744
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -56510,9 +56855,15 @@ var enumSensorCapability = {
|
|
|
56510
56855
|
*/
|
|
56511
56856
|
durability: "restored",
|
|
56512
56857
|
/**
|
|
56513
|
-
* History (D850):
|
|
56858
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56859
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56860
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56861
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
56514
56862
|
*/
|
|
56515
|
-
history:
|
|
56863
|
+
history: { fields: { value: {
|
|
56864
|
+
kind: "enum",
|
|
56865
|
+
skipWhenSet: "format"
|
|
56866
|
+
} } },
|
|
56516
56867
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56517
56868
|
* whether persisting is worth a SQLite commit. */
|
|
56518
56869
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -58486,9 +58837,10 @@ var lockControlCapability = {
|
|
|
58486
58837
|
*/
|
|
58487
58838
|
durability: "restored",
|
|
58488
58839
|
/**
|
|
58489
|
-
* History (D850):
|
|
58840
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58841
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
58490
58842
|
*/
|
|
58491
|
-
history: "
|
|
58843
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
58492
58844
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58493
58845
|
* whether persisting is worth a SQLite commit. */
|
|
58494
58846
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58662,9 +59014,18 @@ var mediaPlayerCapability = {
|
|
|
58662
59014
|
*/
|
|
58663
59015
|
durability: "session",
|
|
58664
59016
|
/**
|
|
58665
|
-
* History (D850):
|
|
59017
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
59018
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
59019
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58666
59020
|
*/
|
|
58667
|
-
history:
|
|
59021
|
+
history: { fields: {
|
|
59022
|
+
volumeLevel: {
|
|
59023
|
+
kind: "gauge",
|
|
59024
|
+
unit: "%",
|
|
59025
|
+
deadband: 1
|
|
59026
|
+
},
|
|
59027
|
+
isMuted: { kind: "boolean" }
|
|
59028
|
+
} }
|
|
58668
59029
|
};
|
|
58669
59030
|
/**
|
|
58670
59031
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63957,9 +64318,29 @@ var streamParamsCapability = {
|
|
|
63957
64318
|
*/
|
|
63958
64319
|
durability: "restored",
|
|
63959
64320
|
/**
|
|
63960
|
-
* History (D850):
|
|
64321
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
64322
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
64323
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
64324
|
+
* quality over time must show.
|
|
63961
64325
|
*/
|
|
63962
|
-
history:
|
|
64326
|
+
history: { fields: {
|
|
64327
|
+
"main.bitrate": {
|
|
64328
|
+
kind: "gauge",
|
|
64329
|
+
unit: "kbps"
|
|
64330
|
+
},
|
|
64331
|
+
"main.framerate": {
|
|
64332
|
+
kind: "gauge",
|
|
64333
|
+
unit: "fps"
|
|
64334
|
+
},
|
|
64335
|
+
"sub.bitrate": {
|
|
64336
|
+
kind: "gauge",
|
|
64337
|
+
unit: "kbps"
|
|
64338
|
+
},
|
|
64339
|
+
"sub.framerate": {
|
|
64340
|
+
kind: "gauge",
|
|
64341
|
+
unit: "fps"
|
|
64342
|
+
}
|
|
64343
|
+
} },
|
|
63963
64344
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63964
64345
|
* whether persisting is worth a SQLite commit. */
|
|
63965
64346
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64794,26 +65175,6 @@ var ApiKeySummarySchema = object({
|
|
|
64794
65175
|
createdAt: number(),
|
|
64795
65176
|
lastUsedAt: number().optional()
|
|
64796
65177
|
});
|
|
64797
|
-
var ScopedTokenSummarySchema = object({
|
|
64798
|
-
id: string(),
|
|
64799
|
-
userId: string(),
|
|
64800
|
-
name: string(),
|
|
64801
|
-
tokenPrefix: string(),
|
|
64802
|
-
scopes: array(TokenScopeSchema),
|
|
64803
|
-
expiresAt: number().nullish(),
|
|
64804
|
-
lastUsedAt: number().nullish(),
|
|
64805
|
-
createdAt: number()
|
|
64806
|
-
});
|
|
64807
|
-
var CreateScopedTokenInputSchema = object({
|
|
64808
|
-
userId: string(),
|
|
64809
|
-
name: string(),
|
|
64810
|
-
scopes: array(TokenScopeSchema),
|
|
64811
|
-
expiresAt: number().optional()
|
|
64812
|
-
});
|
|
64813
|
-
var CreateScopedTokenResultSchema = object({
|
|
64814
|
-
token: string(),
|
|
64815
|
-
record: ScopedTokenSummarySchema
|
|
64816
|
-
});
|
|
64817
65178
|
var OauthSessionSummarySchema = object({
|
|
64818
65179
|
id: string(),
|
|
64819
65180
|
userId: string(),
|
|
@@ -64835,11 +65196,11 @@ var TotpStatusSchema = object({
|
|
|
64835
65196
|
confirmedAt: number().nullable()
|
|
64836
65197
|
});
|
|
64837
65198
|
/**
|
|
64838
|
-
* user-management — singleton capability for user accounts
|
|
64839
|
-
*
|
|
65199
|
+
* user-management — singleton capability for user accounts and the
|
|
65200
|
+
* legacy API-key rows.
|
|
64840
65201
|
*
|
|
64841
65202
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64842
|
-
* — the subset check on `setUserScopes`
|
|
65203
|
+
* — the subset check on `setUserScopes` is moot
|
|
64843
65204
|
* because non-admins never reach these. If/when we open non-admin
|
|
64844
65205
|
* delegation, structural caller-scope subset check goes inside the
|
|
64845
65206
|
* provider.
|
|
@@ -64896,15 +65257,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64896
65257
|
kind: "mutation",
|
|
64897
65258
|
auth: "admin",
|
|
64898
65259
|
access: "delete"
|
|
64899
|
-
}), method(
|
|
64900
|
-
kind: "mutation",
|
|
64901
|
-
auth: "admin",
|
|
64902
|
-
access: "create"
|
|
64903
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64904
|
-
kind: "mutation",
|
|
64905
|
-
auth: "admin",
|
|
64906
|
-
access: "delete"
|
|
64907
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
65260
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64908
65261
|
kind: "mutation",
|
|
64909
65262
|
auth: "admin",
|
|
64910
65263
|
access: "create"
|
|
@@ -67165,6 +67518,15 @@ var BaseDevice = class {
|
|
|
67165
67518
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
67166
67519
|
* with a typed cast.
|
|
67167
67520
|
*
|
|
67521
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
67522
|
+
* while this device is `online` and probed; return
|
|
67523
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
67524
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
67525
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
67526
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
67527
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
67528
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
67529
|
+
*
|
|
67168
67530
|
* Default: no children.
|
|
67169
67531
|
*/
|
|
67170
67532
|
getAccessoryChildren() {
|
|
@@ -70994,7 +71356,7 @@ Object.freeze({
|
|
|
70994
71356
|
capName: "llm",
|
|
70995
71357
|
capScope: "system",
|
|
70996
71358
|
addonId: null,
|
|
70997
|
-
access: "
|
|
71359
|
+
access: "create"
|
|
70998
71360
|
},
|
|
70999
71361
|
"llm.listNodeModels": {
|
|
71000
71362
|
capName: "llm",
|
|
@@ -71296,7 +71658,19 @@ Object.freeze({
|
|
|
71296
71658
|
addonId: null,
|
|
71297
71659
|
access: "view"
|
|
71298
71660
|
},
|
|
71299
|
-
"logDestination.
|
|
71661
|
+
"logDestination.cancelRead": {
|
|
71662
|
+
capName: "log-destination",
|
|
71663
|
+
capScope: "system",
|
|
71664
|
+
addonId: null,
|
|
71665
|
+
access: "create"
|
|
71666
|
+
},
|
|
71667
|
+
"logDestination.describeRead": {
|
|
71668
|
+
capName: "log-destination",
|
|
71669
|
+
capScope: "system",
|
|
71670
|
+
addonId: null,
|
|
71671
|
+
access: "view"
|
|
71672
|
+
},
|
|
71673
|
+
"logDestination.read": {
|
|
71300
71674
|
capName: "log-destination",
|
|
71301
71675
|
capScope: "system",
|
|
71302
71676
|
addonId: null,
|
|
@@ -75658,12 +76032,6 @@ Object.freeze({
|
|
|
75658
76032
|
addonId: null,
|
|
75659
76033
|
access: "create"
|
|
75660
76034
|
},
|
|
75661
|
-
"userManagement.createScopedToken": {
|
|
75662
|
-
capName: "user-management",
|
|
75663
|
-
capScope: "system",
|
|
75664
|
-
addonId: null,
|
|
75665
|
-
access: "create"
|
|
75666
|
-
},
|
|
75667
76035
|
"userManagement.createUser": {
|
|
75668
76036
|
capName: "user-management",
|
|
75669
76037
|
capScope: "system",
|
|
@@ -75712,12 +76080,6 @@ Object.freeze({
|
|
|
75712
76080
|
addonId: null,
|
|
75713
76081
|
access: "view"
|
|
75714
76082
|
},
|
|
75715
|
-
"userManagement.listScopedTokens": {
|
|
75716
|
-
capName: "user-management",
|
|
75717
|
-
capScope: "system",
|
|
75718
|
-
addonId: null,
|
|
75719
|
-
access: "view"
|
|
75720
|
-
},
|
|
75721
76083
|
"userManagement.listUsers": {
|
|
75722
76084
|
capName: "user-management",
|
|
75723
76085
|
capScope: "system",
|
|
@@ -75772,12 +76134,6 @@ Object.freeze({
|
|
|
75772
76134
|
addonId: null,
|
|
75773
76135
|
access: "delete"
|
|
75774
76136
|
},
|
|
75775
|
-
"userManagement.revokeScopedToken": {
|
|
75776
|
-
capName: "user-management",
|
|
75777
|
-
capScope: "system",
|
|
75778
|
-
addonId: null,
|
|
75779
|
-
access: "delete"
|
|
75780
|
-
},
|
|
75781
76137
|
"userManagement.setupTotp": {
|
|
75782
76138
|
capName: "user-management",
|
|
75783
76139
|
capScope: "system",
|
|
@@ -75808,12 +76164,6 @@ Object.freeze({
|
|
|
75808
76164
|
addonId: null,
|
|
75809
76165
|
access: "view"
|
|
75810
76166
|
},
|
|
75811
|
-
"userManagement.validateScopedToken": {
|
|
75812
|
-
capName: "user-management",
|
|
75813
|
-
capScope: "system",
|
|
75814
|
-
addonId: null,
|
|
75815
|
-
access: "view"
|
|
75816
|
-
},
|
|
75817
76167
|
"userManagement.verifyTotp": {
|
|
75818
76168
|
capName: "user-management",
|
|
75819
76169
|
capScope: "system",
|
|
@@ -77327,6 +77677,11 @@ Object.freeze({
|
|
|
77327
77677
|
form: "single",
|
|
77328
77678
|
optional: false
|
|
77329
77679
|
}],
|
|
77680
|
+
"logDestination.read": [{
|
|
77681
|
+
name: "deviceId",
|
|
77682
|
+
form: "single",
|
|
77683
|
+
optional: true
|
|
77684
|
+
}],
|
|
77330
77685
|
"mediaPlayer.getStatus": [{
|
|
77331
77686
|
name: "deviceId",
|
|
77332
77687
|
form: "single",
|