@camstack/addon-provider-homematic 1.2.196 → 1.2.197
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/CHANGELOG.md +6 -0
- package/dist/.bundle-modules.json +2 -2
- package/dist/_stub.js +4 -4
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-D8eX6qCZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-C4Fww_oV.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D0unHZPY.mjs +26 -0
- package/dist/addon-provider-homematic.css +1 -1
- package/dist/addon.js +615 -312
- package/dist/addon.mjs +615 -312
- package/dist/{hostInit-DuBY5RFc.mjs → hostInit-DTPxs8RG.mjs} +2 -2
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-v2rx1eLb.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-DSDGvcoJ.mjs} +1 -1
- package/dist/widgets/_stub.js +3 -3
- package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-Cn_SmgI_.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-p7WFaZQH.mjs} +1 -1
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-C7ks8wIZ.mjs +26 -0
- package/dist/widgets/{hostInit-qp7M4JAF.mjs → hostInit-CtVv-2Cj.mjs} +1 -1
- package/dist/widgets/remoteEntry.js +1 -1
- package/package.json +6 -6
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BPCGkZg7.mjs +0 -26
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-jVV0iLqt.mjs +0 -26
package/dist/addon.js
CHANGED
|
@@ -5762,7 +5762,7 @@ var ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
|
5762
5762
|
inst.keyType = def.keyType;
|
|
5763
5763
|
inst.valueType = def.valueType;
|
|
5764
5764
|
});
|
|
5765
|
-
function record(keyType, valueType, params) {
|
|
5765
|
+
function record$1(keyType, valueType, params) {
|
|
5766
5766
|
if (!valueType || !valueType._zod) return new ZodRecord({
|
|
5767
5767
|
type: "record",
|
|
5768
5768
|
keyType: string(),
|
|
@@ -7599,7 +7599,7 @@ function registrySwitchPortsOver(deps) {
|
|
|
7599
7599
|
const handle = deps.records.kind({
|
|
7600
7600
|
name: deps.kind.name,
|
|
7601
7601
|
declaration: deps.kind.declaration,
|
|
7602
|
-
schema: record(string(), unknown())
|
|
7602
|
+
schema: record$1(string(), unknown())
|
|
7603
7603
|
});
|
|
7604
7604
|
return {
|
|
7605
7605
|
listIntegrations: async (addonId) => (await deps.api.list()).filter((i) => i.addonId === addonId).map((i) => ({
|
|
@@ -9750,7 +9750,7 @@ function normalizeAddonInitResult(result) {
|
|
|
9750
9750
|
}
|
|
9751
9751
|
object({
|
|
9752
9752
|
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
9753
|
-
params: record(string(), union([string(), number$1()])).optional()
|
|
9753
|
+
params: record$1(string(), union([string(), number$1()])).optional()
|
|
9754
9754
|
});
|
|
9755
9755
|
object({
|
|
9756
9756
|
field: string().min(1),
|
|
@@ -9801,7 +9801,7 @@ object({
|
|
|
9801
9801
|
}).nullable();
|
|
9802
9802
|
object({ deviceId: number$1() }), object({ deviceId: number$1() }), object({
|
|
9803
9803
|
deviceId: number$1(),
|
|
9804
|
-
patch: record(string(), unknown())
|
|
9804
|
+
patch: record$1(string(), unknown())
|
|
9805
9805
|
}), object({ success: literal(true) });
|
|
9806
9806
|
object({ deviceId: number$1() }), unknown().nullable();
|
|
9807
9807
|
function method(input, output, options) {
|
|
@@ -9956,7 +9956,7 @@ var EntryDescriptorSchema = object({
|
|
|
9956
9956
|
/** The record body field shown as the entry's name. */
|
|
9957
9957
|
nameField: string().min(1),
|
|
9958
9958
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
9959
|
-
fields: record(string(), unknown())
|
|
9959
|
+
fields: record$1(string(), unknown())
|
|
9960
9960
|
}).strict();
|
|
9961
9961
|
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
9962
9962
|
var RecordKindDeclarationSchema = object({
|
|
@@ -9976,7 +9976,7 @@ var RecordKindDeclarationSchema = object({
|
|
|
9976
9976
|
/** Derived from the Zod schema; never written by hand. */
|
|
9977
9977
|
secretPaths: array(string().min(1)).default([]),
|
|
9978
9978
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
9979
|
-
secretArrayKeys: record(string(), string()).default({}),
|
|
9979
|
+
secretArrayKeys: record$1(string(), string()).default({}),
|
|
9980
9980
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
9981
9981
|
transactFamily: string().min(1).optional(),
|
|
9982
9982
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -10190,7 +10190,7 @@ var TransitionValueSchema = union([
|
|
|
10190
10190
|
number$1(),
|
|
10191
10191
|
boolean(),
|
|
10192
10192
|
_null(),
|
|
10193
|
-
record(string(), unknown())
|
|
10193
|
+
record$1(string(), unknown())
|
|
10194
10194
|
]);
|
|
10195
10195
|
/** Who asked. `device` is the fallback: nothing the hub observed asked for the change. */
|
|
10196
10196
|
var TransitionActorSchema = discriminatedUnion("kind", [
|
|
@@ -10253,7 +10253,7 @@ var TransitionOutcomeSchema = _enum([
|
|
|
10253
10253
|
var TransitionCommandSchema = object({
|
|
10254
10254
|
commandId: string(),
|
|
10255
10255
|
method: string(),
|
|
10256
|
-
args: record(string(), unknown()),
|
|
10256
|
+
args: record$1(string(), unknown()),
|
|
10257
10257
|
requestedAt: number$1(),
|
|
10258
10258
|
/** Milliseconds from the command to the change it caused; `null` when no change was seen. */
|
|
10259
10259
|
matchedAfterMs: number$1().nullable(),
|
|
@@ -10476,7 +10476,7 @@ var CameraStreamSchema = object({
|
|
|
10476
10476
|
* route RTP packets to the right depacketizer without an in-band
|
|
10477
10477
|
* DESCRIBE phase). Other kinds typically leave it undefined.
|
|
10478
10478
|
*/
|
|
10479
|
-
metadata: record(string(), unknown()).optional()
|
|
10479
|
+
metadata: record$1(string(), unknown()).optional()
|
|
10480
10480
|
});
|
|
10481
10481
|
var ProfileSlotStatusSchema = _enum([
|
|
10482
10482
|
"unassigned",
|
|
@@ -10528,7 +10528,7 @@ object({
|
|
|
10528
10528
|
url: string(),
|
|
10529
10529
|
videoCodec: string().optional(),
|
|
10530
10530
|
audioCodec: string().optional(),
|
|
10531
|
-
metadata: record(string(), unknown()).readonly().optional()
|
|
10531
|
+
metadata: record$1(string(), unknown()).readonly().optional()
|
|
10532
10532
|
});
|
|
10533
10533
|
/**
|
|
10534
10534
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
@@ -19336,11 +19336,11 @@ var RawStateResultSchema = object({
|
|
|
19336
19336
|
/** Originating provider id, e.g. 'homeassistant' | 'reolink' | 'hikvision'. */
|
|
19337
19337
|
source: string(),
|
|
19338
19338
|
/** Opaque, DISPLAY-SAFE upstream blob (no secrets/PII). */
|
|
19339
|
-
data: record(string(), unknown())
|
|
19339
|
+
data: record$1(string(), unknown())
|
|
19340
19340
|
});
|
|
19341
19341
|
method(object({ deviceId: number$1() }), array(StreamSourceEntrySchema)), method(object({ deviceId: number$1() }), array(ConfigEntrySchema$1)), method(object({
|
|
19342
19342
|
deviceId: number$1(),
|
|
19343
|
-
values: record(string(), unknown())
|
|
19343
|
+
values: record$1(string(), unknown())
|
|
19344
19344
|
}), _void(), {
|
|
19345
19345
|
kind: "mutation",
|
|
19346
19346
|
auth: "admin"
|
|
@@ -19371,7 +19371,7 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
19371
19371
|
modelId: string().optional(),
|
|
19372
19372
|
enabled: boolean().default(true),
|
|
19373
19373
|
children: array(PipelineStepInputSchema).optional(),
|
|
19374
|
-
settings: record(string(), unknown()).optional(),
|
|
19374
|
+
settings: record$1(string(), unknown()).optional(),
|
|
19375
19375
|
jumpDeviceKey: string().optional()
|
|
19376
19376
|
}));
|
|
19377
19377
|
/** Typed bridge to the recursive `FrameResult` graph; validation is structural. */
|
|
@@ -22663,7 +22663,7 @@ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSource
|
|
|
22663
22663
|
var CompositionExpressionSourceSchema = object({
|
|
22664
22664
|
kind: literal("expression"),
|
|
22665
22665
|
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
22666
|
-
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
|
|
22666
|
+
bindings: record$1(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
|
|
22667
22667
|
}).superRefine((src, ctx) => {
|
|
22668
22668
|
const err = validateExpressionSource(src);
|
|
22669
22669
|
if (err !== null) ctx.addIssue({
|
|
@@ -22739,7 +22739,7 @@ var forwardArgUnion = union([
|
|
|
22739
22739
|
number$1(),
|
|
22740
22740
|
boolean(),
|
|
22741
22741
|
strictObject({ ["$input"]: string().min(1) }),
|
|
22742
|
-
record(string().min(1), lazy(() => forwardArgUnion))
|
|
22742
|
+
record$1(string().min(1), lazy(() => forwardArgUnion))
|
|
22743
22743
|
]);
|
|
22744
22744
|
var CompositionForwardArgSchema = forwardArgUnion;
|
|
22745
22745
|
/**
|
|
@@ -22753,7 +22753,7 @@ var CompositionForwardCommandSchema = object({
|
|
|
22753
22753
|
source: CompositionSourceRefSchema,
|
|
22754
22754
|
cap: string().min(1),
|
|
22755
22755
|
method: string().min(1),
|
|
22756
|
-
args: record(string().min(1), CompositionForwardArgSchema).optional()
|
|
22756
|
+
args: record$1(string().min(1), CompositionForwardArgSchema).optional()
|
|
22757
22757
|
});
|
|
22758
22758
|
var CompositionCommandTargetSchema = discriminatedUnion("kind", [
|
|
22759
22759
|
CompositionForwardCommandSchema,
|
|
@@ -22772,7 +22772,7 @@ var COMPOSITION_ITEM_KEY_RE = /^[a-z0-9][a-z0-9-]{0,47}$/;
|
|
|
22772
22772
|
*/
|
|
22773
22773
|
var CompositionItemEntrySchema = object({
|
|
22774
22774
|
label: string().min(1).max(80),
|
|
22775
|
-
fields: record(string().min(1), CompositionFieldSourceSchema),
|
|
22775
|
+
fields: record$1(string().min(1), CompositionFieldSourceSchema),
|
|
22776
22776
|
/**
|
|
22777
22777
|
* What the cap's `reset` does for THIS item (consumables). Present = the item
|
|
22778
22778
|
* is resettable and a `reset` call naming its key forwards here. The item key
|
|
@@ -22784,14 +22784,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
|
22784
22784
|
kind: literal("fields"),
|
|
22785
22785
|
cap: string().min(1),
|
|
22786
22786
|
enabled: boolean().optional(),
|
|
22787
|
-
fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
|
|
22787
|
+
fields: record$1(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
|
|
22788
22788
|
/**
|
|
22789
22789
|
* Items of the cap's item array, keyed by item key (D663). Naming `items`
|
|
22790
22790
|
* owns the WHOLE array field: the composed value holds exactly these items.
|
|
22791
22791
|
*/
|
|
22792
|
-
items: record(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
|
|
22792
|
+
items: record$1(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
|
|
22793
22793
|
/** Method name → what serves it. Only a BUILT capability takes commands (D967). */
|
|
22794
|
-
commands: record(string().min(1), CompositionCommandTargetSchema).optional()
|
|
22794
|
+
commands: record$1(string().min(1), CompositionCommandTargetSchema).optional()
|
|
22795
22795
|
}), object({
|
|
22796
22796
|
kind: literal("passthrough"),
|
|
22797
22797
|
cap: string().min(1),
|
|
@@ -23354,7 +23354,7 @@ object({
|
|
|
23354
23354
|
/** The oldest `@camstack/server` this package runs on. */
|
|
23355
23355
|
server: MinVersionSchema.optional(),
|
|
23356
23356
|
/** The oldest installed version of each named addon package. */
|
|
23357
|
-
addons: record(string(), MinVersionSchema).optional(),
|
|
23357
|
+
addons: record$1(string(), MinVersionSchema).optional(),
|
|
23358
23358
|
/** The oldest shell around the server, per shell kind. */
|
|
23359
23359
|
wrapper: object({
|
|
23360
23360
|
desktop: MinVersionSchema.optional(),
|
|
@@ -23597,13 +23597,13 @@ var NotificationSchema = object({
|
|
|
23597
23597
|
tag: string().optional(),
|
|
23598
23598
|
deviceId: number$1().optional(),
|
|
23599
23599
|
eventId: string().optional(),
|
|
23600
|
-
metadata: record(string(), unknown()).optional(),
|
|
23600
|
+
metadata: record$1(string(), unknown()).optional(),
|
|
23601
23601
|
/**
|
|
23602
23602
|
* Values for the parameters the target's kind DECLARES in
|
|
23603
23603
|
* {@link TargetKindSchema} `deliveryParams`. Already validated against the
|
|
23604
23604
|
* declaration by the sender; a notifier reads only the keys it declared.
|
|
23605
23605
|
*/
|
|
23606
|
-
delivery: record(string(), DeliveryParamValueSchema).optional()
|
|
23606
|
+
delivery: record$1(string(), DeliveryParamValueSchema).optional()
|
|
23607
23607
|
});
|
|
23608
23608
|
/** One declared native severity/priority level for a kind. */
|
|
23609
23609
|
var TargetKindLevelSchema = object({
|
|
@@ -23754,13 +23754,13 @@ var TargetSchema = object({
|
|
|
23754
23754
|
kind: string(),
|
|
23755
23755
|
addonId: string(),
|
|
23756
23756
|
enabled: boolean(),
|
|
23757
|
-
config: record(string(), unknown())
|
|
23757
|
+
config: record$1(string(), unknown())
|
|
23758
23758
|
});
|
|
23759
23759
|
/** A discovery-surfaced candidate (config is partial + non-secret). */
|
|
23760
23760
|
var DiscoveredTargetSchema = object({
|
|
23761
23761
|
kind: string(),
|
|
23762
23762
|
suggestedName: string(),
|
|
23763
|
-
config: record(string(), unknown())
|
|
23763
|
+
config: record$1(string(), unknown())
|
|
23764
23764
|
});
|
|
23765
23765
|
/** The degrade engine's report — what was resolved / dropped / degraded. */
|
|
23766
23766
|
var RenderedAsSchema = object({
|
|
@@ -23791,7 +23791,7 @@ var ProbeTargetConfigResultSchema = object({
|
|
|
23791
23791
|
});
|
|
23792
23792
|
method(object({}), array(TargetKindSchema)), method(object({
|
|
23793
23793
|
kind: string(),
|
|
23794
|
-
config: record(string(), unknown()).optional(),
|
|
23794
|
+
config: record$1(string(), unknown()).optional(),
|
|
23795
23795
|
/**
|
|
23796
23796
|
* When editing / duplicating, the blank password field never round-trips
|
|
23797
23797
|
* the stored token. Pass the source target id so the provider can restore
|
|
@@ -23800,7 +23800,7 @@ method(object({}), array(TargetKindSchema)), method(object({
|
|
|
23800
23800
|
targetId: string().optional()
|
|
23801
23801
|
}), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
|
|
23802
23802
|
kind: string(),
|
|
23803
|
-
config: record(string(), unknown()),
|
|
23803
|
+
config: record$1(string(), unknown()),
|
|
23804
23804
|
/** See `discoverTargets.targetId` — restore stored secrets for a blank password. */
|
|
23805
23805
|
targetId: string().optional()
|
|
23806
23806
|
}), ProbeTargetConfigResultSchema, {
|
|
@@ -24283,14 +24283,14 @@ var CameraSwitchGroupSchema = object({
|
|
|
24283
24283
|
* Query filter for settings-store collections.
|
|
24284
24284
|
*/
|
|
24285
24285
|
var QueryFilterSchema = object({
|
|
24286
|
-
where: record(string(), unknown()).optional(),
|
|
24287
|
-
whereIn: record(string(), array(unknown())).optional(),
|
|
24288
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
24286
|
+
where: record$1(string(), unknown()).optional(),
|
|
24287
|
+
whereIn: record$1(string(), array(unknown())).optional(),
|
|
24288
|
+
whereBetween: record$1(string(), tuple([unknown(), unknown()])).optional(),
|
|
24289
24289
|
/** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
|
|
24290
|
-
whereNot: record(string(), unknown()).optional(),
|
|
24290
|
+
whereNot: record$1(string(), unknown()).optional(),
|
|
24291
24291
|
/** NULL-safe exclusion of a SET — `whereNot` for more than one value. An
|
|
24292
24292
|
* empty list excludes nothing. See `QueryFilter.whereNotIn`. */
|
|
24293
|
-
whereNotIn: record(string(), array(unknown())).optional(),
|
|
24293
|
+
whereNotIn: record$1(string(), array(unknown())).optional(),
|
|
24294
24294
|
orderBy: object({
|
|
24295
24295
|
field: string(),
|
|
24296
24296
|
direction: _enum(["asc", "desc"])
|
|
@@ -24308,11 +24308,11 @@ var QueryFilterSchema = object({
|
|
|
24308
24308
|
* that compiles to no predicate, because that is the whole collection.
|
|
24309
24309
|
*/
|
|
24310
24310
|
var MutationFilterSchema = object({
|
|
24311
|
-
where: record(string(), unknown()).optional(),
|
|
24312
|
-
whereIn: record(string(), array(unknown())).optional(),
|
|
24313
|
-
whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
|
|
24314
|
-
whereNot: record(string(), unknown()).optional(),
|
|
24315
|
-
whereNotIn: record(string(), array(unknown())).optional()
|
|
24311
|
+
where: record$1(string(), unknown()).optional(),
|
|
24312
|
+
whereIn: record$1(string(), array(unknown())).optional(),
|
|
24313
|
+
whereBetween: record$1(string(), tuple([unknown(), unknown()])).optional(),
|
|
24314
|
+
whereNot: record$1(string(), unknown()).optional(),
|
|
24315
|
+
whereNotIn: record$1(string(), array(unknown())).optional()
|
|
24316
24316
|
});
|
|
24317
24317
|
/**
|
|
24318
24318
|
* One scalar an {@link settingsStoreCapability.methods.aggregate} call asks for.
|
|
@@ -24341,12 +24341,12 @@ var AggregateFieldSchema = object({
|
|
|
24341
24341
|
*/
|
|
24342
24342
|
var AggregateResultSchema = object({
|
|
24343
24343
|
count: number$1().int(),
|
|
24344
|
-
values: record(string(), number$1().nullable())
|
|
24344
|
+
values: record$1(string(), number$1().nullable())
|
|
24345
24345
|
});
|
|
24346
24346
|
/** A single stored record: `{ id, data }`. */
|
|
24347
24347
|
var SettingsRecordSchema = object({
|
|
24348
24348
|
id: string(),
|
|
24349
|
-
data: record(string(), unknown())
|
|
24349
|
+
data: record$1(string(), unknown())
|
|
24350
24350
|
});
|
|
24351
24351
|
/**
|
|
24352
24352
|
* One record of a BULK insert — {@link SettingsRecordSchema} with the id made
|
|
@@ -24359,7 +24359,7 @@ var SettingsRecordSchema = object({
|
|
|
24359
24359
|
*/
|
|
24360
24360
|
var BulkRecordSchema = object({
|
|
24361
24361
|
id: string().optional(),
|
|
24362
|
-
data: record(string(), unknown())
|
|
24362
|
+
data: record$1(string(), unknown())
|
|
24363
24363
|
});
|
|
24364
24364
|
/**
|
|
24365
24365
|
* The database FILES one `sqlite-settings` engine process owns (D851).
|
|
@@ -24394,7 +24394,7 @@ var TransactOpSchema = discriminatedUnion("op", [
|
|
|
24394
24394
|
op: literal("update"),
|
|
24395
24395
|
collection: string(),
|
|
24396
24396
|
id: string(),
|
|
24397
|
-
data: record(string(), unknown())
|
|
24397
|
+
data: record$1(string(), unknown())
|
|
24398
24398
|
}),
|
|
24399
24399
|
object({
|
|
24400
24400
|
op: literal("upsertMany"),
|
|
@@ -24518,7 +24518,7 @@ id: union([string(), number$1()]) }), {
|
|
|
24518
24518
|
collection: string(),
|
|
24519
24519
|
record: object({
|
|
24520
24520
|
id: string().optional(),
|
|
24521
|
-
data: record(string(), unknown())
|
|
24521
|
+
data: record$1(string(), unknown())
|
|
24522
24522
|
})
|
|
24523
24523
|
}), object({
|
|
24524
24524
|
/**
|
|
@@ -24550,7 +24550,7 @@ id: union([string(), number$1()]) }), {
|
|
|
24550
24550
|
namespace: string().optional(),
|
|
24551
24551
|
collection: string(),
|
|
24552
24552
|
id: string(),
|
|
24553
|
-
data: record(string(), unknown())
|
|
24553
|
+
data: record$1(string(), unknown())
|
|
24554
24554
|
}), _void(), {
|
|
24555
24555
|
kind: "mutation",
|
|
24556
24556
|
auth: "admin"
|
|
@@ -24572,7 +24572,7 @@ id: union([string(), number$1()]) }), {
|
|
|
24572
24572
|
namespace: string().optional(),
|
|
24573
24573
|
collection: string(),
|
|
24574
24574
|
filter: MutationFilterSchema,
|
|
24575
|
-
data: record(string(), unknown())
|
|
24575
|
+
data: record$1(string(), unknown())
|
|
24576
24576
|
}), object({ updated: number$1().int() }), {
|
|
24577
24577
|
kind: "mutation",
|
|
24578
24578
|
auth: "admin"
|
|
@@ -24763,7 +24763,7 @@ var MigrationPlanSchema = object({ edits: array(discriminatedUnion("op", [
|
|
|
24763
24763
|
object({
|
|
24764
24764
|
op: literal("setKeys"),
|
|
24765
24765
|
scope: string().min(1),
|
|
24766
|
-
values: record(string(), unknown()),
|
|
24766
|
+
values: record$1(string(), unknown()),
|
|
24767
24767
|
precondition: PreconditionSchema
|
|
24768
24768
|
}),
|
|
24769
24769
|
object({
|
|
@@ -24775,14 +24775,14 @@ var MigrationPlanSchema = object({ edits: array(discriminatedUnion("op", [
|
|
|
24775
24775
|
object({
|
|
24776
24776
|
op: literal("putRow"),
|
|
24777
24777
|
table: string().min(1),
|
|
24778
|
-
key: record(string(), unknown()),
|
|
24779
|
-
row: record(string(), unknown()),
|
|
24778
|
+
key: record$1(string(), unknown()),
|
|
24779
|
+
row: record$1(string(), unknown()),
|
|
24780
24780
|
precondition: PreconditionSchema
|
|
24781
24781
|
}),
|
|
24782
24782
|
object({
|
|
24783
24783
|
op: literal("deleteRow"),
|
|
24784
24784
|
table: string().min(1),
|
|
24785
|
-
key: record(string(), unknown()),
|
|
24785
|
+
key: record$1(string(), unknown()),
|
|
24786
24786
|
precondition: PreconditionSchema
|
|
24787
24787
|
}),
|
|
24788
24788
|
object({
|
|
@@ -24806,7 +24806,7 @@ var MigrationPlanSchema = object({ edits: array(discriminatedUnion("op", [
|
|
|
24806
24806
|
*/
|
|
24807
24807
|
var MigrationProcedureResultSchema = object({
|
|
24808
24808
|
outcome: _enum(["done", "already-done"]),
|
|
24809
|
-
summary: record(string(), unknown())
|
|
24809
|
+
summary: record$1(string(), unknown())
|
|
24810
24810
|
});
|
|
24811
24811
|
/** What an owner hands the engine when one of its migrations ran. */
|
|
24812
24812
|
var MigrationOwnerResultSchema = discriminatedUnion("kind", [
|
|
@@ -24847,8 +24847,8 @@ var MigrationLedgerEntrySchema = object({
|
|
|
24847
24847
|
appliedAt: number$1().nullable(),
|
|
24848
24848
|
codeVersion: string().nullable(),
|
|
24849
24849
|
/** What the apply changed: rows per table, as the engine counted them. */
|
|
24850
|
-
planSummary: record(string(), unknown()).nullable(),
|
|
24851
|
-
progress: record(string(), unknown()).nullable(),
|
|
24850
|
+
planSummary: record$1(string(), unknown()).nullable(),
|
|
24851
|
+
progress: record$1(string(), unknown()).nullable(),
|
|
24852
24852
|
error: string().nullable(),
|
|
24853
24853
|
/** Why it is `blocked` or `held` (`dependency-failed`, `snapshot-refused`, …). */
|
|
24854
24854
|
reason: string().nullable(),
|
|
@@ -25075,7 +25075,7 @@ var TrainingExportSchema = _enum([
|
|
|
25075
25075
|
"openvino-int8",
|
|
25076
25076
|
"coreml-fp16"
|
|
25077
25077
|
]);
|
|
25078
|
-
var FloorsSchema = record(string(), number$1().min(0).max(1));
|
|
25078
|
+
var FloorsSchema = record$1(string(), number$1().min(0).max(1));
|
|
25079
25079
|
object({
|
|
25080
25080
|
schema: literal(TRAINING_JOB_SCHEMA),
|
|
25081
25081
|
jobKey: string().uuid(),
|
|
@@ -25184,15 +25184,15 @@ var TrainingEvalClassSchema = object({
|
|
|
25184
25184
|
precision: number$1().nullable(),
|
|
25185
25185
|
recall: number$1().nullable(),
|
|
25186
25186
|
ap50: number$1().nullable(),
|
|
25187
|
-
recallByCamera: record(string(), number$1().nullable()).optional(),
|
|
25188
|
-
recallByLight: record(string(), number$1().nullable()).optional(),
|
|
25189
|
-
fpByCamera: record(string(), number$1()).optional(),
|
|
25187
|
+
recallByCamera: record$1(string(), number$1().nullable()).optional(),
|
|
25188
|
+
recallByLight: record$1(string(), number$1().nullable()).optional(),
|
|
25189
|
+
fpByCamera: record$1(string(), number$1()).optional(),
|
|
25190
25190
|
smallFound: number$1().int().optional(),
|
|
25191
25191
|
smallTotal: number$1().int().optional()
|
|
25192
25192
|
}).passthrough();
|
|
25193
25193
|
var TrainingEvalReportSchema = object({
|
|
25194
25194
|
frames: number$1().int(),
|
|
25195
|
-
classes: record(string(), TrainingEvalClassSchema)
|
|
25195
|
+
classes: record$1(string(), TrainingEvalClassSchema)
|
|
25196
25196
|
}).passthrough();
|
|
25197
25197
|
/**
|
|
25198
25198
|
* A succeeded result carries every block; a failed one carries the error and
|
|
@@ -25212,7 +25212,7 @@ var TrainingResultSchema = object({
|
|
|
25212
25212
|
version: string(),
|
|
25213
25213
|
revision: string()
|
|
25214
25214
|
}),
|
|
25215
|
-
toolchain: record(string(), string().nullable()),
|
|
25215
|
+
toolchain: record$1(string(), string().nullable()),
|
|
25216
25216
|
dataset: object({
|
|
25217
25217
|
versionId: string(),
|
|
25218
25218
|
annotationHash: string(),
|
|
@@ -25237,8 +25237,8 @@ var TrainingResultSchema = object({
|
|
|
25237
25237
|
baseline: TrainingEvalReportSchema.nullable(),
|
|
25238
25238
|
candidate: TrainingEvalReportSchema.nullable(),
|
|
25239
25239
|
candidateInt8: TrainingEvalReportSchema.nullable(),
|
|
25240
|
-
recallDeltaByCamera: record(string(), record(string(), number$1())).nullable(),
|
|
25241
|
-
map50: record(string(), number$1().nullable())
|
|
25240
|
+
recallDeltaByCamera: record$1(string(), record$1(string(), number$1())).nullable(),
|
|
25241
|
+
map50: record$1(string(), number$1().nullable())
|
|
25242
25242
|
}).optional(),
|
|
25243
25243
|
floors: object({
|
|
25244
25244
|
baseline: FloorsSchema,
|
|
@@ -25734,7 +25734,7 @@ var FIRST_LEVEL_MACRO_CLASSES = [
|
|
|
25734
25734
|
* detection macro" test in `model-catalog-schema.test.ts`).
|
|
25735
25735
|
*/
|
|
25736
25736
|
var DetectionCatalogClassMapSchema = object({
|
|
25737
|
-
mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
25737
|
+
mapping: record$1(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
|
|
25738
25738
|
preserveOriginal: boolean()
|
|
25739
25739
|
});
|
|
25740
25740
|
/**
|
|
@@ -26647,7 +26647,7 @@ var StorageLocationSchema = object({
|
|
|
26647
26647
|
type: string(),
|
|
26648
26648
|
displayName: string().min(1),
|
|
26649
26649
|
providerId: string().min(1),
|
|
26650
|
-
config: record(string(), unknown()),
|
|
26650
|
+
config: record$1(string(), unknown()),
|
|
26651
26651
|
/**
|
|
26652
26652
|
* Cluster node this location physically lives on. REQUIRED for node-local
|
|
26653
26653
|
* providers (filesystem — the path exists on one node's disk), null/absent
|
|
@@ -27208,7 +27208,7 @@ var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
|
27208
27208
|
object({
|
|
27209
27209
|
kind: literal("label"),
|
|
27210
27210
|
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
27211
|
-
labelToEffect: record(string(), string()),
|
|
27211
|
+
labelToEffect: record$1(string(), string()),
|
|
27212
27212
|
uncovered: array(string()).readonly()
|
|
27213
27213
|
}),
|
|
27214
27214
|
object({
|
|
@@ -27302,7 +27302,7 @@ var ModelCatalogEntrySchema = object({
|
|
|
27302
27302
|
* model it was made for and does not survive a model change (D738). A custom
|
|
27303
27303
|
* / imported model may declare it; without it, the global defaults apply.
|
|
27304
27304
|
*/
|
|
27305
|
-
defaultClassFloors: record(string(), number$1().min(0).max(1)).optional(),
|
|
27305
|
+
defaultClassFloors: record$1(string(), number$1().min(0).max(1)).optional(),
|
|
27306
27306
|
/**
|
|
27307
27307
|
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
27308
27308
|
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
@@ -27321,7 +27321,7 @@ var ModelCatalogEntrySchema = object({
|
|
|
27321
27321
|
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
27322
27322
|
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
27323
27323
|
*/
|
|
27324
|
-
suppliedLabelFloors: record(string(), number$1().min(0).max(1)).optional(),
|
|
27324
|
+
suppliedLabelFloors: record$1(string(), number$1().min(0).max(1)).optional(),
|
|
27325
27325
|
/**
|
|
27326
27326
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
27327
27327
|
* onto the canonical template) before this step runs, instead of a plain
|
|
@@ -27353,7 +27353,7 @@ var ModelCatalogEntrySchema = object({
|
|
|
27353
27353
|
*/
|
|
27354
27354
|
metrics: object({
|
|
27355
27355
|
map50: number$1().optional(),
|
|
27356
|
-
p95LatencyMs: record(string(), number$1()).optional()
|
|
27356
|
+
p95LatencyMs: record$1(string(), number$1()).optional()
|
|
27357
27357
|
}).optional(),
|
|
27358
27358
|
/**
|
|
27359
27359
|
* The model's licence record — see {@link ModelLicenseSchema}. Optional in
|
|
@@ -27514,7 +27514,7 @@ var MethodAccessSchema = _enum([
|
|
|
27514
27514
|
* "give me everything" escape; there is no wildcard scope.
|
|
27515
27515
|
*/
|
|
27516
27516
|
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
27517
|
-
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
27517
|
+
var AllowedDevicesSchema = record$1(string(), union([literal("*"), array(string())]));
|
|
27518
27518
|
var CapScopeSchema = _enum(["device", "system"]);
|
|
27519
27519
|
/**
|
|
27520
27520
|
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
@@ -27706,7 +27706,7 @@ object({
|
|
|
27706
27706
|
});
|
|
27707
27707
|
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
27708
27708
|
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
27709
|
-
var PreferenceValueSchema = record(string(), unknown());
|
|
27709
|
+
var PreferenceValueSchema = record$1(string(), unknown());
|
|
27710
27710
|
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
27711
27711
|
/** A stored row, as the owner reads it. */
|
|
27712
27712
|
var PreferenceRowSchema = object({
|
|
@@ -27746,7 +27746,7 @@ object({
|
|
|
27746
27746
|
deleted: boolean() });
|
|
27747
27747
|
object({
|
|
27748
27748
|
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
27749
|
-
revisionByNamespace: record(PreferenceNamespaceSchema, number$1().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
27749
|
+
revisionByNamespace: record$1(PreferenceNamespaceSchema, number$1().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
27750
27750
|
object({
|
|
27751
27751
|
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
27752
27752
|
rows: array(PreferenceRowSchema),
|
|
@@ -47956,7 +47956,7 @@ var TemplateEventValueSchema = object({
|
|
|
47956
47956
|
/** An `action` input's value: a vocabulary action and its open args. */
|
|
47957
47957
|
var TemplateActionValueSchema = object({
|
|
47958
47958
|
actionId: string().min(1),
|
|
47959
|
-
args: record(string(), unknown()).optional()
|
|
47959
|
+
args: record$1(string(), unknown()).optional()
|
|
47960
47960
|
});
|
|
47961
47961
|
/** The value of one non-group input. Which member is right is the input kind's to judge. */
|
|
47962
47962
|
var TemplateScalarValueSchema = union([
|
|
@@ -47967,9 +47967,9 @@ var TemplateScalarValueSchema = union([
|
|
|
47967
47967
|
TemplateEventValueSchema,
|
|
47968
47968
|
TemplateActionValueSchema
|
|
47969
47969
|
]);
|
|
47970
|
-
var TemplateInputValueSchema = union([TemplateScalarValueSchema, array(record(string(), TemplateScalarValueSchema))]);
|
|
47970
|
+
var TemplateInputValueSchema = union([TemplateScalarValueSchema, array(record$1(string(), TemplateScalarValueSchema))]);
|
|
47971
47971
|
/** Input key → value. */
|
|
47972
|
-
var TemplateInputValuesSchema = record(string(), TemplateInputValueSchema);
|
|
47972
|
+
var TemplateInputValuesSchema = record$1(string(), TemplateInputValueSchema);
|
|
47973
47973
|
var TemplateInstanceProblemSchema = object({
|
|
47974
47974
|
code: _enum([
|
|
47975
47975
|
"missing-input",
|
|
@@ -48023,7 +48023,7 @@ var ExpressionBindingSourceSchema = union([
|
|
|
48023
48023
|
]);
|
|
48024
48024
|
object({
|
|
48025
48025
|
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
48026
|
-
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
48026
|
+
bindings: record$1(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
48027
48027
|
}).superRefine((src, ctx) => {
|
|
48028
48028
|
const err = validateExpressionSource(src);
|
|
48029
48029
|
if (err !== null) ctx.addIssue({
|
|
@@ -48080,7 +48080,7 @@ var SourceInfoSchema = object({
|
|
|
48080
48080
|
/** Provider-specific extras that don't fit the structured slots.
|
|
48081
48081
|
* Whitelist what goes here per provider — do NOT dump entire HA
|
|
48082
48082
|
* attribute blobs (would explode the meta JSON column). */
|
|
48083
|
-
raw: record(string(), unknown()).optional()
|
|
48083
|
+
raw: record$1(string(), unknown()).optional()
|
|
48084
48084
|
});
|
|
48085
48085
|
/**
|
|
48086
48086
|
* Build the synthetic SourceInfo every existing provider falls back to
|
|
@@ -48768,7 +48768,7 @@ var TriggeredByLeafSchema = object({
|
|
|
48768
48768
|
var ExpressionLeafSchema = object({
|
|
48769
48769
|
kind: literal("expression"),
|
|
48770
48770
|
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
48771
|
-
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema),
|
|
48771
|
+
bindings: record$1(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema),
|
|
48772
48772
|
/** The expression must stay true this long. An expression has no single value, so only `held`. */
|
|
48773
48773
|
for: HoldSpecSchema.optional()
|
|
48774
48774
|
}).superRefine((src, ctx) => {
|
|
@@ -49039,7 +49039,7 @@ var LegacyStationaryPresentSchema = object({
|
|
|
49039
49039
|
var LegacyExpressionSchema = object({
|
|
49040
49040
|
kind: literal("expression"),
|
|
49041
49041
|
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
49042
|
-
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
49042
|
+
bindings: record$1(string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
49043
49043
|
}).superRefine((src, ctx) => {
|
|
49044
49044
|
const err = validateExpressionSource(src);
|
|
49045
49045
|
if (err !== null) ctx.addIssue({
|
|
@@ -49186,13 +49186,13 @@ var AutomationCommandStepBaseSchema = object({
|
|
|
49186
49186
|
* may carry `{{vars.x}}` slots, or be exactly `{ $var: 'name' }`, which
|
|
49187
49187
|
* SUBSTITUTE and do not evaluate (§3.2.3).
|
|
49188
49188
|
*/
|
|
49189
|
-
args: record(string(), unknown()).optional(),
|
|
49189
|
+
args: record$1(string(), unknown()).optional(),
|
|
49190
49190
|
/**
|
|
49191
49191
|
* The unit the person picked per arg (display only). `args` always hold the
|
|
49192
49192
|
* value in the unit the method's input DECLARES (`paramMeta`); on a write an
|
|
49193
49193
|
* arg may be a {@link QuantityValue}, which the save boundary converts.
|
|
49194
49194
|
*/
|
|
49195
|
-
argUnits: record(string(), string().min(1)).optional()
|
|
49195
|
+
argUnits: record$1(string(), string().min(1)).optional()
|
|
49196
49196
|
});
|
|
49197
49197
|
/** The vocabulary check every command step passes: the action exists. */
|
|
49198
49198
|
function refineKnownAction(step, ctx) {
|
|
@@ -49270,7 +49270,7 @@ var RESERVED_RUN_VARS = [
|
|
|
49270
49270
|
*/
|
|
49271
49271
|
var AutomationSetStepSchema = object({
|
|
49272
49272
|
kind: literal("set"),
|
|
49273
|
-
vars: record(string(), union([
|
|
49273
|
+
vars: record$1(string(), union([
|
|
49274
49274
|
string().max(500),
|
|
49275
49275
|
number$1(),
|
|
49276
49276
|
boolean()
|
|
@@ -49283,7 +49283,7 @@ var AutomationRunActionStepSchema = object({
|
|
|
49283
49283
|
/** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
|
|
49284
49284
|
actionId: string().min(1),
|
|
49285
49285
|
/** Values for the action's declared variables; the others take their default. */
|
|
49286
|
-
variables: record(string(), union([
|
|
49286
|
+
variables: record$1(string(), union([
|
|
49287
49287
|
string(),
|
|
49288
49288
|
number$1(),
|
|
49289
49289
|
boolean()
|
|
@@ -49734,7 +49734,7 @@ var AutomationTriggerTraceSchema = object({
|
|
|
49734
49734
|
/** Why an event was rejected ("class person not in [dog]") or what fired. */
|
|
49735
49735
|
reason: string(),
|
|
49736
49736
|
/** deviceId, className, trackId, score … — only what the trigger exposes. */
|
|
49737
|
-
vars: record(string(), TraceValueSchema),
|
|
49737
|
+
vars: record$1(string(), TraceValueSchema),
|
|
49738
49738
|
/** A hold (`for`) this occurrence went through: pending, cancelled, fired or re-seeded. */
|
|
49739
49739
|
hold: HoldTraceSchema.optional()
|
|
49740
49740
|
});
|
|
@@ -49806,7 +49806,7 @@ var StepTraceBaseSchema = object({
|
|
|
49806
49806
|
* device was actually asked. Bounded like trigger `vars`; a secret parameter
|
|
49807
49807
|
* is shown as {@link REDACTED_ARG}. Absent on traces written before it existed.
|
|
49808
49808
|
*/
|
|
49809
|
-
args: record(string(), TraceValueSchema).optional(),
|
|
49809
|
+
args: record$1(string(), TraceValueSchema).optional(),
|
|
49810
49810
|
/**
|
|
49811
49811
|
* The device values a templated arg printed as `—`, one `ref: reason` each
|
|
49812
49812
|
* (D1021): why a sentence says "—" where a number was expected. Bounded.
|
|
@@ -49957,7 +49957,7 @@ var EventFireSchema = object({
|
|
|
49957
49957
|
deviceId: number$1(),
|
|
49958
49958
|
eventType: string(),
|
|
49959
49959
|
sourceId: string().optional(),
|
|
49960
|
-
data: record(string(), unknown()).nullable(),
|
|
49960
|
+
data: record$1(string(), unknown()).nullable(),
|
|
49961
49961
|
timestamp: number$1().meta(readingMeta("none")),
|
|
49962
49962
|
seq: number$1().meta(readingMeta("count"))
|
|
49963
49963
|
});
|
|
@@ -50358,7 +50358,7 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
|
|
|
50358
50358
|
kind: "mutation",
|
|
50359
50359
|
auth: "admin"
|
|
50360
50360
|
});
|
|
50361
|
-
record(string(), string());
|
|
50361
|
+
record$1(string(), string());
|
|
50362
50362
|
_enum([
|
|
50363
50363
|
"automation",
|
|
50364
50364
|
"action",
|
|
@@ -50418,7 +50418,7 @@ DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Sensor, Devic
|
|
|
50418
50418
|
});
|
|
50419
50419
|
method(object({}), array(ActionEntrySchema), { auth: "admin" }), method(object({
|
|
50420
50420
|
actionId: string().min(1),
|
|
50421
|
-
variables: record(string(), ActionVariableValueSchema).optional()
|
|
50421
|
+
variables: record$1(string(), ActionVariableValueSchema).optional()
|
|
50422
50422
|
}), _void(), {
|
|
50423
50423
|
kind: "mutation",
|
|
50424
50424
|
auth: "admin"
|
|
@@ -50470,7 +50470,7 @@ method(object({}), array(ActionEntrySchema), { auth: "admin" }), method(object({
|
|
|
50470
50470
|
caller: "required"
|
|
50471
50471
|
}), method(object({
|
|
50472
50472
|
actionId: string().min(1),
|
|
50473
|
-
variables: record(string(), ActionVariableValueSchema).optional(),
|
|
50473
|
+
variables: record$1(string(), ActionVariableValueSchema).optional(),
|
|
50474
50474
|
wait: boolean().optional(),
|
|
50475
50475
|
origin: ActionRunOriginSchema.optional(),
|
|
50476
50476
|
deviceId: number$1().int().nonnegative().optional()
|
|
@@ -50572,10 +50572,10 @@ var AddonHttpRouteSchema = object({
|
|
|
50572
50572
|
var InvokeRequestSchema = object({
|
|
50573
50573
|
method: string(),
|
|
50574
50574
|
path: string(),
|
|
50575
|
-
params: record(string(), string()),
|
|
50576
|
-
query: record(string(), string()),
|
|
50575
|
+
params: record$1(string(), string()),
|
|
50576
|
+
query: record$1(string(), string()),
|
|
50577
50577
|
body: unknown(),
|
|
50578
|
-
headers: record(string(), string()),
|
|
50578
|
+
headers: record$1(string(), string()),
|
|
50579
50579
|
/** The instance the hub resolved for a `perInstance` route. */
|
|
50580
50580
|
instanceId: string().optional(),
|
|
50581
50581
|
user: object({
|
|
@@ -50587,7 +50587,7 @@ var InvokeRequestSchema = object({
|
|
|
50587
50587
|
});
|
|
50588
50588
|
var InvokeReplyEnvelopeSchema = object({
|
|
50589
50589
|
status: number$1().int(),
|
|
50590
|
-
headers: record(string(), string()),
|
|
50590
|
+
headers: record$1(string(), string()),
|
|
50591
50591
|
/** When set, the hub MUST `reply.redirect(redirectUrl)` instead of
|
|
50592
50592
|
* sending `body`. Status defaults to 302 when this is set unless
|
|
50593
50593
|
* the handler called `reply.code(...)` explicitly. */
|
|
@@ -50632,7 +50632,7 @@ var SettingsSchemaWithValuesSchema = object({
|
|
|
50632
50632
|
sections: array(ConfigSectionWithValuesSchema)
|
|
50633
50633
|
});
|
|
50634
50634
|
/** Patch object — keys are field names, values are the new field values. */
|
|
50635
|
-
var SettingsPatchSchema = record(string(), unknown());
|
|
50635
|
+
var SettingsPatchSchema = record$1(string(), unknown());
|
|
50636
50636
|
/** The scope of a scoped-settings call (D986): where the capability declared the values. */
|
|
50637
50637
|
var ScopedSettingsScopeSchema = _enum(SCOPED_SETTINGS_SCOPES);
|
|
50638
50638
|
/** One scoped schema an addon serves: its capability, scope and section ids. */
|
|
@@ -50665,7 +50665,7 @@ method(object({
|
|
|
50665
50665
|
cap: string(),
|
|
50666
50666
|
scope: ScopedSettingsScopeSchema,
|
|
50667
50667
|
nodeId: string().optional()
|
|
50668
|
-
}), record(string(), unknown()).nullable()), method(object({
|
|
50668
|
+
}), record$1(string(), unknown()).nullable()), method(object({
|
|
50669
50669
|
addonId: string(),
|
|
50670
50670
|
nodeId: string().optional()
|
|
50671
50671
|
}), object({ keys: array(string()) }).nullable(), { auth: "admin" }), method(object({
|
|
@@ -51792,7 +51792,7 @@ var AlertSeveritySchema = _enum([
|
|
|
51792
51792
|
var AlertActionInvokeSchema = object({
|
|
51793
51793
|
addonId: string().min(1),
|
|
51794
51794
|
action: string().min(1),
|
|
51795
|
-
input: record(string(), unknown()).optional()
|
|
51795
|
+
input: record$1(string(), unknown()).optional()
|
|
51796
51796
|
});
|
|
51797
51797
|
/** An action has `href` (a link) OR `invoke` (a button that runs a custom action). */
|
|
51798
51798
|
var AlertActionSchema = object({
|
|
@@ -51831,7 +51831,7 @@ var AlertSchema = object({
|
|
|
51831
51831
|
createdAt: number$1(),
|
|
51832
51832
|
updatedAt: number$1(),
|
|
51833
51833
|
source: AlertSourceSchema.optional(),
|
|
51834
|
-
metadata: record(string(), unknown()).optional()
|
|
51834
|
+
metadata: record$1(string(), unknown()).optional()
|
|
51835
51835
|
});
|
|
51836
51836
|
method(AlertSchema, _void(), { kind: "mutation" }), method(object({
|
|
51837
51837
|
alertId: string(),
|
|
@@ -52310,7 +52310,7 @@ var AuthResultSchema = object({
|
|
|
52310
52310
|
method(object({
|
|
52311
52311
|
username: string(),
|
|
52312
52312
|
password: string()
|
|
52313
|
-
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable()), NOT_A_DEVICE.IDENTITY;
|
|
52313
|
+
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record$1(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable()), NOT_A_DEVICE.IDENTITY;
|
|
52314
52314
|
/**
|
|
52315
52315
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
52316
52316
|
* `DeviceType.Automation`. An automation is a trigger+condition+
|
|
@@ -53544,13 +53544,13 @@ var RegistryStatusSchema = object({
|
|
|
53544
53544
|
connectedCount: number$1().int().nonnegative()
|
|
53545
53545
|
});
|
|
53546
53546
|
var GetInputSchema = object({ id: string() });
|
|
53547
|
-
var SettingsRecordSchema$1 = record(string(), unknown());
|
|
53547
|
+
var SettingsRecordSchema$1 = record$1(string(), unknown());
|
|
53548
53548
|
var PublishInputSchema = object({
|
|
53549
53549
|
brokerId: string(),
|
|
53550
53550
|
/** Kind-specific routing target.
|
|
53551
53551
|
* MQTT: `{ topic: string, qos?: 0|1|2, retain?: boolean }`.
|
|
53552
53552
|
* HA: `{ domain: string, service: string, entityId?: string, area?: string }`. */
|
|
53553
|
-
target: record(string(), unknown()),
|
|
53553
|
+
target: record$1(string(), unknown()),
|
|
53554
53554
|
/** Kind-specific payload.
|
|
53555
53555
|
* MQTT: raw string / number / object (provider serialises).
|
|
53556
53556
|
* HA: service-call `data` object (transition, brightness, …). */
|
|
@@ -53561,7 +53561,7 @@ var SubscribeInputSchema = object({
|
|
|
53561
53561
|
/** Kind-specific filter.
|
|
53562
53562
|
* MQTT: `{ topic: string, qos?: 0|1|2 }` — topic can include wildcards.
|
|
53563
53563
|
* HA: `{ entityIds: string[] }` or `{ domain: string }`. */
|
|
53564
|
-
filter: record(string(), unknown())
|
|
53564
|
+
filter: record$1(string(), unknown())
|
|
53565
53565
|
});
|
|
53566
53566
|
var SubscribeResultSchema = object({
|
|
53567
53567
|
/** Stable subscription id. Used to unsubscribe and to filter the
|
|
@@ -53688,7 +53688,7 @@ var CalendarPreferenceEntrySchema = object({
|
|
|
53688
53688
|
/** Absent or cleared → fall back to the system {@link CalendarEntry.defaultColor}. */
|
|
53689
53689
|
color: CalendarColorSchema.optional()
|
|
53690
53690
|
});
|
|
53691
|
-
var CalendarPreferencesSchema = object({ calendars: record(string(), CalendarPreferenceEntrySchema) });
|
|
53691
|
+
var CalendarPreferencesSchema = object({ calendars: record$1(string(), CalendarPreferenceEntrySchema) });
|
|
53692
53692
|
var CalendarSetPreferenceInputSchema = object({
|
|
53693
53693
|
calendarId: string().min(1),
|
|
53694
53694
|
visible: boolean().optional(),
|
|
@@ -54087,7 +54087,7 @@ var BrokerConsumerAttributionSchema = object({
|
|
|
54087
54087
|
/** Higher-level session identifier (Alexa Echo sessionId, HAP session, …). */
|
|
54088
54088
|
sessionId: string().optional(),
|
|
54089
54089
|
/** Free-form key/value extras (e.g. clientHints from a WebRTC offer). */
|
|
54090
|
-
extra: record(string(), string()).optional()
|
|
54090
|
+
extra: record$1(string(), string()).optional()
|
|
54091
54091
|
}).readonly();
|
|
54092
54092
|
var BrokerEncodedClientSchema = object({
|
|
54093
54093
|
/** Stable id assigned on attach; used by `killClient`. */
|
|
@@ -54350,7 +54350,7 @@ method(object({
|
|
|
54350
54350
|
autoEligible: boolean().optional(),
|
|
54351
54351
|
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
54352
54352
|
profileHint: CamProfileSchema.optional(),
|
|
54353
|
-
metadata: record(string(), unknown()).optional(),
|
|
54353
|
+
metadata: record$1(string(), unknown()).optional(),
|
|
54354
54354
|
/** Required when kind === 'derived' — the source camStreamId the
|
|
54355
54355
|
* derived broker reads its encoded plane from.
|
|
54356
54356
|
* The runtime guard (broker manager, Task 10) enforces presence for
|
|
@@ -58138,7 +58138,7 @@ var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
|
|
|
58138
58138
|
}),
|
|
58139
58139
|
object({
|
|
58140
58140
|
kind: literal("enum-map"),
|
|
58141
|
-
mapping: record(string(), string().nullable())
|
|
58141
|
+
mapping: record$1(string(), string().nullable())
|
|
58142
58142
|
}),
|
|
58143
58143
|
object({ kind: literal("number") })
|
|
58144
58144
|
]);
|
|
@@ -58319,7 +58319,7 @@ var CoreBlockStatusSchema = _enum([
|
|
|
58319
58319
|
"failed"
|
|
58320
58320
|
]);
|
|
58321
58321
|
/** path → TypeScript source for a multi-file block. */
|
|
58322
|
-
var CoreBlockFilesSchema = record(string().min(1).max(260), string().max(2e5));
|
|
58322
|
+
var CoreBlockFilesSchema = record$1(string().min(1).max(260), string().max(2e5));
|
|
58323
58323
|
/**
|
|
58324
58324
|
* A block's settings form — the same ConfigUISchema addons declare.
|
|
58325
58325
|
* Loose on the wire (field variants are polymorphic); typed for callers.
|
|
@@ -58955,7 +58955,7 @@ method(_void(), EngineInfoSchema, { auth: "admin" }), method(object({
|
|
|
58955
58955
|
collection: string(),
|
|
58956
58956
|
record: object({
|
|
58957
58957
|
id: string().optional(),
|
|
58958
|
-
data: record(string(), unknown())
|
|
58958
|
+
data: record$1(string(), unknown())
|
|
58959
58959
|
})
|
|
58960
58960
|
}), object({
|
|
58961
58961
|
/**
|
|
@@ -59003,7 +59003,7 @@ id: union([string(), number$1()]) }), {
|
|
|
59003
59003
|
namespace: string().optional(),
|
|
59004
59004
|
collection: string(),
|
|
59005
59005
|
id: string(),
|
|
59006
|
-
data: record(string(), unknown())
|
|
59006
|
+
data: record$1(string(), unknown())
|
|
59007
59007
|
}), _void(), {
|
|
59008
59008
|
kind: "mutation",
|
|
59009
59009
|
auth: "admin"
|
|
@@ -59025,7 +59025,7 @@ id: union([string(), number$1()]) }), {
|
|
|
59025
59025
|
namespace: string().optional(),
|
|
59026
59026
|
collection: string(),
|
|
59027
59027
|
filter: MutationFilterSchema,
|
|
59028
|
-
data: record(string(), unknown())
|
|
59028
|
+
data: record$1(string(), unknown())
|
|
59029
59029
|
}), object({ updated: number$1().int() }), {
|
|
59030
59030
|
kind: "mutation",
|
|
59031
59031
|
auth: "admin"
|
|
@@ -59526,7 +59526,7 @@ var AdoptInputSchema = object({
|
|
|
59526
59526
|
* area) into CamStack — fuzzy-match an existing location or create it, then
|
|
59527
59527
|
* assign. Omitted/false = no location work (back-compat). */
|
|
59528
59528
|
importLocations: boolean().optional(),
|
|
59529
|
-
perCandidate: record(string(), PerCandidateSchema).optional()
|
|
59529
|
+
perCandidate: record$1(string(), PerCandidateSchema).optional()
|
|
59530
59530
|
});
|
|
59531
59531
|
var AdoptResultSchema = object({ adopted: array(object({
|
|
59532
59532
|
childNativeId: string(),
|
|
@@ -59663,7 +59663,7 @@ var DeviceTemplateValueSchema = union([
|
|
|
59663
59663
|
*/
|
|
59664
59664
|
var DeviceTemplateThisDeviceSchema = object({
|
|
59665
59665
|
deviceId: number$1().int(),
|
|
59666
|
-
values: record(string().min(1).max(64), DeviceTemplateValueSchema).optional()
|
|
59666
|
+
values: record$1(string().min(1).max(64), DeviceTemplateValueSchema).optional()
|
|
59667
59667
|
});
|
|
59668
59668
|
var DeviceTemplateRefusalSchema = object({
|
|
59669
59669
|
reason: _enum([
|
|
@@ -59859,7 +59859,7 @@ object({
|
|
|
59859
59859
|
externalId: string(),
|
|
59860
59860
|
name: string(),
|
|
59861
59861
|
type: string(),
|
|
59862
|
-
metadata: record(string(), unknown()).optional()
|
|
59862
|
+
metadata: record$1(string(), unknown()).optional()
|
|
59863
59863
|
});
|
|
59864
59864
|
/**
|
|
59865
59865
|
* HOW a provider can be found on the network. The provider only DECLARES the
|
|
@@ -59917,7 +59917,7 @@ var DiscoveryHitSchema = object({
|
|
|
59917
59917
|
port: number$1().int(),
|
|
59918
59918
|
http: object({
|
|
59919
59919
|
status: number$1().int(),
|
|
59920
|
-
headers: record(string(), string()),
|
|
59920
|
+
headers: record$1(string(), string()),
|
|
59921
59921
|
/** At most 16 KiB. */
|
|
59922
59922
|
bodyText: string()
|
|
59923
59923
|
}).optional(),
|
|
@@ -59925,7 +59925,7 @@ var DiscoveryHitSchema = object({
|
|
|
59925
59925
|
instance: string(),
|
|
59926
59926
|
host: string(),
|
|
59927
59927
|
port: number$1().int(),
|
|
59928
|
-
txt: record(string(), string())
|
|
59928
|
+
txt: record$1(string(), string())
|
|
59929
59929
|
}).optional(),
|
|
59930
59930
|
udp: object({ payloadHex: string() }).optional(),
|
|
59931
59931
|
wsd: object({
|
|
@@ -59943,7 +59943,7 @@ var DiscoveryCandidateSchema = object({
|
|
|
59943
59943
|
stableId: string(),
|
|
59944
59944
|
type: _enum(DeviceType),
|
|
59945
59945
|
suggestedName: string(),
|
|
59946
|
-
prefilledConfig: record(string(), unknown()),
|
|
59946
|
+
prefilledConfig: record$1(string(), unknown()),
|
|
59947
59947
|
/**
|
|
59948
59948
|
* Optional upstream-system identity (HA entity_id, vendor MAC, …).
|
|
59949
59949
|
* Discovery pre-populates this for systems that know the upstream
|
|
@@ -60002,7 +60002,7 @@ var DeviceSummarySchema = object({
|
|
|
60002
60002
|
parentDeviceId: number$1().nullable(),
|
|
60003
60003
|
online: boolean(),
|
|
60004
60004
|
features: array(string()),
|
|
60005
|
-
config: record(string(), unknown()),
|
|
60005
|
+
config: record$1(string(), unknown()),
|
|
60006
60006
|
/** Optional upstream-system identity (dispatch key + system tag).
|
|
60007
60007
|
* See `SourceInfo`. Present when the device has a non-synthetic
|
|
60008
60008
|
* source identifier (HA entities, vendor MAC, …); omitted when the
|
|
@@ -60078,7 +60078,7 @@ var deviceProviderCapability = {
|
|
|
60078
60078
|
* shaped by `getDiscoveryParamsSchema`. Omitted for the generic scan
|
|
60079
60079
|
* (provider uses its local-network default).
|
|
60080
60080
|
*/
|
|
60081
|
-
discoverDevices: method(object({ params: record(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
60081
|
+
discoverDevices: method(object({ params: record$1(string(), unknown()).optional() }), array(DiscoveryCandidateSchema), {
|
|
60082
60082
|
kind: "mutation",
|
|
60083
60083
|
auth: "admin"
|
|
60084
60084
|
}),
|
|
@@ -60095,7 +60095,7 @@ var deviceProviderCapability = {
|
|
|
60095
60095
|
*/
|
|
60096
60096
|
classifyDiscoveryHits: method(object({
|
|
60097
60097
|
hits: array(DiscoveryHitSchema),
|
|
60098
|
-
params: record(string(), unknown()).optional()
|
|
60098
|
+
params: record$1(string(), unknown()).optional()
|
|
60099
60099
|
}), array(DiscoveryCandidateSchema), {
|
|
60100
60100
|
kind: "mutation",
|
|
60101
60101
|
auth: "admin"
|
|
@@ -60138,7 +60138,7 @@ integrationId: string().optional() }), object({ deviceType: _enum(DeviceType).nu
|
|
|
60138
60138
|
}), CreationSchemaOutputSchema),
|
|
60139
60139
|
createDevice: method(object({
|
|
60140
60140
|
type: _enum(DeviceType),
|
|
60141
|
-
config: record(string(), unknown()),
|
|
60141
|
+
config: record$1(string(), unknown()),
|
|
60142
60142
|
/** The integration the operator adds the device to; a provider with several instances needs it. */
|
|
60143
60143
|
integrationId: string().optional()
|
|
60144
60144
|
}), DeviceSummarySchema, {
|
|
@@ -60161,7 +60161,7 @@ integrationId: string().optional() }), object({ deviceType: _enum(DeviceType).nu
|
|
|
60161
60161
|
type: _enum(DeviceType),
|
|
60162
60162
|
key: string(),
|
|
60163
60163
|
value: unknown(),
|
|
60164
|
-
formValues: record(string(), unknown()).optional()
|
|
60164
|
+
formValues: record$1(string(), unknown()).optional()
|
|
60165
60165
|
}), FieldProbeResultSchema, {
|
|
60166
60166
|
kind: "mutation",
|
|
60167
60167
|
auth: "admin"
|
|
@@ -60183,7 +60183,7 @@ var DiscoveryObservationSchema = discriminatedUnion("kind", [object({
|
|
|
60183
60183
|
/** The A record address when the announcement carried one. */
|
|
60184
60184
|
address: string().nullable(),
|
|
60185
60185
|
port: number$1().int(),
|
|
60186
|
-
txt: record(string(), string())
|
|
60186
|
+
txt: record$1(string(), string())
|
|
60187
60187
|
}), object({
|
|
60188
60188
|
kind: literal("ssdp"),
|
|
60189
60189
|
/** Sender address of the datagram. */
|
|
@@ -60191,7 +60191,7 @@ var DiscoveryObservationSchema = discriminatedUnion("kind", [object({
|
|
|
60191
60191
|
port: number$1().int(),
|
|
60192
60192
|
/** `NT` of a NOTIFY, `ST` of a search response. */
|
|
60193
60193
|
target: string(),
|
|
60194
|
-
headers: record(string(), string())
|
|
60194
|
+
headers: record$1(string(), string())
|
|
60195
60195
|
})]);
|
|
60196
60196
|
object({
|
|
60197
60197
|
addonId: string(),
|
|
@@ -60252,7 +60252,7 @@ var DeviceDisplayOverrideSchema = object({
|
|
|
60252
60252
|
unit: string().min(1).optional(),
|
|
60253
60253
|
precision: number$1().int().min(0).max(10).optional(),
|
|
60254
60254
|
hidden: boolean().optional(),
|
|
60255
|
-
perCap: record(string(), DeviceCapDisplayOverrideSchema).optional()
|
|
60255
|
+
perCap: record$1(string(), DeviceCapDisplayOverrideSchema).optional()
|
|
60256
60256
|
});
|
|
60257
60257
|
/** Cap-wire shape of a per-role display default — mirrors `RoleDisplayDefault`
|
|
60258
60258
|
* in `device-management.ts`. Keyed by `DeviceRole` string (role strings cross
|
|
@@ -60302,14 +60302,14 @@ var DeviceInfoSchema = object({
|
|
|
60302
60302
|
/** true when the device has a getStreamSources() method (ICameraDevice) */
|
|
60303
60303
|
isCamera: boolean(),
|
|
60304
60304
|
/** Current config values — serializable snapshot */
|
|
60305
|
-
config: record(string(), unknown()),
|
|
60305
|
+
config: record$1(string(), unknown()),
|
|
60306
60306
|
/** Paths inside `config` the device's schema declares secret (D783) —
|
|
60307
60307
|
* what the non-admin redaction withholds. Paths, never values. Absent
|
|
60308
60308
|
* when the owning runner has not reported them. */
|
|
60309
60309
|
secretConfigPaths: array(string()).optional(),
|
|
60310
60310
|
/** Hardware + identity blob (manufacturer / model / firmware / sn /
|
|
60311
60311
|
* uid / mac / …). Populated by drivers; editable via setMetadata. */
|
|
60312
|
-
metadata: record(string(), unknown()).nullable().optional(),
|
|
60312
|
+
metadata: record$1(string(), unknown()).nullable().optional(),
|
|
60313
60313
|
/** Optional upstream-system identity + rendering envelope. See
|
|
60314
60314
|
* `SourceInfo` in `packages/types/src/device/source-info.ts`. */
|
|
60315
60315
|
sourceInfo: SourceInfoSchema.optional(),
|
|
@@ -60456,7 +60456,7 @@ var DeviceMetaSchema = object({
|
|
|
60456
60456
|
location: string().nullable(),
|
|
60457
60457
|
disabled: boolean(),
|
|
60458
60458
|
parentDeviceId: number$1().nullable(),
|
|
60459
|
-
metadata: record(string(), unknown()).nullable().optional(),
|
|
60459
|
+
metadata: record$1(string(), unknown()).nullable().optional(),
|
|
60460
60460
|
/** Optional upstream-system identity + rendering envelope. See
|
|
60461
60461
|
* `SourceInfo`. Present when the device has been persisted with a
|
|
60462
60462
|
* non-synthetic source identifier (HA entities, vendor MAC, …);
|
|
@@ -60520,7 +60520,7 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
60520
60520
|
* call (workers re-register on init), so probe-driven updates
|
|
60521
60521
|
* (e.g. PTZ flag flipping after the abilities probe) propagate. */
|
|
60522
60522
|
features: array(string()).optional(),
|
|
60523
|
-
config: record(string(), unknown()),
|
|
60523
|
+
config: record$1(string(), unknown()),
|
|
60524
60524
|
/** Config paths the device's own schema DECLARES secret
|
|
60525
60525
|
* (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
|
|
60526
60526
|
* `connection.password`). Re-published on every register; the non-admin
|
|
@@ -60541,7 +60541,7 @@ var DeviceTombstoneSchema = object({
|
|
|
60541
60541
|
var OrphanDeviceDataSchema = object({
|
|
60542
60542
|
deviceId: number$1().int().positive(),
|
|
60543
60543
|
/** Rows/files per store (`<addonId>:<store>`). */
|
|
60544
|
-
stores: record(string(), number$1().int().nonnegative())
|
|
60544
|
+
stores: record$1(string(), number$1().int().nonnegative())
|
|
60545
60545
|
});
|
|
60546
60546
|
var CleanupDeletedDevicesResultSchema = object({
|
|
60547
60547
|
/**
|
|
@@ -60563,7 +60563,7 @@ var CleanupDeletedDevicesResultSchema = object({
|
|
|
60563
60563
|
var DeviceRemovePayloadSchema = object({ deviceId: number$1() });
|
|
60564
60564
|
var DevicePersistConfigPayloadSchema = object({
|
|
60565
60565
|
deviceId: number$1(),
|
|
60566
|
-
data: record(string(), unknown()),
|
|
60566
|
+
data: record$1(string(), unknown()),
|
|
60567
60567
|
/** The paths the device's schema declares secret (D783), when the caller
|
|
60568
60568
|
* knows them — those values are kept in the keychain, not the blob (D787).
|
|
60569
60569
|
* Absent: the paths the device last reported at `registerDevice` apply. */
|
|
@@ -60605,7 +60605,7 @@ method(object({
|
|
|
60605
60605
|
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), {
|
|
60606
60606
|
kind: "mutation",
|
|
60607
60607
|
auth: "admin"
|
|
60608
|
-
}), method(object({ deviceId: number$1() }), record(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), record(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), DeviceMetaSchema.nullable()), method(object({
|
|
60608
|
+
}), method(object({ deviceId: number$1() }), record$1(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), record$1(string(), unknown()), { auth: "admin" }), method(object({ deviceId: number$1() }), DeviceMetaSchema.nullable()), method(object({
|
|
60609
60609
|
deviceId: number$1(),
|
|
60610
60610
|
name: string(),
|
|
60611
60611
|
/**
|
|
@@ -60707,10 +60707,10 @@ method(object({
|
|
|
60707
60707
|
}), _void(), {
|
|
60708
60708
|
kind: "mutation",
|
|
60709
60709
|
auth: "admin"
|
|
60710
|
-
}), method(object({}), object({ defaults: record(string(), RoleDisplayDefaultSchema) }), {
|
|
60710
|
+
}), method(object({}), object({ defaults: record$1(string(), RoleDisplayDefaultSchema) }), {
|
|
60711
60711
|
role: "viewer",
|
|
60712
60712
|
kind: "query"
|
|
60713
|
-
}), method(object({ defaults: record(string(), RoleDisplayDefaultSchema) }), _void(), {
|
|
60713
|
+
}), method(object({ defaults: record$1(string(), RoleDisplayDefaultSchema) }), _void(), {
|
|
60714
60714
|
kind: "mutation",
|
|
60715
60715
|
auth: "admin"
|
|
60716
60716
|
}), method(object({
|
|
@@ -60759,7 +60759,7 @@ method(object({
|
|
|
60759
60759
|
auth: "admin"
|
|
60760
60760
|
}), method(object({
|
|
60761
60761
|
deviceId: number$1(),
|
|
60762
|
-
patch: record(string(), unknown())
|
|
60762
|
+
patch: record$1(string(), unknown())
|
|
60763
60763
|
}), _void(), {
|
|
60764
60764
|
kind: "mutation",
|
|
60765
60765
|
auth: "admin"
|
|
@@ -60844,12 +60844,12 @@ method(object({
|
|
|
60844
60844
|
* it answers today and the caller filters as it already does.
|
|
60845
60845
|
*/
|
|
60846
60846
|
deviceIds: array(number$1()).optional()
|
|
60847
|
-
}), array(DeviceInfoSchema), { role: "viewer" }), method(DeviceSearchInputSchema, DeviceSearchResultSchema, { role: "viewer" }), method(object({ deviceId: number$1() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number$1() }), array(DeviceInfoSchema), { role: "viewer" }), method(object({ parentDeviceIds: array(number$1()).max(256) }), record(string(), array(DeviceInfoSchema))), method(object({ deviceId: number$1() }), object({
|
|
60847
|
+
}), array(DeviceInfoSchema), { role: "viewer" }), method(DeviceSearchInputSchema, DeviceSearchResultSchema, { role: "viewer" }), method(object({ deviceId: number$1() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number$1() }), array(DeviceInfoSchema), { role: "viewer" }), method(object({ parentDeviceIds: array(number$1()).max(256) }), record$1(string(), array(DeviceInfoSchema))), method(object({ deviceId: number$1() }), object({
|
|
60848
60848
|
mode: LinkedDevicesModeSchema,
|
|
60849
60849
|
devices: array(LinkedDeviceSchema)
|
|
60850
60850
|
}), { role: "viewer" }), method(object({ deviceIds: array(number$1()) }), array(LinkedDevicesForDeviceSchema), { role: "viewer" }), method(object({ deviceId: number$1() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number$1() }), array(ConfigEntrySchema)), method(object({ deviceId: number$1() }), ConfigUISchemaOutput), method(object({
|
|
60851
60851
|
deviceId: number$1(),
|
|
60852
|
-
values: record(string(), unknown())
|
|
60852
|
+
values: record$1(string(), unknown())
|
|
60853
60853
|
}), object({ success: literal(true) }), {
|
|
60854
60854
|
kind: "mutation",
|
|
60855
60855
|
auth: "admin"
|
|
@@ -60868,9 +60868,9 @@ method(object({
|
|
|
60868
60868
|
}), method(object({ integrationId: string() }), object({ removed: number$1() }), {
|
|
60869
60869
|
kind: "mutation",
|
|
60870
60870
|
auth: "admin"
|
|
60871
|
-
}), method(object({ deviceId: number$1() }), record(string(), string().nullable())), method(object({
|
|
60871
|
+
}), method(object({ deviceId: number$1() }), record$1(string(), string().nullable())), method(object({
|
|
60872
60872
|
deviceId: number$1(),
|
|
60873
|
-
profileMap: record(string(), string().nullable())
|
|
60873
|
+
profileMap: record$1(string(), string().nullable())
|
|
60874
60874
|
}), object({ success: literal(true) }), {
|
|
60875
60875
|
kind: "mutation",
|
|
60876
60876
|
auth: "admin"
|
|
@@ -60947,7 +60947,7 @@ method(object({
|
|
|
60947
60947
|
}), unknown().nullable()), method(object({
|
|
60948
60948
|
addonId: string(),
|
|
60949
60949
|
type: _enum(DeviceType),
|
|
60950
|
-
config: record(string(), unknown()),
|
|
60950
|
+
config: record$1(string(), unknown()),
|
|
60951
60951
|
/** Owning integration id, stamped onto the new device's meta by the
|
|
60952
60952
|
* device-manager forwarder so `removeByIntegration` can cascade it.
|
|
60953
60953
|
* Optional for back-compat (omitted = no stamp = pre-existing behavior). */
|
|
@@ -60960,7 +60960,7 @@ method(object({
|
|
|
60960
60960
|
type: _enum(DeviceType),
|
|
60961
60961
|
key: string(),
|
|
60962
60962
|
value: unknown(),
|
|
60963
|
-
formValues: record(string(), unknown()).optional()
|
|
60963
|
+
formValues: record$1(string(), unknown()).optional()
|
|
60964
60964
|
}), FieldProbeResultSchema, {
|
|
60965
60965
|
kind: "mutation",
|
|
60966
60966
|
auth: "admin"
|
|
@@ -61009,7 +61009,7 @@ method(object({
|
|
|
61009
61009
|
}
|
|
61010
61010
|
), method(object({
|
|
61011
61011
|
addonId: string(),
|
|
61012
|
-
params: record(string(), unknown()).optional(),
|
|
61012
|
+
params: record$1(string(), unknown()).optional(),
|
|
61013
61013
|
subnets: array(string()).optional()
|
|
61014
61014
|
}), object({ candidates: array(DiscoveryCandidateSchema).readonly() }), {
|
|
61015
61015
|
kind: "mutation",
|
|
@@ -61041,10 +61041,10 @@ method(object({
|
|
|
61041
61041
|
}), method(object({
|
|
61042
61042
|
deviceId: number$1(),
|
|
61043
61043
|
caps: array(string()).readonly().optional()
|
|
61044
|
-
}), record(string(), unknown().nullable())), method(object({
|
|
61044
|
+
}), record$1(string(), unknown().nullable())), method(object({
|
|
61045
61045
|
deviceIds: array(number$1()).readonly(),
|
|
61046
61046
|
caps: array(string()).readonly().optional()
|
|
61047
|
-
}), record(string(), record(string(), unknown().nullable())), { role: "viewer" });
|
|
61047
|
+
}), record$1(string(), record$1(string(), unknown().nullable())), { role: "viewer" });
|
|
61048
61048
|
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
61049
61049
|
DeviceType.Camera;
|
|
61050
61050
|
/** A slot's editable value, discriminated on `slot`. */
|
|
@@ -61265,7 +61265,7 @@ var QueryPointSchema = object({
|
|
|
61265
61265
|
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
61266
61266
|
state: string().nullable(),
|
|
61267
61267
|
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
61268
|
-
states: record(string(), number$1()).nullable()
|
|
61268
|
+
states: record$1(string(), number$1()).nullable()
|
|
61269
61269
|
});
|
|
61270
61270
|
var QuerySeriesSchema = object({
|
|
61271
61271
|
scope: string(),
|
|
@@ -61386,11 +61386,11 @@ var DeviceHistoryStatusSchema = object({
|
|
|
61386
61386
|
lastReconcileAt: number$1().nullable(),
|
|
61387
61387
|
lastFlushAt: number$1().nullable(),
|
|
61388
61388
|
flushFailures: number$1().int(),
|
|
61389
|
-
skipped: record(string(), number$1().int())
|
|
61389
|
+
skipped: record$1(string(), number$1().int())
|
|
61390
61390
|
}),
|
|
61391
61391
|
ingest: object({
|
|
61392
61392
|
accepted: number$1().int(),
|
|
61393
|
-
refused: record(string(), number$1().int())
|
|
61393
|
+
refused: record$1(string(), number$1().int())
|
|
61394
61394
|
}),
|
|
61395
61395
|
rollup: object({
|
|
61396
61396
|
last5mAt: number$1().nullable(),
|
|
@@ -61403,7 +61403,7 @@ var DeviceHistoryStatusSchema = object({
|
|
|
61403
61403
|
}),
|
|
61404
61404
|
retention: object({
|
|
61405
61405
|
lastRunAt: number$1().nullable(),
|
|
61406
|
-
deleted: record(string(), number$1().int()),
|
|
61406
|
+
deleted: record$1(string(), number$1().int()),
|
|
61407
61407
|
purgedSeries: number$1().int()
|
|
61408
61408
|
}),
|
|
61409
61409
|
directory: object({
|
|
@@ -61520,7 +61520,7 @@ var DeviceRemovedInputSchema = object({
|
|
|
61520
61520
|
providerAddonId: string()
|
|
61521
61521
|
});
|
|
61522
61522
|
/** Rows/files/refs deleted, per store this implementer owns. */
|
|
61523
|
-
var DeviceRemovedResultSchema = object({ counts: record(string(), number$1().int().nonnegative()) });
|
|
61523
|
+
var DeviceRemovedResultSchema = object({ counts: record$1(string(), number$1().int().nonnegative()) });
|
|
61524
61524
|
/** One (store, device) pair an implementer holds data for. */
|
|
61525
61525
|
var DeviceDataEntrySchema = object({
|
|
61526
61526
|
store: string(),
|
|
@@ -61673,20 +61673,20 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
|
|
|
61673
61673
|
state: literal("not-loaded"),
|
|
61674
61674
|
reason: string()
|
|
61675
61675
|
})]);
|
|
61676
|
-
method(object({ deviceId: number$1() }), record(string(), record(string(), unknown()))), method(object({
|
|
61676
|
+
method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), unknown()))), method(object({
|
|
61677
61677
|
deviceId: number$1(),
|
|
61678
61678
|
capName: string()
|
|
61679
|
-
}), record(string(), unknown()).nullable()), method(object({}), record(string(), record(string(), record(string(), unknown())))), method(object({
|
|
61679
|
+
}), record$1(string(), unknown()).nullable()), method(object({}), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
|
|
61680
61680
|
deviceId: number$1(),
|
|
61681
61681
|
capName: string(),
|
|
61682
|
-
slice: record(string(), unknown())
|
|
61682
|
+
slice: record$1(string(), unknown())
|
|
61683
61683
|
}), _void(), { kind: "mutation" }), method(object({
|
|
61684
61684
|
deviceId: number$1(),
|
|
61685
61685
|
capName: string(),
|
|
61686
61686
|
owner: string().min(1),
|
|
61687
61687
|
mode: FieldClaimModeSchema,
|
|
61688
61688
|
fields: array(string().min(1)).min(1),
|
|
61689
|
-
values: record(string(), unknown())
|
|
61689
|
+
values: record$1(string(), unknown())
|
|
61690
61690
|
}), ClaimOutcomeSchema, {
|
|
61691
61691
|
kind: "mutation",
|
|
61692
61692
|
auth: "admin"
|
|
@@ -61694,7 +61694,7 @@ method(object({ deviceId: number$1() }), record(string(), record(string(), unkno
|
|
|
61694
61694
|
deviceId: number$1(),
|
|
61695
61695
|
capName: string(),
|
|
61696
61696
|
owner: string().min(1),
|
|
61697
|
-
values: record(string(), unknown())
|
|
61697
|
+
values: record$1(string(), unknown())
|
|
61698
61698
|
}), ClaimOutcomeSchema, {
|
|
61699
61699
|
kind: "mutation",
|
|
61700
61700
|
auth: "admin"
|
|
@@ -61708,10 +61708,10 @@ method(object({ deviceId: number$1() }), record(string(), record(string(), unkno
|
|
|
61708
61708
|
}), method(object({ ownerPrefix: string().optional() }), ClaimsListingSchema, { auth: "admin" }), method(object({
|
|
61709
61709
|
deviceId: number$1(),
|
|
61710
61710
|
capName: string()
|
|
61711
|
-
}), record(string(), unknown()).nullable(), { auth: "admin" }), event(object({
|
|
61711
|
+
}), record$1(string(), unknown()).nullable(), { auth: "admin" }), event(object({
|
|
61712
61712
|
deviceId: number$1(),
|
|
61713
61713
|
capName: string(),
|
|
61714
|
-
slice: record(string(), unknown())
|
|
61714
|
+
slice: record$1(string(), unknown())
|
|
61715
61715
|
}));
|
|
61716
61716
|
/**
|
|
61717
61717
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -61814,7 +61814,7 @@ var TransitionsStatusSchema = object({
|
|
|
61814
61814
|
rows: number$1().int().nullable(),
|
|
61815
61815
|
lastWriteAt: number$1().nullable(),
|
|
61816
61816
|
/** Refused rows since start, by reason. */
|
|
61817
|
-
refused: record(string(), number$1())
|
|
61817
|
+
refused: record$1(string(), number$1())
|
|
61818
61818
|
});
|
|
61819
61819
|
Object.values(DeviceType).filter((type) => type !== DeviceType.Hub && type !== DeviceType.Container), method(object({
|
|
61820
61820
|
deviceId: number$1().int(),
|
|
@@ -62035,7 +62035,7 @@ var dishwasherCapability = {
|
|
|
62035
62035
|
start: method(object({
|
|
62036
62036
|
deviceId: DeviceIdSchema$2,
|
|
62037
62037
|
program: string().min(1).optional(),
|
|
62038
|
-
options: record(string(), DishwasherValueSchema).optional()
|
|
62038
|
+
options: record$1(string(), DishwasherValueSchema).optional()
|
|
62039
62039
|
}), _void(), {
|
|
62040
62040
|
kind: "mutation",
|
|
62041
62041
|
auth: "protected",
|
|
@@ -62655,7 +62655,7 @@ var paletteReadySchema = object({
|
|
|
62655
62655
|
presetId: _enum(PALETTE_PRESET_IDS),
|
|
62656
62656
|
customized: boolean(),
|
|
62657
62657
|
source: _enum(["stored", "unconfigured"]),
|
|
62658
|
-
swatches: record(string(), paletteSwatchSchema),
|
|
62658
|
+
swatches: record$1(string(), paletteSwatchSchema),
|
|
62659
62659
|
fallbacks: array(paletteHexSchema).length(8)
|
|
62660
62660
|
});
|
|
62661
62661
|
var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
|
|
@@ -62664,11 +62664,11 @@ var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, obje
|
|
|
62664
62664
|
})]);
|
|
62665
62665
|
var setPaletteInputSchema = union([object({ presetId: string() }), object({
|
|
62666
62666
|
presetId: string(),
|
|
62667
|
-
overrides: record(string(), paletteSwatchSchema)
|
|
62667
|
+
overrides: record$1(string(), paletteSwatchSchema)
|
|
62668
62668
|
})]);
|
|
62669
62669
|
object({
|
|
62670
62670
|
presetId: string(),
|
|
62671
|
-
overrides: record(string(), paletteSwatchSchema)
|
|
62671
|
+
overrides: record$1(string(), paletteSwatchSchema)
|
|
62672
62672
|
});
|
|
62673
62673
|
function solid(hex) {
|
|
62674
62674
|
return {
|
|
@@ -62752,7 +62752,7 @@ function paintHex(swatches, fallbacks, kind) {
|
|
|
62752
62752
|
var presetSummarySchema = object({
|
|
62753
62753
|
id: string(),
|
|
62754
62754
|
name: string(),
|
|
62755
|
-
swatches: record(string(), paletteSwatchSchema),
|
|
62755
|
+
swatches: record$1(string(), paletteSwatchSchema),
|
|
62756
62756
|
fallbacks: array(string())
|
|
62757
62757
|
});
|
|
62758
62758
|
method(_void(), paletteResultSchema, {
|
|
@@ -64330,7 +64330,7 @@ var FeatureProbeStatusSchema = object({
|
|
|
64330
64330
|
* `hasPirSensor`, `hasAutotrack`, `hasBattery`. Hikvision keys:
|
|
64331
64331
|
* `hasSupplementalLight`, `lightHasWhiteLight`, `hasAlarmIo`, `hasPtz`.
|
|
64332
64332
|
*/
|
|
64333
|
-
flags: record(string(), unknown()),
|
|
64333
|
+
flags: record$1(string(), unknown()),
|
|
64334
64334
|
/**
|
|
64335
64335
|
* Coarse driver-classification — lets cross-process consumers tell apart
|
|
64336
64336
|
* cameras / battery-cams / NVRs without re-running the probe. `null`
|
|
@@ -65801,9 +65801,9 @@ var HeroArgValueSchema = lazy(() => union([
|
|
|
65801
65801
|
string(),
|
|
65802
65802
|
number$1(),
|
|
65803
65803
|
boolean(),
|
|
65804
|
-
record(string(), HeroArgValueSchema)
|
|
65804
|
+
record$1(string(), HeroArgValueSchema)
|
|
65805
65805
|
]));
|
|
65806
|
-
var HeroArgsSchema = record(string(), HeroArgValueSchema);
|
|
65806
|
+
var HeroArgsSchema = record$1(string(), HeroArgValueSchema);
|
|
65807
65807
|
/** A cap method called on the hero's device. */
|
|
65808
65808
|
var HeroCallSchema = object({
|
|
65809
65809
|
cap: string(),
|
|
@@ -65859,7 +65859,7 @@ var HeroControlSchema = discriminatedUnion("kind", [
|
|
|
65859
65859
|
current: string().nullable(),
|
|
65860
65860
|
options: array(string()),
|
|
65861
65861
|
/** A readable label per option value; an option without one is drawn as its raw value. */
|
|
65862
|
-
optionLabels: record(string(), HeroTextSchema).optional(),
|
|
65862
|
+
optionLabels: record$1(string(), HeroTextSchema).optional(),
|
|
65863
65863
|
call: HeroCallSchema,
|
|
65864
65864
|
valueArg: string()
|
|
65865
65865
|
}),
|
|
@@ -66702,7 +66702,7 @@ var IntegrationWithStateSchema = object({
|
|
|
66702
66702
|
* must not draw it as on or off (D315).
|
|
66703
66703
|
*/
|
|
66704
66704
|
switchUnknown: literal(true).optional(),
|
|
66705
|
-
info: record(string(), unknown()).readonly(),
|
|
66705
|
+
info: record$1(string(), unknown()).readonly(),
|
|
66706
66706
|
/** The discovery candidate this integration was set up from (D984). */
|
|
66707
66707
|
originStableId: string().optional(),
|
|
66708
66708
|
createdAt: number$1(),
|
|
@@ -66721,7 +66721,7 @@ var IntegrationLiteSchema = object({
|
|
|
66721
66721
|
* must not draw it as on or off (D315).
|
|
66722
66722
|
*/
|
|
66723
66723
|
switchUnknown: literal(true).optional(),
|
|
66724
|
-
info: record(string(), unknown()).readonly(),
|
|
66724
|
+
info: record$1(string(), unknown()).readonly(),
|
|
66725
66725
|
/** The discovery candidate this integration was set up from (D984). */
|
|
66726
66726
|
originStableId: string().optional(),
|
|
66727
66727
|
createdAt: number$1(),
|
|
@@ -66830,7 +66830,7 @@ var UpdateIntegrationInputSchema = object({
|
|
|
66830
66830
|
* switch is `integration-instances.setInstanceEnabled`.
|
|
66831
66831
|
*/
|
|
66832
66832
|
enabled: boolean().optional(),
|
|
66833
|
-
info: record(string(), unknown()).optional()
|
|
66833
|
+
info: record$1(string(), unknown()).optional()
|
|
66834
66834
|
});
|
|
66835
66835
|
var DeleteIntegrationResultSchema = object({
|
|
66836
66836
|
success: boolean(),
|
|
@@ -67028,7 +67028,7 @@ var IntegrationInstanceSchema = object({
|
|
|
67028
67028
|
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
67029
67029
|
kind: string().min(1),
|
|
67030
67030
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
67031
|
-
formValues: record(string(), unknown()),
|
|
67031
|
+
formValues: record$1(string(), unknown()),
|
|
67032
67032
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
67033
67033
|
/** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
|
|
67034
67034
|
lastCheckedAt: number$1().optional()
|
|
@@ -67037,7 +67037,7 @@ var IntegrationInstancePatchSchema = object({
|
|
|
67037
67037
|
id: IntegrationInstanceIdSchema,
|
|
67038
67038
|
name: string().min(1).optional(),
|
|
67039
67039
|
/** Omitted / '' / redaction token keeps a secret; `{ $secretClear: true }` clears it. */
|
|
67040
|
-
values: record(string(), unknown())
|
|
67040
|
+
values: record$1(string(), unknown())
|
|
67041
67041
|
});
|
|
67042
67042
|
var integrationInstancesCapability = {
|
|
67043
67043
|
name: "integration-instances",
|
|
@@ -67082,7 +67082,7 @@ var integrationInstancesCapability = {
|
|
|
67082
67082
|
name: string().min(1),
|
|
67083
67083
|
kind: string().min(1).optional(),
|
|
67084
67084
|
/** Form values written with the record (a link picked in the create dialog). */
|
|
67085
|
-
values: record(string(), unknown()).optional(),
|
|
67085
|
+
values: record$1(string(), unknown()).optional(),
|
|
67086
67086
|
/**
|
|
67087
67087
|
* The discovery candidate (`stableId`) the instance is set up from. Kept on the integration
|
|
67088
67088
|
* registry row of an instance that brings devices, so discovery stops offering a candidate
|
|
@@ -67096,7 +67096,7 @@ var integrationInstancesCapability = {
|
|
|
67096
67096
|
* caller the transport stamped as the addon itself (`callerAddonId`): an admin session
|
|
67097
67097
|
* cannot send it, and the wizard never does. `values` are the settings it is seeded with.
|
|
67098
67098
|
*/
|
|
67099
|
-
seed: object({ info: record(string(), unknown()) }).optional()
|
|
67099
|
+
seed: object({ info: record$1(string(), unknown()) }).optional()
|
|
67100
67100
|
}), object({ id: string() }), {
|
|
67101
67101
|
kind: "mutation",
|
|
67102
67102
|
auth: "protected",
|
|
@@ -67132,7 +67132,7 @@ var integrationInstancesCapability = {
|
|
|
67132
67132
|
}),
|
|
67133
67133
|
testInstance: optionalMethod(object({
|
|
67134
67134
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
67135
|
-
values: record(string(), unknown()),
|
|
67135
|
+
values: record$1(string(), unknown()),
|
|
67136
67136
|
/** The kind to test when `id` is null and the provider has several. */
|
|
67137
67137
|
kind: string().min(1).optional()
|
|
67138
67138
|
}), TestConnectionResultSchema, {
|
|
@@ -67551,7 +67551,7 @@ var KeychainResolveEntrySchema = discriminatedUnion("kind", [
|
|
|
67551
67551
|
}),
|
|
67552
67552
|
object({ kind: literal("forbidden") })
|
|
67553
67553
|
]);
|
|
67554
|
-
var KeychainResolveResultSchema = record(string(), KeychainResolveEntrySchema);
|
|
67554
|
+
var KeychainResolveResultSchema = record$1(string(), KeychainResolveEntrySchema);
|
|
67555
67555
|
/** Metadata of one stored value — never the value. */
|
|
67556
67556
|
var KeychainSecretMetaSchema = object({
|
|
67557
67557
|
ref: string(),
|
|
@@ -68024,7 +68024,7 @@ var LlmGenerateBaseInputSchema = object({
|
|
|
68024
68024
|
/** v1: single-turn. `messages[]` is a v2 additive field. */
|
|
68025
68025
|
prompt: string(),
|
|
68026
68026
|
/** Structured output — adapter-mapped (response_format / forced tool / responseSchema). */
|
|
68027
|
-
jsonSchema: record(string(), unknown()).optional(),
|
|
68027
|
+
jsonSchema: record$1(string(), unknown()).optional(),
|
|
68028
68028
|
/** Per-call override of the profile default. */
|
|
68029
68029
|
maxTokens: number$1().int().positive().optional(),
|
|
68030
68030
|
temperature: number$1().optional(),
|
|
@@ -68349,7 +68349,7 @@ var LlmModelInfoSchema = object({
|
|
|
68349
68349
|
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
68350
68350
|
* keychain, never in the row, and reads back as the redaction marker.
|
|
68351
68351
|
*/
|
|
68352
|
-
var LlmProviderConfigSchema = record(string(), unknown());
|
|
68352
|
+
var LlmProviderConfigSchema = record$1(string(), unknown());
|
|
68353
68353
|
object({
|
|
68354
68354
|
id: string(),
|
|
68355
68355
|
name: string(),
|
|
@@ -69021,7 +69021,7 @@ var ScanStatsSchema = object({
|
|
|
69021
69021
|
hostsProbed: number$1().int(),
|
|
69022
69022
|
hits: number$1().int(),
|
|
69023
69023
|
timeouts: number$1().int(),
|
|
69024
|
-
byMode: record(string(), object({
|
|
69024
|
+
byMode: record$1(string(), object({
|
|
69025
69025
|
probed: number$1().int(),
|
|
69026
69026
|
hits: number$1().int(),
|
|
69027
69027
|
timeouts: number$1().int()
|
|
@@ -69363,8 +69363,8 @@ var LogEntrySchema = object({
|
|
|
69363
69363
|
level: LogLevelSchema,
|
|
69364
69364
|
scope: array(string()),
|
|
69365
69365
|
message: string(),
|
|
69366
|
-
meta: record(string(), unknown()).optional(),
|
|
69367
|
-
tags: record(string(), string()).optional()
|
|
69366
|
+
meta: record$1(string(), unknown()).optional(),
|
|
69367
|
+
tags: record$1(string(), string()).optional()
|
|
69368
69368
|
});
|
|
69369
69369
|
/**
|
|
69370
69370
|
* A history READ against one destination (D898).
|
|
@@ -69404,7 +69404,7 @@ var LogReadQuerySchema = object({
|
|
|
69404
69404
|
*/
|
|
69405
69405
|
fromNodeId: string().min(1).max(200).optional(),
|
|
69406
69406
|
/** Any other tag, exact match (AND). */
|
|
69407
|
-
tags: record(string(), union([string(), number$1()])).optional(),
|
|
69407
|
+
tags: record$1(string(), union([string(), number$1()])).optional(),
|
|
69408
69408
|
/** Severity FLOOR: this level and above. */
|
|
69409
69409
|
level: LogLevelSchema.optional(),
|
|
69410
69410
|
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
@@ -69431,8 +69431,8 @@ var LogReadResultSchema = object({
|
|
|
69431
69431
|
level: LogLevelSchema,
|
|
69432
69432
|
scope: string().optional(),
|
|
69433
69433
|
message: string(),
|
|
69434
|
-
tags: record(string(), union([string(), number$1()])).optional(),
|
|
69435
|
-
meta: record(string(), unknown()).optional()
|
|
69434
|
+
tags: record$1(string(), union([string(), number$1()])).optional(),
|
|
69435
|
+
meta: record$1(string(), unknown()).optional()
|
|
69436
69436
|
})),
|
|
69437
69437
|
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
69438
69438
|
nextBefore: string().nullable(),
|
|
@@ -70136,7 +70136,7 @@ method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSna
|
|
|
70136
70136
|
*/
|
|
70137
70137
|
var RecordIdSchema = string().min(1).max(256);
|
|
70138
70138
|
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
70139
|
-
var RecordBodySchema = record(string(), unknown());
|
|
70139
|
+
var RecordBodySchema = record$1(string(), unknown());
|
|
70140
70140
|
var RecordInputSchema = object({
|
|
70141
70141
|
id: RecordIdSchema,
|
|
70142
70142
|
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
@@ -70157,7 +70157,7 @@ var RecordViewSchema = object({
|
|
|
70157
70157
|
data: RecordBodySchema
|
|
70158
70158
|
});
|
|
70159
70159
|
/** Declared index fields only. Anything else does not compile, by design. */
|
|
70160
|
-
var RecordWhereSchema = record(RecordFieldPathSchema, union([
|
|
70160
|
+
var RecordWhereSchema = record$1(RecordFieldPathSchema, union([
|
|
70161
70161
|
string(),
|
|
70162
70162
|
number$1(),
|
|
70163
70163
|
boolean(),
|
|
@@ -70232,8 +70232,8 @@ var RecordTransactOpSchema = discriminatedUnion("op", [
|
|
|
70232
70232
|
id: RecordIdSchema
|
|
70233
70233
|
})
|
|
70234
70234
|
]);
|
|
70235
|
-
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
70236
|
-
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
70235
|
+
var RecordSecretRefsSchema = record$1(string(), record$1(string(), string()));
|
|
70236
|
+
method(object({ kinds: record$1(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record$1(string(), DeclareKindResultSchema) }), {
|
|
70237
70237
|
kind: "mutation",
|
|
70238
70238
|
auth: "admin"
|
|
70239
70239
|
}), method(object({
|
|
@@ -70352,7 +70352,7 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
70352
70352
|
deviceId: number$1().int(),
|
|
70353
70353
|
kinds: array(RecordKindNameSchema).optional()
|
|
70354
70354
|
}), object({
|
|
70355
|
-
deleted: record(string(), number$1().int()),
|
|
70355
|
+
deleted: record$1(string(), number$1().int()),
|
|
70356
70356
|
secretRefs: SecretRefsList
|
|
70357
70357
|
}), {
|
|
70358
70358
|
kind: "mutation",
|
|
@@ -70376,7 +70376,7 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
70376
70376
|
* `scripts/migration-api-contract.json`, and every `behaviours` id below must have an
|
|
70377
70377
|
* `it('<id>'` in `migration-api.contract.spec.ts`.
|
|
70378
70378
|
*/
|
|
70379
|
-
var Rows = record(string(), unknown());
|
|
70379
|
+
var Rows = record$1(string(), unknown());
|
|
70380
70380
|
var IntegrationId = object({ integrationId: string().min(1) });
|
|
70381
70381
|
var RecordId = object({ id: string().min(1) });
|
|
70382
70382
|
var RecordRowSchema = object({
|
|
@@ -70475,7 +70475,7 @@ object({
|
|
|
70475
70475
|
deviceId: number$1().int().optional(),
|
|
70476
70476
|
atBefore: number$1().optional(),
|
|
70477
70477
|
where: RecordWhereSchema.optional()
|
|
70478
|
-
}), object({ count: number$1().int().nonnegative() }), object({}), object({ store: Rows }), object({ patch: Rows }), object({}), object({ keys: array(string().min(1)) }), object({ removed: array(string()) }), object({}), object({ deviceIds: array(number$1().int()) }), object({ deviceIds: array(number$1().int()) }), object({ blobs: record(string(), Rows) }), object({ refs: array(string()) }), object({ values: record(string(), string().nullable()) }), object({
|
|
70478
|
+
}), object({ count: number$1().int().nonnegative() }), object({}), object({ store: Rows }), object({ patch: Rows }), object({}), object({ keys: array(string().min(1)) }), object({ removed: array(string()) }), object({}), object({ deviceIds: array(number$1().int()) }), object({ deviceIds: array(number$1().int()) }), object({ blobs: record$1(string(), Rows) }), object({ refs: array(string()) }), object({ values: record$1(string(), string().nullable()) }), object({
|
|
70479
70479
|
ref: string().min(1),
|
|
70480
70480
|
value: string()
|
|
70481
70481
|
}), object({}), object({ refs: array(string()) }), object({ deleted: number$1().int().nonnegative() }), object({}), object({ integrations: array(MigrationIntegrationSchema) }), object({ id: string().min(1) }), MigrationIntegrationSchema.nullable(), object({
|
|
@@ -70486,7 +70486,7 @@ object({
|
|
|
70486
70486
|
integrationId: string().nullable(),
|
|
70487
70487
|
/** Whether the device carries any stored config; its content is not offered. */
|
|
70488
70488
|
hasConfig: boolean()
|
|
70489
|
-
}).nullable(), object({ deviceIds: array(number$1().int()) }), object({ aliases: record(string(), string()) }), object({
|
|
70489
|
+
}).nullable(), object({ deviceIds: array(number$1().int()) }), object({ aliases: record$1(string(), string()) }), object({
|
|
70490
70490
|
deviceId: number$1().int(),
|
|
70491
70491
|
integrationId: string().min(1)
|
|
70492
70492
|
}), object({}), object({}), object({ nodeId: string() }), object({}), object({});
|
|
@@ -70542,7 +70542,7 @@ method(object({}), object({ entries: array(MigrationLedgerEntrySchema) }), { aut
|
|
|
70542
70542
|
}), {
|
|
70543
70543
|
kind: "mutation",
|
|
70544
70544
|
auth: "admin"
|
|
70545
|
-
}), method(object({ integrationId: string().min(1) }), record(string(), unknown()), { auth: "admin" }), method(object({ integrationId: string().min(1) }), object({
|
|
70545
|
+
}), method(object({ integrationId: string().min(1) }), record$1(string(), unknown()), { auth: "admin" }), method(object({ integrationId: string().min(1) }), object({
|
|
70546
70546
|
rows: number$1().int().nonnegative(),
|
|
70547
70547
|
secrets: number$1().int().nonnegative()
|
|
70548
70548
|
}), {
|
|
@@ -70550,7 +70550,7 @@ method(object({}), object({ entries: array(MigrationLedgerEntrySchema) }), { aut
|
|
|
70550
70550
|
auth: "admin"
|
|
70551
70551
|
}), method(object({
|
|
70552
70552
|
integrationId: string().min(1),
|
|
70553
|
-
patch: record(string(), unknown())
|
|
70553
|
+
patch: record$1(string(), unknown())
|
|
70554
70554
|
}), object({ written: boolean() }), {
|
|
70555
70555
|
kind: "mutation",
|
|
70556
70556
|
auth: "admin"
|
|
@@ -70559,7 +70559,7 @@ method(object({}), object({ entries: array(MigrationLedgerEntrySchema) }), { aut
|
|
|
70559
70559
|
keys: array(string().min(1))
|
|
70560
70560
|
}), object({
|
|
70561
70561
|
present: boolean(),
|
|
70562
|
-
removed: record(string(), unknown())
|
|
70562
|
+
removed: record$1(string(), unknown())
|
|
70563
70563
|
}), {
|
|
70564
70564
|
kind: "mutation",
|
|
70565
70565
|
auth: "admin"
|
|
@@ -71057,7 +71057,7 @@ var SensorEventSchema = object({
|
|
|
71057
71057
|
/** Event kind id — matches an `EventKindDescriptor.kind`. */
|
|
71058
71058
|
kind: string(),
|
|
71059
71059
|
/** Snapshot of the sensor cap's runtime-state slice at the change. */
|
|
71060
|
-
value: record(string(), unknown()).nullable(),
|
|
71060
|
+
value: record$1(string(), unknown()).nullable(),
|
|
71061
71061
|
timestamp: number$1()
|
|
71062
71062
|
});
|
|
71063
71063
|
/**
|
|
@@ -72011,7 +72011,7 @@ var RetrainFrameReviewSchema = object({
|
|
|
72011
72011
|
iou: number$1().optional()
|
|
72012
72012
|
})).readonly(),
|
|
72013
72013
|
summary: object({
|
|
72014
|
-
counts: record(RetrainReviewStatusSchema, number$1().int()),
|
|
72014
|
+
counts: record$1(RetrainReviewStatusSchema, number$1().int()),
|
|
72015
72015
|
total: number$1().int(),
|
|
72016
72016
|
changed: number$1().int(),
|
|
72017
72017
|
approximate: boolean()
|
|
@@ -72302,7 +72302,7 @@ var RetrainArchiveTargetSchema = object({
|
|
|
72302
72302
|
kind: literal("http"),
|
|
72303
72303
|
method: _enum(["PUT", "POST"]),
|
|
72304
72304
|
url: string().url(),
|
|
72305
|
-
headers: record(string(), string()).optional()
|
|
72305
|
+
headers: record$1(string(), string()).optional()
|
|
72306
72306
|
});
|
|
72307
72307
|
var RetrainArchiveResultSchema = object({
|
|
72308
72308
|
batchId: string(),
|
|
@@ -73641,12 +73641,12 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
73641
73641
|
modelId: string(),
|
|
73642
73642
|
children: array(PipelineDefaultStepSchema).readonly(),
|
|
73643
73643
|
group: string().optional(),
|
|
73644
|
-
settings: record(string(), unknown()).optional()
|
|
73644
|
+
settings: record$1(string(), unknown()).optional()
|
|
73645
73645
|
}));
|
|
73646
73646
|
var PipelineModelOptionSchema = object({
|
|
73647
73647
|
id: string(),
|
|
73648
73648
|
name: string(),
|
|
73649
|
-
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
73649
|
+
formats: record$1(string(), PipelineModelFormatStatusSchema),
|
|
73650
73650
|
group: ModelVariantGroupSchema.optional(),
|
|
73651
73651
|
legacy: boolean().optional(),
|
|
73652
73652
|
provider: ModelProviderIdSchema.optional(),
|
|
@@ -73663,7 +73663,7 @@ var PipelineAddonSchemaSchema = object({
|
|
|
73663
73663
|
childSlots: array(PipelineSlotSchema).readonly(),
|
|
73664
73664
|
models: array(PipelineModelOptionSchema).readonly(),
|
|
73665
73665
|
defaultModelId: string(),
|
|
73666
|
-
defaultModelIdByFormat: record(string(), string()).optional(),
|
|
73666
|
+
defaultModelIdByFormat: record$1(string(), string()).optional(),
|
|
73667
73667
|
enabledByDefault: boolean().optional(),
|
|
73668
73668
|
defaultConfidence: number$1(),
|
|
73669
73669
|
group: string().optional(),
|
|
@@ -73787,12 +73787,12 @@ var ConfigUISchemaBridge = custom();
|
|
|
73787
73787
|
var ConfigUISchemaNullableBridge = custom();
|
|
73788
73788
|
var InferenceCapabilitiesBridge = custom();
|
|
73789
73789
|
var ModelAvailabilityListBridge = custom();
|
|
73790
|
-
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
73790
|
+
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record$1(string(), object({
|
|
73791
73791
|
modelId: string(),
|
|
73792
|
-
settings: record(string(), unknown()).readonly()
|
|
73793
|
-
}))), method(object({ steps: record(string(), object({
|
|
73792
|
+
settings: record$1(string(), unknown()).readonly()
|
|
73793
|
+
}))), method(object({ steps: record$1(string(), object({
|
|
73794
73794
|
modelId: string(),
|
|
73795
|
-
settings: record(string(), unknown()).readonly()
|
|
73795
|
+
settings: record$1(string(), unknown()).readonly()
|
|
73796
73796
|
})) }), object({ success: literal(true) }), {
|
|
73797
73797
|
kind: "mutation",
|
|
73798
73798
|
auth: "admin"
|
|
@@ -73945,7 +73945,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
73945
73945
|
* their warmup `runPipeline` reported: the model that actually ran.
|
|
73946
73946
|
*/
|
|
73947
73947
|
modelId: string().min(1)
|
|
73948
|
-
}), record(string(), unknown()), { kind: "mutation" }), method(object({ frameId: number$1().int() }), _void(), { kind: "mutation" }), method(object({ deviceKey: string().optional() }), EffectiveTuningSchema), method(_void(), array(object({
|
|
73948
|
+
}), record$1(string(), unknown()), { kind: "mutation" }), method(object({ frameId: number$1().int() }), _void(), { kind: "mutation" }), method(object({ deviceKey: string().optional() }), EffectiveTuningSchema), method(_void(), array(object({
|
|
73949
73949
|
engineKey: string(),
|
|
73950
73950
|
engine: PipelineEngineChoiceSchema,
|
|
73951
73951
|
modelsLoaded: array(string()).readonly(),
|
|
@@ -73983,7 +73983,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
73983
73983
|
addonId: string(),
|
|
73984
73984
|
modelId: string(),
|
|
73985
73985
|
filename: string().optional(),
|
|
73986
|
-
settings: record(string(), unknown()).optional()
|
|
73986
|
+
settings: record$1(string(), unknown()).optional()
|
|
73987
73987
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge), NOT_A_DEVICE.PIPELINE;
|
|
73988
73988
|
object({
|
|
73989
73989
|
activeCameras: number$1(),
|
|
@@ -74308,7 +74308,7 @@ var NodeBenchFingerprintSchema = object({
|
|
|
74308
74308
|
ramGb: number$1().nullable(),
|
|
74309
74309
|
os: string().nullable(),
|
|
74310
74310
|
/** Per device: the pool the cells ran on (runtime + tuning). */
|
|
74311
|
-
pools: record(string(), object({
|
|
74311
|
+
pools: record$1(string(), object({
|
|
74312
74312
|
runtime: string(),
|
|
74313
74313
|
numWorkers: number$1(),
|
|
74314
74314
|
concurrency: number$1(),
|
|
@@ -74966,7 +74966,7 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
74966
74966
|
*/
|
|
74967
74967
|
var RunnerJumpStepProvisioningSchema = object({
|
|
74968
74968
|
modelId: string().optional(),
|
|
74969
|
-
settings: record(string(), unknown()).optional()
|
|
74969
|
+
settings: record$1(string(), unknown()).optional()
|
|
74970
74970
|
});
|
|
74971
74971
|
/**
|
|
74972
74972
|
* One ENABLED inference device on the runner's node, as the step-tree
|
|
@@ -74989,7 +74989,7 @@ var RunnerInferenceDeviceSchema = object({
|
|
|
74989
74989
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
74990
74990
|
* the elected device's provisioning, as before.
|
|
74991
74991
|
*/
|
|
74992
|
-
steps: record(string(), RunnerJumpStepProvisioningSchema).optional()
|
|
74992
|
+
steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional()
|
|
74993
74993
|
});
|
|
74994
74994
|
/**
|
|
74995
74995
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -76852,7 +76852,7 @@ var ClientNetworkStatsSchema = object({
|
|
|
76852
76852
|
});
|
|
76853
76853
|
var DeviceNetworkStatsSchema = object({
|
|
76854
76854
|
deviceId: number$1(),
|
|
76855
|
-
streams: record(string(), StreamNetworkStatsSchema),
|
|
76855
|
+
streams: record$1(string(), StreamNetworkStatsSchema),
|
|
76856
76856
|
client: ClientNetworkStatsSchema.optional()
|
|
76857
76857
|
});
|
|
76858
76858
|
method(object({ deviceId: number$1() }), DeviceNetworkStatsSchema.nullable()), method(_void(), array(DeviceNetworkStatsSchema).readonly()), method(object({
|
|
@@ -76956,7 +76956,7 @@ method(object({
|
|
|
76956
76956
|
nodeId: string().min(1),
|
|
76957
76957
|
/** Epoch ms the node was forgotten (the tombstone's `removedAt`). */
|
|
76958
76958
|
removedAt: number$1()
|
|
76959
|
-
}), object({ counts: record(string(), number$1().int().nonnegative()) }), {
|
|
76959
|
+
}), object({ counts: record$1(string(), number$1().int().nonnegative()) }), {
|
|
76960
76960
|
kind: "mutation",
|
|
76961
76961
|
auth: "admin"
|
|
76962
76962
|
}), NOT_A_DEVICE.INTERNAL;
|
|
@@ -77148,7 +77148,7 @@ method(_void(), array(TopologyNodeSchema).readonly(), { auth: "admin" }), method
|
|
|
77148
77148
|
}), RenameNodeResultSchema, {
|
|
77149
77149
|
kind: "mutation",
|
|
77150
77150
|
auth: "admin"
|
|
77151
|
-
}), method(_void(), record(string(), ClusterAddonStatusEntrySchema), { auth: "admin" }), method(object({ windowSeconds: number$1().int().positive().max(300).default(60) }), array(CapUsageEdgeSchema).readonly(), { auth: "admin" }), method(object({ nodeId: string() }), array(NodeAddonEntrySchema).readonly(), { auth: "admin" }), method(object({
|
|
77151
|
+
}), method(_void(), record$1(string(), ClusterAddonStatusEntrySchema), { auth: "admin" }), method(object({ windowSeconds: number$1().int().positive().max(300).default(60) }), array(CapUsageEdgeSchema).readonly(), { auth: "admin" }), method(object({ nodeId: string() }), array(NodeAddonEntrySchema).readonly(), { auth: "admin" }), method(object({
|
|
77152
77152
|
nodeId: string(),
|
|
77153
77153
|
level: string()
|
|
77154
77154
|
}), SuccessSchema, {
|
|
@@ -77158,7 +77158,7 @@ method(_void(), array(TopologyNodeSchema).readonly(), { auth: "admin" }), method
|
|
|
77158
77158
|
nodeId: string(),
|
|
77159
77159
|
addonId: string(),
|
|
77160
77160
|
queryName: string(),
|
|
77161
|
-
params: record(string(), unknown()).optional()
|
|
77161
|
+
params: record$1(string(), unknown()).optional()
|
|
77162
77162
|
}), unknown(), {
|
|
77163
77163
|
kind: "mutation",
|
|
77164
77164
|
auth: "admin"
|
|
@@ -78475,7 +78475,7 @@ var NcRuleTargetSchema = object({
|
|
|
78475
78475
|
* Notification (`priority`, `level`, `sound`, `clickUrl`, `ttl`); the
|
|
78476
78476
|
* degrade engine drops what the backend can't render.
|
|
78477
78477
|
*/
|
|
78478
|
-
params: record(string(), unknown()).optional()
|
|
78478
|
+
params: record$1(string(), unknown()).optional()
|
|
78479
78479
|
});
|
|
78480
78480
|
/** Which picture kind one target receives (#487). */
|
|
78481
78481
|
var NcTargetAttachmentSchema = _enum([
|
|
@@ -78496,7 +78496,7 @@ var NcTargetOverrideSchema = object({
|
|
|
78496
78496
|
actions: boolean().optional()
|
|
78497
78497
|
});
|
|
78498
78498
|
/** Per-target settings keyed by target id (#487). */
|
|
78499
|
-
var NcTargetOverridesSchema = record(string(), NcTargetOverrideSchema);
|
|
78499
|
+
var NcTargetOverridesSchema = record$1(string(), NcTargetOverrideSchema);
|
|
78500
78500
|
/**
|
|
78501
78501
|
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
78502
78502
|
*
|
|
@@ -79003,7 +79003,7 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
79003
79003
|
count: number$1().int().nonnegative(),
|
|
79004
79004
|
text: string(),
|
|
79005
79005
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
79006
|
-
dropped: record(string(), number$1().int().nonnegative()),
|
|
79006
|
+
dropped: record$1(string(), number$1().int().nonnegative()),
|
|
79007
79007
|
excludedGroups: array(string()),
|
|
79008
79008
|
split: NcStateSummarySplitSchema.optional(),
|
|
79009
79009
|
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
@@ -79259,7 +79259,7 @@ var NcHistorySubjectSchema = object({
|
|
|
79259
79259
|
subject: string(),
|
|
79260
79260
|
title: string(),
|
|
79261
79261
|
body: string(),
|
|
79262
|
-
data: record(string(), unknown())
|
|
79262
|
+
data: record$1(string(), unknown())
|
|
79263
79263
|
}).optional()
|
|
79264
79264
|
});
|
|
79265
79265
|
/**
|
|
@@ -80037,7 +80037,7 @@ var NotifierSendInputSchema = object({
|
|
|
80037
80037
|
actions: array(NotifierActionSchema).optional(),
|
|
80038
80038
|
/** Free-form platform-specific payload — passed through to the
|
|
80039
80039
|
* upstream service untouched. */
|
|
80040
|
-
data: record(string(), unknown()).optional()
|
|
80040
|
+
data: record$1(string(), unknown()).optional()
|
|
80041
80041
|
});
|
|
80042
80042
|
var NotifierSendResultSchema = object({
|
|
80043
80043
|
/** Provider-assigned id for the delivery. Used for `cancel`. */
|
|
@@ -81318,9 +81318,9 @@ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
|
81318
81318
|
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
81319
81319
|
var LoadBalancingSharesInputSchema = object({
|
|
81320
81320
|
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
81321
|
-
nodes: record(string(), number$1().positive()).default({}),
|
|
81321
|
+
nodes: record$1(string(), number$1().positive()).default({}),
|
|
81322
81322
|
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
81323
|
-
devices: record(string(), record(string(), number$1().positive())).default({})
|
|
81323
|
+
devices: record$1(string(), record$1(string(), number$1().positive())).default({})
|
|
81324
81324
|
});
|
|
81325
81325
|
var PlacementStatsInputSchema = object({
|
|
81326
81326
|
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
@@ -81437,8 +81437,8 @@ var ShareSourceSchema = _enum([
|
|
|
81437
81437
|
]);
|
|
81438
81438
|
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
81439
81439
|
object({
|
|
81440
|
-
nodes: record(string(), number$1()),
|
|
81441
|
-
devices: record(string(), record(string(), number$1()))
|
|
81440
|
+
nodes: record$1(string(), number$1()),
|
|
81441
|
+
devices: record$1(string(), record$1(string(), number$1()))
|
|
81442
81442
|
});
|
|
81443
81443
|
var EffectiveDeviceShareSchema = object({
|
|
81444
81444
|
deviceKey: string(),
|
|
@@ -81471,8 +81471,8 @@ var EffectiveSharesSchema = object({
|
|
|
81471
81471
|
trigger: string().nullable(),
|
|
81472
81472
|
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
81473
81473
|
/** The relative weights the election reads (before eligibility). */
|
|
81474
|
-
nodeWeights: record(string(), number$1()),
|
|
81475
|
-
deviceWeights: record(string(), record(string(), number$1()))
|
|
81474
|
+
nodeWeights: record$1(string(), number$1()),
|
|
81475
|
+
deviceWeights: record$1(string(), record$1(string(), number$1()))
|
|
81476
81476
|
});
|
|
81477
81477
|
var CameraPipelineConfigSchema = object({
|
|
81478
81478
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
@@ -81481,12 +81481,12 @@ var CameraPipelineConfigSchema = object({
|
|
|
81481
81481
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
81482
81482
|
modelId: string().optional(),
|
|
81483
81483
|
enabled: boolean(),
|
|
81484
|
-
settings: record(string(), unknown()).readonly().optional()
|
|
81484
|
+
settings: record$1(string(), unknown()).readonly().optional()
|
|
81485
81485
|
}).nullable().optional()
|
|
81486
81486
|
});
|
|
81487
81487
|
var DeviceStepConfigSchema = object({
|
|
81488
81488
|
modelId: string().optional(),
|
|
81489
|
-
settings: record(string(), unknown()).optional(),
|
|
81489
|
+
settings: record$1(string(), unknown()).optional(),
|
|
81490
81490
|
/**
|
|
81491
81491
|
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
81492
81492
|
* When set, this step runs on the named enabled device of the SAME node
|
|
@@ -81537,7 +81537,7 @@ var AgentPipelineSettingsSchema = object({
|
|
|
81537
81537
|
* every accelerator of the node under the device's own settings. Never a
|
|
81538
81538
|
* model or a model-bound threshold. Written by `setNodeStepSettings`.
|
|
81539
81539
|
*/
|
|
81540
|
-
stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
|
|
81540
|
+
stepSettings: record$1(string(), record$1(string(), unknown()).readonly()).optional(),
|
|
81541
81541
|
/**
|
|
81542
81542
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
81543
81543
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
@@ -81547,14 +81547,14 @@ var AgentPipelineSettingsSchema = object({
|
|
|
81547
81547
|
* the default model/settings for every camera landing on that accelerator;
|
|
81548
81548
|
* a stepId absent ⇒ the step uses that device's format default.
|
|
81549
81549
|
*/
|
|
81550
|
-
inferenceDevices: record(string(), object({
|
|
81550
|
+
inferenceDevices: record$1(string(), object({
|
|
81551
81551
|
enabled: boolean(),
|
|
81552
81552
|
weight: number$1().positive().optional(),
|
|
81553
81553
|
maxSessions: number$1().int().positive().optional(),
|
|
81554
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
81554
|
+
steps: record$1(string(), DeviceStepConfigSchema).optional()
|
|
81555
81555
|
})).optional()
|
|
81556
81556
|
});
|
|
81557
|
-
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
81557
|
+
var CameraStepSettingsSchema = record$1(string(), record$1(string(), unknown()).readonly());
|
|
81558
81558
|
/** The three root-detector choices a camera has (D507: at most one root). */
|
|
81559
81559
|
var CameraDetectionSourceSchema = _enum([
|
|
81560
81560
|
"pipeline",
|
|
@@ -81562,7 +81562,7 @@ var CameraDetectionSourceSchema = _enum([
|
|
|
81562
81562
|
"none"
|
|
81563
81563
|
]);
|
|
81564
81564
|
var CameraPipelineSettingsSchema = object({
|
|
81565
|
-
stepToggles: record(string(), boolean()).optional(),
|
|
81565
|
+
stepToggles: record$1(string(), boolean()).optional(),
|
|
81566
81566
|
stepSettings: CameraStepSettingsSchema.optional()
|
|
81567
81567
|
});
|
|
81568
81568
|
/**
|
|
@@ -81634,7 +81634,7 @@ var GlobalMetricsSchema = object({
|
|
|
81634
81634
|
* `capability.binding-changed` event subscription) when resolving
|
|
81635
81635
|
* capability providers.
|
|
81636
81636
|
*/
|
|
81637
|
-
var CapabilityBindingsSchema = record(string(), string());
|
|
81637
|
+
var CapabilityBindingsSchema = record$1(string(), string());
|
|
81638
81638
|
/**
|
|
81639
81639
|
* The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
|
|
81640
81640
|
* its LAN-reachable host, if one is registered. See `getIngestOwner`.
|
|
@@ -81905,7 +81905,7 @@ var NodeInferenceDeviceSchema = object({
|
|
|
81905
81905
|
* available per format; this is the stored selection that becomes the
|
|
81906
81906
|
* default for EVERY camera landing on this accelerator.
|
|
81907
81907
|
*/
|
|
81908
|
-
steps: record(string(), DeviceStepConfigSchema).optional(),
|
|
81908
|
+
steps: record$1(string(), DeviceStepConfigSchema).optional(),
|
|
81909
81909
|
/**
|
|
81910
81910
|
* `null` when the device IS a camera-root candidate on this node; otherwise
|
|
81911
81911
|
* the reason the dispatcher drops it. Computed by the SAME
|
|
@@ -82100,11 +82100,11 @@ method(object({
|
|
|
82100
82100
|
auth: "admin"
|
|
82101
82101
|
}), method(object({
|
|
82102
82102
|
agentNodeId: string(),
|
|
82103
|
-
inferenceDevices: record(string(), object({
|
|
82103
|
+
inferenceDevices: record$1(string(), object({
|
|
82104
82104
|
enabled: boolean(),
|
|
82105
82105
|
weight: number$1().positive().optional(),
|
|
82106
82106
|
maxSessions: number$1().int().positive().optional(),
|
|
82107
|
-
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
82107
|
+
steps: record$1(string(), DeviceStepConfigSchema).optional()
|
|
82108
82108
|
}))
|
|
82109
82109
|
}), object({ success: literal(true) }), {
|
|
82110
82110
|
kind: "mutation",
|
|
@@ -82112,7 +82112,7 @@ method(object({
|
|
|
82112
82112
|
}), method(object({
|
|
82113
82113
|
agentNodeId: string(),
|
|
82114
82114
|
addonId: string(),
|
|
82115
|
-
settings: record(string(), unknown()).nullable()
|
|
82115
|
+
settings: record$1(string(), unknown()).nullable()
|
|
82116
82116
|
}), object({ success: literal(true) }), {
|
|
82117
82117
|
kind: "mutation",
|
|
82118
82118
|
auth: "admin"
|
|
@@ -82183,7 +82183,7 @@ method(object({
|
|
|
82183
82183
|
}), method(object({
|
|
82184
82184
|
deviceId: number$1(),
|
|
82185
82185
|
addonId: string(),
|
|
82186
|
-
settings: record(string(), unknown()).nullable()
|
|
82186
|
+
settings: record$1(string(), unknown()).nullable()
|
|
82187
82187
|
}), object({ success: literal(true) }), {
|
|
82188
82188
|
kind: "mutation",
|
|
82189
82189
|
auth: "admin"
|
|
@@ -83807,7 +83807,7 @@ var EntryKindInfoSchema = object({
|
|
|
83807
83807
|
title: string(),
|
|
83808
83808
|
nameField: string(),
|
|
83809
83809
|
/** JSON Schema of the body; `secret: true` marks a password field. */
|
|
83810
|
-
fields: record(string(), unknown()),
|
|
83810
|
+
fields: record$1(string(), unknown()),
|
|
83811
83811
|
secretPaths: array(string()),
|
|
83812
83812
|
rows: number$1().int().nonnegative()
|
|
83813
83813
|
});
|
|
@@ -84387,7 +84387,7 @@ var RecordingDevicePinSchema = object({
|
|
|
84387
84387
|
var RecordingPlacementViewSchema = object({
|
|
84388
84388
|
assignments: array(RecordingDevicePlacementSchema),
|
|
84389
84389
|
pins: array(RecordingDevicePinSchema),
|
|
84390
|
-
defaultLocations: record(string(), string())
|
|
84390
|
+
defaultLocations: record$1(string(), string())
|
|
84391
84391
|
});
|
|
84392
84392
|
var RecordingSetDevicePlacementInputSchema = object({
|
|
84393
84393
|
deviceId: number$1().int(),
|
|
@@ -86028,9 +86028,9 @@ var RemoteBindingSchema = object({ action: object({
|
|
|
86028
86028
|
deviceId: number$1().int().nonnegative(),
|
|
86029
86029
|
cap: string().min(1),
|
|
86030
86030
|
method: string().min(1),
|
|
86031
|
-
args: record(string(), unknown()).optional(),
|
|
86031
|
+
args: record$1(string(), unknown()).optional(),
|
|
86032
86032
|
/** The unit the person picked per arg (display only); `args` always hold the cap's own unit. */
|
|
86033
|
-
argUnits: record(string(), string().min(1)).optional()
|
|
86033
|
+
argUnits: record$1(string(), string().min(1)).optional()
|
|
86034
86034
|
}) });
|
|
86035
86035
|
var RemoteCustomButtonSchema = object({
|
|
86036
86036
|
/** The slug after `custom:` in the role. */
|
|
@@ -86109,7 +86109,7 @@ var RemoteConfigSchema = object({
|
|
|
86109
86109
|
*/
|
|
86110
86110
|
defaultTransmitterId: number$1().int().nonnegative().nullable().default(null),
|
|
86111
86111
|
/** Keyed by role. A role with no entry falls back to the native cap. */
|
|
86112
|
-
bindings: record(string(), RemoteBindingSchema),
|
|
86112
|
+
bindings: record$1(string(), RemoteBindingSchema),
|
|
86113
86113
|
customButtons: array(RemoteCustomButtonSchema).max(100),
|
|
86114
86114
|
/**
|
|
86115
86115
|
* The sources the operator DECLARED (planning#460). A custom button is a
|
|
@@ -87205,7 +87205,7 @@ var scriptRunnerCapability = {
|
|
|
87205
87205
|
/** Optional variables map — passed through to the upstream
|
|
87206
87206
|
* script. Provider rejects when the script doesn't declare
|
|
87207
87207
|
* input fields (gated by `DeviceFeature.ScriptVariables`). */
|
|
87208
|
-
variables: record(string(), unknown()).optional()
|
|
87208
|
+
variables: record$1(string(), unknown()).optional()
|
|
87209
87209
|
}), _void(), {
|
|
87210
87210
|
kind: "mutation",
|
|
87211
87211
|
auth: "admin",
|
|
@@ -88375,7 +88375,7 @@ var ReadChunkInputSchema = object({
|
|
|
88375
88375
|
length: number$1()
|
|
88376
88376
|
});
|
|
88377
88377
|
var EndDownloadInputSchema = object({ downloadId: string() });
|
|
88378
|
-
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
88378
|
+
method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config: record$1(string(), unknown()) }), TestLocationResultSchema, { auth: "admin" }), method(object({
|
|
88379
88379
|
location: StorageLocationSchema,
|
|
88380
88380
|
relativePath: string()
|
|
88381
88381
|
}), string(), { auth: "admin" }), method(object({
|
|
@@ -88452,7 +88452,7 @@ var CamStreamDescriptorSchema = object({
|
|
|
88452
88452
|
/** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
|
|
88453
88453
|
profileHint: CamProfileSchema.optional(),
|
|
88454
88454
|
/** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
|
|
88455
|
-
metadata: record(string(), unknown()).optional()
|
|
88455
|
+
metadata: record$1(string(), unknown()).optional()
|
|
88456
88456
|
});
|
|
88457
88457
|
/**
|
|
88458
88458
|
* `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
|
|
@@ -89617,7 +89617,7 @@ var DebugWatchResultSchema = object({
|
|
|
89617
89617
|
/** Channels a `rearm` found already lapsed: nothing was revived. */
|
|
89618
89618
|
lapsed: array(string()).readonly()
|
|
89619
89619
|
});
|
|
89620
|
-
method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
|
|
89620
|
+
method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record$1(string(), unknown()), _null(), {
|
|
89621
89621
|
kind: "mutation",
|
|
89622
89622
|
auth: "admin"
|
|
89623
89623
|
}), method(_void(), _void(), {
|
|
@@ -89912,7 +89912,7 @@ var AutomationTemplatePayloadSchema = object({
|
|
|
89912
89912
|
version: literal(1),
|
|
89913
89913
|
description: string().max(500).optional(),
|
|
89914
89914
|
/** The automation body; a recipe once the inputs are written into it. */
|
|
89915
|
-
body: record(string(), unknown()),
|
|
89915
|
+
body: record$1(string(), unknown()),
|
|
89916
89916
|
inputs: array(TemplateInputSchema).max(30),
|
|
89917
89917
|
bindings: array(TemplateBindingSchema).max(100)
|
|
89918
89918
|
}).superRefine(bindingProblems);
|
|
@@ -89999,7 +89999,7 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
|
|
|
89999
89999
|
});
|
|
90000
90000
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
90001
90001
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
90002
|
-
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
90002
|
+
var ProfileSettingsBagSchema = record$1(string(), unknown());
|
|
90003
90003
|
/**
|
|
90004
90004
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
90005
90005
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -90271,7 +90271,7 @@ var TrainingProviderDescriptorSchema = object({
|
|
|
90271
90271
|
* fields are keychain {@link SecretFieldView} or `null` / `''` (create),
|
|
90272
90272
|
* never plaintext. Same hydrate contract as settings forms (D789).
|
|
90273
90273
|
*/
|
|
90274
|
-
formValues: record(string(), unknown()).optional()
|
|
90274
|
+
formValues: record$1(string(), unknown()).optional()
|
|
90275
90275
|
});
|
|
90276
90276
|
var ProviderJobStateSchema = _enum([
|
|
90277
90277
|
"pending",
|
|
@@ -90428,7 +90428,7 @@ var TrainingBaseModelSchema = object({
|
|
|
90428
90428
|
weights: string(),
|
|
90429
90429
|
imgsz: number$1().int(),
|
|
90430
90430
|
baselineOnnxUrl: string(),
|
|
90431
|
-
baselineFloors: record(string(), number$1()),
|
|
90431
|
+
baselineFloors: record$1(string(), number$1()),
|
|
90432
90432
|
/** The base the fleet runs most — the UI's default. */
|
|
90433
90433
|
recommended: boolean()
|
|
90434
90434
|
});
|
|
@@ -90459,7 +90459,7 @@ var TrainingSplitPlanSchema = object({
|
|
|
90459
90459
|
/** Used when no camera is held out: the last N days of every camera. */
|
|
90460
90460
|
holdoutLastDays: number$1().int().nonnegative(),
|
|
90461
90461
|
/** Holdout subjects per class (camera holdout only; `null` = known only after the split). */
|
|
90462
|
-
holdoutSupport: record(string(), number$1().int()).nullable(),
|
|
90462
|
+
holdoutSupport: record$1(string(), number$1().int()).nullable(),
|
|
90463
90463
|
trainSubjects: number$1().int()
|
|
90464
90464
|
});
|
|
90465
90465
|
var TrainingRefusalReasonSchema = _enum([
|
|
@@ -90771,7 +90771,7 @@ var UserSummarySchema = object({
|
|
|
90771
90771
|
username: string(),
|
|
90772
90772
|
isAdmin: boolean().default(false),
|
|
90773
90773
|
allowedProviders: union([array(string()), literal("*")]),
|
|
90774
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])),
|
|
90774
|
+
allowedDevices: record$1(string(), union([array(string()), literal("*")])),
|
|
90775
90775
|
/** Capability rows, or ONE viewer row (D921) — see `UserScopeSchema`. */
|
|
90776
90776
|
scopes: array(UserScopeSchema).default([]),
|
|
90777
90777
|
/**
|
|
@@ -90789,14 +90789,14 @@ var CreateUserInputSchema = object({
|
|
|
90789
90789
|
password: string().min(6),
|
|
90790
90790
|
isAdmin: boolean().default(false),
|
|
90791
90791
|
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
90792
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
90792
|
+
allowedDevices: record$1(string(), union([array(string()), literal("*")])).optional(),
|
|
90793
90793
|
scopes: array(UserScopeSchema).optional()
|
|
90794
90794
|
});
|
|
90795
90795
|
var UpdateUserInputSchema = object({
|
|
90796
90796
|
id: string(),
|
|
90797
90797
|
isAdmin: boolean().optional(),
|
|
90798
90798
|
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
90799
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
90799
|
+
allowedDevices: record$1(string(), union([array(string()), literal("*")])).optional(),
|
|
90800
90800
|
scopes: array(UserScopeSchema).optional()
|
|
90801
90801
|
});
|
|
90802
90802
|
var OauthSessionSummarySchema = object({
|
|
@@ -91028,14 +91028,14 @@ var PasskeySummarySchema = object({
|
|
|
91028
91028
|
method(object({
|
|
91029
91029
|
userId: string(),
|
|
91030
91030
|
username: string()
|
|
91031
|
-
}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
91031
|
+
}), object({ optionsJSON: record$1(string(), unknown()) }), {
|
|
91032
91032
|
kind: "mutation",
|
|
91033
91033
|
auth: "admin",
|
|
91034
91034
|
access: "create"
|
|
91035
91035
|
}), method(object({
|
|
91036
91036
|
userId: string(),
|
|
91037
91037
|
/** RegistrationResponseJSON from the browser. */
|
|
91038
|
-
response: record(string(), unknown()),
|
|
91038
|
+
response: record$1(string(), unknown()),
|
|
91039
91039
|
/** Operator-visible label (e.g. "MacBook Touch ID"). */
|
|
91040
91040
|
label: string()
|
|
91041
91041
|
}), object({
|
|
@@ -91045,7 +91045,7 @@ method(object({
|
|
|
91045
91045
|
kind: "mutation",
|
|
91046
91046
|
auth: "admin",
|
|
91047
91047
|
access: "create"
|
|
91048
|
-
}), method(object({ userId: string().optional() }), object({ optionsJSON: record(string(), unknown()) }), {
|
|
91048
|
+
}), method(object({ userId: string().optional() }), object({ optionsJSON: record$1(string(), unknown()) }), {
|
|
91049
91049
|
kind: "mutation",
|
|
91050
91050
|
access: "view",
|
|
91051
91051
|
auth: "admin"
|
|
@@ -91053,18 +91053,18 @@ method(object({
|
|
|
91053
91053
|
/** Required — the user the assertion belongs to (verified). */
|
|
91054
91054
|
userId: string(),
|
|
91055
91055
|
/** AuthenticationResponseJSON from the browser. */
|
|
91056
|
-
response: record(string(), unknown())
|
|
91056
|
+
response: record$1(string(), unknown())
|
|
91057
91057
|
}), object({ verified: boolean() }), {
|
|
91058
91058
|
kind: "mutation",
|
|
91059
91059
|
access: "view",
|
|
91060
91060
|
auth: "admin"
|
|
91061
|
-
}), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
|
|
91061
|
+
}), method(object({}), object({ optionsJSON: record$1(string(), unknown()) }), {
|
|
91062
91062
|
kind: "mutation",
|
|
91063
91063
|
access: "view",
|
|
91064
91064
|
auth: "admin"
|
|
91065
91065
|
}), method(object({
|
|
91066
91066
|
/** AuthenticationResponseJSON from the browser. */
|
|
91067
|
-
response: record(string(), unknown()) }), object({
|
|
91067
|
+
response: record$1(string(), unknown()) }), object({
|
|
91068
91068
|
verified: boolean(),
|
|
91069
91069
|
userId: string().nullable()
|
|
91070
91070
|
}), {
|
|
@@ -91501,7 +91501,7 @@ var VectorMetricSchema = _enum([
|
|
|
91501
91501
|
* Callers keep their rich records in their own store and put only the filterable
|
|
91502
91502
|
* columns here (deviceId, timestamp, className, modelId, …).
|
|
91503
91503
|
*/
|
|
91504
|
-
var VectorMetadataSchema = record(string(), union([
|
|
91504
|
+
var VectorMetadataSchema = record$1(string(), union([
|
|
91505
91505
|
string(),
|
|
91506
91506
|
number$1(),
|
|
91507
91507
|
boolean()
|
|
@@ -91514,12 +91514,12 @@ var VectorMetadataSchema = record(string(), union([
|
|
|
91514
91514
|
* caller will treat as matches.
|
|
91515
91515
|
*/
|
|
91516
91516
|
var VectorFilterSchema = object({
|
|
91517
|
-
equals: record(string(), union([
|
|
91517
|
+
equals: record$1(string(), union([
|
|
91518
91518
|
string(),
|
|
91519
91519
|
number$1(),
|
|
91520
91520
|
boolean()
|
|
91521
91521
|
])).optional(),
|
|
91522
|
-
between: record(string(), tuple([number$1(), number$1()])).optional()
|
|
91522
|
+
between: record$1(string(), tuple([number$1(), number$1()])).optional()
|
|
91523
91523
|
});
|
|
91524
91524
|
/** One vector plus its identity and filterable metadata. */
|
|
91525
91525
|
var VectorItemSchema = object({
|
|
@@ -92548,7 +92548,7 @@ var PerScopeBreakdownSchema = object({
|
|
|
92548
92548
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
92549
92549
|
totalObjects: number$1().int().nonnegative(),
|
|
92550
92550
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
92551
|
-
byClass: record(string(), number$1().int().nonnegative()),
|
|
92551
|
+
byClass: record$1(string(), number$1().int().nonnegative()),
|
|
92552
92552
|
/**
|
|
92553
92553
|
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
92554
92554
|
* present but not going anywhere (a parked car, a bin, a statue).
|
|
@@ -112336,7 +112336,7 @@ new Set([
|
|
|
112336
112336
|
"audio-silence"
|
|
112337
112337
|
]);
|
|
112338
112338
|
AppPageLangSchema.options;
|
|
112339
|
-
record(string().min(1), string());
|
|
112339
|
+
record$1(string().min(1), string());
|
|
112340
112340
|
/**
|
|
112341
112341
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
112342
112342
|
*
|
|
@@ -112566,7 +112566,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
112566
112566
|
* "never generated" would re-render and re-notify every camera of every rule
|
|
112567
112567
|
* once, on the deploy that shipped the map.
|
|
112568
112568
|
*/
|
|
112569
|
-
generatedByDevice: record(string(), number$1()).optional(),
|
|
112569
|
+
generatedByDevice: record$1(string(), number$1()).optional(),
|
|
112570
112570
|
/** userId of the caller who created the rule (server-stamped). */
|
|
112571
112571
|
createdBy: string(),
|
|
112572
112572
|
createdAt: number$1(),
|
|
@@ -113022,7 +113022,7 @@ object({
|
|
|
113022
113022
|
supportedController: string().optional(),
|
|
113023
113023
|
commandsEncoding: string(),
|
|
113024
113024
|
delay: number$1().nonnegative().optional(),
|
|
113025
|
-
commands: record(string(), unknown())
|
|
113025
|
+
commands: record$1(string(), unknown())
|
|
113026
113026
|
});
|
|
113027
113027
|
//#endregion
|
|
113028
113028
|
//#region src/homematic-reconciler.ts
|
|
@@ -113422,7 +113422,7 @@ function requireConfirmed(confirmed) {
|
|
|
113422
113422
|
//#endregion
|
|
113423
113423
|
//#region src/ccu/hm-channel-names.ts
|
|
113424
113424
|
/** The device part of a `DEVICE:index` channel address. */
|
|
113425
|
-
function deviceAddressOf$
|
|
113425
|
+
function deviceAddressOf$3(channelAddress) {
|
|
113426
113426
|
const idx = channelAddress.lastIndexOf(":");
|
|
113427
113427
|
return idx === -1 ? channelAddress : channelAddress.slice(0, idx);
|
|
113428
113428
|
}
|
|
@@ -113434,7 +113434,7 @@ function deviceAddressOf$2(channelAddress) {
|
|
|
113434
113434
|
function channelNameLookup(devices) {
|
|
113435
113435
|
const byAddress = new Map(devices.map((device) => [device.address, device]));
|
|
113436
113436
|
return (channelAddress) => {
|
|
113437
|
-
const device = byAddress.get(deviceAddressOf$
|
|
113437
|
+
const device = byAddress.get(deviceAddressOf$3(channelAddress));
|
|
113438
113438
|
if (device === void 0) return {
|
|
113439
113439
|
channelName: null,
|
|
113440
113440
|
deviceName: null,
|
|
@@ -113461,7 +113461,39 @@ function directLinksOfKey(keyAddress, links, names) {
|
|
|
113461
113461
|
};
|
|
113462
113462
|
});
|
|
113463
113463
|
}
|
|
113464
|
-
|
|
113464
|
+
/** A HmIP device sends presses only while a CCU program uses the key (a central link is not enough). */
|
|
113465
|
+
function isHmipDevice(device) {
|
|
113466
|
+
return /^hmip/i.test(device.type);
|
|
113467
|
+
}
|
|
113468
|
+
/** The one CCU program that carries a device's key events. It is found by this name; nothing else is stored. */
|
|
113469
|
+
function keyEventProgramName(device) {
|
|
113470
|
+
return `CamStack: ${hmName(device.name) ?? device.address} events`;
|
|
113471
|
+
}
|
|
113472
|
+
function deviceAddressOf$2(channelAddress) {
|
|
113473
|
+
const colon = channelAddress.lastIndexOf(":");
|
|
113474
|
+
return colon === -1 ? channelAddress : channelAddress.slice(0, colon);
|
|
113475
|
+
}
|
|
113476
|
+
/**
|
|
113477
|
+
* The key channels the device's program listens to: an empty set when there is
|
|
113478
|
+
* no program, `null` when the read failed (the row then says `unknown`).
|
|
113479
|
+
*/
|
|
113480
|
+
async function programChannelsOf(deps, integrationId, facade, device, deviceId) {
|
|
113481
|
+
try {
|
|
113482
|
+
const program = await facade.getKeyEventProgram(keyEventProgramName(device));
|
|
113483
|
+
return new Set(program?.channelAddresses ?? []);
|
|
113484
|
+
} catch (err) {
|
|
113485
|
+
deps.logger.warn("Homematic key event program could not be read", {
|
|
113486
|
+
...deviceId !== void 0 ? { tags: { deviceId } } : {},
|
|
113487
|
+
meta: {
|
|
113488
|
+
integrationId,
|
|
113489
|
+
address: device.address,
|
|
113490
|
+
error: errorText(err)
|
|
113491
|
+
}
|
|
113492
|
+
});
|
|
113493
|
+
return null;
|
|
113494
|
+
}
|
|
113495
|
+
}
|
|
113496
|
+
async function keyChannelRow(deps, integrationId, facade, names, channel, programChannels) {
|
|
113465
113497
|
const row = {
|
|
113466
113498
|
address: channel.address,
|
|
113467
113499
|
index: channelIndexFromAddress(channel.address) ?? String(channel.index),
|
|
@@ -113469,9 +113501,15 @@ async function keyChannelRow(deps, integrationId, facade, names, channel) {
|
|
|
113469
113501
|
};
|
|
113470
113502
|
try {
|
|
113471
113503
|
const state = await facade.getChannelLinkState(channel.address);
|
|
113504
|
+
if (programChannels === null) return {
|
|
113505
|
+
...row,
|
|
113506
|
+
central: "unknown",
|
|
113507
|
+
links: []
|
|
113508
|
+
};
|
|
113509
|
+
const covered = programChannels === void 0 || programChannels.has(channel.address);
|
|
113472
113510
|
return {
|
|
113473
113511
|
...row,
|
|
113474
|
-
central: state.central ? "on" : "off",
|
|
113512
|
+
central: state.central && covered ? "on" : "off",
|
|
113475
113513
|
links: directLinksOfKey(channel.address, state.links, names)
|
|
113476
113514
|
};
|
|
113477
113515
|
} catch (err) {
|
|
@@ -113495,7 +113533,8 @@ async function keyChannelsForDevice(deps, integrationId, device, adopted) {
|
|
|
113495
113533
|
const facade = deps.facade(integrationId);
|
|
113496
113534
|
if (facade === null) return [];
|
|
113497
113535
|
const names = channelNameLookup(facade.devices());
|
|
113498
|
-
|
|
113536
|
+
const programChannels = isHmipDevice(device) ? await programChannelsOf(deps, integrationId, facade, device, (await deps.adoptedAddresses(integrationId)).get(device.address)) : void 0;
|
|
113537
|
+
return Promise.all(keys.map((channel) => keyChannelRow(deps, integrationId, facade, names, channel, programChannels)));
|
|
113499
113538
|
}
|
|
113500
113539
|
function withKeyChannels(row, keyChannels) {
|
|
113501
113540
|
return {
|
|
@@ -113503,27 +113542,76 @@ function withKeyChannels(row, keyChannels) {
|
|
|
113503
113542
|
keyChannels: [...keyChannels]
|
|
113504
113543
|
};
|
|
113505
113544
|
}
|
|
113506
|
-
/**
|
|
113545
|
+
/**
|
|
113546
|
+
* Enable or disable the events of one key channel. Direct links stay. A HmIP
|
|
113547
|
+
* key also needs a CCU program that uses it (one per device, found by name):
|
|
113548
|
+
* enabling puts the channel in it, disabling takes it out and deletes the
|
|
113549
|
+
* program when it was the last key.
|
|
113550
|
+
*/
|
|
113507
113551
|
function buildButtonEventHandlers(deps) {
|
|
113508
113552
|
return { setButtonEvents: async (input) => {
|
|
113509
113553
|
requireConfirmed(input.confirmed);
|
|
113510
113554
|
const facade = requireFacade(deps, input.integrationId);
|
|
113555
|
+
const deviceAddress = deviceAddressOf$2(input.address);
|
|
113556
|
+
const device = facade.devices().find((candidate) => candidate.address === deviceAddress);
|
|
113557
|
+
const deviceId = (await deps.adoptedAddresses(input.integrationId)).get(deviceAddress);
|
|
113558
|
+
const tags = deviceId !== void 0 ? { tags: { deviceId } } : {};
|
|
113511
113559
|
try {
|
|
113512
113560
|
if (input.enabled) await facade.createCentralLink(input.address);
|
|
113513
113561
|
else await facade.removeCentralLink(input.address);
|
|
113562
|
+
if (device !== void 0 && isHmipDevice(device)) await syncKeyEventProgram(deps, facade, device, input.address, input.enabled, tags);
|
|
113514
113563
|
} catch (err) {
|
|
113515
|
-
deps.logger.warn("Homematic
|
|
113516
|
-
|
|
113517
|
-
|
|
113518
|
-
|
|
113519
|
-
|
|
113520
|
-
|
|
113564
|
+
deps.logger.warn("Homematic button events change failed", {
|
|
113565
|
+
...tags,
|
|
113566
|
+
meta: {
|
|
113567
|
+
integrationId: input.integrationId,
|
|
113568
|
+
address: input.address,
|
|
113569
|
+
enabled: input.enabled,
|
|
113570
|
+
error: errorText(err)
|
|
113571
|
+
}
|
|
113572
|
+
});
|
|
113521
113573
|
throw err;
|
|
113522
113574
|
}
|
|
113575
|
+
deps.logger.info(`Homematic: button events ${input.enabled ? "enabled" : "disabled"}`, {
|
|
113576
|
+
...tags,
|
|
113577
|
+
meta: {
|
|
113578
|
+
integrationId: input.integrationId,
|
|
113579
|
+
address: input.address
|
|
113580
|
+
}
|
|
113581
|
+
});
|
|
113523
113582
|
deps.ccuChanged(input.integrationId);
|
|
113524
113583
|
return { ok: true };
|
|
113525
113584
|
} };
|
|
113526
113585
|
}
|
|
113586
|
+
/** Put the channel in the device's key event program, or take it out (deleting an emptied program). */
|
|
113587
|
+
async function syncKeyEventProgram(deps, facade, device, channelAddress, enabled, tags) {
|
|
113588
|
+
const name = keyEventProgramName(device);
|
|
113589
|
+
const current = (await facade.getKeyEventProgram(name))?.channelAddresses ?? [];
|
|
113590
|
+
const wanted = enabled ? [...new Set([...current, channelAddress])] : current.filter((address) => address !== channelAddress);
|
|
113591
|
+
if (wanted.length === 0) {
|
|
113592
|
+
const { removed } = await facade.removeKeyEventProgram(name);
|
|
113593
|
+
deps.logger.info("Homematic: key event program removed", {
|
|
113594
|
+
...tags,
|
|
113595
|
+
meta: {
|
|
113596
|
+
program: name,
|
|
113597
|
+
removed
|
|
113598
|
+
}
|
|
113599
|
+
});
|
|
113600
|
+
return;
|
|
113601
|
+
}
|
|
113602
|
+
const { programId, created } = await facade.ensureKeyEventProgram({
|
|
113603
|
+
name,
|
|
113604
|
+
channelAddresses: wanted
|
|
113605
|
+
});
|
|
113606
|
+
deps.logger.info(`Homematic: key event program ${created ? "created" : "updated"}`, {
|
|
113607
|
+
...tags,
|
|
113608
|
+
meta: {
|
|
113609
|
+
program: name,
|
|
113610
|
+
programId,
|
|
113611
|
+
channels: wanted
|
|
113612
|
+
}
|
|
113613
|
+
});
|
|
113614
|
+
}
|
|
113527
113615
|
//#endregion
|
|
113528
113616
|
//#region src/ccu/ccu-device-rows.ts
|
|
113529
113617
|
/** `RSSI_*` reports this when the device has no signal reading. */
|
|
@@ -113929,7 +114017,7 @@ var DeviceConfigSchema = object({ channels: array(object({
|
|
|
113929
114017
|
var DeviceRefSchema = IntegrationRefSchema.extend({ address: string().min(1) });
|
|
113930
114018
|
var SetChannelConfigInputSchema = IntegrationRefSchema.extend({
|
|
113931
114019
|
channel: string().min(1),
|
|
113932
|
-
values: record(string(), ConfigValueSchema),
|
|
114020
|
+
values: record$1(string(), ConfigValueSchema),
|
|
113933
114021
|
confirmed: ConfirmedSchema
|
|
113934
114022
|
});
|
|
113935
114023
|
var LinkPressActionSchema = _enum([
|
|
@@ -132400,9 +132488,9 @@ function parseParams(paramsChildren) {
|
|
|
132400
132488
|
function parseFault(faultChildren) {
|
|
132401
132489
|
const valueNodes = childrenOf(faultChildren, "value");
|
|
132402
132490
|
const struct = valueNodes === void 0 ? {} : parseValue(valueNodes);
|
|
132403
|
-
const
|
|
132404
|
-
const rawCode =
|
|
132405
|
-
const rawString =
|
|
132491
|
+
const record2 = typeof struct === "object" && struct !== null && !Array.isArray(struct) ? struct : {};
|
|
132492
|
+
const rawCode = record2["faultCode"];
|
|
132493
|
+
const rawString = record2["faultString"];
|
|
132406
132494
|
return {
|
|
132407
132495
|
faultCode: typeof rawCode === "number" ? rawCode : Number(rawCode),
|
|
132408
132496
|
faultString: typeof rawString === "string" ? rawString : ""
|
|
@@ -133689,21 +133777,207 @@ var CcuTopology = class {
|
|
|
133689
133777
|
throw new ValidationError(answer["reason"] === "channel" ? `Unknown channel "${channelAddress2}".` : `Unknown room "${id}".`);
|
|
133690
133778
|
}
|
|
133691
133779
|
};
|
|
133780
|
+
var DATAPOINT_NAME = /^[0-9A-Za-z_-]+\.[0-9A-Za-z_-]+:\d+\.PRESS_(?:SHORT|LONG)$/;
|
|
133781
|
+
function checkedDatapoints(datapoints) {
|
|
133782
|
+
if (datapoints.length === 0) throw new ValidationError("A key event program needs at least one data point.");
|
|
133783
|
+
for (const name of datapoints) if (!DATAPOINT_NAME.test(name)) throw new ValidationError(`Invalid key data point "${name}".`);
|
|
133784
|
+
return datapoints;
|
|
133785
|
+
}
|
|
133786
|
+
var FIND_PROGRAM = `string sName = "##name##";
|
|
133787
|
+
object oPrograms = dom.GetObject(ID_PROGRAMS);
|
|
133788
|
+
object oProg;
|
|
133789
|
+
string sPid;
|
|
133790
|
+
foreach(sPid, oPrograms.EnumUsedIDs()) {
|
|
133791
|
+
object oCand = dom.GetObject(sPid);
|
|
133792
|
+
if (oCand) {
|
|
133793
|
+
if (oCand.Name() == sName) {
|
|
133794
|
+
oProg = oCand;
|
|
133795
|
+
}
|
|
133796
|
+
}
|
|
133797
|
+
}`;
|
|
133798
|
+
function buildEnsureKeyEventProgram(datapoints) {
|
|
133799
|
+
const dps = checkedDatapoints(datapoints);
|
|
133800
|
+
return `! nodehomematic:ensureKeyEventProgram
|
|
133801
|
+
${FIND_PROGRAM}
|
|
133802
|
+
string sMissing = "";
|
|
133803
|
+
string sMissSep = "";
|
|
133804
|
+
${dps.map((dp, i) => `object oDp${i} = dom.GetObject("${dp}");
|
|
133805
|
+
if (!oDp${i}) {
|
|
133806
|
+
sMissing = sMissing # sMissSep # "\\"${dp}\\"";
|
|
133807
|
+
sMissSep = ",";
|
|
133808
|
+
}`).join("\n")}
|
|
133809
|
+
if (sMissing != "") {
|
|
133810
|
+
Write("{\\"error\\":\\"datapoint\\",\\"missing\\":[" # sMissing # "]}");
|
|
133811
|
+
} else {
|
|
133812
|
+
boolean bCreated = false;
|
|
133813
|
+
if (!oProg) {
|
|
133814
|
+
oProg = dom.CreateObject(OT_PROGRAM);
|
|
133815
|
+
oProg.Name(sName);
|
|
133816
|
+
oPrograms.Add(oProg.ID());
|
|
133817
|
+
bCreated = true;
|
|
133818
|
+
}
|
|
133819
|
+
object oRule = oProg.Rule();
|
|
133820
|
+
oRule.RuleOperatorType(2);
|
|
133821
|
+
integer iCnt = oRule.RuleConditions().Count();
|
|
133822
|
+
while (iCnt > 0) {
|
|
133823
|
+
object oOld = oRule.RuleCondition(0);
|
|
133824
|
+
oRule.RuleDelCondition(oOld.ID());
|
|
133825
|
+
iCnt = iCnt - 1;
|
|
133826
|
+
}
|
|
133827
|
+
object oCnd = oRule.RuleAddCondition();
|
|
133828
|
+
oCnd.CndOperatorType(2);
|
|
133829
|
+
object oSc;
|
|
133830
|
+
${dps.map((_dp, i) => `oSc = oCnd.CndAddSingle();
|
|
133831
|
+
oSc.OperatorType(1);
|
|
133832
|
+
oSc.ConditionType(1);
|
|
133833
|
+
oSc.ConditionType2(13);
|
|
133834
|
+
oSc.LeftValType(ivtObjectId);
|
|
133835
|
+
oSc.LeftVal(oDp${i}.ID());
|
|
133836
|
+
oSc.ConditionChannel(oDp${i}.Channel());`).join("\n")}
|
|
133837
|
+
oProg.Internal(false);
|
|
133838
|
+
oProg.Active(true);
|
|
133839
|
+
dom.RTUpdate(0);
|
|
133840
|
+
Write("{\\"programId\\":\\"");
|
|
133841
|
+
Write(oProg.ID());
|
|
133842
|
+
Write("\\",\\"created\\":");
|
|
133843
|
+
if (bCreated) {
|
|
133844
|
+
Write("true");
|
|
133845
|
+
} else {
|
|
133846
|
+
Write("false");
|
|
133847
|
+
}
|
|
133848
|
+
Write("}");
|
|
133849
|
+
}`;
|
|
133850
|
+
}
|
|
133851
|
+
var REMOVE_KEY_EVENT_PROGRAM = `! nodehomematic:removeKeyEventProgram
|
|
133852
|
+
${FIND_PROGRAM}
|
|
133853
|
+
if (oProg) {
|
|
133854
|
+
dom.DeleteObject(oProg.ID());
|
|
133855
|
+
Write("{\\"removed\\":true}");
|
|
133856
|
+
} else {
|
|
133857
|
+
Write("{\\"removed\\":false}");
|
|
133858
|
+
}`;
|
|
133859
|
+
var GET_KEY_EVENT_PROGRAM = `! nodehomematic:getKeyEventProgram
|
|
133860
|
+
${FIND_PROGRAM}
|
|
133861
|
+
if (!oProg) {
|
|
133862
|
+
Write("{\\"found\\":false}");
|
|
133863
|
+
} else {
|
|
133864
|
+
Write("{\\"found\\":true,\\"programId\\":\\"");
|
|
133865
|
+
Write(oProg.ID());
|
|
133866
|
+
Write("\\",\\"datapoints\\":[");
|
|
133867
|
+
object oCnd = oProg.Rule().RuleCondition(0);
|
|
133868
|
+
if (oCnd) {
|
|
133869
|
+
integer iN = oCnd.CndSingleCount();
|
|
133870
|
+
integer iI = 0;
|
|
133871
|
+
string sSep = "";
|
|
133872
|
+
while (iI < iN) {
|
|
133873
|
+
object oSc = oCnd.CndSingleCondition(iI);
|
|
133874
|
+
object oDp = dom.GetObject(oSc.LeftVal());
|
|
133875
|
+
if (oDp) {
|
|
133876
|
+
Write(sSep);
|
|
133877
|
+
Write("\\"");
|
|
133878
|
+
Write(oDp.Name());
|
|
133879
|
+
Write("\\"");
|
|
133880
|
+
sSep = ",";
|
|
133881
|
+
}
|
|
133882
|
+
iI = iI + 1;
|
|
133883
|
+
}
|
|
133884
|
+
}
|
|
133885
|
+
Write("]}");
|
|
133886
|
+
}`;
|
|
133887
|
+
var CHANNEL_ADDRESS2 = /^[0-9A-Za-z_-]+:\d+$/;
|
|
133888
|
+
var CONTROL_CHARS3 = /[\u0000-\u001F\u007F]/;
|
|
133889
|
+
var MAX_NAME2 = 128;
|
|
133890
|
+
var DEFAULT_PARAMETERS = ["PRESS_SHORT", "PRESS_LONG"];
|
|
133891
|
+
function isRecord2(value) {
|
|
133892
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
133893
|
+
}
|
|
133894
|
+
function record(raw, label) {
|
|
133895
|
+
if (!isRecord2(raw)) throw new ClientError(`${label}: unexpected answer from the CCU.`);
|
|
133896
|
+
return raw;
|
|
133897
|
+
}
|
|
133898
|
+
function validName2(raw) {
|
|
133899
|
+
const name = raw.trim();
|
|
133900
|
+
if (name === "" || name.length > MAX_NAME2 || CONTROL_CHARS3.test(name)) throw new ValidationError(`Program name must be 1..${MAX_NAME2} characters without control characters.`);
|
|
133901
|
+
return name;
|
|
133902
|
+
}
|
|
133903
|
+
function interfaceNameOf(interfaceId2) {
|
|
133904
|
+
const match = Object.values(Interface).find((name) => interfaceId2.endsWith(`-${name}`));
|
|
133905
|
+
if (match === void 0) throw new ValidationError(`Cannot derive the CCU interface from "${interfaceId2}".`);
|
|
133906
|
+
return match;
|
|
133907
|
+
}
|
|
133908
|
+
var CcuKeyPrograms = class {
|
|
133909
|
+
#rega;
|
|
133910
|
+
constructor(rega) {
|
|
133911
|
+
this.#rega = rega;
|
|
133912
|
+
}
|
|
133913
|
+
/**
|
|
133914
|
+
* Create or rewrite the program so its conditions are exactly
|
|
133915
|
+
* `channelAddresses` x `parameters`. `interfaceName` is the CCU interface the
|
|
133916
|
+
* channels live on (`HmIP-RF`).
|
|
133917
|
+
*/
|
|
133918
|
+
async ensure(interfaceName, input) {
|
|
133919
|
+
const name = validName2(input.name);
|
|
133920
|
+
const parameters = input.parameters ?? DEFAULT_PARAMETERS;
|
|
133921
|
+
if (parameters.length === 0) throw new ValidationError("At least one key parameter is needed.");
|
|
133922
|
+
const datapoints = input.channelAddresses.flatMap((address) => {
|
|
133923
|
+
if (!CHANNEL_ADDRESS2.test(address)) throw new ValidationError(`Invalid channel address "${address}".`);
|
|
133924
|
+
return parameters.map((param) => `${interfaceName}.${address}.${param}`);
|
|
133925
|
+
});
|
|
133926
|
+
const label = "ReGa.runScript(ensureKeyEventProgram)";
|
|
133927
|
+
const answer = record(await this.#rega(label, buildEnsureKeyEventProgram(datapoints), { name }), label);
|
|
133928
|
+
if (answer["error"] === "datapoint") throw new ValidationError(`The CCU has no such key data point: ${Array.isArray(answer["missing"]) ? answer["missing"].join(", ") : "?"}.`);
|
|
133929
|
+
const programId = answer["programId"];
|
|
133930
|
+
const created = answer["created"];
|
|
133931
|
+
if (typeof programId !== "string" || programId === "" || typeof created !== "boolean") throw new ClientError(`${label}: the CCU did not return the program.`);
|
|
133932
|
+
return {
|
|
133933
|
+
programId,
|
|
133934
|
+
created
|
|
133935
|
+
};
|
|
133936
|
+
}
|
|
133937
|
+
/** Delete the program by name; `removed: false` when it does not exist. */
|
|
133938
|
+
async remove(rawName) {
|
|
133939
|
+
const name = validName2(rawName);
|
|
133940
|
+
const label = "ReGa.runScript(removeKeyEventProgram)";
|
|
133941
|
+
const answer = record(await this.#rega(label, REMOVE_KEY_EVENT_PROGRAM, { name }), label);
|
|
133942
|
+
if (typeof answer["removed"] !== "boolean") throw new ClientError(`${label}: unexpected answer from the CCU.`);
|
|
133943
|
+
return { removed: answer["removed"] };
|
|
133944
|
+
}
|
|
133945
|
+
/** The program and the channels it listens to, or `null` when absent. */
|
|
133946
|
+
async get(rawName) {
|
|
133947
|
+
const name = validName2(rawName);
|
|
133948
|
+
const label = "ReGa.runScript(getKeyEventProgram)";
|
|
133949
|
+
const answer = record(await this.#rega(label, GET_KEY_EVENT_PROGRAM, { name }), label);
|
|
133950
|
+
if (answer["found"] !== true) return null;
|
|
133951
|
+
const programId = answer["programId"];
|
|
133952
|
+
if (typeof programId !== "string" || programId === "") throw new ClientError(`${label}: the CCU did not return the program id.`);
|
|
133953
|
+
const datapoints = Array.isArray(answer["datapoints"]) ? answer["datapoints"] : [];
|
|
133954
|
+
const channels = /* @__PURE__ */ new Set();
|
|
133955
|
+
for (const dp of datapoints) {
|
|
133956
|
+
if (typeof dp !== "string") continue;
|
|
133957
|
+
const match = /\.([0-9A-Za-z_-]+:\d+)\.PRESS_(?:SHORT|LONG)$/.exec(dp);
|
|
133958
|
+
if (match?.[1] !== void 0) channels.add(match[1]);
|
|
133959
|
+
}
|
|
133960
|
+
return {
|
|
133961
|
+
programId,
|
|
133962
|
+
channelAddresses: [...channels]
|
|
133963
|
+
};
|
|
133964
|
+
}
|
|
133965
|
+
};
|
|
133692
133966
|
var GROUP_CREATE_PATH = "/pages/jpages/group/create";
|
|
133693
133967
|
var GROUP_SAVE_PATH = "/pages/jpages/group/save";
|
|
133694
133968
|
var GROUP_DELETE_PATH = "/pages/jpages/group/delete";
|
|
133695
133969
|
var DRAFT_GROUP_ID = /self\.groupId\s*=\s*(\d+)/;
|
|
133696
133970
|
var KNOWN_GROUP_TYPES = ["hmip.heating.group", "HomeMatic.heating"];
|
|
133697
|
-
var
|
|
133971
|
+
var CHANNEL_ADDRESS3 = /^[0-9A-Za-z_-]+:\d+$/;
|
|
133698
133972
|
var MAX_GROUP_NAME = 64;
|
|
133699
133973
|
var DEFAULT_INSTALL_SECONDS = 60;
|
|
133700
133974
|
var MAX_INSTALL_SECONDS = 3600;
|
|
133701
133975
|
var SERVICE_MESSAGE_ID = /^\d+$/;
|
|
133702
|
-
function
|
|
133976
|
+
function isRecord3(value) {
|
|
133703
133977
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
133704
133978
|
}
|
|
133705
133979
|
function asRecordArray(value) {
|
|
133706
|
-
return Array.isArray(value) ? value.filter(
|
|
133980
|
+
return Array.isArray(value) ? value.filter(isRecord3) : [];
|
|
133707
133981
|
}
|
|
133708
133982
|
function strOrNull(value) {
|
|
133709
133983
|
if (typeof value === "string") return value === "" ? null : value;
|
|
@@ -133845,7 +134119,7 @@ var CcuManagement = class {
|
|
|
133845
134119
|
async acknowledgeServiceMessage(id) {
|
|
133846
134120
|
if (!SERVICE_MESSAGE_ID.test(id)) throw new ValidationError(`Invalid service message id "${id}".`);
|
|
133847
134121
|
const raw = await this.rega("ReGa.runScript(acknowledgeServiceMessage)", ACKNOWLEDGE_SERVICE_MESSAGE, { id });
|
|
133848
|
-
if (!
|
|
134122
|
+
if (!isRecord3(raw) || raw["ok"] !== true) throw new ValidationError(`Unknown service message "${id}".`);
|
|
133849
134123
|
}
|
|
133850
134124
|
/** Version, product, serial and hostname; each `null` when unanswered. */
|
|
133851
134125
|
async ccuInfo() {
|
|
@@ -133855,8 +134129,8 @@ var CcuManagement = class {
|
|
|
133855
134129
|
this.rega("ReGa.runScript(ccuPlatform)", GET_CCU_PLATFORM)
|
|
133856
134130
|
]);
|
|
133857
134131
|
if (version.status === "rejected" && serial.status === "rejected" && platform.status === "rejected") throw version.reason instanceof CcuManagementError ? version.reason : new CcuManagementError(JsonRpcMethod.CCU_GET_VERSION, version.reason);
|
|
133858
|
-
const release = platform.status === "fulfilled" &&
|
|
133859
|
-
const hostname = platform.status === "fulfilled" &&
|
|
134132
|
+
const release = platform.status === "fulfilled" && isRecord3(platform.value) ? parseKeyValueLines(decodeRegaName(releaseText(platform.value))) : /* @__PURE__ */ new Map();
|
|
134133
|
+
const hostname = platform.status === "fulfilled" && isRecord3(platform.value) ? decodedOrNull(platform.value["host"]) : null;
|
|
133860
134134
|
const product = strOrNull(release.get("PRODUCT"));
|
|
133861
134135
|
return {
|
|
133862
134136
|
version: version.status === "fulfilled" ? strOrNull(version.value) : null,
|
|
@@ -133882,7 +134156,7 @@ var CcuManagement = class {
|
|
|
133882
134156
|
} catch (err) {
|
|
133883
134157
|
throw new CcuManagementError(JsonRpcMethod.CCU_GET_HEATING_GROUP_LIST, err);
|
|
133884
134158
|
}
|
|
133885
|
-
if (!
|
|
134159
|
+
if (!isRecord3(parsed)) return [];
|
|
133886
134160
|
return Object.keys(parsed).sort().flatMap((key) => asRecordArray(parsed[key])).flatMap((entry) => {
|
|
133887
134161
|
const group = toGroup(entry);
|
|
133888
134162
|
return group === null ? [] : [group];
|
|
@@ -134004,6 +134278,10 @@ var CcuManagement = class {
|
|
|
134004
134278
|
topology() {
|
|
134005
134279
|
return new CcuTopology((label, script, params) => this.rega(label, script, params));
|
|
134006
134280
|
}
|
|
134281
|
+
/** The key-event program service (HmIP key presses), on this service's session. */
|
|
134282
|
+
keyPrograms() {
|
|
134283
|
+
return new CcuKeyPrograms((label, script, params) => this.rega(label, script, params));
|
|
134284
|
+
}
|
|
134007
134285
|
requireClient(interfaceName) {
|
|
134008
134286
|
const iface = toInterface(interfaceName);
|
|
134009
134287
|
const client = this.interfaceClient(iface);
|
|
@@ -134082,8 +134360,8 @@ var DEVICE_ADDRESS_SUFFIX = /\b(INT\d{7})\s*$/;
|
|
|
134082
134360
|
function toGroup(entry) {
|
|
134083
134361
|
const id = numOrNull(entry["id"]);
|
|
134084
134362
|
if (id === null) return null;
|
|
134085
|
-
const props =
|
|
134086
|
-
const groupType =
|
|
134363
|
+
const props = isRecord3(entry["groupProperties"]) ? entry["groupProperties"] : {};
|
|
134364
|
+
const groupType = isRecord3(entry["groupType"]) ? entry["groupType"] : {};
|
|
134087
134365
|
const deviceName = strOrNull(props["GROUP_DEVICE_NAME"]);
|
|
134088
134366
|
const deviceMatch = deviceName === null ? null : DEVICE_ADDRESS_SUFFIX.exec(deviceName);
|
|
134089
134367
|
const members = asRecordArray(entry["groupMembers"]).flatMap((m) => {
|
|
@@ -134091,7 +134369,7 @@ function toGroup(entry) {
|
|
|
134091
134369
|
if (address === null) return [];
|
|
134092
134370
|
return [{
|
|
134093
134371
|
address,
|
|
134094
|
-
type: (
|
|
134372
|
+
type: (isRecord3(m["memberType"]) ? strOrNull(m["memberType"]["id"]) : null) ?? ""
|
|
134095
134373
|
}];
|
|
134096
134374
|
});
|
|
134097
134375
|
return {
|
|
@@ -134113,7 +134391,7 @@ function validateGroupName(raw) {
|
|
|
134113
134391
|
return name;
|
|
134114
134392
|
}
|
|
134115
134393
|
function validateMembers(members) {
|
|
134116
|
-
for (const address of members) if (!
|
|
134394
|
+
for (const address of members) if (!CHANNEL_ADDRESS3.test(address)) throw new ValidationError(`Invalid member channel address "${address}".`);
|
|
134117
134395
|
return [...new Set(members)];
|
|
134118
134396
|
}
|
|
134119
134397
|
function checkWebUiResponse(path$5, text) {
|
|
@@ -134123,8 +134401,8 @@ function checkWebUiResponse(path$5, text) {
|
|
|
134123
134401
|
} catch {
|
|
134124
134402
|
throw new CcuManagementError(path$5, new ClientError("response was not JSON"));
|
|
134125
134403
|
}
|
|
134126
|
-
if (!
|
|
134127
|
-
const code =
|
|
134404
|
+
if (!isRecord3(parsed) || parsed["isSuccessful"] !== true) {
|
|
134405
|
+
const code = isRecord3(parsed) ? strOrNull(parsed["errorCode"]) : null;
|
|
134128
134406
|
throw new CcuManagementError(path$5, new ClientError(code === "42" ? "session expired (errorCode 42)" : `refused (errorCode ${code ?? "none"})`));
|
|
134129
134407
|
}
|
|
134130
134408
|
const content = parsed["content"];
|
|
@@ -134507,8 +134785,8 @@ var DeviceRegistry = class {
|
|
|
134507
134785
|
function stableStringify2(value) {
|
|
134508
134786
|
if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null";
|
|
134509
134787
|
if (Array.isArray(value)) return `[${value.map(stableStringify2).join(",")}]`;
|
|
134510
|
-
const
|
|
134511
|
-
return `{${Object.keys(
|
|
134788
|
+
const record2 = value;
|
|
134789
|
+
return `{${Object.keys(record2).sort().map((key) => `${JSON.stringify(key)}:${stableStringify2(record2[key])}`).join(",")}}`;
|
|
134512
134790
|
}
|
|
134513
134791
|
var DescriptionCacheBase = class {
|
|
134514
134792
|
constructor(backend, fileName) {
|
|
@@ -134629,8 +134907,8 @@ var DeviceDescriptionCache = class _DeviceDescriptionCache extends DescriptionCa
|
|
|
134629
134907
|
}
|
|
134630
134908
|
fromData(data) {
|
|
134631
134909
|
const next = /* @__PURE__ */ new Map();
|
|
134632
|
-
const
|
|
134633
|
-
for (const [iface, addresses] of Object.entries(
|
|
134910
|
+
const record2 = data ?? {};
|
|
134911
|
+
for (const [iface, addresses] of Object.entries(record2)) {
|
|
134634
134912
|
const forIface = /* @__PURE__ */ new Map();
|
|
134635
134913
|
for (const [address, desc] of Object.entries(addresses)) forIface.set(address, desc);
|
|
134636
134914
|
next.set(iface, forIface);
|
|
@@ -134709,8 +134987,8 @@ var ParamsetDescriptionCache = class _ParamsetDescriptionCache extends Descripti
|
|
|
134709
134987
|
}
|
|
134710
134988
|
fromData(data) {
|
|
134711
134989
|
const next = /* @__PURE__ */ new Map();
|
|
134712
|
-
const
|
|
134713
|
-
for (const [iface, channels] of Object.entries(
|
|
134990
|
+
const record2 = data ?? {};
|
|
134991
|
+
for (const [iface, channels] of Object.entries(record2)) {
|
|
134714
134992
|
const forIface = /* @__PURE__ */ new Map();
|
|
134715
134993
|
for (const [channelAddress2, paramsets] of Object.entries(channels)) {
|
|
134716
134994
|
const forChannel = /* @__PURE__ */ new Map();
|
|
@@ -134978,12 +135256,12 @@ async function safePost(jsonClient, method, opts) {
|
|
|
134978
135256
|
}
|
|
134979
135257
|
}
|
|
134980
135258
|
function parseDeviceDetail(item, nameByAddress, channelIdToAddress) {
|
|
134981
|
-
const
|
|
134982
|
-
if (
|
|
134983
|
-
const address = asString(
|
|
134984
|
-
const name = asString(
|
|
135259
|
+
const record2 = asRecord(item);
|
|
135260
|
+
if (record2 === void 0) return;
|
|
135261
|
+
const address = asString(record2.address);
|
|
135262
|
+
const name = asString(record2.name);
|
|
134985
135263
|
if (address !== void 0 && name !== void 0) nameByAddress.set(address, name);
|
|
134986
|
-
for (const channel of asArray(
|
|
135264
|
+
for (const channel of asArray(record2.channels)) {
|
|
134987
135265
|
const ch = asRecord(channel);
|
|
134988
135266
|
if (ch === void 0) continue;
|
|
134989
135267
|
const chAddress = asString(ch.address);
|
|
@@ -135004,11 +135282,11 @@ function addGroupName(into, address, name) {
|
|
|
135004
135282
|
else if (!existing.includes(name)) existing.push(name);
|
|
135005
135283
|
}
|
|
135006
135284
|
function parseGroup(item, channelIdToAddress, into) {
|
|
135007
|
-
const
|
|
135008
|
-
if (
|
|
135009
|
-
const name = asString(
|
|
135285
|
+
const record2 = asRecord(item);
|
|
135286
|
+
if (record2 === void 0) return;
|
|
135287
|
+
const name = asString(record2.name);
|
|
135010
135288
|
if (name === void 0) return;
|
|
135011
|
-
const idMembers = asArray(
|
|
135289
|
+
const idMembers = asArray(record2.channelIds);
|
|
135012
135290
|
for (const member of idMembers) {
|
|
135013
135291
|
const channelId = asString(member);
|
|
135014
135292
|
if (channelId === void 0) continue;
|
|
@@ -135017,7 +135295,7 @@ function parseGroup(item, channelIdToAddress, into) {
|
|
|
135017
135295
|
addGroupName(into, channelAddress2, name);
|
|
135018
135296
|
addGroupName(into, deviceAddressOf(channelAddress2), name);
|
|
135019
135297
|
}
|
|
135020
|
-
const addressMembers = firstArray(
|
|
135298
|
+
const addressMembers = firstArray(record2.channelAddresses, record2.members);
|
|
135021
135299
|
for (const member of addressMembers) {
|
|
135022
135300
|
const channelAddress2 = asString(member);
|
|
135023
135301
|
if (channelAddress2 === void 0) continue;
|
|
@@ -135077,7 +135355,7 @@ function parseSysVarValue(type, raw) {
|
|
|
135077
135355
|
}
|
|
135078
135356
|
}
|
|
135079
135357
|
var WRITABLE_MARKER = "HAHM";
|
|
135080
|
-
function
|
|
135358
|
+
function isRecord4(value) {
|
|
135081
135359
|
return value !== null && typeof value === "object";
|
|
135082
135360
|
}
|
|
135083
135361
|
function asString2(value) {
|
|
@@ -135098,7 +135376,7 @@ function asOptionalNumber(value) {
|
|
|
135098
135376
|
}
|
|
135099
135377
|
function asRecordArray2(value) {
|
|
135100
135378
|
if (!Array.isArray(value)) return [];
|
|
135101
|
-
return value.filter(
|
|
135379
|
+
return value.filter(isRecord4);
|
|
135102
135380
|
}
|
|
135103
135381
|
var HubFetcher = class {
|
|
135104
135382
|
client;
|
|
@@ -135191,8 +135469,8 @@ var HubFetcher = class {
|
|
|
135191
135469
|
const sid = this.sid();
|
|
135192
135470
|
const parsed = await runScript(this.client, sid, GET_ROOMS_FUNCTIONS);
|
|
135193
135471
|
return {
|
|
135194
|
-
rooms: toDecodedMap(
|
|
135195
|
-
functions: toDecodedMap(
|
|
135472
|
+
rooms: toDecodedMap(isRecord4(parsed) ? parsed.rooms : void 0),
|
|
135473
|
+
functions: toDecodedMap(isRecord4(parsed) ? parsed.functions : void 0)
|
|
135196
135474
|
};
|
|
135197
135475
|
}
|
|
135198
135476
|
/** Build the `SYSVAR_DESCRIPTIONS` map: sysvar id → description text. */
|
|
@@ -135238,7 +135516,7 @@ function sidOpts(sid) {
|
|
|
135238
135516
|
}
|
|
135239
135517
|
function toDecodedMap(value) {
|
|
135240
135518
|
const map = /* @__PURE__ */ new Map();
|
|
135241
|
-
if (!
|
|
135519
|
+
if (!isRecord4(value)) return map;
|
|
135242
135520
|
for (const [addr, names] of Object.entries(value)) if (Array.isArray(names)) map.set(addr, names.filter((n) => typeof n === "string").map((n) => decodeRegaName(n)));
|
|
135243
135521
|
return map;
|
|
135244
135522
|
}
|
|
@@ -137893,6 +138171,31 @@ var Homematic = class {
|
|
|
137893
138171
|
if (!await this.#central.reportValueUsage(device.interfaceId, channelAddress2, REPORT_VALUE_USAGE_VALUE_ID, REPORT_VALUE_USAGE_REF_REMOVE)) throw new ClientError(`reportValueUsage refused for channel "${channelAddress2}".`);
|
|
137894
138172
|
}
|
|
137895
138173
|
/**
|
|
138174
|
+
* Make the CCU USE the given keys so a HmIP device sends their presses to the
|
|
138175
|
+
* access point: create the program `input.name`, or rewrite its conditions to
|
|
138176
|
+
* exactly `channelAddresses` x `parameters` (default short and long press).
|
|
138177
|
+
* Idempotent by name. The program has no destination; it exists only so the
|
|
138178
|
+
* CCU subscribes to the key data points (ReGa scripts and their eq-3/occu
|
|
138179
|
+
* sources: `central/rega/key-event-program.ts`). All channels must be on one
|
|
138180
|
+
* interface and the CCU must have their data points; a missing one is a
|
|
138181
|
+
* {@link ValidationError} naming it. Needs WebUI credentials.
|
|
138182
|
+
*/
|
|
138183
|
+
async ensureKeyEventProgram(input) {
|
|
138184
|
+
if (input.channelAddresses.length === 0) throw new ValidationError("ensureKeyEventProgram needs at least one channel.");
|
|
138185
|
+
const interfaces = new Set(input.channelAddresses.map((address) => interfaceNameOf(this.#requireKnownChannel(address).interfaceId)));
|
|
138186
|
+
const [iface] = [...interfaces];
|
|
138187
|
+
if (interfaces.size !== 1 || iface === void 0) throw new ValidationError("The key channels of one program must share an interface.");
|
|
138188
|
+
return this.#requireManagement().keyPrograms().ensure(iface, input);
|
|
138189
|
+
}
|
|
138190
|
+
/** Delete the key event program `name`; `removed: false` when it does not exist. Needs WebUI credentials. */
|
|
138191
|
+
async removeKeyEventProgram(name) {
|
|
138192
|
+
return this.#requireManagement().keyPrograms().remove(name);
|
|
138193
|
+
}
|
|
138194
|
+
/** The key event program `name` and the channels it listens to, or `null`. Needs WebUI credentials. */
|
|
138195
|
+
async getKeyEventProgram(name) {
|
|
138196
|
+
return this.#requireManagement().keyPrograms().get(name);
|
|
138197
|
+
}
|
|
138198
|
+
/**
|
|
137896
138199
|
* Create a direct link from `sender` to `receiver` (XML-RPC
|
|
137897
138200
|
* `addLink(sender, receiver, name, description)` on the sender's interface,
|
|
137898
138201
|
* as eq-3/occu `WebUI/www/api/methods/interface/addlink.tcl` forwards it).
|
|
@@ -143404,7 +143707,7 @@ var HomematicProviderAddon = class extends BaseDeviceProvider {
|
|
|
143404
143707
|
records: records.kind({
|
|
143405
143708
|
name: homematicConnectionsEntryKind.name,
|
|
143406
143709
|
declaration: homematicConnectionsEntryKind.declaration,
|
|
143407
|
-
schema: record(string(), unknown())
|
|
143710
|
+
schema: record$1(string(), unknown())
|
|
143408
143711
|
}),
|
|
143409
143712
|
log: { warn: (message) => this.ctx.logger.warn(message) }
|
|
143410
143713
|
})));
|