@camstack/addon-provider-homematic 1.2.140 → 1.2.142
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
|
@@ -5556,7 +5556,7 @@ var ZodIssueCode = {
|
|
|
5556
5556
|
var ZodFirstPartyTypeKind;
|
|
5557
5557
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5558
5558
|
//#endregion
|
|
5559
|
-
//#region ../types/dist/sleep-
|
|
5559
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5560
5560
|
/**
|
|
5561
5561
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5562
5562
|
* window to float samples (D455).
|
|
@@ -7939,9 +7939,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7939
7939
|
return result;
|
|
7940
7940
|
}
|
|
7941
7941
|
/**
|
|
7942
|
-
* The share-view scope kinds a
|
|
7943
|
-
* and validates them (`
|
|
7944
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7942
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7943
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7944
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7945
7945
|
*/
|
|
7946
7946
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7947
7947
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12831,7 +12831,7 @@ var ConvertResultSchema = object({
|
|
|
12831
12831
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12832
12832
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12833
12833
|
* distinction was only ever used to route role-specific procedures
|
|
12834
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12834
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12835
12835
|
* with `isAdmin: false` + an explicit scope list.
|
|
12836
12836
|
*/
|
|
12837
12837
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -13020,10 +13020,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
13020
13020
|
type: literal("addon-routes"),
|
|
13021
13021
|
access: array(MethodAccessSchema).min(1)
|
|
13022
13022
|
});
|
|
13023
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
13023
13024
|
var CredentialScopeSchema = union([
|
|
13024
13025
|
literal("*"),
|
|
13025
13026
|
ShareViewScopeSchema,
|
|
13026
13027
|
AddonRoutesScopeSchema,
|
|
13028
|
+
PreferencesSelfScopeSchema,
|
|
13027
13029
|
TokenScopeSchema
|
|
13028
13030
|
]);
|
|
13029
13031
|
object({
|
|
@@ -13032,6 +13034,55 @@ object({
|
|
|
13032
13034
|
jti: string().min(16),
|
|
13033
13035
|
scopes: array(CredentialScopeSchema).min(1)
|
|
13034
13036
|
});
|
|
13037
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
13038
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
13039
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
13040
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
13041
|
+
/** A stored row, as the owner reads it. */
|
|
13042
|
+
var PreferenceRowSchema = object({
|
|
13043
|
+
namespace: PreferenceNamespaceSchema,
|
|
13044
|
+
value: PreferenceValueSchema,
|
|
13045
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
13046
|
+
revision: number().int().positive(),
|
|
13047
|
+
updatedAt: number().int(),
|
|
13048
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
13049
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
13050
|
+
});
|
|
13051
|
+
object({
|
|
13052
|
+
/** Absent: every namespace the caller holds. */
|
|
13053
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
13054
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
13055
|
+
object({
|
|
13056
|
+
namespace: PreferenceNamespaceSchema,
|
|
13057
|
+
value: PreferenceValueSchema,
|
|
13058
|
+
/**
|
|
13059
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
13060
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
13061
|
+
* revision answers `conflict` and writes nothing.
|
|
13062
|
+
*/
|
|
13063
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
13064
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
13065
|
+
});
|
|
13066
|
+
discriminatedUnion("status", [object({
|
|
13067
|
+
status: literal("saved"),
|
|
13068
|
+
row: PreferenceRowSchema
|
|
13069
|
+
}), object({
|
|
13070
|
+
status: literal("conflict"),
|
|
13071
|
+
current: PreferenceRowSchema.nullable()
|
|
13072
|
+
})]);
|
|
13073
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
13074
|
+
object({
|
|
13075
|
+
/** `false` when the namespace did not exist. */
|
|
13076
|
+
deleted: boolean() });
|
|
13077
|
+
object({
|
|
13078
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
13079
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
13080
|
+
object({
|
|
13081
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
13082
|
+
rows: array(PreferenceRowSchema),
|
|
13083
|
+
/** Namespaces the client listed that no longer exist. */
|
|
13084
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
13085
|
+
});
|
|
13035
13086
|
_enum(["new-session", "step-up"]);
|
|
13036
13087
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13037
13088
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -17334,7 +17385,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17334
17385
|
kind: literal("node"),
|
|
17335
17386
|
nodeId: string().min(1)
|
|
17336
17387
|
})]);
|
|
17388
|
+
/**
|
|
17389
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17390
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17391
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17392
|
+
*/
|
|
17337
17393
|
var DeviceHistoryKindSchema = _enum([
|
|
17394
|
+
"gauge",
|
|
17395
|
+
"counter",
|
|
17396
|
+
"boolean",
|
|
17397
|
+
"enum"
|
|
17398
|
+
]);
|
|
17399
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17400
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17338
17401
|
"gauge",
|
|
17339
17402
|
"counter",
|
|
17340
17403
|
"boolean"
|
|
@@ -17371,7 +17434,13 @@ var SeriesInfoSchema = object({
|
|
|
17371
17434
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17372
17435
|
unit: string().nullable(),
|
|
17373
17436
|
displayName: string(),
|
|
17374
|
-
source: _enum([
|
|
17437
|
+
source: _enum([
|
|
17438
|
+
"cap",
|
|
17439
|
+
"addon",
|
|
17440
|
+
"derived"
|
|
17441
|
+
]),
|
|
17442
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17443
|
+
values: array(string()).readonly().nullable(),
|
|
17375
17444
|
firstTs: number(),
|
|
17376
17445
|
lastTs: number()
|
|
17377
17446
|
});
|
|
@@ -17385,17 +17454,31 @@ var QueryPointSchema = object({
|
|
|
17385
17454
|
twMean: number().nullable(),
|
|
17386
17455
|
min: number(),
|
|
17387
17456
|
max: number(),
|
|
17388
|
-
/** `null` is unknown, never zero (D393). */
|
|
17389
|
-
last: number().nullable()
|
|
17457
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17458
|
+
last: number().nullable(),
|
|
17459
|
+
/**
|
|
17460
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17461
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17462
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17463
|
+
* every other kind, and when it cannot be known.
|
|
17464
|
+
*/
|
|
17465
|
+
delta: number().nullable(),
|
|
17466
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17467
|
+
state: string().nullable(),
|
|
17468
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17469
|
+
states: record(string(), number()).nullable()
|
|
17390
17470
|
});
|
|
17391
17471
|
var QuerySeriesSchema = object({
|
|
17392
17472
|
scope: string(),
|
|
17393
17473
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17394
17474
|
before: object({
|
|
17395
17475
|
t: number(),
|
|
17396
|
-
value: number().nullable()
|
|
17476
|
+
value: number().nullable(),
|
|
17477
|
+
state: string().nullable()
|
|
17397
17478
|
}).nullable(),
|
|
17398
|
-
points: array(QueryPointSchema).readonly()
|
|
17479
|
+
points: array(QueryPointSchema).readonly(),
|
|
17480
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17481
|
+
derivedFrom: string().nullable()
|
|
17399
17482
|
});
|
|
17400
17483
|
/** The window part of a query, shared by the device and node forms. */
|
|
17401
17484
|
var QueryWindowShape = {
|
|
@@ -17411,6 +17494,23 @@ var QueryResultSchema = object({
|
|
|
17411
17494
|
series: array(QuerySeriesSchema).readonly(),
|
|
17412
17495
|
truncated: boolean()
|
|
17413
17496
|
});
|
|
17497
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17498
|
+
var QueryManyItemSchema = union([object({
|
|
17499
|
+
deviceId: number().int(),
|
|
17500
|
+
key: string(),
|
|
17501
|
+
scope: string().optional()
|
|
17502
|
+
}), object({
|
|
17503
|
+
forNodeId: string().min(1),
|
|
17504
|
+
key: string(),
|
|
17505
|
+
scope: string().optional()
|
|
17506
|
+
})]);
|
|
17507
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17508
|
+
ok: literal(true),
|
|
17509
|
+
result: QueryResultSchema
|
|
17510
|
+
}), object({
|
|
17511
|
+
ok: literal(false),
|
|
17512
|
+
error: string()
|
|
17513
|
+
})]);
|
|
17414
17514
|
var TierStatusSchema = object({
|
|
17415
17515
|
tier: DeviceHistoryResolutionSchema,
|
|
17416
17516
|
/** `null` until the first background count answered. */
|
|
@@ -17466,16 +17566,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17466
17566
|
lastRefreshAt: number().nullable()
|
|
17467
17567
|
})
|
|
17468
17568
|
});
|
|
17469
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17569
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17470
17570
|
deviceId: number().int(),
|
|
17471
17571
|
...QueryWindowShape
|
|
17472
17572
|
}), QueryResultSchema), method(object({
|
|
17473
|
-
|
|
17573
|
+
forNodeId: string().min(1),
|
|
17474
17574
|
...QueryWindowShape
|
|
17475
17575
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17576
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17577
|
+
from: QueryWindowShape.from,
|
|
17578
|
+
to: QueryWindowShape.to,
|
|
17579
|
+
resolution: QueryWindowShape.resolution,
|
|
17580
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17581
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17476
17582
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17477
17583
|
subjectKind: _enum(["device", "node"]),
|
|
17478
|
-
kind:
|
|
17584
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17479
17585
|
unit: string().optional(),
|
|
17480
17586
|
displayName: string().min(1),
|
|
17481
17587
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40387,38 +40493,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40387
40493
|
auth: "admin",
|
|
40388
40494
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40389
40495
|
});
|
|
40496
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40497
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40498
|
+
var LlmModelFeaturesSchema = object({
|
|
40499
|
+
vision: boolean(),
|
|
40500
|
+
tools: boolean(),
|
|
40501
|
+
streaming: boolean()
|
|
40502
|
+
});
|
|
40503
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40504
|
+
var LlmModelInfoSchema = object({
|
|
40505
|
+
id: string(),
|
|
40506
|
+
label: string().optional(),
|
|
40507
|
+
contextLength: number().int().positive().optional(),
|
|
40508
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40509
|
+
});
|
|
40390
40510
|
/**
|
|
40391
|
-
*
|
|
40392
|
-
*
|
|
40393
|
-
*
|
|
40394
|
-
*
|
|
40395
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40396
|
-
*
|
|
40397
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40398
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40399
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40511
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40512
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40513
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40514
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40400
40515
|
*/
|
|
40401
|
-
var
|
|
40402
|
-
"openai-compatible",
|
|
40403
|
-
"openai",
|
|
40404
|
-
"anthropic",
|
|
40405
|
-
"google",
|
|
40406
|
-
"managed-local",
|
|
40407
|
-
"apple-foundation"
|
|
40408
|
-
]);
|
|
40516
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40409
40517
|
var LlmProfileSchema = object({
|
|
40410
40518
|
id: string(),
|
|
40411
40519
|
name: string(),
|
|
40520
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40412
40521
|
kind: LlmProfileKindSchema,
|
|
40413
40522
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40414
40523
|
addonId: string(),
|
|
40415
40524
|
enabled: boolean(),
|
|
40416
40525
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40417
40526
|
model: string(),
|
|
40418
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40419
|
-
baseUrl: string().optional(),
|
|
40420
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40421
|
-
apiKey: string().optional(),
|
|
40422
40527
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40423
40528
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40424
40529
|
* question about a picture nobody sent. */
|
|
@@ -40426,15 +40531,11 @@ var LlmProfileSchema = object({
|
|
|
40426
40531
|
temperature: number().min(0).max(2).optional(),
|
|
40427
40532
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40428
40533
|
topP: number().min(0).max(1).optional(),
|
|
40429
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40430
|
-
*
|
|
40431
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40432
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40534
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40535
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40433
40536
|
topK: number().int().positive().optional(),
|
|
40434
40537
|
maxTokens: number().int().positive().optional(),
|
|
40435
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40436
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40437
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40538
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40438
40539
|
contextLength: number().int().positive().optional(),
|
|
40439
40540
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40440
40541
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40460,16 +40561,37 @@ var LlmProfileSchema = object({
|
|
|
40460
40561
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40461
40562
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40462
40563
|
toolsEnabled: boolean().default(false),
|
|
40463
|
-
|
|
40464
|
-
|
|
40465
|
-
|
|
40466
|
-
|
|
40467
|
-
|
|
40468
|
-
|
|
40469
|
-
|
|
40470
|
-
|
|
40471
|
-
|
|
40472
|
-
|
|
40564
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40565
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40566
|
+
});
|
|
40567
|
+
/**
|
|
40568
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40569
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40570
|
+
*/
|
|
40571
|
+
var LlmProfileFieldSchema = _enum([
|
|
40572
|
+
"temperature",
|
|
40573
|
+
"topP",
|
|
40574
|
+
"topK",
|
|
40575
|
+
"maxTokens",
|
|
40576
|
+
"contextLength",
|
|
40577
|
+
"systemPrompt",
|
|
40578
|
+
"timeoutMs",
|
|
40579
|
+
"connectTimeoutMs",
|
|
40580
|
+
"firstTokenTimeoutMs",
|
|
40581
|
+
"idleTimeoutMs",
|
|
40582
|
+
"retry",
|
|
40583
|
+
"toolsEnabled"
|
|
40584
|
+
]);
|
|
40585
|
+
/**
|
|
40586
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40587
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40588
|
+
* picker: that widget owns the model choice.
|
|
40589
|
+
*/
|
|
40590
|
+
var LlmProviderWidgetSchema = object({
|
|
40591
|
+
id: string(),
|
|
40592
|
+
placement: _enum(["connection", "model"]),
|
|
40593
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40594
|
+
requires: array(string()).optional()
|
|
40473
40595
|
});
|
|
40474
40596
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40475
40597
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40478,11 +40600,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40478
40600
|
var LlmProfileKindDescriptorSchema = object({
|
|
40479
40601
|
kind: LlmProfileKindSchema,
|
|
40480
40602
|
label: string(),
|
|
40603
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40481
40604
|
icon: string(),
|
|
40482
40605
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40483
40606
|
addonId: string(),
|
|
40484
|
-
|
|
40607
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40608
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40609
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40610
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40611
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40612
|
+
features: LlmModelFeaturesSchema,
|
|
40613
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40614
|
+
visionEditable: boolean(),
|
|
40615
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40616
|
+
modelCatalog: _enum([
|
|
40617
|
+
"fetch",
|
|
40618
|
+
"static",
|
|
40619
|
+
"none"
|
|
40620
|
+
]),
|
|
40621
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40622
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40623
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40624
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40485
40625
|
});
|
|
40626
|
+
/**
|
|
40627
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40628
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40629
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40630
|
+
* stored profile — the browser never receives it.
|
|
40631
|
+
*/
|
|
40632
|
+
var LlmListModelsInputSchema = object({
|
|
40633
|
+
addonId: string(),
|
|
40634
|
+
kind: LlmProfileKindSchema,
|
|
40635
|
+
profileId: string().optional(),
|
|
40636
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40637
|
+
});
|
|
40638
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40639
|
+
"auth",
|
|
40640
|
+
"network",
|
|
40641
|
+
"unsupported",
|
|
40642
|
+
"invalid"
|
|
40643
|
+
]);
|
|
40644
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40645
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40646
|
+
ok: literal(true),
|
|
40647
|
+
models: array(LlmModelInfoSchema)
|
|
40648
|
+
}), object({
|
|
40649
|
+
ok: literal(false),
|
|
40650
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40651
|
+
message: string()
|
|
40652
|
+
})]);
|
|
40486
40653
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40487
40654
|
var LlmDefaultSchema = object({
|
|
40488
40655
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40582,7 +40749,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40582
40749
|
kind: "mutation",
|
|
40583
40750
|
auth: "admin",
|
|
40584
40751
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40585
|
-
}), method(
|
|
40752
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40753
|
+
kind: "mutation",
|
|
40754
|
+
auth: "admin"
|
|
40755
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40586
40756
|
selector: LlmDefaultSelectorSchema,
|
|
40587
40757
|
profileId: string().nullable()
|
|
40588
40758
|
}), _void(), {
|
|
@@ -40750,14 +40920,106 @@ var LogEntrySchema = object({
|
|
|
40750
40920
|
meta: record(string(), unknown()).optional(),
|
|
40751
40921
|
tags: record(string(), string()).optional()
|
|
40752
40922
|
});
|
|
40753
|
-
|
|
40754
|
-
|
|
40923
|
+
/**
|
|
40924
|
+
* A history READ against one destination (D898).
|
|
40925
|
+
*
|
|
40926
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40927
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40928
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40929
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40930
|
+
* nanosecond timestamp for Loki.
|
|
40931
|
+
*
|
|
40932
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40933
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40934
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40935
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40936
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40937
|
+
*/
|
|
40938
|
+
var LogReadQuerySchema = object({
|
|
40939
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40940
|
+
requestId: string().min(1).max(64).optional(),
|
|
40941
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40942
|
+
deviceId: number().int().optional(),
|
|
40943
|
+
/**
|
|
40944
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40945
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40946
|
+
*/
|
|
40947
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40948
|
+
/**
|
|
40949
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40950
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40951
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40952
|
+
* name as "which node's provider".
|
|
40953
|
+
*/
|
|
40954
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40955
|
+
/** Any other tag, exact match (AND). */
|
|
40956
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40957
|
+
/** Severity FLOOR: this level and above. */
|
|
40755
40958
|
level: LogLevelSchema.optional(),
|
|
40756
|
-
|
|
40757
|
-
|
|
40758
|
-
|
|
40759
|
-
|
|
40760
|
-
|
|
40959
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40960
|
+
text: string().min(1).max(200).optional(),
|
|
40961
|
+
/** Epoch ms, inclusive. */
|
|
40962
|
+
since: number().optional(),
|
|
40963
|
+
/** Epoch ms, inclusive. */
|
|
40964
|
+
until: number().optional(),
|
|
40965
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40966
|
+
before: string().min(1).max(1024).optional(),
|
|
40967
|
+
/** Newer than this cursor (exclusive). */
|
|
40968
|
+
after: string().min(1).max(1024).optional(),
|
|
40969
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40970
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40971
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40972
|
+
});
|
|
40973
|
+
var LogReadResultSchema = object({
|
|
40974
|
+
/** Newest first. */
|
|
40975
|
+
entries: array(object({
|
|
40976
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40977
|
+
id: string().optional(),
|
|
40978
|
+
/** Epoch ms. */
|
|
40979
|
+
timestamp: number(),
|
|
40980
|
+
level: LogLevelSchema,
|
|
40981
|
+
scope: string().optional(),
|
|
40982
|
+
message: string(),
|
|
40983
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40984
|
+
meta: record(string(), unknown()).optional()
|
|
40985
|
+
})),
|
|
40986
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40987
|
+
nextBefore: string().nullable(),
|
|
40988
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40989
|
+
nextAfter: string().nullable(),
|
|
40990
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40991
|
+
scannedBytes: number().int().nonnegative(),
|
|
40992
|
+
/**
|
|
40993
|
+
* True when the scan in this direction reached the end of the store.
|
|
40994
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40995
|
+
* call again with `nextBefore` to go on.
|
|
40996
|
+
*/
|
|
40997
|
+
done: boolean(),
|
|
40998
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40999
|
+
cancelled: boolean().optional()
|
|
41000
|
+
});
|
|
41001
|
+
var LogReadCapabilitiesSchema = object({
|
|
41002
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
41003
|
+
readable: boolean(),
|
|
41004
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
41005
|
+
reason: string().nullable(),
|
|
41006
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
41007
|
+
filters: object({
|
|
41008
|
+
deviceId: boolean(),
|
|
41009
|
+
addonId: boolean(),
|
|
41010
|
+
nodeId: boolean(),
|
|
41011
|
+
tags: boolean(),
|
|
41012
|
+
level: boolean(),
|
|
41013
|
+
text: boolean(),
|
|
41014
|
+
timeRange: boolean()
|
|
41015
|
+
}),
|
|
41016
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
41017
|
+
retentionDays: number().nullable()
|
|
41018
|
+
});
|
|
41019
|
+
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() }), {
|
|
41020
|
+
kind: "mutation",
|
|
41021
|
+
auth: "admin"
|
|
41022
|
+
});
|
|
40761
41023
|
/**
|
|
40762
41024
|
* `login-method` — collection cap through which auth addons contribute
|
|
40763
41025
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42475,9 +42737,11 @@ var alarmPanelCapability = {
|
|
|
42475
42737
|
*/
|
|
42476
42738
|
durability: "restored",
|
|
42477
42739
|
/**
|
|
42478
|
-
* History (D850):
|
|
42740
|
+
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
42741
|
+
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
42742
|
+
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
42479
42743
|
*/
|
|
42480
|
-
history: "
|
|
42744
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
42481
42745
|
/** Clock fields: written, but excluded from the compare that decides
|
|
42482
42746
|
* whether persisting is worth a SQLite commit. */
|
|
42483
42747
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -43355,6 +43619,33 @@ var NcRuleTargetSchema = object({
|
|
|
43355
43619
|
params: record(string(), unknown()).optional()
|
|
43356
43620
|
});
|
|
43357
43621
|
/**
|
|
43622
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43623
|
+
*
|
|
43624
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43625
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43626
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43627
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43628
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43629
|
+
* labelled with class and confidence ("dog 87%").
|
|
43630
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43631
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43632
|
+
* - `none` — no picture.
|
|
43633
|
+
*
|
|
43634
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43635
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43636
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43637
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43638
|
+
* stored kind had landed.
|
|
43639
|
+
*/
|
|
43640
|
+
var NcMediaImageSchema = _enum([
|
|
43641
|
+
"scene-boxes",
|
|
43642
|
+
"crop",
|
|
43643
|
+
"clean",
|
|
43644
|
+
"none"
|
|
43645
|
+
]);
|
|
43646
|
+
/**
|
|
43647
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43648
|
+
*
|
|
43358
43649
|
* Media attachment policy (P1 still-image subset).
|
|
43359
43650
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43360
43651
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43368,6 +43659,8 @@ var NcRuleTargetSchema = object({
|
|
|
43368
43659
|
* - `none` — no attachment.
|
|
43369
43660
|
*/
|
|
43370
43661
|
/**
|
|
43662
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43663
|
+
*
|
|
43371
43664
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43372
43665
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43373
43666
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43396,16 +43689,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43396
43689
|
*/
|
|
43397
43690
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43398
43691
|
var NcMediaPolicySchema = object({
|
|
43692
|
+
/**
|
|
43693
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43694
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43695
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43696
|
+
*/
|
|
43697
|
+
image: NcMediaImageSchema.optional(),
|
|
43698
|
+
/**
|
|
43699
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43700
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43701
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43702
|
+
* Replaces `zoneCrop`.
|
|
43703
|
+
*/
|
|
43704
|
+
showTriggerZone: boolean().optional(),
|
|
43705
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43399
43706
|
attach: _enum([
|
|
43400
43707
|
"best",
|
|
43401
43708
|
"best-matching",
|
|
43402
43709
|
"keyFrame",
|
|
43403
43710
|
"none"
|
|
43404
|
-
]).
|
|
43405
|
-
/**
|
|
43711
|
+
]).optional(),
|
|
43712
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43406
43713
|
frame: NcMediaFrameSchema.optional(),
|
|
43407
|
-
/**
|
|
43408
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43714
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43409
43715
|
zoneCrop: boolean().optional(),
|
|
43410
43716
|
/**
|
|
43411
43717
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43577,7 +43883,9 @@ var NcRuleInputSchema = object({
|
|
|
43577
43883
|
* targets.
|
|
43578
43884
|
*/
|
|
43579
43885
|
targetUsers: array(string()).optional(),
|
|
43580
|
-
|
|
43886
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43887
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43888
|
+
media: NcMediaPolicySchema.default({}),
|
|
43581
43889
|
throttle: NcThrottleSchema.default({
|
|
43582
43890
|
cooldownSec: 60,
|
|
43583
43891
|
scope: "rule-device"
|
|
@@ -44514,13 +44822,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44514
44822
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44515
44823
|
unknown: array(number().int())
|
|
44516
44824
|
});
|
|
44825
|
+
/**
|
|
44826
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44827
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44828
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44829
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44830
|
+
*/
|
|
44831
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44832
|
+
ruleId: string(),
|
|
44833
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44834
|
+
ruleName: string(),
|
|
44835
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44836
|
+
deviceId: number().int(),
|
|
44837
|
+
/** The input's current name. */
|
|
44838
|
+
name: string(),
|
|
44839
|
+
/** When it was bypassed (ms epoch). */
|
|
44840
|
+
since: number(),
|
|
44841
|
+
/** Triggers from this input dropped since. */
|
|
44842
|
+
dropped: number().int().min(0)
|
|
44843
|
+
});
|
|
44517
44844
|
var NcAlarmLiveSchema = object({
|
|
44518
44845
|
state: AlarmStateSchema,
|
|
44519
44846
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44520
44847
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44521
44848
|
availableModes: array(AlarmArmModeSchema),
|
|
44522
44849
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44523
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44850
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44851
|
+
/**
|
|
44852
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44853
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44854
|
+
*/
|
|
44855
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44524
44856
|
});
|
|
44525
44857
|
var NcAlarmConfigSchema = object({
|
|
44526
44858
|
/**
|
|
@@ -55239,9 +55571,11 @@ var connectivityCapability = {
|
|
|
55239
55571
|
*/
|
|
55240
55572
|
durability: "restored",
|
|
55241
55573
|
/**
|
|
55242
|
-
* History (D850):
|
|
55574
|
+
* History (D850): `connected` as a boolean series — change-only, no floor. It
|
|
55575
|
+
* is the upstream entity's own link (a HA connectivity sensor), not the
|
|
55576
|
+
* device's reachability, which stays `device-status.online`.
|
|
55243
55577
|
*/
|
|
55244
|
-
history: "
|
|
55578
|
+
history: { fields: { connected: { kind: "boolean" } } },
|
|
55245
55579
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55246
55580
|
* whether persisting is worth a SQLite commit. */
|
|
55247
55581
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -56065,11 +56399,22 @@ var dishwasherCapability = {
|
|
|
56065
56399
|
},
|
|
56066
56400
|
runtimeState: DishwasherStatusSchema,
|
|
56067
56401
|
durability: "session",
|
|
56068
|
-
history: { fields: {
|
|
56069
|
-
|
|
56070
|
-
|
|
56071
|
-
|
|
56072
|
-
|
|
56402
|
+
history: { fields: {
|
|
56403
|
+
progressPercent: {
|
|
56404
|
+
kind: "gauge",
|
|
56405
|
+
unit: "%",
|
|
56406
|
+
deadband: 2
|
|
56407
|
+
},
|
|
56408
|
+
state: { kind: "enum" },
|
|
56409
|
+
operationState: { kind: "enum" },
|
|
56410
|
+
remainingSeconds: {
|
|
56411
|
+
kind: "gauge",
|
|
56412
|
+
unit: "s",
|
|
56413
|
+
minIntervalMs: 6e4
|
|
56414
|
+
},
|
|
56415
|
+
doorOpen: { kind: "boolean" },
|
|
56416
|
+
powerOn: { kind: "boolean" }
|
|
56417
|
+
} }
|
|
56073
56418
|
};
|
|
56074
56419
|
var DoorbellStatusSchema = object({
|
|
56075
56420
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
@@ -56186,9 +56531,15 @@ var enumSensorCapability = {
|
|
|
56186
56531
|
*/
|
|
56187
56532
|
durability: "restored",
|
|
56188
56533
|
/**
|
|
56189
|
-
* History (D850):
|
|
56534
|
+
* History (D850): the value as an `enum` series (an appliance's program or
|
|
56535
|
+
* operation state, an HVAC action). The option set is per device, so the
|
|
56536
|
+
* value list is LEARNED as values are first seen (bounded). A sensor with a
|
|
56537
|
+
* `format` carries a timestamp, not a state, and is not recorded.
|
|
56190
56538
|
*/
|
|
56191
|
-
history:
|
|
56539
|
+
history: { fields: { value: {
|
|
56540
|
+
kind: "enum",
|
|
56541
|
+
skipWhenSet: "format"
|
|
56542
|
+
} } },
|
|
56192
56543
|
/** Clock fields: written, but excluded from the compare that decides
|
|
56193
56544
|
* whether persisting is worth a SQLite commit. */
|
|
56194
56545
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -58162,9 +58513,10 @@ var lockControlCapability = {
|
|
|
58162
58513
|
*/
|
|
58163
58514
|
durability: "restored",
|
|
58164
58515
|
/**
|
|
58165
|
-
* History (D850):
|
|
58516
|
+
* History (D850): the lock's state as an `enum` series — change-only, no
|
|
58517
|
+
* floor: a jam or an unlock lasting seconds is the edge an operator looks for.
|
|
58166
58518
|
*/
|
|
58167
|
-
history: "
|
|
58519
|
+
history: { fields: { state: { kind: "enum" } } },
|
|
58168
58520
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58169
58521
|
* whether persisting is worth a SQLite commit. */
|
|
58170
58522
|
volatileStateFields: ["lastChangedAt"]
|
|
@@ -58338,9 +58690,18 @@ var mediaPlayerCapability = {
|
|
|
58338
58690
|
*/
|
|
58339
58691
|
durability: "session",
|
|
58340
58692
|
/**
|
|
58341
|
-
* History (D850):
|
|
58693
|
+
* History (D850): volume (a level an operator or an automation sets; the
|
|
58694
|
+
* default 10 s floor folds a slider drag into its end value) and mute.
|
|
58695
|
+
* `positionMs` is not recorded: it moves continuously while playing.
|
|
58342
58696
|
*/
|
|
58343
|
-
history:
|
|
58697
|
+
history: { fields: {
|
|
58698
|
+
volumeLevel: {
|
|
58699
|
+
kind: "gauge",
|
|
58700
|
+
unit: "%",
|
|
58701
|
+
deadband: 1
|
|
58702
|
+
},
|
|
58703
|
+
isMuted: { kind: "boolean" }
|
|
58704
|
+
} }
|
|
58344
58705
|
};
|
|
58345
58706
|
/**
|
|
58346
58707
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -63633,9 +63994,29 @@ var streamParamsCapability = {
|
|
|
63633
63994
|
*/
|
|
63634
63995
|
durability: "restored",
|
|
63635
63996
|
/**
|
|
63636
|
-
* History (D850):
|
|
63997
|
+
* History (D850): the configured bitrate and frame rate of the main and sub
|
|
63998
|
+
* profiles. Configuration, so change-only on the default floor: a point is an
|
|
63999
|
+
* operator's (or a tuner's) edit, which is exactly what a chart of a stream's
|
|
64000
|
+
* quality over time must show.
|
|
63637
64001
|
*/
|
|
63638
|
-
history:
|
|
64002
|
+
history: { fields: {
|
|
64003
|
+
"main.bitrate": {
|
|
64004
|
+
kind: "gauge",
|
|
64005
|
+
unit: "kbps"
|
|
64006
|
+
},
|
|
64007
|
+
"main.framerate": {
|
|
64008
|
+
kind: "gauge",
|
|
64009
|
+
unit: "fps"
|
|
64010
|
+
},
|
|
64011
|
+
"sub.bitrate": {
|
|
64012
|
+
kind: "gauge",
|
|
64013
|
+
unit: "kbps"
|
|
64014
|
+
},
|
|
64015
|
+
"sub.framerate": {
|
|
64016
|
+
kind: "gauge",
|
|
64017
|
+
unit: "fps"
|
|
64018
|
+
}
|
|
64019
|
+
} },
|
|
63639
64020
|
/** Clock fields: written, but excluded from the compare that decides
|
|
63640
64021
|
* whether persisting is worth a SQLite commit. */
|
|
63641
64022
|
volatileStateFields: ["lastFetchedAt"]
|
|
@@ -64470,26 +64851,6 @@ var ApiKeySummarySchema = object({
|
|
|
64470
64851
|
createdAt: number(),
|
|
64471
64852
|
lastUsedAt: number().optional()
|
|
64472
64853
|
});
|
|
64473
|
-
var ScopedTokenSummarySchema = object({
|
|
64474
|
-
id: string(),
|
|
64475
|
-
userId: string(),
|
|
64476
|
-
name: string(),
|
|
64477
|
-
tokenPrefix: string(),
|
|
64478
|
-
scopes: array(TokenScopeSchema),
|
|
64479
|
-
expiresAt: number().nullish(),
|
|
64480
|
-
lastUsedAt: number().nullish(),
|
|
64481
|
-
createdAt: number()
|
|
64482
|
-
});
|
|
64483
|
-
var CreateScopedTokenInputSchema = object({
|
|
64484
|
-
userId: string(),
|
|
64485
|
-
name: string(),
|
|
64486
|
-
scopes: array(TokenScopeSchema),
|
|
64487
|
-
expiresAt: number().optional()
|
|
64488
|
-
});
|
|
64489
|
-
var CreateScopedTokenResultSchema = object({
|
|
64490
|
-
token: string(),
|
|
64491
|
-
record: ScopedTokenSummarySchema
|
|
64492
|
-
});
|
|
64493
64854
|
var OauthSessionSummarySchema = object({
|
|
64494
64855
|
id: string(),
|
|
64495
64856
|
userId: string(),
|
|
@@ -64511,11 +64872,11 @@ var TotpStatusSchema = object({
|
|
|
64511
64872
|
confirmedAt: number().nullable()
|
|
64512
64873
|
});
|
|
64513
64874
|
/**
|
|
64514
|
-
* user-management — singleton capability for user accounts
|
|
64515
|
-
*
|
|
64875
|
+
* user-management — singleton capability for user accounts and the
|
|
64876
|
+
* legacy API-key rows.
|
|
64516
64877
|
*
|
|
64517
64878
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
64518
|
-
* — the subset check on `setUserScopes`
|
|
64879
|
+
* — the subset check on `setUserScopes` is moot
|
|
64519
64880
|
* because non-admins never reach these. If/when we open non-admin
|
|
64520
64881
|
* delegation, structural caller-scope subset check goes inside the
|
|
64521
64882
|
* provider.
|
|
@@ -64572,15 +64933,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
64572
64933
|
kind: "mutation",
|
|
64573
64934
|
auth: "admin",
|
|
64574
64935
|
access: "delete"
|
|
64575
|
-
}), method(
|
|
64576
|
-
kind: "mutation",
|
|
64577
|
-
auth: "admin",
|
|
64578
|
-
access: "create"
|
|
64579
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
64580
|
-
kind: "mutation",
|
|
64581
|
-
auth: "admin",
|
|
64582
|
-
access: "delete"
|
|
64583
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64936
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
64584
64937
|
kind: "mutation",
|
|
64585
64938
|
auth: "admin",
|
|
64586
64939
|
access: "create"
|
|
@@ -66841,6 +67194,15 @@ var BaseDevice = class {
|
|
|
66841
67194
|
* Drivers can use the `getProbeFlags()` helper to read the flag bag
|
|
66842
67195
|
* with a typed cast.
|
|
66843
67196
|
*
|
|
67197
|
+
* Answer what you KNOW. A plain array is read as the complete list only
|
|
67198
|
+
* while this device is `online` and probed; return
|
|
67199
|
+
* `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
|
|
67200
|
+
* now (no credentials, parent not connected, a failed or partial read) —
|
|
67201
|
+
* the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
|
|
67202
|
+
* to say "connected, and this is the complete list" explicitly. A shrink is
|
|
67203
|
+
* deleted only after a second agreeing complete read on a later probe (D49;
|
|
67204
|
+
* `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
|
|
67205
|
+
*
|
|
66844
67206
|
* Default: no children.
|
|
66845
67207
|
*/
|
|
66846
67208
|
getAccessoryChildren() {
|
|
@@ -70670,7 +71032,7 @@ Object.freeze({
|
|
|
70670
71032
|
capName: "llm",
|
|
70671
71033
|
capScope: "system",
|
|
70672
71034
|
addonId: null,
|
|
70673
|
-
access: "
|
|
71035
|
+
access: "create"
|
|
70674
71036
|
},
|
|
70675
71037
|
"llm.listNodeModels": {
|
|
70676
71038
|
capName: "llm",
|
|
@@ -70972,7 +71334,19 @@ Object.freeze({
|
|
|
70972
71334
|
addonId: null,
|
|
70973
71335
|
access: "view"
|
|
70974
71336
|
},
|
|
70975
|
-
"logDestination.
|
|
71337
|
+
"logDestination.cancelRead": {
|
|
71338
|
+
capName: "log-destination",
|
|
71339
|
+
capScope: "system",
|
|
71340
|
+
addonId: null,
|
|
71341
|
+
access: "create"
|
|
71342
|
+
},
|
|
71343
|
+
"logDestination.describeRead": {
|
|
71344
|
+
capName: "log-destination",
|
|
71345
|
+
capScope: "system",
|
|
71346
|
+
addonId: null,
|
|
71347
|
+
access: "view"
|
|
71348
|
+
},
|
|
71349
|
+
"logDestination.read": {
|
|
70976
71350
|
capName: "log-destination",
|
|
70977
71351
|
capScope: "system",
|
|
70978
71352
|
addonId: null,
|
|
@@ -75334,12 +75708,6 @@ Object.freeze({
|
|
|
75334
75708
|
addonId: null,
|
|
75335
75709
|
access: "create"
|
|
75336
75710
|
},
|
|
75337
|
-
"userManagement.createScopedToken": {
|
|
75338
|
-
capName: "user-management",
|
|
75339
|
-
capScope: "system",
|
|
75340
|
-
addonId: null,
|
|
75341
|
-
access: "create"
|
|
75342
|
-
},
|
|
75343
75711
|
"userManagement.createUser": {
|
|
75344
75712
|
capName: "user-management",
|
|
75345
75713
|
capScope: "system",
|
|
@@ -75388,12 +75756,6 @@ Object.freeze({
|
|
|
75388
75756
|
addonId: null,
|
|
75389
75757
|
access: "view"
|
|
75390
75758
|
},
|
|
75391
|
-
"userManagement.listScopedTokens": {
|
|
75392
|
-
capName: "user-management",
|
|
75393
|
-
capScope: "system",
|
|
75394
|
-
addonId: null,
|
|
75395
|
-
access: "view"
|
|
75396
|
-
},
|
|
75397
75759
|
"userManagement.listUsers": {
|
|
75398
75760
|
capName: "user-management",
|
|
75399
75761
|
capScope: "system",
|
|
@@ -75448,12 +75810,6 @@ Object.freeze({
|
|
|
75448
75810
|
addonId: null,
|
|
75449
75811
|
access: "delete"
|
|
75450
75812
|
},
|
|
75451
|
-
"userManagement.revokeScopedToken": {
|
|
75452
|
-
capName: "user-management",
|
|
75453
|
-
capScope: "system",
|
|
75454
|
-
addonId: null,
|
|
75455
|
-
access: "delete"
|
|
75456
|
-
},
|
|
75457
75813
|
"userManagement.setupTotp": {
|
|
75458
75814
|
capName: "user-management",
|
|
75459
75815
|
capScope: "system",
|
|
@@ -75484,12 +75840,6 @@ Object.freeze({
|
|
|
75484
75840
|
addonId: null,
|
|
75485
75841
|
access: "view"
|
|
75486
75842
|
},
|
|
75487
|
-
"userManagement.validateScopedToken": {
|
|
75488
|
-
capName: "user-management",
|
|
75489
|
-
capScope: "system",
|
|
75490
|
-
addonId: null,
|
|
75491
|
-
access: "view"
|
|
75492
|
-
},
|
|
75493
75843
|
"userManagement.verifyTotp": {
|
|
75494
75844
|
capName: "user-management",
|
|
75495
75845
|
capScope: "system",
|
|
@@ -77003,6 +77353,11 @@ Object.freeze({
|
|
|
77003
77353
|
form: "single",
|
|
77004
77354
|
optional: false
|
|
77005
77355
|
}],
|
|
77356
|
+
"logDestination.read": [{
|
|
77357
|
+
name: "deviceId",
|
|
77358
|
+
form: "single",
|
|
77359
|
+
optional: true
|
|
77360
|
+
}],
|
|
77006
77361
|
"mediaPlayer.getStatus": [{
|
|
77007
77362
|
name: "deviceId",
|
|
77008
77363
|
form: "single",
|