@camstack/types 1.2.539 → 1.2.541
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 +29 -0
- package/dist/addon.js +44 -12
- package/dist/addon.mjs +44 -12
- package/dist/capabilities/capability-definition.d.ts +4 -0
- package/dist/capabilities/climate-control.cap.d.ts +18 -6
- package/dist/capabilities/cluster-update.cap.d.ts +376 -0
- package/dist/capabilities/cover.cap.d.ts +9 -3
- package/dist/capabilities/device-manager.cap.d.ts +117 -0
- package/dist/capabilities/device-search.d.ts +168 -0
- package/dist/capabilities/fan-control.cap.d.ts +12 -4
- package/dist/capabilities/hero-layout.cap.d.ts +4 -0
- package/dist/capabilities/hub-address.d.ts +10 -0
- package/dist/capabilities/index.d.ts +8 -5
- package/dist/capabilities/lock-control.cap.d.ts +3 -1
- package/dist/capabilities/media-player.cap.d.ts +48 -16
- package/dist/capabilities/notification-output.cap.d.ts +40 -0
- package/dist/capabilities/notification-rules.cap.d.ts +366 -0
- package/dist/capabilities/osd-manager.cap.d.ts +40 -277
- package/dist/capabilities/valve.cap.d.ts +3 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +94 -8
- package/dist/client.mjs +94 -9
- package/dist/{composed-stable-id-C3J6LxC9.js → composed-stable-id-BtaMj_W7.js} +4 -0
- package/dist/{composed-stable-id-DLcPInGv.mjs → composed-stable-id-jnvhwGoH.mjs} +4 -0
- package/dist/device/container-primary-child.d.ts +39 -4
- package/dist/device/device-binding.d.ts +6 -0
- package/dist/device/device-feature-requirements.d.ts +137 -0
- package/dist/device/device-management.d.ts +9 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/hero-model.d.ts +14 -0
- package/dist/device/implemented-methods.d.ts +6 -0
- package/dist/device/linked-device-resolve.d.ts +2 -0
- package/dist/expression/device-template.d.ts +31 -1
- package/dist/generated/addon-api.d.ts +50 -7
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +3 -1
- package/dist/{composition-BcVAbtBc.js → implemented-methods-C_iV6BiP.js} +17 -1
- package/dist/{composition-BFJq1Y88.mjs → implemented-methods-OitwyO1Y.mjs} +12 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1231 -444
- package/dist/index.mjs +944 -203
- package/dist/interfaces/addon.d.ts +7 -0
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/migrations/api/migration-api.v1.d.ts +11 -0
- package/dist/migrations/api/migration-api.v1.schema.d.ts +25 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +26 -25
- package/dist/node.mjs +3 -3
- package/dist/notification/degrade-engine.d.ts +7 -1
- package/dist/notification/notification-fields.d.ts +69 -0
- package/dist/notification/timelapse-rule.d.ts +69 -0
- package/dist/{sleep-VrfKAAGN.mjs → sleep-Cw1uUXvl.mjs} +5 -2
- package/dist/{sleep-DgCXXFc3.js → sleep-PfAAmxV-.js} +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-PfAAmxV-.js");
|
|
3
3
|
const require_event_category = require("./event-category-BC4RRerT.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
5
|
-
const
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-BtaMj_W7.js");
|
|
5
|
+
const require_implemented_methods = require("./implemented-methods-C_iV6BiP.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
7
|
const require_convert = require("./convert-BmtM6K-5.js");
|
|
8
8
|
const require_enums = require("./enums.js");
|
|
@@ -1127,8 +1127,36 @@ var TargetKindAttachmentsCapsSchema = zod.z.object({
|
|
|
1127
1127
|
max: zod.z.number().int().nonnegative(),
|
|
1128
1128
|
maxBytes: zod.z.number().int().positive().optional()
|
|
1129
1129
|
});
|
|
1130
|
+
/**
|
|
1131
|
+
* Which TEXT fields a kind delivers (#483). Alexa speaks a title and nothing
|
|
1132
|
+
* else; a push service shows both.
|
|
1133
|
+
*
|
|
1134
|
+
* `.optional()` on the caps block, never defaulted: absent = both, which is
|
|
1135
|
+
* what every kind declared before this field meant (D938's rule for a Zod
|
|
1136
|
+
* default on the addon cap path).
|
|
1137
|
+
*/
|
|
1138
|
+
var TargetKindTextCapsSchema = zod.z.object({
|
|
1139
|
+
title: zod.z.boolean(),
|
|
1140
|
+
body: zod.z.boolean()
|
|
1141
|
+
});
|
|
1142
|
+
/**
|
|
1143
|
+
* The message fields a rule can author for a target (#483). Derived from a
|
|
1144
|
+
* kind's caps by `deliverableFields` — the ONE reading of the declaration, used
|
|
1145
|
+
* by the dispatcher (drop), the admin rule editor (show) and the viewer.
|
|
1146
|
+
*/
|
|
1147
|
+
var NotificationFieldSchema = zod.z.enum([
|
|
1148
|
+
"title",
|
|
1149
|
+
"body",
|
|
1150
|
+
"attachments",
|
|
1151
|
+
"actions",
|
|
1152
|
+
"priority",
|
|
1153
|
+
"sound",
|
|
1154
|
+
"clickUrl"
|
|
1155
|
+
]);
|
|
1130
1156
|
/** The full capability block consulted before dispatch. */
|
|
1131
1157
|
var TargetKindCapsSchema = zod.z.object({
|
|
1158
|
+
/** Text fields this kind delivers (#483). Absent = title AND body. */
|
|
1159
|
+
text: TargetKindTextCapsSchema.optional(),
|
|
1132
1160
|
attachments: TargetKindAttachmentsCapsSchema,
|
|
1133
1161
|
/** Max action buttons (0 = none). */
|
|
1134
1162
|
actions: zod.z.number().int().nonnegative(),
|
|
@@ -2522,7 +2550,7 @@ function canonicalEgressPlan(request, delivery = egressTransportFromRequest(requ
|
|
|
2522
2550
|
* every other consumer to 360p.
|
|
2523
2551
|
*/
|
|
2524
2552
|
function egressTranscodeSharingKey(request, delivery = egressTransportFromRequest(request)) {
|
|
2525
|
-
return `egress:${
|
|
2553
|
+
return `egress:${require_implemented_methods.canonicalHash(canonicalEgressPlan(request, delivery))}`;
|
|
2526
2554
|
}
|
|
2527
2555
|
//#endregion
|
|
2528
2556
|
//#region src/ffmpeg/pinned-binary.ts
|
|
@@ -31129,10 +31157,10 @@ var ExpressionBindingSourceSchema = zod.z.union([
|
|
|
31129
31157
|
* Compiles are LRU-cached, so repeated validation of the same string is a hit.
|
|
31130
31158
|
*/
|
|
31131
31159
|
var ExpressionSourceSchema = zod.z.object({
|
|
31132
|
-
expr: zod.z.string().min(1).max(
|
|
31133
|
-
bindings: zod.z.record(zod.z.string().regex(
|
|
31160
|
+
expr: zod.z.string().min(1).max(require_implemented_methods.MAX_EXPRESSION_SOURCE_LENGTH),
|
|
31161
|
+
bindings: zod.z.record(zod.z.string().regex(require_implemented_methods.EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
31134
31162
|
}).superRefine((src, ctx) => {
|
|
31135
|
-
const err =
|
|
31163
|
+
const err = require_implemented_methods.validateExpressionSource(src);
|
|
31136
31164
|
if (err !== null) ctx.addIssue({
|
|
31137
31165
|
code: "custom",
|
|
31138
31166
|
message: err,
|
|
@@ -32545,10 +32573,10 @@ var StationaryPresentLeafSchema = zod.z.object({
|
|
|
32545
32573
|
*/
|
|
32546
32574
|
var ExpressionLeafSchema = zod.z.object({
|
|
32547
32575
|
kind: zod.z.literal("expression"),
|
|
32548
|
-
expr: zod.z.string().min(1).max(
|
|
32549
|
-
bindings: zod.z.record(zod.z.string().regex(
|
|
32576
|
+
expr: zod.z.string().min(1).max(require_implemented_methods.MAX_EXPRESSION_SOURCE_LENGTH),
|
|
32577
|
+
bindings: zod.z.record(zod.z.string().regex(require_implemented_methods.EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
32550
32578
|
}).superRefine((src, ctx) => {
|
|
32551
|
-
const err =
|
|
32579
|
+
const err = require_implemented_methods.validateExpressionSource(src);
|
|
32552
32580
|
if (err !== null) ctx.addIssue({
|
|
32553
32581
|
code: "custom",
|
|
32554
32582
|
message: err,
|
|
@@ -32779,10 +32807,10 @@ var LegacyStationaryPresentSchema = zod.z.object({
|
|
|
32779
32807
|
});
|
|
32780
32808
|
var LegacyExpressionSchema = zod.z.object({
|
|
32781
32809
|
kind: zod.z.literal("expression"),
|
|
32782
|
-
expr: zod.z.string().min(1).max(
|
|
32783
|
-
bindings: zod.z.record(zod.z.string().regex(
|
|
32810
|
+
expr: zod.z.string().min(1).max(require_implemented_methods.MAX_EXPRESSION_SOURCE_LENGTH),
|
|
32811
|
+
bindings: zod.z.record(zod.z.string().regex(require_implemented_methods.EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
32784
32812
|
}).superRefine((src, ctx) => {
|
|
32785
|
-
const err =
|
|
32813
|
+
const err = require_implemented_methods.validateExpressionSource(src);
|
|
32786
32814
|
if (err !== null) ctx.addIssue({
|
|
32787
32815
|
code: "custom",
|
|
32788
32816
|
message: err,
|
|
@@ -34452,7 +34480,7 @@ function evalNode(cond, path, reader, now, out, state) {
|
|
|
34452
34480
|
const values = {};
|
|
34453
34481
|
for (const [alias, binding] of Object.entries(cond.bindings)) {
|
|
34454
34482
|
if (binding.kind === "literal") {
|
|
34455
|
-
values[alias] =
|
|
34483
|
+
values[alias] = require_implemented_methods.toExpressionValue(binding.value) ?? null;
|
|
34456
34484
|
continue;
|
|
34457
34485
|
}
|
|
34458
34486
|
const raw = binding.kind === "global" ? reader.readStable(binding.sourceStableId, binding.cap, binding.fieldPath, binding.addonId) : void 0;
|
|
@@ -34466,9 +34494,9 @@ function evalNode(cond, path, reader, now, out, state) {
|
|
|
34466
34494
|
state.unknown = true;
|
|
34467
34495
|
return false;
|
|
34468
34496
|
}
|
|
34469
|
-
values[alias] =
|
|
34497
|
+
values[alias] = require_implemented_methods.toExpressionValue(raw) ?? null;
|
|
34470
34498
|
}
|
|
34471
|
-
const result =
|
|
34499
|
+
const result = require_implemented_methods.evaluateExpressionSource(cond.expr, values, now);
|
|
34472
34500
|
if (!result.ok) {
|
|
34473
34501
|
out.push({
|
|
34474
34502
|
path,
|
|
@@ -42082,14 +42110,14 @@ var climateControlCapability = {
|
|
|
42082
42110
|
kind: "mutation",
|
|
42083
42111
|
auth: "protected"
|
|
42084
42112
|
}),
|
|
42085
|
-
setFanMode: require_sleep.
|
|
42113
|
+
setFanMode: require_sleep.optionalMethod(zod.z.object({
|
|
42086
42114
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42087
42115
|
fanMode: zod.z.string().min(1)
|
|
42088
42116
|
}), zod.z.void(), {
|
|
42089
42117
|
kind: "mutation",
|
|
42090
42118
|
auth: "protected"
|
|
42091
42119
|
}),
|
|
42092
|
-
setPreset: require_sleep.
|
|
42120
|
+
setPreset: require_sleep.optionalMethod(zod.z.object({
|
|
42093
42121
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42094
42122
|
preset: zod.z.string().min(1)
|
|
42095
42123
|
}), zod.z.void(), {
|
|
@@ -42103,7 +42131,7 @@ var climateControlCapability = {
|
|
|
42103
42131
|
kind: "mutation",
|
|
42104
42132
|
auth: "protected"
|
|
42105
42133
|
}),
|
|
42106
|
-
setTargetRange: require_sleep.
|
|
42134
|
+
setTargetRange: require_sleep.optionalMethod(zod.z.object({
|
|
42107
42135
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42108
42136
|
targetLow: zod.z.number(),
|
|
42109
42137
|
targetHigh: zod.z.number()
|
|
@@ -42111,21 +42139,21 @@ var climateControlCapability = {
|
|
|
42111
42139
|
kind: "mutation",
|
|
42112
42140
|
auth: "protected"
|
|
42113
42141
|
}),
|
|
42114
|
-
setTargetHumidity: require_sleep.
|
|
42142
|
+
setTargetHumidity: require_sleep.optionalMethod(zod.z.object({
|
|
42115
42143
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42116
42144
|
targetHumidity: zod.z.number().min(0).max(100)
|
|
42117
42145
|
}), zod.z.void(), {
|
|
42118
42146
|
kind: "mutation",
|
|
42119
42147
|
auth: "protected"
|
|
42120
42148
|
}),
|
|
42121
|
-
setSwingVertical: require_sleep.
|
|
42149
|
+
setSwingVertical: require_sleep.optionalMethod(zod.z.object({
|
|
42122
42150
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42123
42151
|
on: zod.z.boolean()
|
|
42124
42152
|
}), zod.z.void(), {
|
|
42125
42153
|
kind: "mutation",
|
|
42126
42154
|
auth: "protected"
|
|
42127
42155
|
}),
|
|
42128
|
-
setSwingHorizontal: require_sleep.
|
|
42156
|
+
setSwingHorizontal: require_sleep.optionalMethod(zod.z.object({
|
|
42129
42157
|
deviceId: zod.z.number().int().nonnegative(),
|
|
42130
42158
|
on: zod.z.boolean()
|
|
42131
42159
|
}), zod.z.void(), {
|
|
@@ -42183,6 +42211,162 @@ var climateControlCapability = {
|
|
|
42183
42211
|
} }
|
|
42184
42212
|
};
|
|
42185
42213
|
//#endregion
|
|
42214
|
+
//#region src/capabilities/cluster-update.cap.ts
|
|
42215
|
+
/**
|
|
42216
|
+
* cluster-update — the ONE flow that brings the whole cluster to a release
|
|
42217
|
+
* (planning#493). Hub-provided (`server-provided`), hub-only: the hub runs
|
|
42218
|
+
* the sequence itself, so the admin UI, the MCP and the CLI all start the same
|
|
42219
|
+
* job and read the same report instead of each driving their own loop.
|
|
42220
|
+
*
|
|
42221
|
+
* 1. backup (`backup.trigger`) — skipped only when the caller says so
|
|
42222
|
+
* 2. the hub's server closure (`applyServerUpdate`); the hub restarts and the
|
|
42223
|
+
* job RESUMES on the new boot, verified against the hub's running version
|
|
42224
|
+
* 3. every online agent behind the target, one at a time, verified: runs the
|
|
42225
|
+
* target, settled, online, and its capabilities registered (D848) — an
|
|
42226
|
+
* agent that comes back capless is a FAILED step, never a done one
|
|
42227
|
+
* 4. every stale addon on the hub (`addons.updatePackage`); agents follow by
|
|
42228
|
+
* reconciliation, which is verified, never pushed
|
|
42229
|
+
*
|
|
42230
|
+
* The job stops on the first failed step with a typed reason (D877). Its state
|
|
42231
|
+
* is durable on the hub and read by RPC (`getClusterUpdateJob`) — events are
|
|
42232
|
+
* telemetry and never carry it (D8, D11).
|
|
42233
|
+
*/
|
|
42234
|
+
/** The steps, in the order they run. */
|
|
42235
|
+
var ClusterUpdateStepKindSchema = zod.z.enum([
|
|
42236
|
+
"backup",
|
|
42237
|
+
"hub-server",
|
|
42238
|
+
"agent-server",
|
|
42239
|
+
"addons"
|
|
42240
|
+
]);
|
|
42241
|
+
/**
|
|
42242
|
+
* - `pending` — not reached yet.
|
|
42243
|
+
* - `running` — in progress (for `hub-server`: possibly across the restart).
|
|
42244
|
+
* - `ok` — done AND verified.
|
|
42245
|
+
* - `failed` — did not land; `reason` + `detail` say why. Stops the job.
|
|
42246
|
+
* - `skipped` — not run: nothing to do, opted out, the node is offline, or a
|
|
42247
|
+
* step before it failed. `detail` says which.
|
|
42248
|
+
*/
|
|
42249
|
+
var ClusterUpdateStepStatusSchema = zod.z.enum([
|
|
42250
|
+
"pending",
|
|
42251
|
+
"running",
|
|
42252
|
+
"ok",
|
|
42253
|
+
"failed",
|
|
42254
|
+
"skipped"
|
|
42255
|
+
]);
|
|
42256
|
+
/**
|
|
42257
|
+
* Why a step (and with it the job) failed. Stable, greppable; `detail` carries
|
|
42258
|
+
* the prose.
|
|
42259
|
+
*/
|
|
42260
|
+
var ClusterUpdateFailureReasonSchema = zod.z.enum([
|
|
42261
|
+
"backup-unavailable",
|
|
42262
|
+
"backup-failed",
|
|
42263
|
+
"server-refused",
|
|
42264
|
+
"server-not-on-target",
|
|
42265
|
+
"node-capless",
|
|
42266
|
+
"status-unreadable",
|
|
42267
|
+
"addon-update-failed",
|
|
42268
|
+
"addons-not-converged",
|
|
42269
|
+
"interrupted"
|
|
42270
|
+
]);
|
|
42271
|
+
var ClusterUpdateStepSchema = zod.z.object({
|
|
42272
|
+
kind: ClusterUpdateStepKindSchema,
|
|
42273
|
+
/** The node the step acts on; absent for `backup` and `addons`. */
|
|
42274
|
+
nodeId: zod.z.string().optional(),
|
|
42275
|
+
status: ClusterUpdateStepStatusSchema,
|
|
42276
|
+
/** One line for the operator: what happened, or why not. */
|
|
42277
|
+
detail: zod.z.string(),
|
|
42278
|
+
reason: ClusterUpdateFailureReasonSchema.optional(),
|
|
42279
|
+
/** `hub-server` / `agent-server`: the version the node ran before. */
|
|
42280
|
+
fromVersion: zod.z.string().nullable().optional(),
|
|
42281
|
+
/** `addons`: the packages this step updates, `name from -> to`. */
|
|
42282
|
+
packages: zod.z.array(zod.z.string()).readonly().optional(),
|
|
42283
|
+
startedAt: zod.z.number().optional(),
|
|
42284
|
+
finishedAt: zod.z.number().optional()
|
|
42285
|
+
});
|
|
42286
|
+
var ClusterUpdateJobStateSchema = zod.z.enum([
|
|
42287
|
+
"running",
|
|
42288
|
+
"succeeded",
|
|
42289
|
+
"failed"
|
|
42290
|
+
]);
|
|
42291
|
+
var ClusterUpdateJobSchema = zod.z.object({
|
|
42292
|
+
id: zod.z.string(),
|
|
42293
|
+
state: ClusterUpdateJobStateSchema,
|
|
42294
|
+
/** The server version every node is brought to. */
|
|
42295
|
+
targetVersion: zod.z.string(),
|
|
42296
|
+
/** Who started it (the user name, or `system`). */
|
|
42297
|
+
requestedBy: zod.z.string(),
|
|
42298
|
+
startedAt: zod.z.number(),
|
|
42299
|
+
finishedAt: zod.z.number().optional(),
|
|
42300
|
+
/** Every step, in run order; later steps stay `pending` while it runs. */
|
|
42301
|
+
steps: zod.z.array(ClusterUpdateStepSchema).readonly(),
|
|
42302
|
+
/** On `failed`: the step that stopped it (`nodeId` or the step kind). */
|
|
42303
|
+
stoppedAt: zod.z.string().optional(),
|
|
42304
|
+
reason: ClusterUpdateFailureReasonSchema.optional(),
|
|
42305
|
+
/** Agents offline when the plan was read: never touched. */
|
|
42306
|
+
skippedOffline: zod.z.array(zod.z.string()).readonly()
|
|
42307
|
+
});
|
|
42308
|
+
var ClusterUpdateOptionsSchema = zod.z.object({
|
|
42309
|
+
/** Explicit server target; omitted = the hub's latest registry check. */
|
|
42310
|
+
version: zod.z.string().optional(),
|
|
42311
|
+
/** Update the addons too (default true). */
|
|
42312
|
+
addons: zod.z.boolean().optional(),
|
|
42313
|
+
/**
|
|
42314
|
+
* Back up before touching anything (default true). `false` is an explicit
|
|
42315
|
+
* operator opt-out; a missing backup provider is otherwise a failure.
|
|
42316
|
+
*/
|
|
42317
|
+
backup: zod.z.boolean().optional()
|
|
42318
|
+
});
|
|
42319
|
+
/** Why a plan cannot start. */
|
|
42320
|
+
var ClusterUpdateBlockerSchema = zod.z.enum([
|
|
42321
|
+
"no-target",
|
|
42322
|
+
"node-busy",
|
|
42323
|
+
"job-running",
|
|
42324
|
+
"nothing-to-do",
|
|
42325
|
+
"status-unreadable"
|
|
42326
|
+
]);
|
|
42327
|
+
var ClusterUpdatePlanSchema = zod.z.object({
|
|
42328
|
+
/** `null` when no target could be resolved (`blocker: 'no-target'`). */
|
|
42329
|
+
targetVersion: zod.z.string().nullable(),
|
|
42330
|
+
/** The steps the job WOULD run, all `pending` (or `skipped` with a reason). */
|
|
42331
|
+
steps: zod.z.array(ClusterUpdateStepSchema).readonly(),
|
|
42332
|
+
skippedOffline: zod.z.array(zod.z.string()).readonly(),
|
|
42333
|
+
/** `null` = the plan can start. */
|
|
42334
|
+
blocker: ClusterUpdateBlockerSchema.nullable(),
|
|
42335
|
+
/** Prose for `blocker`. */
|
|
42336
|
+
blockerDetail: zod.z.string().nullable()
|
|
42337
|
+
});
|
|
42338
|
+
var StartClusterUpdateResultSchema = zod.z.object({
|
|
42339
|
+
accepted: zod.z.boolean(),
|
|
42340
|
+
/** The job to follow with `getClusterUpdateJob`; `null` when refused. */
|
|
42341
|
+
jobId: zod.z.string().nullable(),
|
|
42342
|
+
blocker: ClusterUpdateBlockerSchema.nullable(),
|
|
42343
|
+
message: zod.z.string()
|
|
42344
|
+
});
|
|
42345
|
+
var clusterUpdateCapability = {
|
|
42346
|
+
name: "cluster-update",
|
|
42347
|
+
scope: "system",
|
|
42348
|
+
mode: "singleton",
|
|
42349
|
+
methods: {
|
|
42350
|
+
/** What `startClusterUpdate` would do now, and whether it can start. Reads only. */
|
|
42351
|
+
previewClusterUpdate: require_sleep.method(ClusterUpdateOptionsSchema, ClusterUpdatePlanSchema, { auth: "admin" }),
|
|
42352
|
+
/**
|
|
42353
|
+
* Start the job and return at once with its id; the job runs on the hub
|
|
42354
|
+
* (minutes to hours, across the hub's own restart). Refused, with a
|
|
42355
|
+
* `blocker`, when the plan cannot start — one job at a time.
|
|
42356
|
+
*/
|
|
42357
|
+
startClusterUpdate: require_sleep.method(ClusterUpdateOptionsSchema, StartClusterUpdateResultSchema, {
|
|
42358
|
+
kind: "mutation",
|
|
42359
|
+
auth: "admin"
|
|
42360
|
+
}),
|
|
42361
|
+
/**
|
|
42362
|
+
* A job's state. Without `jobId`: the latest job, or `null` when none ever
|
|
42363
|
+
* ran. Survives the hub restart the job itself causes.
|
|
42364
|
+
*/
|
|
42365
|
+
getClusterUpdateJob: require_sleep.method(zod.z.object({ jobId: zod.z.string().optional() }), ClusterUpdateJobSchema.nullable(), { auth: "admin" })
|
|
42366
|
+
},
|
|
42367
|
+
mount: { kind: "server-provided" }
|
|
42368
|
+
};
|
|
42369
|
+
//#endregion
|
|
42186
42370
|
//#region src/capabilities/color.cap.ts
|
|
42187
42371
|
/**
|
|
42188
42372
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -42541,12 +42725,12 @@ var CompositionFieldPlanSchema = zod.z.object({
|
|
|
42541
42725
|
required: zod.z.boolean(),
|
|
42542
42726
|
unavailable: CompositionUnavailableModeSchema,
|
|
42543
42727
|
role: CompositionFieldRoleSchema,
|
|
42544
|
-
source:
|
|
42545
|
-
reads: zod.z.array(
|
|
42728
|
+
source: require_implemented_methods.CompositionFieldSourceSchema,
|
|
42729
|
+
reads: zod.z.array(require_implemented_methods.CompositionFieldReadSchema)
|
|
42546
42730
|
});
|
|
42547
42731
|
/** The key every record map, log line and graph node uses for a planned field. Two items' `status` are two keys. */
|
|
42548
42732
|
function compositionFieldKey(plan) {
|
|
42549
|
-
const path = plan.item === void 0 ? plan.path :
|
|
42733
|
+
const path = plan.item === void 0 ? plan.path : require_implemented_methods.compositionItemFieldPath(plan.item.arrayPath, plan.item.key, plan.path);
|
|
42550
42734
|
return `${plan.cap}.${path}`;
|
|
42551
42735
|
}
|
|
42552
42736
|
/**
|
|
@@ -42624,13 +42808,13 @@ var CompositionBlockStateSchema = zod.z.object({
|
|
|
42624
42808
|
* and reads their state for the API. Nothing else talks to it.
|
|
42625
42809
|
*/
|
|
42626
42810
|
/** The composer's runner id, `resolveRunnerId(decl, 'composer')`; pinned by `composer-manifest.spec.ts`. */
|
|
42627
|
-
var COMPOSER_RUNNER_ID =
|
|
42811
|
+
var COMPOSER_RUNNER_ID = require_implemented_methods.COMPOSER_ADDON_ID;
|
|
42628
42812
|
var ComposerBlockSchema = zod.z.object({
|
|
42629
42813
|
id: zod.z.string().min(1),
|
|
42630
42814
|
name: zod.z.string().min(1).max(120),
|
|
42631
42815
|
enabled: zod.z.boolean(),
|
|
42632
42816
|
updatedAt: zod.z.number(),
|
|
42633
|
-
composition:
|
|
42817
|
+
composition: require_implemented_methods.CompositionSchema
|
|
42634
42818
|
});
|
|
42635
42819
|
/**
|
|
42636
42820
|
* A stored composition row that no longer PARSES — a schema a release
|
|
@@ -43657,27 +43841,27 @@ var mediaPlayerCapability = {
|
|
|
43657
43841
|
mode: "singleton",
|
|
43658
43842
|
deviceTypes: [require_composed_stable_id.DeviceType.MediaPlayer],
|
|
43659
43843
|
methods: {
|
|
43660
|
-
turnOn: require_sleep.
|
|
43844
|
+
turnOn: require_sleep.optionalMethod(deviceOnly, zod.z.void(), {
|
|
43661
43845
|
kind: "mutation",
|
|
43662
43846
|
auth: "protected"
|
|
43663
43847
|
}),
|
|
43664
|
-
turnOff: require_sleep.
|
|
43848
|
+
turnOff: require_sleep.optionalMethod(deviceOnly, zod.z.void(), {
|
|
43665
43849
|
kind: "mutation",
|
|
43666
43850
|
auth: "protected"
|
|
43667
43851
|
}),
|
|
43668
|
-
volumeUp: require_sleep.
|
|
43852
|
+
volumeUp: require_sleep.optionalMethod(stepInput, zod.z.void(), {
|
|
43669
43853
|
kind: "mutation",
|
|
43670
43854
|
auth: "protected"
|
|
43671
43855
|
}),
|
|
43672
|
-
volumeDown: require_sleep.
|
|
43856
|
+
volumeDown: require_sleep.optionalMethod(stepInput, zod.z.void(), {
|
|
43673
43857
|
kind: "mutation",
|
|
43674
43858
|
auth: "protected"
|
|
43675
43859
|
}),
|
|
43676
|
-
channelUp: require_sleep.
|
|
43860
|
+
channelUp: require_sleep.optionalMethod(stepInput, zod.z.void(), {
|
|
43677
43861
|
kind: "mutation",
|
|
43678
43862
|
auth: "protected"
|
|
43679
43863
|
}),
|
|
43680
|
-
channelDown: require_sleep.
|
|
43864
|
+
channelDown: require_sleep.optionalMethod(stepInput, zod.z.void(), {
|
|
43681
43865
|
kind: "mutation",
|
|
43682
43866
|
auth: "protected"
|
|
43683
43867
|
}),
|
|
@@ -43689,61 +43873,61 @@ var mediaPlayerCapability = {
|
|
|
43689
43873
|
kind: "mutation",
|
|
43690
43874
|
auth: "protected"
|
|
43691
43875
|
}),
|
|
43692
|
-
stop: require_sleep.
|
|
43876
|
+
stop: require_sleep.optionalMethod(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
43693
43877
|
kind: "mutation",
|
|
43694
43878
|
auth: "protected"
|
|
43695
43879
|
}),
|
|
43696
|
-
next: require_sleep.
|
|
43880
|
+
next: require_sleep.optionalMethod(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
43697
43881
|
kind: "mutation",
|
|
43698
43882
|
auth: "protected"
|
|
43699
43883
|
}),
|
|
43700
|
-
previous: require_sleep.
|
|
43884
|
+
previous: require_sleep.optionalMethod(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
43701
43885
|
kind: "mutation",
|
|
43702
43886
|
auth: "protected"
|
|
43703
43887
|
}),
|
|
43704
|
-
seek: require_sleep.
|
|
43888
|
+
seek: require_sleep.optionalMethod(zod.z.object({
|
|
43705
43889
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43706
43890
|
position: zod.z.number().int().nonnegative()
|
|
43707
43891
|
}), zod.z.void(), {
|
|
43708
43892
|
kind: "mutation",
|
|
43709
43893
|
auth: "protected"
|
|
43710
43894
|
}),
|
|
43711
|
-
setVolume: require_sleep.
|
|
43895
|
+
setVolume: require_sleep.optionalMethod(zod.z.object({
|
|
43712
43896
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43713
43897
|
volumeLevel: zod.z.number().min(0).max(100)
|
|
43714
43898
|
}), zod.z.void(), {
|
|
43715
43899
|
kind: "mutation",
|
|
43716
43900
|
auth: "protected"
|
|
43717
43901
|
}),
|
|
43718
|
-
setMute: require_sleep.
|
|
43902
|
+
setMute: require_sleep.optionalMethod(zod.z.object({
|
|
43719
43903
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43720
43904
|
muted: zod.z.boolean()
|
|
43721
43905
|
}), zod.z.void(), {
|
|
43722
43906
|
kind: "mutation",
|
|
43723
43907
|
auth: "protected"
|
|
43724
43908
|
}),
|
|
43725
|
-
setShuffle: require_sleep.
|
|
43909
|
+
setShuffle: require_sleep.optionalMethod(zod.z.object({
|
|
43726
43910
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43727
43911
|
shuffle: zod.z.boolean()
|
|
43728
43912
|
}), zod.z.void(), {
|
|
43729
43913
|
kind: "mutation",
|
|
43730
43914
|
auth: "protected"
|
|
43731
43915
|
}),
|
|
43732
|
-
setRepeat: require_sleep.
|
|
43916
|
+
setRepeat: require_sleep.optionalMethod(zod.z.object({
|
|
43733
43917
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43734
43918
|
repeat: MediaPlayerRepeatSchema
|
|
43735
43919
|
}), zod.z.void(), {
|
|
43736
43920
|
kind: "mutation",
|
|
43737
43921
|
auth: "protected"
|
|
43738
43922
|
}),
|
|
43739
|
-
selectSource: require_sleep.
|
|
43923
|
+
selectSource: require_sleep.optionalMethod(zod.z.object({
|
|
43740
43924
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43741
43925
|
source: zod.z.string().min(1)
|
|
43742
43926
|
}), zod.z.void(), {
|
|
43743
43927
|
kind: "mutation",
|
|
43744
43928
|
auth: "protected"
|
|
43745
43929
|
}),
|
|
43746
|
-
playMedia: require_sleep.
|
|
43930
|
+
playMedia: require_sleep.optionalMethod(zod.z.object({
|
|
43747
43931
|
deviceId: zod.z.number().int().nonnegative(),
|
|
43748
43932
|
/** Media identifier / URL. */
|
|
43749
43933
|
mediaId: zod.z.string().min(1),
|
|
@@ -44564,7 +44748,7 @@ function arityRange(builtin) {
|
|
|
44564
44748
|
return `${builtin.minArgs}–${builtin.maxArgs}`;
|
|
44565
44749
|
}
|
|
44566
44750
|
function callKinds(callee, args) {
|
|
44567
|
-
const builtin =
|
|
44751
|
+
const builtin = require_implemented_methods.EXPRESSION_BUILTINS[callee];
|
|
44568
44752
|
if (builtin !== void 0 && (args.length < builtin.minArgs || args.length > builtin.maxArgs)) throw new KindInferenceError(`${callee}: wrong number of arguments (${args.length}); expected ${arityRange(builtin)}`);
|
|
44569
44753
|
const rule = BUILTIN_RESULT_KINDS[callee];
|
|
44570
44754
|
if (rule === void 0) throw new KindInferenceError(`no result-kind rule for builtin '${callee}'`);
|
|
@@ -44600,11 +44784,11 @@ function nodeContainsCall(node, callee) {
|
|
|
44600
44784
|
}
|
|
44601
44785
|
}
|
|
44602
44786
|
function expressionContainsBuiltinCall(expr, callee) {
|
|
44603
|
-
const compiled =
|
|
44787
|
+
const compiled = require_implemented_methods.compileExpressionSafe(expr);
|
|
44604
44788
|
return compiled.ok && nodeContainsCall(compiled.parsed.ast, callee);
|
|
44605
44789
|
}
|
|
44606
44790
|
function inferExpressionKinds(input) {
|
|
44607
|
-
const compiled =
|
|
44791
|
+
const compiled = require_implemented_methods.compileExpressionSafe(input.expr);
|
|
44608
44792
|
if (!compiled.ok) return {
|
|
44609
44793
|
ok: false,
|
|
44610
44794
|
error: compiled.error
|
|
@@ -44739,7 +44923,7 @@ function compatibility(cap, target, kinds, at) {
|
|
|
44739
44923
|
*/
|
|
44740
44924
|
function literalStringValue(source) {
|
|
44741
44925
|
if (source.kind !== "expression") return null;
|
|
44742
|
-
const compiled =
|
|
44926
|
+
const compiled = require_implemented_methods.compileExpressionSafe(source.expr);
|
|
44743
44927
|
if (!compiled.ok) return null;
|
|
44744
44928
|
const ast = compiled.parsed.ast;
|
|
44745
44929
|
return ast.kind === "literal" && typeof ast.value === "string" ? ast.value : null;
|
|
@@ -44760,8 +44944,8 @@ function enumLiteralProblem(cap, target, source, at) {
|
|
|
44760
44944
|
function roleOf(source) {
|
|
44761
44945
|
if (source.kind !== "expression") return "derived";
|
|
44762
44946
|
if (expressionContainsBuiltinCall(source.expr, "count")) return "accumulator";
|
|
44763
|
-
if (
|
|
44764
|
-
const compiled =
|
|
44947
|
+
if (require_implemented_methods.fieldReads(source).length > 0) return "derived";
|
|
44948
|
+
const compiled = require_implemented_methods.compileExpressionSafe(source.expr);
|
|
44765
44949
|
return compiled.ok && compiled.parsed.identifiers.has("now") ? "clock" : "constant";
|
|
44766
44950
|
}
|
|
44767
44951
|
/**
|
|
@@ -44851,7 +45035,7 @@ function planItemField(ctx, leaf) {
|
|
|
44851
45035
|
unavailable: unavailable.unavailable,
|
|
44852
45036
|
role,
|
|
44853
45037
|
source,
|
|
44854
|
-
reads: [...
|
|
45038
|
+
reads: [...require_implemented_methods.fieldReads(source)]
|
|
44855
45039
|
};
|
|
44856
45040
|
const enumProblem = enumLiteralProblem(capName, tf, source, at);
|
|
44857
45041
|
return {
|
|
@@ -44865,7 +45049,7 @@ function planItems(def, feature, featureIndex, lookupCap, mode = "new") {
|
|
|
44865
45049
|
const at = `features[${featureIndex}].items`;
|
|
44866
45050
|
const itemArray = def.status?.itemArray;
|
|
44867
45051
|
if (itemArray === void 0) return refused(problem("not-item-array", at, `\`${def.name}\` has no item array — it takes no \`items\``));
|
|
44868
|
-
if (itemArray.path !== "items") return refused(problem("not-item-array", at, `\`${def.name}\`'s item array is at \`${itemArray.path}\`, not \`${
|
|
45052
|
+
if (itemArray.path !== "items") return refused(problem("not-item-array", at, `\`${def.name}\`'s item array is at \`${itemArray.path}\`, not \`${require_implemented_methods.COMPOSITION_ITEM_ARRAY_PATH}\` — not composable yet`));
|
|
44869
45053
|
const ctx = {
|
|
44870
45054
|
capName: def.name,
|
|
44871
45055
|
itemArray,
|
|
@@ -44927,8 +45111,8 @@ function featureForwards(feature, featureIndex) {
|
|
|
44927
45111
|
}
|
|
44928
45112
|
/** Every source a forward of an enabled feature calls, once. */
|
|
44929
45113
|
function forwardSourceRefs(composition) {
|
|
44930
|
-
const refs = composition.features.flatMap((feature, index) => feature.kind === "fields" &&
|
|
44931
|
-
return [...new Map(refs.map((ref) => [
|
|
45114
|
+
const refs = composition.features.flatMap((feature, index) => feature.kind === "fields" && require_implemented_methods.compositionFeatureEnabled(feature) ? featureForwards(feature, index).map((forward) => forward.command.source) : []);
|
|
45115
|
+
return [...new Map(refs.map((ref) => [require_implemented_methods.compositionSourceKey(ref), ref])).values()];
|
|
44932
45116
|
}
|
|
44933
45117
|
/** The methods a BUILT cap must give a command: served, and not answered by the composer itself. */
|
|
44934
45118
|
function commandedMethods(def) {
|
|
@@ -44963,7 +45147,7 @@ function inputFields(def, method) {
|
|
|
44963
45147
|
}
|
|
44964
45148
|
function inputRefs(arg) {
|
|
44965
45149
|
if (typeof arg !== "object") return [];
|
|
44966
|
-
if (
|
|
45150
|
+
if (require_implemented_methods.isForwardInputRef(arg)) return [arg.$input];
|
|
44967
45151
|
return Object.values(arg).flatMap(inputRefs);
|
|
44968
45152
|
}
|
|
44969
45153
|
function names(list) {
|
|
@@ -45043,9 +45227,9 @@ function commandMethodProblems(built, feature, at) {
|
|
|
45043
45227
|
*/
|
|
45044
45228
|
function forwardSourceProblems(composition, sources) {
|
|
45045
45229
|
return composition.features.flatMap((feature, index) => {
|
|
45046
|
-
if (feature.kind !== "fields" || !
|
|
45230
|
+
if (feature.kind !== "fields" || !require_implemented_methods.compositionFeatureEnabled(feature)) return [];
|
|
45047
45231
|
return featureForwards(feature, index).flatMap((forward) => {
|
|
45048
|
-
const key =
|
|
45232
|
+
const key = require_implemented_methods.compositionSourceKey(forward.command.source);
|
|
45049
45233
|
const desc = sources.get(key);
|
|
45050
45234
|
const at = `${forward.at}.source`;
|
|
45051
45235
|
if (desc === void 0 || desc.kind === "unreadable") return [problem("source-unreadable", at, `could not read source \`${key}\` (${desc === void 0 ? "it was not read" : desc.error}) — the save is refused rather than stored unchecked`)];
|
|
@@ -45080,7 +45264,7 @@ function numeric(input) {
|
|
|
45080
45264
|
activeWhen: void 0,
|
|
45081
45265
|
commandCaps: [],
|
|
45082
45266
|
baseUnit: require_sleep.baseUnitOf(input.quantity),
|
|
45083
|
-
aggregates:
|
|
45267
|
+
aggregates: require_implemented_methods.NUMERIC_AGGREGATES,
|
|
45084
45268
|
accept: [{
|
|
45085
45269
|
cap: input.outputCap,
|
|
45086
45270
|
fieldPath: input.outputField
|
|
@@ -45099,7 +45283,7 @@ function binary(input) {
|
|
|
45099
45283
|
commandCaps: [],
|
|
45100
45284
|
quantity: "none",
|
|
45101
45285
|
baseUnit: void 0,
|
|
45102
|
-
aggregates:
|
|
45286
|
+
aggregates: require_implemented_methods.BINARY_AGGREGATES,
|
|
45103
45287
|
empty: "offline"
|
|
45104
45288
|
};
|
|
45105
45289
|
}
|
|
@@ -45443,7 +45627,7 @@ function actuator(input) {
|
|
|
45443
45627
|
activeWhen: input.activeWhen,
|
|
45444
45628
|
quantity: "none",
|
|
45445
45629
|
baseUnit: void 0,
|
|
45446
|
-
aggregates:
|
|
45630
|
+
aggregates: require_implemented_methods.BINARY_AGGREGATES,
|
|
45447
45631
|
defaultAggregate: "any",
|
|
45448
45632
|
empty: "offline",
|
|
45449
45633
|
accept: [input.member],
|
|
@@ -46142,12 +46326,12 @@ function draft(input) {
|
|
|
46142
46326
|
}]
|
|
46143
46327
|
};
|
|
46144
46328
|
}
|
|
46145
|
-
function statisticDraft(spec, retention =
|
|
46329
|
+
function statisticDraft(spec, retention = require_implemented_methods.DEFAULT_HISTORY_RETENTION) {
|
|
46146
46330
|
const problems = [...historyProblems(spec.source)];
|
|
46147
46331
|
const kind = declaredSeriesKind(spec.source);
|
|
46148
46332
|
if (kind === "enum") problems.push(problem("kind-mismatch", "helper.source", "a statistic reads a number or a boolean, not a state"));
|
|
46149
46333
|
if (spec.stat === "sum" && kind !== "counter") problems.push(problem("kind-mismatch", "helper.stat", "a gauge has no sum — that is the integral template"));
|
|
46150
|
-
const tier =
|
|
46334
|
+
const tier = require_implemented_methods.planStatisticTier(spec.window, retention);
|
|
46151
46335
|
if (!tier.ok) problems.push(problem("retention", "helper.window", tier.reason));
|
|
46152
46336
|
return {
|
|
46153
46337
|
problems,
|
|
@@ -46166,11 +46350,11 @@ function statisticDraft(spec, retention = require_composition.DEFAULT_HISTORY_RE
|
|
|
46166
46350
|
* minute or hour. The output is a plain number: a rate of a temperature is not
|
|
46167
46351
|
* a temperature, so the chart carries no inherited unit.
|
|
46168
46352
|
*/
|
|
46169
|
-
function derivativeDraft(spec, retention =
|
|
46353
|
+
function derivativeDraft(spec, retention = require_implemented_methods.DEFAULT_HISTORY_RETENTION) {
|
|
46170
46354
|
const problems = [...historyProblems(spec.source)];
|
|
46171
46355
|
const kind = declaredSeriesKind(spec.source);
|
|
46172
46356
|
if (kind === "enum" || kind === "boolean") problems.push(problem("kind-mismatch", "helper.source", "a derivative reads a number that moves, not a yes/no or a state"));
|
|
46173
|
-
const tier =
|
|
46357
|
+
const tier = require_implemented_methods.planStatisticTier(spec.window, retention);
|
|
46174
46358
|
if (!tier.ok) problems.push(problem("retention", "helper.window", tier.reason));
|
|
46175
46359
|
return {
|
|
46176
46360
|
problems,
|
|
@@ -46184,14 +46368,14 @@ function derivativeDraft(spec, retention = require_composition.DEFAULT_HISTORY_R
|
|
|
46184
46368
|
})
|
|
46185
46369
|
};
|
|
46186
46370
|
}
|
|
46187
|
-
function integralDraft(spec, retention =
|
|
46371
|
+
function integralDraft(spec, retention = require_implemented_methods.DEFAULT_HISTORY_RETENTION) {
|
|
46188
46372
|
const problems = [...historyProblems(spec.source)];
|
|
46189
46373
|
const kind = declaredSeriesKind(spec.source);
|
|
46190
46374
|
const isPower = spec.source.cap === "power-meter" && spec.source.fieldPath === "power";
|
|
46191
46375
|
if (kind === "counter" || kind === "boolean" || kind === "enum") problems.push(problem("kind-mismatch", "helper.source", "an integral reads an instantaneous gauge, not a counter or a state"));
|
|
46192
46376
|
if (spec.output === "energy" && !isPower) problems.push(problem("kind-mismatch", "helper.output", "energy is the integral of power-meter.power; another reading uses the meter"));
|
|
46193
46377
|
if (spec.output === "meter" && isPower) problems.push(problem("kind-mismatch", "helper.output", "power integrates to power-meter.energy, which energy dashboards already read"));
|
|
46194
|
-
const tier =
|
|
46378
|
+
const tier = require_implemented_methods.planResetTier(spec.reset, retention);
|
|
46195
46379
|
if (!tier.ok) problems.push(problem("retention", "helper.reset", tier.reason));
|
|
46196
46380
|
const energy = spec.output === "energy";
|
|
46197
46381
|
return {
|
|
@@ -46459,7 +46643,7 @@ function expressionProblems(spec) {
|
|
|
46459
46643
|
});
|
|
46460
46644
|
if (problems.length > 0) return problems;
|
|
46461
46645
|
const bindings = Object.fromEntries(spec.inputs.map((input) => [input.name, from$2(input.member)]));
|
|
46462
|
-
const message =
|
|
46646
|
+
const message = require_implemented_methods.validateExpressionSource({
|
|
46463
46647
|
expr: spec.expr,
|
|
46464
46648
|
bindings
|
|
46465
46649
|
});
|
|
@@ -46550,7 +46734,7 @@ function criterionProblems(template, spec) {
|
|
|
46550
46734
|
return [];
|
|
46551
46735
|
}
|
|
46552
46736
|
function parseDraft(draft) {
|
|
46553
|
-
const parsed =
|
|
46737
|
+
const parsed = require_implemented_methods.CompositionSchema.safeParse(draft);
|
|
46554
46738
|
if (parsed.success) return {
|
|
46555
46739
|
ok: true,
|
|
46556
46740
|
composition: parsed.data
|
|
@@ -46568,7 +46752,7 @@ function expressionSource(expr, bindings = {}) {
|
|
|
46568
46752
|
};
|
|
46569
46753
|
}
|
|
46570
46754
|
/** Compile a helper template to a new-device composition. Refusals are named. */
|
|
46571
|
-
function compileHelper(spec, retention =
|
|
46755
|
+
function compileHelper(spec, retention = require_implemented_methods.DEFAULT_HISTORY_RETENTION) {
|
|
46572
46756
|
switch (spec.kind) {
|
|
46573
46757
|
case "group": return compileGroup(spec);
|
|
46574
46758
|
case "statistic": {
|
|
@@ -46647,7 +46831,7 @@ function quantityProblems(spec, facts) {
|
|
|
46647
46831
|
const template = groupTemplate(spec.templateId);
|
|
46648
46832
|
if (template === null || template.family !== "numeric") return [];
|
|
46649
46833
|
const known = spec.members.flatMap((member, index) => {
|
|
46650
|
-
const quantity = facts.get(
|
|
46834
|
+
const quantity = facts.get(require_implemented_methods.compositionSourceKey(member.source))?.quantity;
|
|
46651
46835
|
return quantity === void 0 ? [] : [{
|
|
46652
46836
|
index,
|
|
46653
46837
|
quantity
|
|
@@ -46663,7 +46847,7 @@ function deviceTypeProblems(spec, facts) {
|
|
|
46663
46847
|
const template = groupTemplate(spec.templateId);
|
|
46664
46848
|
if (template === null) return [];
|
|
46665
46849
|
return spec.members.flatMap((member, index) => {
|
|
46666
|
-
const deviceType = facts.get(
|
|
46850
|
+
const deviceType = facts.get(require_implemented_methods.compositionSourceKey(member.source))?.deviceType;
|
|
46667
46851
|
if (deviceType === void 0 || template.memberDeviceTypes.includes(deviceType)) return [];
|
|
46668
46852
|
return [problem("member-constraint", `helper.members[${index}]`, `a ${template.id} group takes ${template.memberDeviceTypes.join(" or ")} devices; this member is a ${deviceType}`)];
|
|
46669
46853
|
});
|
|
@@ -46690,7 +46874,7 @@ function helperSaveProblems(composition, facts) {
|
|
|
46690
46874
|
*/
|
|
46691
46875
|
function arithmeticQuantityProblems(spec, facts) {
|
|
46692
46876
|
const known = spec.inputs.flatMap((input) => {
|
|
46693
|
-
const quantity = facts.get(
|
|
46877
|
+
const quantity = facts.get(require_implemented_methods.compositionSourceKey(input.source))?.quantity;
|
|
46694
46878
|
return quantity === void 0 ? [] : [quantity];
|
|
46695
46879
|
});
|
|
46696
46880
|
const distinct = [...new Set(known)];
|
|
@@ -46737,21 +46921,21 @@ function arithmeticQuantityProblems(spec, facts) {
|
|
|
46737
46921
|
var CompositionGraphError = class extends Error {};
|
|
46738
46922
|
/** `"cap.field"` of every field a peer writes — the same spelling as `compositionFieldKey`. */
|
|
46739
46923
|
function writtenFields(peer) {
|
|
46740
|
-
return new Set(peer.composition.features.flatMap((feature) => !
|
|
46924
|
+
return new Set(peer.composition.features.flatMap((feature) => !require_implemented_methods.compositionFeatureEnabled(feature) || feature.kind !== "fields" ? [] : require_implemented_methods.featureFieldEntries(feature).map(({ fieldPath }) => `${feature.cap}.${fieldPath}`)));
|
|
46741
46925
|
}
|
|
46742
46926
|
/** A read of the peer's OWN device is an edge only when it reads the peer's own output (rule 5, D663). */
|
|
46743
46927
|
function readsComposedValue(peer, written, read) {
|
|
46744
|
-
if (
|
|
46928
|
+
if (require_implemented_methods.compositionSourceKey(read.source) !== require_implemented_methods.compositionSourceKey(peer.target)) return true;
|
|
46745
46929
|
const field = `${read.cap}.${read.fieldPath}`;
|
|
46746
46930
|
return written.has(field) && peer.replaced?.has(field) !== true;
|
|
46747
46931
|
}
|
|
46748
46932
|
function peerEdges(peer) {
|
|
46749
46933
|
const written = writtenFields(peer);
|
|
46750
|
-
return peer.composition.features.flatMap((feature) => !
|
|
46934
|
+
return peer.composition.features.flatMap((feature) => !require_implemented_methods.compositionFeatureEnabled(feature) || feature.kind !== "fields" ? [] : require_implemented_methods.featureFieldEntries(feature).map(({ fieldPath, source }) => [require_implemented_methods.compositionReadKey({
|
|
46751
46935
|
source: peer.target,
|
|
46752
46936
|
cap: feature.cap,
|
|
46753
46937
|
fieldPath
|
|
46754
|
-
}),
|
|
46938
|
+
}), require_implemented_methods.fieldReads(source).filter((read) => readsComposedValue(peer, written, read)).map(require_implemented_methods.compositionReadKey)]));
|
|
46755
46939
|
}
|
|
46756
46940
|
/**
|
|
46757
46941
|
* Every peer that actually takes part in the graph: each stored peer minus the
|
|
@@ -46761,11 +46945,11 @@ function peerEdges(peer) {
|
|
|
46761
46945
|
* block targets the candidate's device, or two stored peers share a device.
|
|
46762
46946
|
*/
|
|
46763
46947
|
function resolvedPeers(candidate, stored) {
|
|
46764
|
-
const candidateKey =
|
|
46948
|
+
const candidateKey = require_implemented_methods.compositionSourceKey(candidate.target);
|
|
46765
46949
|
const survivors = /* @__PURE__ */ new Map();
|
|
46766
46950
|
for (const peer of stored) {
|
|
46767
46951
|
if (peer.blockId === candidate.blockId) continue;
|
|
46768
|
-
const key =
|
|
46952
|
+
const key = require_implemented_methods.compositionSourceKey(peer.target);
|
|
46769
46953
|
if (key === candidateKey) throw new CompositionGraphError(`block \`${peer.blockId}\` and block \`${candidate.blockId}\` both target device \`${key}\` — one composition per device; delete or edit the existing one`);
|
|
46770
46954
|
const clash = survivors.get(key);
|
|
46771
46955
|
if (clash !== void 0) throw new CompositionGraphError(`two stored compositions (\`${clash.blockId}\`, \`${peer.blockId}\`) both target device \`${key}\` — refusing to build the field graph`);
|
|
@@ -46859,7 +47043,7 @@ function cycleThrough(start, component, edges) {
|
|
|
46859
47043
|
*/
|
|
46860
47044
|
function findCandidateCycles(candidate, stored) {
|
|
46861
47045
|
const edges = compositionEdges(candidate, stored);
|
|
46862
|
-
const prefix = `${
|
|
47046
|
+
const prefix = `${require_implemented_methods.compositionSourceKey(candidate.target)}#`;
|
|
46863
47047
|
return stronglyConnected(edges).flatMap((members) => {
|
|
46864
47048
|
const start = members.find((n) => n.startsWith(prefix));
|
|
46865
47049
|
if (start === void 0) return [];
|
|
@@ -46881,7 +47065,7 @@ function buildCapabilityLookup(defs) {
|
|
|
46881
47065
|
/** Caps every `BaseDevice` registers on itself; a second registration throws. */
|
|
46882
47066
|
var BASE_DEVICE_CAPS = new Set(["device-status", "feature-probe"]);
|
|
46883
47067
|
var PENDING_SELF = {
|
|
46884
|
-
addonId:
|
|
47068
|
+
addonId: require_implemented_methods.COMPOSER_ADDON_ID,
|
|
46885
47069
|
stableId: `${require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX}(unsaved)`
|
|
46886
47070
|
};
|
|
46887
47071
|
/** The candidate's block id before its first save. Stored block ids are `randomUUID()`, so none can carry it. */
|
|
@@ -46956,7 +47140,7 @@ function planTopLevelField({ def, fields }, field, mode, lookupCap) {
|
|
|
46956
47140
|
unavailable: omitEmpty ? "omit" : unavailable.unavailable,
|
|
46957
47141
|
role,
|
|
46958
47142
|
source,
|
|
46959
|
-
reads: [...
|
|
47143
|
+
reads: [...require_implemented_methods.fieldReads(source)]
|
|
46960
47144
|
};
|
|
46961
47145
|
const enumProblem = enumLiteralProblem(def.name, tf, source, fieldAt);
|
|
46962
47146
|
return {
|
|
@@ -47029,7 +47213,7 @@ function planTargetOf(composition, target) {
|
|
|
47029
47213
|
kind: "new",
|
|
47030
47214
|
type: composition.target.type
|
|
47031
47215
|
};
|
|
47032
|
-
const key =
|
|
47216
|
+
const key = require_implemented_methods.compositionSourceKey(composition.target.device);
|
|
47033
47217
|
if (target === void 0) return problem("target-unreadable", "target", `target device \`${key}\` was not read — the save is refused rather than stored unchecked`);
|
|
47034
47218
|
if (target.kind === "absent") return problem("target-missing", "target", `target device \`${key}\` does not exist`);
|
|
47035
47219
|
if (target.kind === "unreadable") return problem("target-unreadable", "target", `could not read target device \`${key}\` (${target.error}) — the save is refused rather than stored unchecked`);
|
|
@@ -47102,7 +47286,7 @@ function planComposition(composition, lookupCap, target) {
|
|
|
47102
47286
|
if (feature.kind === "passthrough") return refused(problem("reserved-variant", at, `whole-capability passthrough of \`${feature.cap}\` arrives in slice 3`));
|
|
47103
47287
|
const featureTarget = featureTargetOf(planTarget, feature, at);
|
|
47104
47288
|
if (isPlanProblem(featureTarget)) {
|
|
47105
|
-
if (!
|
|
47289
|
+
if (!require_implemented_methods.compositionFeatureEnabled(feature) || planTarget.kind !== "existing") return {
|
|
47106
47290
|
problems: [],
|
|
47107
47291
|
fields: [],
|
|
47108
47292
|
features: [],
|
|
@@ -47114,7 +47298,7 @@ function planComposition(composition, lookupCap, target) {
|
|
|
47114
47298
|
}, lookupCap, servedCommands));
|
|
47115
47299
|
}
|
|
47116
47300
|
const result = planFeature(feature, index, featureTarget, lookupCap, servedCommands);
|
|
47117
|
-
if (
|
|
47301
|
+
if (require_implemented_methods.compositionFeatureEnabled(feature)) return result;
|
|
47118
47302
|
return {
|
|
47119
47303
|
problems: Object.keys(feature.fields).length === 0 ? result.problems.filter((p) => p.code !== "missing-field") : result.problems,
|
|
47120
47304
|
fields: [],
|
|
@@ -47130,8 +47314,8 @@ function planComposition(composition, lookupCap, target) {
|
|
|
47130
47314
|
};
|
|
47131
47315
|
}
|
|
47132
47316
|
function compositionSourceRefs(composition) {
|
|
47133
|
-
const refs = composition.features.flatMap((f) =>
|
|
47134
|
-
return [...new Map([...refs, ...forwardSourceRefs(composition)].map((r) => [
|
|
47317
|
+
const refs = composition.features.flatMap((f) => require_implemented_methods.compositionFeatureEnabled(f) && f.kind === "fields" ? require_implemented_methods.featureSources(f).flatMap(require_implemented_methods.fieldReads).map((r) => r.source) : []);
|
|
47318
|
+
return [...new Map([...refs, ...forwardSourceRefs(composition)].map((r) => [require_implemented_methods.compositionSourceKey(r), r])).values()];
|
|
47135
47319
|
}
|
|
47136
47320
|
/**
|
|
47137
47321
|
* The candidate's device: the existing target itself, else `self`, else a
|
|
@@ -47168,10 +47352,10 @@ function selfReadProblems(read, at, fields, self) {
|
|
|
47168
47352
|
return [problem("source-capability-missing", at, `the target device (device ${self.native.deviceId}) has no native \`${read.cap}\``)];
|
|
47169
47353
|
}
|
|
47170
47354
|
function sourceProblems(fields, ctx, self) {
|
|
47171
|
-
const selfKey =
|
|
47355
|
+
const selfKey = require_implemented_methods.compositionSourceKey(self.ref);
|
|
47172
47356
|
return fields.flatMap((field) => field.reads.flatMap((read) => {
|
|
47173
47357
|
const at = compositionFieldAt(field);
|
|
47174
|
-
const key =
|
|
47358
|
+
const key = require_implemented_methods.compositionSourceKey(read.source);
|
|
47175
47359
|
if (key === selfKey) return selfReadProblems(read, at, fields, self);
|
|
47176
47360
|
const desc = ctx.sources.get(key);
|
|
47177
47361
|
if (desc === void 0 || desc.kind === "unreadable") return [problem("source-unreadable", at, `could not read source \`${key}\` (${desc === void 0 ? "it was not read" : desc.error}) — the save is refused rather than stored unchecked`)];
|
|
@@ -47239,7 +47423,7 @@ function cycleProblems(composition, ctx, fields, self) {
|
|
|
47239
47423
|
composition,
|
|
47240
47424
|
replaced: self.replaced
|
|
47241
47425
|
};
|
|
47242
|
-
const candidateKey =
|
|
47426
|
+
const candidateKey = require_implemented_methods.compositionSourceKey(candidate.target);
|
|
47243
47427
|
const unread = ctx.unreadTargets ?? /* @__PURE__ */ new Map();
|
|
47244
47428
|
try {
|
|
47245
47429
|
return findCandidateCycles(candidate, ctx.peers).map((c) => {
|
|
@@ -47740,7 +47924,7 @@ var CoreBlockSourceSchema = zod.z.discriminatedUnion("kind", [
|
|
|
47740
47924
|
}),
|
|
47741
47925
|
zod.z.object({
|
|
47742
47926
|
kind: zod.z.literal("composition"),
|
|
47743
|
-
composition:
|
|
47927
|
+
composition: require_implemented_methods.CompositionSchema
|
|
47744
47928
|
})
|
|
47745
47929
|
]);
|
|
47746
47930
|
/**
|
|
@@ -47754,7 +47938,7 @@ var CoreBlockSourceSchema = zod.z.discriminatedUnion("kind", [
|
|
|
47754
47938
|
var CompositionBlockInputSchema = zod.z.object({
|
|
47755
47939
|
name: zod.z.string().min(1).max(120).optional(),
|
|
47756
47940
|
enabled: zod.z.boolean(),
|
|
47757
|
-
composition:
|
|
47941
|
+
composition: require_implemented_methods.CompositionSchema
|
|
47758
47942
|
});
|
|
47759
47943
|
/** A stored block. `code` is always present after normalize (derived from files). */
|
|
47760
47944
|
var CoreBlockSchema = zod.z.object({
|
|
@@ -48011,7 +48195,7 @@ var coreBlocksCapability = {
|
|
|
48011
48195
|
* for its body size; it writes nothing, so its access is `view`.
|
|
48012
48196
|
*/
|
|
48013
48197
|
validateComposition: require_sleep.method(zod.z.object({
|
|
48014
|
-
composition:
|
|
48198
|
+
composition: require_implemented_methods.CompositionSchema,
|
|
48015
48199
|
blockId: zod.z.string().optional()
|
|
48016
48200
|
}), CompositionValidationSchema, {
|
|
48017
48201
|
kind: "mutation",
|
|
@@ -48114,18 +48298,18 @@ var coverCapability = {
|
|
|
48114
48298
|
kind: "mutation",
|
|
48115
48299
|
auth: "protected"
|
|
48116
48300
|
}),
|
|
48117
|
-
stop: require_sleep.
|
|
48301
|
+
stop: require_sleep.optionalMethod(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
48118
48302
|
kind: "mutation",
|
|
48119
48303
|
auth: "protected"
|
|
48120
48304
|
}),
|
|
48121
|
-
setPosition: require_sleep.
|
|
48305
|
+
setPosition: require_sleep.optionalMethod(zod.z.object({
|
|
48122
48306
|
deviceId: zod.z.number().int().nonnegative(),
|
|
48123
48307
|
position: zod.z.number().min(0).max(100)
|
|
48124
48308
|
}), zod.z.void(), {
|
|
48125
48309
|
kind: "mutation",
|
|
48126
48310
|
auth: "protected"
|
|
48127
48311
|
}),
|
|
48128
|
-
setTiltPosition: require_sleep.
|
|
48312
|
+
setTiltPosition: require_sleep.optionalMethod(zod.z.object({
|
|
48129
48313
|
deviceId: zod.z.number().int().nonnegative(),
|
|
48130
48314
|
tiltPosition: zod.z.number().min(0).max(100)
|
|
48131
48315
|
}), zod.z.void(), {
|
|
@@ -49591,7 +49775,8 @@ var RESERVED_ALIASES = new Set([
|
|
|
49591
49775
|
"extends",
|
|
49592
49776
|
"block",
|
|
49593
49777
|
"macro",
|
|
49594
|
-
"now"
|
|
49778
|
+
"now",
|
|
49779
|
+
"camera"
|
|
49595
49780
|
]);
|
|
49596
49781
|
var DeviceAliasSchema = zod.z.string().max(64).regex(DEVICE_ALIAS_PATTERN);
|
|
49597
49782
|
function isReservedDeviceAlias(alias) {
|
|
@@ -49667,10 +49852,41 @@ var DEVICE_TEMPLATE_MAX_OUTPUT = 4096;
|
|
|
49667
49852
|
/** What an unknown or unavailable value renders as. */
|
|
49668
49853
|
var DEVICE_TEMPLATE_UNAVAILABLE = "—";
|
|
49669
49854
|
var DeviceTemplateSchema = zod.z.string().min(1).max(DEVICE_TEMPLATE_MAX_LENGTH);
|
|
49855
|
+
/**
|
|
49856
|
+
* The clock, as a template value: `{{ now | time('HH:mm') }}` (epoch ms; the
|
|
49857
|
+
* zone is the server's). Reserved: no device alias may be spelled `now`.
|
|
49858
|
+
*/
|
|
49859
|
+
var DEVICE_TEMPLATE_NOW_ALIAS = "now";
|
|
49860
|
+
/**
|
|
49861
|
+
* The device a caller renders FOR, as a template name: `{{ camera.temperature }}`.
|
|
49862
|
+
* It resolves only when the call names `thisDevice`, so a template stays copyable
|
|
49863
|
+
* between devices. It shadows a device whose own alias is `camera`.
|
|
49864
|
+
*/
|
|
49865
|
+
var DEVICE_TEMPLATE_THIS_ALIAS = "camera";
|
|
49866
|
+
/** One value a caller hands the renderer for `thisDevice`. */
|
|
49867
|
+
var DeviceTemplateValueSchema = zod.z.union([
|
|
49868
|
+
zod.z.string(),
|
|
49869
|
+
zod.z.number(),
|
|
49870
|
+
zod.z.boolean()
|
|
49871
|
+
]);
|
|
49872
|
+
/**
|
|
49873
|
+
* The device a render is FOR (`camera` in the text) and the values the caller
|
|
49874
|
+
* knows about it that no capability carries, for example `lastPerson` and
|
|
49875
|
+
* `lastPlate`. `values` read as `camera.<name>`; a name a capability also carries
|
|
49876
|
+
* is `ambiguous` and is written `camera.values.<name>`.
|
|
49877
|
+
*/
|
|
49878
|
+
var DeviceTemplateThisDeviceSchema = zod.z.object({
|
|
49879
|
+
deviceId: zod.z.number().int(),
|
|
49880
|
+
values: zod.z.record(zod.z.string().min(1).max(64), DeviceTemplateValueSchema).optional()
|
|
49881
|
+
});
|
|
49882
|
+
/** The synthetic slice `thisDevice.values` is exposed under. */
|
|
49883
|
+
var DEVICE_TEMPLATE_VALUES_CAP = "values";
|
|
49670
49884
|
/** The filters a template may use. Anything else is refused at parse time. */
|
|
49671
49885
|
var DEVICE_TEMPLATE_FILTERS = [
|
|
49672
49886
|
"unit",
|
|
49673
49887
|
"round",
|
|
49888
|
+
"trunc",
|
|
49889
|
+
"onoff",
|
|
49674
49890
|
"default",
|
|
49675
49891
|
"since",
|
|
49676
49892
|
"ago",
|
|
@@ -49694,7 +49910,8 @@ var DEVICE_TEMPLATE_FILTERS = [
|
|
|
49694
49910
|
"sum",
|
|
49695
49911
|
"string",
|
|
49696
49912
|
"list",
|
|
49697
|
-
"truncate"
|
|
49913
|
+
"truncate",
|
|
49914
|
+
"time"
|
|
49698
49915
|
];
|
|
49699
49916
|
var DEVICE_TEMPLATE_REFUSAL_REASONS = [
|
|
49700
49917
|
"too-long",
|
|
@@ -49868,6 +50085,105 @@ function siteZoneKey(label) {
|
|
|
49868
50085
|
return label.trim().toLowerCase();
|
|
49869
50086
|
}
|
|
49870
50087
|
//#endregion
|
|
50088
|
+
//#region src/capabilities/device-search.ts
|
|
50089
|
+
/**
|
|
50090
|
+
* `deviceManager.search` — the query behind the device → value picker.
|
|
50091
|
+
*
|
|
50092
|
+
* One server-side question answers everything a picker draws: which devices
|
|
50093
|
+
* can supply a value of the required capability(ies), narrowed by text and by
|
|
50094
|
+
* three generic facets, one cursor page at a time, with the facet counts and
|
|
50095
|
+
* the live reading of each matching value. The schemas live here (not in the
|
|
50096
|
+
* cap file) so the UI model files and the provider import one source; types
|
|
50097
|
+
* are `z.infer` of them.
|
|
50098
|
+
*/
|
|
50099
|
+
/** Page size when the caller names none, and the ceiling it may ask for. */
|
|
50100
|
+
var DEVICE_SEARCH_DEFAULT_LIMIT = 50;
|
|
50101
|
+
var DEVICE_SEARCH_MAX_LIMIT = 200;
|
|
50102
|
+
var DeviceSearchRequiresSchema = zod.z.object({
|
|
50103
|
+
/** Capability names the field wants a value of. */
|
|
50104
|
+
caps: zod.z.array(zod.z.string()).readonly(),
|
|
50105
|
+
/** `any` (default): a device with one of them is compatible. `all`: it must hold every one. */
|
|
50106
|
+
mode: zod.z.enum(["any", "all"]).optional()
|
|
50107
|
+
});
|
|
50108
|
+
var DeviceSearchFiltersSchema = zod.z.object({
|
|
50109
|
+
locations: zod.z.array(zod.z.string()).readonly().optional(),
|
|
50110
|
+
integrationIds: zod.z.array(zod.z.string()).readonly().optional(),
|
|
50111
|
+
types: zod.z.array(zod.z.string()).readonly().optional()
|
|
50112
|
+
});
|
|
50113
|
+
var DeviceSearchInputSchema = zod.z.object({
|
|
50114
|
+
/** Matches name, location, type, integration (id and label) and id. Case-insensitive. */
|
|
50115
|
+
text: zod.z.string().optional(),
|
|
50116
|
+
requires: DeviceSearchRequiresSchema.optional(),
|
|
50117
|
+
filters: DeviceSearchFiltersSchema.optional(),
|
|
50118
|
+
/** List the devices that do not provide the required cap too (greyed, not pickable). */
|
|
50119
|
+
includeIncompatible: zod.z.boolean().optional(),
|
|
50120
|
+
/** The device the field belongs to: its location drives `suggested`. */
|
|
50121
|
+
contextDeviceId: zod.z.number().optional(),
|
|
50122
|
+
/**
|
|
50123
|
+
* Resolve exactly these devices, regardless of every filter, so a picked
|
|
50124
|
+
* value can be rendered. When given, `items` is these devices in the order
|
|
50125
|
+
* asked (no paging, `nextCursor` null) and the ones that do not exist are
|
|
50126
|
+
* listed in `missingIds`.
|
|
50127
|
+
*/
|
|
50128
|
+
ids: zod.z.array(zod.z.number()).readonly().optional(),
|
|
50129
|
+
cursor: zod.z.string().nullable().optional(),
|
|
50130
|
+
limit: zod.z.number().int().min(1).max(200).optional()
|
|
50131
|
+
});
|
|
50132
|
+
var DeviceValueOptionSchema = zod.z.object({
|
|
50133
|
+
cap: zod.z.string(),
|
|
50134
|
+
/** Status-schema field path inside the cap (same paths as `getWireableFields`). */
|
|
50135
|
+
path: zod.z.string(),
|
|
50136
|
+
label: zod.z.string(),
|
|
50137
|
+
/** The current value as text; `null` when it is unknown or the read FAILED — never `0`. */
|
|
50138
|
+
reading: zod.z.string().nullable(),
|
|
50139
|
+
unit: zod.z.string().nullable().optional(),
|
|
50140
|
+
/** The field's measured quantity, when the cap declares one, so a client can format the reading. */
|
|
50141
|
+
quantity: require_sleep.ReadingQuantitySchema.optional()
|
|
50142
|
+
});
|
|
50143
|
+
var DeviceSearchItemSchema = zod.z.object({
|
|
50144
|
+
id: zod.z.number(),
|
|
50145
|
+
name: zod.z.string(),
|
|
50146
|
+
type: zod.z.enum(require_composed_stable_id.DeviceType),
|
|
50147
|
+
location: zod.z.string().nullable(),
|
|
50148
|
+
integrationId: zod.z.string().nullable(),
|
|
50149
|
+
integrationLabel: zod.z.string().nullable(),
|
|
50150
|
+
online: zod.z.boolean().nullable(),
|
|
50151
|
+
disabled: zod.z.boolean(),
|
|
50152
|
+
compatible: zod.z.boolean(),
|
|
50153
|
+
/** Only the required caps' fields; empty when nothing was required or the device is incompatible. */
|
|
50154
|
+
values: zod.z.array(DeviceValueOptionSchema).readonly()
|
|
50155
|
+
});
|
|
50156
|
+
var DeviceSearchFacetValueSchema = zod.z.object({
|
|
50157
|
+
value: zod.z.string(),
|
|
50158
|
+
count: zod.z.number()
|
|
50159
|
+
});
|
|
50160
|
+
var DeviceSearchFacetIntegrationSchema = zod.z.object({
|
|
50161
|
+
id: zod.z.string(),
|
|
50162
|
+
label: zod.z.string(),
|
|
50163
|
+
count: zod.z.number()
|
|
50164
|
+
});
|
|
50165
|
+
var DeviceSearchFacetsSchema = zod.z.object({
|
|
50166
|
+
locations: zod.z.array(DeviceSearchFacetValueSchema).readonly(),
|
|
50167
|
+
integrations: zod.z.array(DeviceSearchFacetIntegrationSchema).readonly(),
|
|
50168
|
+
types: zod.z.array(DeviceSearchFacetValueSchema).readonly()
|
|
50169
|
+
});
|
|
50170
|
+
var DeviceSearchResultSchema = zod.z.object({
|
|
50171
|
+
items: zod.z.array(DeviceSearchItemSchema).readonly(),
|
|
50172
|
+
nextCursor: zod.z.string().nullable(),
|
|
50173
|
+
/** Devices listed by this query across all pages (filters + text applied; incompatible counted only when `includeIncompatible`). */
|
|
50174
|
+
total: zod.z.number(),
|
|
50175
|
+
/** Compatible devices after filters + text. */
|
|
50176
|
+
compatibleTotal: zod.z.number(),
|
|
50177
|
+
/** Every device the caller's fleet holds, before anything is applied. */
|
|
50178
|
+
fleetTotal: zod.z.number(),
|
|
50179
|
+
/** Incompatible devices after filters + text — the K of "show the K that don't". */
|
|
50180
|
+
hiddenIncompatible: zod.z.number(),
|
|
50181
|
+
facets: DeviceSearchFacetsSchema,
|
|
50182
|
+
/** Same location as `contextDeviceId`; first page only. */
|
|
50183
|
+
suggested: zod.z.array(DeviceSearchItemSchema).readonly(),
|
|
50184
|
+
missingIds: zod.z.array(zod.z.number()).readonly()
|
|
50185
|
+
});
|
|
50186
|
+
//#endregion
|
|
49871
50187
|
//#region src/capabilities/device-provider.cap.ts
|
|
49872
50188
|
var ProviderStatusSchema = zod.z.object({
|
|
49873
50189
|
connected: zod.z.boolean(),
|
|
@@ -50358,6 +50674,9 @@ var DeviceInfoSchema = zod.z.object({
|
|
|
50358
50674
|
* named accordion sections (with optional intra-section order). See
|
|
50359
50675
|
* `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
|
|
50360
50676
|
childLayout: zod.z.array(ChildLayoutEntrySchema).readonly().optional(),
|
|
50677
|
+
/** The children a container stands for, most preferred first, by accessory
|
|
50678
|
+
* `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
|
|
50679
|
+
primaryChildPreference: zod.z.array(zod.z.string()).readonly().optional(),
|
|
50361
50680
|
/** Operator-authored per-device display override. See `DeviceMeta.display`. */
|
|
50362
50681
|
display: DeviceDisplayOverrideSchema.optional()
|
|
50363
50682
|
});
|
|
@@ -50434,7 +50753,9 @@ var DeviceBindingsForDeviceSchema = zod.z.object({
|
|
|
50434
50753
|
kind: zod.z.enum(["native", "wrapped"]),
|
|
50435
50754
|
providerAddonId: zod.z.string(),
|
|
50436
50755
|
providerNodeId: zod.z.string(),
|
|
50437
|
-
nativeAddonId: zod.z.string()
|
|
50756
|
+
nativeAddonId: zod.z.string(),
|
|
50757
|
+
/** The cap's methods the native provider implements; absent = all. */
|
|
50758
|
+
implementedMethods: zod.z.array(zod.z.string()).optional()
|
|
50438
50759
|
}))
|
|
50439
50760
|
});
|
|
50440
50761
|
/**
|
|
@@ -50519,6 +50840,9 @@ var DeviceMetaSchema = zod.z.object({
|
|
|
50519
50840
|
* accordion sections (with optional intra-section order). See
|
|
50520
50841
|
* `DeviceMeta.childLayout`. Absent ⇒ no layout declared. */
|
|
50521
50842
|
childLayout: zod.z.array(ChildLayoutEntrySchema).readonly().optional(),
|
|
50843
|
+
/** The children a container stands for, most preferred first, by accessory
|
|
50844
|
+
* `childKey`. Provider-declared. See `DeviceMeta.primaryChildPreference`. */
|
|
50845
|
+
primaryChildPreference: zod.z.array(zod.z.string()).readonly().optional(),
|
|
50522
50846
|
/** Semantic role string (`DeviceRole`) — propagated from the spawn pre-seed.
|
|
50523
50847
|
* Optional: only present for accessory children that carry a known role. */
|
|
50524
50848
|
role: zod.z.string().nullable().optional(),
|
|
@@ -50752,7 +51076,9 @@ var deviceManagerCapability = {
|
|
|
50752
51076
|
*/
|
|
50753
51077
|
renderDeviceTemplates: require_sleep.method(zod.z.object({
|
|
50754
51078
|
templates: zod.z.array(DeviceTemplateSchema).max(64),
|
|
50755
|
-
allowedDeviceIds: zod.z.array(zod.z.number().int()).optional()
|
|
51079
|
+
allowedDeviceIds: zod.z.array(zod.z.number().int()).optional(),
|
|
51080
|
+
/** The device `camera` names in the texts, and the values the caller knows of it. */
|
|
51081
|
+
thisDevice: DeviceTemplateThisDeviceSchema.optional()
|
|
50756
51082
|
}), zod.z.object({ results: zod.z.array(DeviceTemplateRenderSchema) }), { auth: "admin" }),
|
|
50757
51083
|
/**
|
|
50758
51084
|
* Vet templates without rendering them: the syntax refusal, or the devices
|
|
@@ -50761,14 +51087,19 @@ var deviceManagerCapability = {
|
|
|
50761
51087
|
*/
|
|
50762
51088
|
checkDeviceTemplates: require_sleep.method(zod.z.object({
|
|
50763
51089
|
templates: zod.z.array(zod.z.string()).max(64),
|
|
50764
|
-
allowedDeviceIds: zod.z.array(zod.z.number().int()).optional()
|
|
51090
|
+
allowedDeviceIds: zod.z.array(zod.z.number().int()).optional(),
|
|
51091
|
+
thisDevice: DeviceTemplateThisDeviceSchema.optional()
|
|
50765
51092
|
}), zod.z.object({ results: zod.z.array(zod.z.discriminatedUnion("ok", [zod.z.object({
|
|
50766
51093
|
ok: zod.z.literal(true),
|
|
50767
51094
|
aliases: zod.z.array(zod.z.object({
|
|
50768
51095
|
alias: zod.z.string(),
|
|
50769
51096
|
deviceId: zod.z.number().int().nullable(),
|
|
50770
|
-
allowed: zod.z.boolean()
|
|
50771
|
-
|
|
51097
|
+
allowed: zod.z.boolean(),
|
|
51098
|
+
/** The fields the text reads on this alias, as written (`temperature`, `cap.field`). */
|
|
51099
|
+
reads: zod.z.array(zod.z.string())
|
|
51100
|
+
})),
|
|
51101
|
+
/** Whether the text reads the clock (`now`): it changes every minute. */
|
|
51102
|
+
readsClock: zod.z.boolean()
|
|
50772
51103
|
}), zod.z.object({
|
|
50773
51104
|
ok: zod.z.literal(false),
|
|
50774
51105
|
refusal: DeviceTemplateRefusalSchema
|
|
@@ -50839,6 +51170,17 @@ var deviceManagerCapability = {
|
|
|
50839
51170
|
kind: "mutation",
|
|
50840
51171
|
auth: "admin"
|
|
50841
51172
|
}),
|
|
51173
|
+
/** Set (or replace) a container's provider-declared primary-child
|
|
51174
|
+
* preference: accessory `childKey`s, most preferred first. Mirrors
|
|
51175
|
+
* `setChildLayout`; the operator's `primaryChildEntityId` still wins.
|
|
51176
|
+
* Persisted, projected, and preserved across re-register/restore. Idempotent. */
|
|
51177
|
+
setPrimaryChildPreference: require_sleep.method(zod.z.object({
|
|
51178
|
+
deviceId: zod.z.number(),
|
|
51179
|
+
primaryChildPreference: zod.z.array(zod.z.string()).readonly()
|
|
51180
|
+
}), zod.z.void(), {
|
|
51181
|
+
kind: "mutation",
|
|
51182
|
+
auth: "admin"
|
|
51183
|
+
}),
|
|
50842
51184
|
/** Set (or clear) the per-device display override on the meta row. Mirrors
|
|
50843
51185
|
* `setChildLayout` persistence; `null` clears the override entirely. The
|
|
50844
51186
|
* override unit(s) are normalized (`normalizeUnit`) at write so the render
|
|
@@ -51168,6 +51510,15 @@ var deviceManagerCapability = {
|
|
|
51168
51510
|
*/
|
|
51169
51511
|
deviceIds: zod.z.array(zod.z.number()).optional()
|
|
51170
51512
|
}), zod.z.array(DeviceInfoSchema), { role: "viewer" }),
|
|
51513
|
+
/**
|
|
51514
|
+
* The device → value picker's one query: filter by text, capability and
|
|
51515
|
+
* location / integration / type, with faceted counts, cursor pagination,
|
|
51516
|
+
* the live reading of each matching value, suggestions by the context
|
|
51517
|
+
* device's location, and `ids` resolution for already-picked values.
|
|
51518
|
+
* See `device-search.ts`. Not in `DEVICE_ENUMERATION_METHODS`: a
|
|
51519
|
+
* device-scoped token is refused rather than shown the whole fleet.
|
|
51520
|
+
*/
|
|
51521
|
+
search: require_sleep.method(DeviceSearchInputSchema, DeviceSearchResultSchema, { role: "viewer" }),
|
|
51171
51522
|
/** Get a single device by numeric deviceId. */
|
|
51172
51523
|
getDevice: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), DeviceInfoSchema.nullable()),
|
|
51173
51524
|
/** List children of a parent device (by parent numeric id). */
|
|
@@ -54934,28 +55285,28 @@ var fanControlCapability = {
|
|
|
54934
55285
|
mode: "singleton",
|
|
54935
55286
|
deviceTypes: [require_composed_stable_id.DeviceType.Fan],
|
|
54936
55287
|
methods: {
|
|
54937
|
-
setPercentage: require_sleep.
|
|
55288
|
+
setPercentage: require_sleep.optionalMethod(zod.z.object({
|
|
54938
55289
|
deviceId: zod.z.number().int().nonnegative(),
|
|
54939
55290
|
speed: zod.z.number().min(0).max(100)
|
|
54940
55291
|
}), zod.z.void(), {
|
|
54941
55292
|
kind: "mutation",
|
|
54942
55293
|
auth: "protected"
|
|
54943
55294
|
}),
|
|
54944
|
-
setPreset: require_sleep.
|
|
55295
|
+
setPreset: require_sleep.optionalMethod(zod.z.object({
|
|
54945
55296
|
deviceId: zod.z.number().int().nonnegative(),
|
|
54946
55297
|
preset: zod.z.string().min(1)
|
|
54947
55298
|
}), zod.z.void(), {
|
|
54948
55299
|
kind: "mutation",
|
|
54949
55300
|
auth: "protected"
|
|
54950
55301
|
}),
|
|
54951
|
-
setDirection: require_sleep.
|
|
55302
|
+
setDirection: require_sleep.optionalMethod(zod.z.object({
|
|
54952
55303
|
deviceId: zod.z.number().int().nonnegative(),
|
|
54953
55304
|
direction: FanDirectionSchema
|
|
54954
55305
|
}), zod.z.void(), {
|
|
54955
55306
|
kind: "mutation",
|
|
54956
55307
|
auth: "protected"
|
|
54957
55308
|
}),
|
|
54958
|
-
setOscillating: require_sleep.
|
|
55309
|
+
setOscillating: require_sleep.optionalMethod(zod.z.object({
|
|
54959
55310
|
deviceId: zod.z.number().int().nonnegative(),
|
|
54960
55311
|
oscillating: zod.z.boolean()
|
|
54961
55312
|
}), zod.z.void(), {
|
|
@@ -56499,8 +56850,23 @@ var HeroPillSchema = zod.z.object({
|
|
|
56499
56850
|
text: HeroTextSchema,
|
|
56500
56851
|
tone: HeroToneSchema
|
|
56501
56852
|
});
|
|
56853
|
+
/**
|
|
56854
|
+
* Rows whose action and slider controls belong ON the scene (the curtain's buttons, the
|
|
56855
|
+
* lock's key, the player's transport) and not in a row under it. The model says it, so
|
|
56856
|
+
* every client draws the same placement; a control of another kind stays in a row.
|
|
56857
|
+
*/
|
|
56858
|
+
var HERO_SCENE_ROW_IDS = new Set([
|
|
56859
|
+
"cover",
|
|
56860
|
+
"valve",
|
|
56861
|
+
"lock",
|
|
56862
|
+
"vacuum",
|
|
56863
|
+
"playback",
|
|
56864
|
+
"brightness"
|
|
56865
|
+
]);
|
|
56502
56866
|
var HeroRowSchema = zod.z.object({
|
|
56503
56867
|
id: HeroRowIdSchema,
|
|
56868
|
+
/** `scene`: the row's action and slider controls are drawn on the scene. Absent: an ordinary row. */
|
|
56869
|
+
placement: zod.z.enum(["row", "scene"]).optional(),
|
|
56504
56870
|
/** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
|
|
56505
56871
|
label: HeroTextSchema.optional(),
|
|
56506
56872
|
/** A group header drawn above the row when it differs from the previous row's ("System"). */
|
|
@@ -59861,10 +60227,22 @@ var HUB_MDNS_TXT_KEYS = {
|
|
|
59861
60227
|
nodeId: "nodeId",
|
|
59862
60228
|
version: "version",
|
|
59863
60229
|
role: "role",
|
|
59864
|
-
url: "url"
|
|
60230
|
+
url: "url",
|
|
60231
|
+
/** The hub's announced identity (`hub-<16 hex>`), see {@link isHubId}. */
|
|
60232
|
+
hubId: "hubId"
|
|
59865
60233
|
};
|
|
59866
60234
|
var HUB_MDNS_ROLE = "hub";
|
|
59867
60235
|
/**
|
|
60236
|
+
* A hub's ANNOUNCED identity: random, generated once on the hub and persisted, never derived
|
|
60237
|
+
* from anything an outsider can see. Two hubs on one LAN are told apart by it, and a paired
|
|
60238
|
+
* agent records it so it can find ITS hub again over mDNS (and refuse another). It is not the
|
|
60239
|
+
* mesh node id (`hub`), which stays the same on every hub.
|
|
60240
|
+
*/
|
|
60241
|
+
var HUB_ID_PATTERN = /^hub-[0-9a-f]{16}$/;
|
|
60242
|
+
function isHubId(value) {
|
|
60243
|
+
return typeof value === "string" && HUB_ID_PATTERN.test(value);
|
|
60244
|
+
}
|
|
60245
|
+
/**
|
|
59868
60246
|
* How a hub finds agents to pair (D857): every agent publishes ONE mDNS service for its API
|
|
59869
60247
|
* port, paired or not. The TXT record carries only public facts. Finding an agent grants
|
|
59870
60248
|
* nothing: pairing still needs the six-digit code confirmed on both screens.
|
|
@@ -60592,7 +60970,7 @@ var lockControlCapability = {
|
|
|
60592
60970
|
kind: "mutation",
|
|
60593
60971
|
auth: "protected"
|
|
60594
60972
|
}),
|
|
60595
|
-
open: require_sleep.
|
|
60973
|
+
open: require_sleep.optionalMethod(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
60596
60974
|
kind: "mutation",
|
|
60597
60975
|
auth: "protected"
|
|
60598
60976
|
})
|
|
@@ -62119,6 +62497,16 @@ var MIGRATION_API_V1_METHODS = {
|
|
|
62119
62497
|
output: zod.z.object({ removed: zod.z.array(zod.z.string()) }),
|
|
62120
62498
|
behaviours: ["settings.deleteKeys.removes-only-the-named-keys"]
|
|
62121
62499
|
},
|
|
62500
|
+
"deviceSettings.listIds": {
|
|
62501
|
+
input: zod.z.object({}),
|
|
62502
|
+
output: zod.z.object({ deviceIds: zod.z.array(zod.z.number().int()) }),
|
|
62503
|
+
behaviours: ["deviceSettings.listIds.names-only-the-addons-own-devices"]
|
|
62504
|
+
},
|
|
62505
|
+
"deviceSettings.read": {
|
|
62506
|
+
input: zod.z.object({ deviceIds: zod.z.array(zod.z.number().int()) }),
|
|
62507
|
+
output: zod.z.object({ blobs: zod.z.record(zod.z.string(), Rows) }),
|
|
62508
|
+
behaviours: ["deviceSettings.read.returns-only-the-addons-own-blobs"]
|
|
62509
|
+
},
|
|
62122
62510
|
"secrets.resolve": {
|
|
62123
62511
|
input: zod.z.object({ refs: zod.z.array(zod.z.string()) }),
|
|
62124
62512
|
output: zod.z.object({ values: zod.z.record(zod.z.string(), zod.z.string().nullable()) }),
|
|
@@ -62165,6 +62553,11 @@ var MIGRATION_API_V1_METHODS = {
|
|
|
62165
62553
|
}).nullable(),
|
|
62166
62554
|
behaviours: ["devices.get.null-for-an-unknown-id", "devices.get.reports-link-and-config"]
|
|
62167
62555
|
},
|
|
62556
|
+
"devices.aliases": {
|
|
62557
|
+
input: zod.z.object({ deviceIds: zod.z.array(zod.z.number().int()) }),
|
|
62558
|
+
output: zod.z.object({ aliases: zod.z.record(zod.z.string(), zod.z.string()) }),
|
|
62559
|
+
behaviours: ["devices.aliases.answers-for-the-named-ids-only"]
|
|
62560
|
+
},
|
|
62168
62561
|
"devices.setIntegrationId": {
|
|
62169
62562
|
input: zod.z.object({
|
|
62170
62563
|
deviceId: zod.z.number().int(),
|
|
@@ -72135,6 +72528,59 @@ var NcRuleTargetSchema = zod.z.object({
|
|
|
72135
72528
|
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
72136
72529
|
});
|
|
72137
72530
|
/**
|
|
72531
|
+
* One target's own settings on a rule (#487) — everything about THAT target.
|
|
72532
|
+
*
|
|
72533
|
+
* Every key is optional and ABSENT means "the rule's own value": the rule's
|
|
72534
|
+
* texts, priority and schedule are the defaults every target inherits, so a
|
|
72535
|
+
* rule saved before this field reads exactly as it did, with no migration.
|
|
72536
|
+
*
|
|
72537
|
+
* - `template` — the target's own title / body, the same `{{var}}` template
|
|
72538
|
+
* the rule's texts use. A field the target's kind does not deliver (#483,
|
|
72539
|
+
* `deliverableFields`) is never written by an editor and dropped at send.
|
|
72540
|
+
* - `schedule` — deliver to this target only inside these windows. A target
|
|
72541
|
+
* outside its window gets no outbox row and the skip is logged; the other
|
|
72542
|
+
* targets of the same fire still deliver.
|
|
72543
|
+
* - `priority` — this target's canonical ordinal (1..5). An editor offers the
|
|
72544
|
+
* kind's DECLARED levels (`caps.levels`), each with its own ordinal.
|
|
72545
|
+
* - `attachment` — which of the pictures the rule produced this target
|
|
72546
|
+
* receives: `none`, `image`, `clip` (video) or `gif`. It narrows, never adds:
|
|
72547
|
+
* the rule's media policy decides what exists (#487, operator 2026-11-10).
|
|
72548
|
+
* - `actions: false` — this target gets no action buttons.
|
|
72549
|
+
*
|
|
72550
|
+
* The same settings apply to EVERY delivery a rule makes — an event, a
|
|
72551
|
+
* summary, a timelapse, a calendar digest (D1032).
|
|
72552
|
+
*
|
|
72553
|
+
* The notifier's own declared knobs (D938 `deliveryParams`: sound, critical,
|
|
72554
|
+
* volume…) stay where they already live per target: the rule target's
|
|
72555
|
+
* `params`. One store per fact.
|
|
72556
|
+
*/
|
|
72557
|
+
/**
|
|
72558
|
+
* The longest title a rule (or one of its targets) may carry. Also the cut a
|
|
72559
|
+
* title-only target's body falls back to when its rendered title is empty
|
|
72560
|
+
* (D1030).
|
|
72561
|
+
*/
|
|
72562
|
+
var NC_TEMPLATE_TITLE_MAX_CHARS = 500;
|
|
72563
|
+
/** Which picture kind one target receives (#487). */
|
|
72564
|
+
var NcTargetAttachmentSchema = zod.z.enum([
|
|
72565
|
+
"none",
|
|
72566
|
+
"image",
|
|
72567
|
+
"clip",
|
|
72568
|
+
"gif"
|
|
72569
|
+
]);
|
|
72570
|
+
var NcTargetOverrideSchema = zod.z.object({
|
|
72571
|
+
template: zod.z.object({
|
|
72572
|
+
title: zod.z.string().max(500).optional(),
|
|
72573
|
+
body: zod.z.string().max(2e3).optional()
|
|
72574
|
+
}).optional(),
|
|
72575
|
+
schedule: NcScheduleSchema.optional(),
|
|
72576
|
+
priority: zod.z.number().int().min(1).max(5).optional(),
|
|
72577
|
+
attachment: NcTargetAttachmentSchema.optional(),
|
|
72578
|
+
/** `false` = no buttons for this target; `true` is the same as absent. */
|
|
72579
|
+
actions: zod.z.boolean().optional()
|
|
72580
|
+
});
|
|
72581
|
+
/** Per-target settings keyed by target id (#487). */
|
|
72582
|
+
var NcTargetOverridesSchema = zod.z.record(zod.z.string(), NcTargetOverrideSchema);
|
|
72583
|
+
/**
|
|
72138
72584
|
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
72139
72585
|
*
|
|
72140
72586
|
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
@@ -72447,6 +72893,13 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
72447
72893
|
* targets.
|
|
72448
72894
|
*/
|
|
72449
72895
|
targetUsers: zod.z.array(zod.z.string()).optional(),
|
|
72896
|
+
/**
|
|
72897
|
+
* Per-target settings keyed by target id (#487): texts, schedule, priority.
|
|
72898
|
+
* Absent (and an absent entry) = the rule's own values. A patch that omits
|
|
72899
|
+
* the key keeps the stored map; a patch that names it REPLACES it whole —
|
|
72900
|
+
* `{}` empties it.
|
|
72901
|
+
*/
|
|
72902
|
+
targetOverrides: NcTargetOverridesSchema.optional(),
|
|
72450
72903
|
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
72451
72904
|
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
72452
72905
|
media: NcMediaPolicySchema.default({}),
|
|
@@ -74945,57 +75398,27 @@ setOverlay: require_sleep.method(zod.z.object({
|
|
|
74945
75398
|
* fields into one overlay string (plugin catalog OSD Manager parity).
|
|
74946
75399
|
*/
|
|
74947
75400
|
/**
|
|
74948
|
-
*
|
|
74949
|
-
*
|
|
74950
|
-
|
|
74951
|
-
|
|
74952
|
-
|
|
74953
|
-
|
|
74954
|
-
|
|
74955
|
-
|
|
74956
|
-
|
|
74957
|
-
|
|
74958
|
-
|
|
74959
|
-
"value",
|
|
74960
|
-
"unit"
|
|
74961
|
-
]);
|
|
74962
|
-
/**
|
|
74963
|
-
* How the operator reached the leaf device. `deviceId` is ALWAYS the
|
|
74964
|
-
* OSD-supported leaf that is read; `containerId` is set when the pick
|
|
74965
|
-
* went through a container (gateway) first.
|
|
74966
|
-
*/
|
|
74967
|
-
var OsdTemplatePickSchema = zod.z.object({
|
|
74968
|
-
containerId: zod.z.number().int().optional(),
|
|
74969
|
-
deviceId: zod.z.number().int()
|
|
74970
|
-
});
|
|
74971
|
-
/**
|
|
74972
|
-
* One named binding inside a multi-device template: device path + unit
|
|
74973
|
-
* selection + precision. The parser expands `{alias}`, `{alias.value}`,
|
|
74974
|
-
* `{alias.unit}`, or `{alias.full}` from the same binding — there is no
|
|
74975
|
-
* per-binding format lock.
|
|
75401
|
+
* The text of a named template: a device template (D1021) —
|
|
75402
|
+
* `{{ camera.temperature | round(1) }}`, `{{ now | time('HH:mm') }}`,
|
|
75403
|
+
* `{% if camera.motion %}MOTION{% endif %}` — rendered by the ONE hub renderer
|
|
75404
|
+
* (`device-manager.renderDeviceTemplates`), never by this addon.
|
|
75405
|
+
*
|
|
75406
|
+
* Two names belong to the render rather than to a device:
|
|
75407
|
+
* - `now` is the clock; `time('HH:mm')` prints it in the server's zone.
|
|
75408
|
+
* - `camera` is the camera the overlay is on, so one template serves every
|
|
75409
|
+
* camera. `camera.lastPerson` and `camera.lastPlate` are the most recent
|
|
75410
|
+
* recognition persisted for it (empty text until there is one, with
|
|
75411
|
+
* `| default('')`).
|
|
74976
75412
|
*/
|
|
74977
|
-
var
|
|
74978
|
-
/** Token stem in the parser, e.g. `t` → `{t}` / `{t.value}`. Unique within the template. */
|
|
74979
|
-
alias: zod.z.string().min(1).max(32).regex(/^[A-Za-z][A-Za-z0-9_-]*$/, "alias must start with a letter"),
|
|
74980
|
-
pick: OsdTemplatePickSchema,
|
|
74981
|
-
capName: zod.z.string().min(1).max(64),
|
|
74982
|
-
valuePath: zod.z.string().min(1).max(64),
|
|
74983
|
-
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
74984
|
-
displayUnit: zod.z.string().max(16).optional(),
|
|
74985
|
-
maxDecimals: zod.z.number().int().min(0).max(4).default(1),
|
|
74986
|
-
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
74987
|
-
valueMap: zod.z.record(zod.z.string(), zod.z.string()).optional()
|
|
74988
|
-
});
|
|
75413
|
+
var OSD_TEMPLATE_TEXT_MAX = 1024;
|
|
74989
75414
|
/**
|
|
74990
|
-
* A named template:
|
|
74991
|
-
*
|
|
75415
|
+
* A named template: the unit of reuse. A slot points at one by id; editing it
|
|
75416
|
+
* changes every slot that points at it, on every camera.
|
|
74992
75417
|
*/
|
|
74993
75418
|
var OsdNamedTemplateSchema = zod.z.object({
|
|
74994
75419
|
id: zod.z.string().min(1).max(64),
|
|
74995
75420
|
name: zod.z.string().min(1).max(64),
|
|
74996
|
-
|
|
74997
|
-
/** Parser with alias placeholders, e.g. `{t.value} {t.unit} / {h}`. */
|
|
74998
|
-
parser: zod.z.string().max(256).default("")
|
|
75421
|
+
text: zod.z.string().max(OSD_TEMPLATE_TEXT_MAX).default("")
|
|
74999
75422
|
});
|
|
75000
75423
|
/** Where a slot's value comes from. */
|
|
75001
75424
|
var OsdSourceSchema = zod.z.discriminatedUnion("kind", [
|
|
@@ -75004,26 +75427,6 @@ var OsdSourceSchema = zod.z.discriminatedUnion("kind", [
|
|
|
75004
75427
|
kind: zod.z.literal("static"),
|
|
75005
75428
|
text: zod.z.string().max(64)
|
|
75006
75429
|
}),
|
|
75007
|
-
zod.z.object({
|
|
75008
|
-
kind: zod.z.literal("clock"),
|
|
75009
|
-
/** Token pattern: `YYYY MM DD HH mm ss`. Everything else is literal. */
|
|
75010
|
-
pattern: zod.z.string().min(1).max(32).default("HH:mm"),
|
|
75011
|
-
/** IANA zone. Omitted = the server's zone. */
|
|
75012
|
-
timezone: zod.z.string().min(1).max(64).optional()
|
|
75013
|
-
}),
|
|
75014
|
-
zod.z.object({
|
|
75015
|
-
kind: zod.z.literal("device-state"),
|
|
75016
|
-
deviceId: zod.z.number().int().optional(),
|
|
75017
|
-
capName: zod.z.string().min(1).max(64),
|
|
75018
|
-
/** Dot path inside the slice, e.g. `detected`, `value`, `mode`. */
|
|
75019
|
-
valuePath: zod.z.string().min(1).max(64),
|
|
75020
|
-
/** Convert TO this unit at render. Absent = no conversion. */
|
|
75021
|
-
displayUnit: zod.z.string().max(16).optional()
|
|
75022
|
-
}),
|
|
75023
|
-
zod.z.object({
|
|
75024
|
-
kind: zod.z.literal("latest-recognition"),
|
|
75025
|
-
recognition: zod.z.enum(["person", "plate"])
|
|
75026
|
-
}),
|
|
75027
75430
|
zod.z.object({
|
|
75028
75431
|
kind: zod.z.literal("template"),
|
|
75029
75432
|
templateId: zod.z.string().min(1).max(64)
|
|
@@ -75033,15 +75436,6 @@ var OsdSlotBindingSchema = zod.z.object({
|
|
|
75033
75436
|
/** Off = the manager stops driving this slot. It does NOT clear it. */
|
|
75034
75437
|
enabled: zod.z.boolean().default(true),
|
|
75035
75438
|
source: OsdSourceSchema,
|
|
75036
|
-
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
75037
|
-
template: zod.z.string().max(96).default("${value}"),
|
|
75038
|
-
/**
|
|
75039
|
-
* Decimal places for a numeric value. `0` yields an integer — the
|
|
75040
|
-
* documented workaround for firmwares that reject `.` in overlay text.
|
|
75041
|
-
*/
|
|
75042
|
-
maxDecimals: zod.z.number().int().min(0).max(4).default(1),
|
|
75043
|
-
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
75044
|
-
valueMap: zod.z.record(zod.z.string(), zod.z.string()).optional(),
|
|
75045
75439
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
75046
75440
|
schedule: NcScheduleSchema.optional(),
|
|
75047
75441
|
/**
|
|
@@ -75083,26 +75477,16 @@ var OsdRenderResultSchema = zod.z.object({
|
|
|
75083
75477
|
/** Why, whenever the outcome is not a plain write. Never silent. */
|
|
75084
75478
|
reason: zod.z.string().optional()
|
|
75085
75479
|
});
|
|
75086
|
-
var OsdSourceValueTypeEnum = zod.z.enum([
|
|
75087
|
-
"number",
|
|
75088
|
-
"boolean",
|
|
75089
|
-
"string",
|
|
75090
|
-
"enum"
|
|
75091
|
-
]);
|
|
75092
75480
|
/**
|
|
75093
|
-
*
|
|
75094
|
-
*
|
|
75095
|
-
*
|
|
75481
|
+
* A template rendered for one camera without being saved: what the editor
|
|
75482
|
+
* previews. `text` is what the overlay would carry; a refused render has a
|
|
75483
|
+
* `reason` and an empty text.
|
|
75096
75484
|
*/
|
|
75097
|
-
var
|
|
75098
|
-
|
|
75099
|
-
|
|
75100
|
-
|
|
75101
|
-
|
|
75102
|
-
label: zod.z.string(),
|
|
75103
|
-
valueType: OsdSourceValueTypeEnum,
|
|
75104
|
-
/** Present for `enum`; the editor offers these as `valueMap` keys. */
|
|
75105
|
-
enumValues: zod.z.array(zod.z.string()).readonly().optional()
|
|
75485
|
+
var OsdTemplatePreviewSchema = zod.z.object({
|
|
75486
|
+
ok: zod.z.boolean(),
|
|
75487
|
+
text: zod.z.string(),
|
|
75488
|
+
/** The refusal, or `ref: reason` per value that printed `—`. */
|
|
75489
|
+
notes: zod.z.array(zod.z.string())
|
|
75106
75490
|
});
|
|
75107
75491
|
var osdManagerCapability = {
|
|
75108
75492
|
name: "osd-manager",
|
|
@@ -75119,12 +75503,6 @@ var osdManagerCapability = {
|
|
|
75119
75503
|
slots: zod.z.array(OsdSlotViewSchema)
|
|
75120
75504
|
}), { auth: "admin" }),
|
|
75121
75505
|
/**
|
|
75122
|
-
* Every value bindable on this camera: its own state leaves first,
|
|
75123
|
-
* then every other device's. Derived from the cap definitions, so it
|
|
75124
|
-
* cannot drift from what the resolver can actually read.
|
|
75125
|
-
*/
|
|
75126
|
-
getSourceCatalog: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int() }), zod.z.object({ sources: zod.z.array(OsdSourceOptionSchema) }), { auth: "admin" }),
|
|
75127
|
-
/**
|
|
75128
75506
|
* The condition ids this gate can answer, alongside the FULL notification
|
|
75129
75507
|
* condition catalog. Both, in one call, on purpose: an editor that showed
|
|
75130
75508
|
* the catalog without the supported set would offer conditions that
|
|
@@ -75199,6 +75577,18 @@ var osdManagerCapability = {
|
|
|
75199
75577
|
kind: "mutation",
|
|
75200
75578
|
auth: "admin"
|
|
75201
75579
|
}),
|
|
75580
|
+
/**
|
|
75581
|
+
* Render a template text for a camera without saving it, with the same
|
|
75582
|
+
* context a slot gets (`camera`, `now`, the recognitions). The editor's
|
|
75583
|
+
* preview; no side effects.
|
|
75584
|
+
*/
|
|
75585
|
+
previewTemplate: require_sleep.method(zod.z.object({
|
|
75586
|
+
deviceId: zod.z.number().int(),
|
|
75587
|
+
text: zod.z.string().max(OSD_TEMPLATE_TEXT_MAX)
|
|
75588
|
+
}), OsdTemplatePreviewSchema, {
|
|
75589
|
+
kind: "mutation",
|
|
75590
|
+
auth: "admin"
|
|
75591
|
+
}),
|
|
75202
75592
|
/** Force a render pass over one camera now, instead of at the next tick. */
|
|
75203
75593
|
renderDevice: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int() }), zod.z.object({ results: zod.z.array(OsdRenderResultSchema) }), {
|
|
75204
75594
|
kind: "mutation",
|
|
@@ -75214,7 +75604,7 @@ var osdManagerCapability = {
|
|
|
75214
75604
|
kind: "mutation",
|
|
75215
75605
|
auth: "admin"
|
|
75216
75606
|
}),
|
|
75217
|
-
/** Drop a named template.
|
|
75607
|
+
/** Drop a named template. Slots that still point at it render unreadable and keep their last text. */
|
|
75218
75608
|
deleteTemplate: require_sleep.method(zod.z.object({ templateId: zod.z.string().min(1).max(64) }), zod.z.object({ success: zod.z.literal(true) }), {
|
|
75219
75609
|
kind: "mutation",
|
|
75220
75610
|
auth: "admin"
|
|
@@ -78688,18 +79078,18 @@ var powerSourceCapability = {
|
|
|
78688
79078
|
mode: "singleton",
|
|
78689
79079
|
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
78690
79080
|
methods: {
|
|
78691
|
-
getStatus: require_sleep.systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "
|
|
79081
|
+
getStatus: require_sleep.systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "protected" }),
|
|
78692
79082
|
powerOn: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
78693
79083
|
kind: "mutation",
|
|
78694
|
-
auth: "
|
|
79084
|
+
auth: "protected"
|
|
78695
79085
|
}),
|
|
78696
79086
|
powerOff: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
78697
79087
|
kind: "mutation",
|
|
78698
|
-
auth: "
|
|
79088
|
+
auth: "protected"
|
|
78699
79089
|
}),
|
|
78700
79090
|
forceRestart: require_sleep.systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
78701
79091
|
kind: "mutation",
|
|
78702
|
-
auth: "
|
|
79092
|
+
auth: "protected"
|
|
78703
79093
|
})
|
|
78704
79094
|
},
|
|
78705
79095
|
runtimeState: PowerSourceStateSchema,
|
|
@@ -88832,7 +89222,7 @@ var valveCapability = {
|
|
|
88832
89222
|
kind: "mutation",
|
|
88833
89223
|
auth: "protected"
|
|
88834
89224
|
}),
|
|
88835
|
-
setPosition: require_sleep.
|
|
89225
|
+
setPosition: require_sleep.optionalMethod(zod.z.object({
|
|
88836
89226
|
deviceId: zod.z.number().int().nonnegative(),
|
|
88837
89227
|
position: zod.z.number().min(0).max(100)
|
|
88838
89228
|
}), zod.z.void(), {
|
|
@@ -90467,6 +90857,7 @@ var CAPABILITY_NAMES = {
|
|
|
90467
90857
|
cameraStreams: "camera-streams",
|
|
90468
90858
|
carbonMonoxide: "carbon-monoxide",
|
|
90469
90859
|
climateControl: "climate-control",
|
|
90860
|
+
clusterUpdate: "cluster-update",
|
|
90470
90861
|
color: "color",
|
|
90471
90862
|
composer: "composer",
|
|
90472
90863
|
connectivity: "connectivity",
|
|
@@ -90783,6 +91174,10 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
90783
91174
|
key: "climateControl",
|
|
90784
91175
|
name: "climate-control"
|
|
90785
91176
|
},
|
|
91177
|
+
{
|
|
91178
|
+
key: "clusterUpdate",
|
|
91179
|
+
name: "cluster-update"
|
|
91180
|
+
},
|
|
90786
91181
|
{
|
|
90787
91182
|
key: "color",
|
|
90788
91183
|
name: "color"
|
|
@@ -91506,6 +91901,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
91506
91901
|
cameraStreamsCapability,
|
|
91507
91902
|
carbonMonoxideCapability,
|
|
91508
91903
|
climateControlCapability,
|
|
91904
|
+
clusterUpdateCapability,
|
|
91509
91905
|
colorCapability,
|
|
91510
91906
|
composerCapability,
|
|
91511
91907
|
connectivityCapability,
|
|
@@ -91786,7 +92182,7 @@ function normalise(kind, json) {
|
|
|
91786
92182
|
return parsed.success ? parsed.data : expanded;
|
|
91787
92183
|
}
|
|
91788
92184
|
case "composition": {
|
|
91789
|
-
const parsed =
|
|
92185
|
+
const parsed = require_implemented_methods.CompositionSchema.safeParse(expanded);
|
|
91790
92186
|
return parsed.success ? parsed.data : expanded;
|
|
91791
92187
|
}
|
|
91792
92188
|
}
|
|
@@ -92896,7 +93292,7 @@ function validateScheduler(site, json) {
|
|
|
92896
93292
|
};
|
|
92897
93293
|
}
|
|
92898
93294
|
function validateCompositionDraft(site, json) {
|
|
92899
|
-
const parsed =
|
|
93295
|
+
const parsed = require_implemented_methods.CompositionSchema.safeParse(json);
|
|
92900
93296
|
if (!parsed.success) return {
|
|
92901
93297
|
ok: false,
|
|
92902
93298
|
issues: zodIssues(parsed.error)
|
|
@@ -95404,7 +95800,7 @@ function runDwell(segments, to, threshold, startMs, stopMs) {
|
|
|
95404
95800
|
let openAt = null;
|
|
95405
95801
|
const evaluate = (active, at, timer) => {
|
|
95406
95802
|
deadline = null;
|
|
95407
|
-
const answer =
|
|
95803
|
+
const answer = require_implemented_methods.evaluateDwell(active, startMs, stopMs, 2, call, at, timer ? timerHooks : hooks);
|
|
95408
95804
|
if (answer === true && openAt === null) openAt = at;
|
|
95409
95805
|
if (answer !== true && openAt !== null) {
|
|
95410
95806
|
intervals.push({
|
|
@@ -96243,7 +96639,7 @@ function fieldsFeatureOf(composition, cap) {
|
|
|
96243
96639
|
/** The device switch the composed `switch.on` reads, when it is one plain `from` of a switch. */
|
|
96244
96640
|
function actuatorSwitchRead(composition) {
|
|
96245
96641
|
const feature = fieldsFeatureOf(composition, SWITCH_CAP);
|
|
96246
|
-
if (feature === null || !
|
|
96642
|
+
if (feature === null || !require_implemented_methods.compositionFeatureEnabled(feature)) return null;
|
|
96247
96643
|
const field = feature.fields[ON_FIELD];
|
|
96248
96644
|
if (field === void 0 || field.kind !== "from" || field.cap !== SWITCH_CAP) return null;
|
|
96249
96645
|
return {
|
|
@@ -96254,7 +96650,7 @@ function actuatorSwitchRead(composition) {
|
|
|
96254
96650
|
}
|
|
96255
96651
|
function hasSupplyRelation(composition) {
|
|
96256
96652
|
const feature = fieldsFeatureOf(composition, "power-source");
|
|
96257
|
-
return feature !== null &&
|
|
96653
|
+
return feature !== null && require_implemented_methods.compositionFeatureEnabled(feature) && feature.fields["switchOn"] !== void 0;
|
|
96258
96654
|
}
|
|
96259
96655
|
/**
|
|
96260
96656
|
* "Do not follow the switch": a DISABLED `running-state` feature with no field.
|
|
@@ -96314,7 +96710,7 @@ function followSwitchRunningFeature(composition, host) {
|
|
|
96314
96710
|
*/
|
|
96315
96711
|
function withDefaultRunning(composition, blockId) {
|
|
96316
96712
|
if (hasAuthoredRunning(composition) || !actuatorSwitchDrivesRunning(composition)) return composition;
|
|
96317
|
-
const feature = followSwitchRunningFeature(composition,
|
|
96713
|
+
const feature = followSwitchRunningFeature(composition, require_implemented_methods.composedDeviceRef(blockId));
|
|
96318
96714
|
return feature === null ? composition : {
|
|
96319
96715
|
...composition,
|
|
96320
96716
|
features: [...composition.features, feature]
|
|
@@ -96374,7 +96770,7 @@ var COMPOSITION_LINK_KINDS = ["lock-door-sensor", "power-source"];
|
|
|
96374
96770
|
* source) behind an early return.
|
|
96375
96771
|
*/
|
|
96376
96772
|
function describeRead(read) {
|
|
96377
|
-
return `${
|
|
96773
|
+
return `${require_implemented_methods.compositionSourceKey(read.source)} ${read.cap}.${read.fieldPath}`;
|
|
96378
96774
|
}
|
|
96379
96775
|
function isConfirmed(reading) {
|
|
96380
96776
|
return reading.fatal || reading.confirmed === true;
|
|
@@ -96428,7 +96824,7 @@ function expressionOutcome(source, read, now, stateful) {
|
|
|
96428
96824
|
if (unavailable !== null) {
|
|
96429
96825
|
if (stateful !== void 0 && stateful.currentOutput !== void 0 && expressionContainsBuiltinCall(source.expr, "count")) return {
|
|
96430
96826
|
state: "stale",
|
|
96431
|
-
value:
|
|
96827
|
+
value: require_implemented_methods.evaluateCount(null, {
|
|
96432
96828
|
kind: "count",
|
|
96433
96829
|
highWater: null,
|
|
96434
96830
|
primed: false
|
|
@@ -96444,9 +96840,9 @@ function expressionOutcome(source, read, now, stateful) {
|
|
|
96444
96840
|
...stateful?.timerDriven === true ? { timerDriven: true } : {},
|
|
96445
96841
|
convert: (value, from, to) => require_convert.tryConvertUnit(value, normalizeUnit(from) ?? from, normalizeUnit(to) ?? to) ?? null
|
|
96446
96842
|
};
|
|
96447
|
-
const result =
|
|
96843
|
+
const result = require_implemented_methods.evaluateExpressionSource(source.expr, values, now, {
|
|
96448
96844
|
hooks,
|
|
96449
|
-
...stateful === void 0 ? {} : { invokeStateful: (invocation) =>
|
|
96845
|
+
...stateful === void 0 ? {} : { invokeStateful: (invocation) => require_implemented_methods.evaluateStatefulExpressionCall(stateful.callPathPrefix === void 0 ? invocation : {
|
|
96450
96846
|
...invocation,
|
|
96451
96847
|
path: `${stateful.callPathPrefix}@${invocation.path}`
|
|
96452
96848
|
}, stateful.expressionMemory, {
|
|
@@ -96576,7 +96972,7 @@ function roomCompositionExample(input) {
|
|
|
96576
96972
|
const d = named("d", input.motionSources, "motion", "detected");
|
|
96577
96973
|
const m = named("m", input.motionSources, "motion", "lastDetectedAt");
|
|
96578
96974
|
const windows = Object.keys(m).map((name) => `within(${name}, ${input.occupancyWindowMs})`);
|
|
96579
|
-
return
|
|
96975
|
+
return require_implemented_methods.CompositionSchema.parse({
|
|
96580
96976
|
target: {
|
|
96581
96977
|
kind: "new",
|
|
96582
96978
|
type: require_composed_stable_id.DeviceType.Sensor,
|
|
@@ -96657,7 +97053,7 @@ function feederExampleSources(brokerId) {
|
|
|
96657
97053
|
}
|
|
96658
97054
|
function feederCustomizationExample(sources) {
|
|
96659
97055
|
const days = { d: from$1(sources.desiccantDays, "enum-sensor", "value") };
|
|
96660
|
-
return
|
|
97056
|
+
return require_implemented_methods.CompositionSchema.parse({
|
|
96661
97057
|
target: {
|
|
96662
97058
|
kind: "existing",
|
|
96663
97059
|
device: sources.feeder
|
|
@@ -96781,13 +97177,13 @@ function powerSourceLinkOfComposition(composition, blockId) {
|
|
|
96781
97177
|
if (composition === null) return null;
|
|
96782
97178
|
let device;
|
|
96783
97179
|
if (composition.target.kind === "existing") device = composition.target.device;
|
|
96784
|
-
else if (blockId !== void 0) device =
|
|
97180
|
+
else if (blockId !== void 0) device = require_implemented_methods.composedDeviceRef(blockId);
|
|
96785
97181
|
else return null;
|
|
96786
97182
|
const feature = composition.features.find((f) => f.cap === "power-source");
|
|
96787
97183
|
if (feature === void 0 || feature.kind !== "fields" || feature.enabled === false) return null;
|
|
96788
97184
|
const field = feature.fields["switchOn"];
|
|
96789
97185
|
if (field === void 0) return null;
|
|
96790
|
-
const read =
|
|
97186
|
+
const read = require_implemented_methods.fieldReads(field).find((r) => r.cap === "switch");
|
|
96791
97187
|
if (read === void 0) return null;
|
|
96792
97188
|
return {
|
|
96793
97189
|
device,
|
|
@@ -96804,9 +97200,9 @@ function powerSourceLinkOfComposition(composition, blockId) {
|
|
|
96804
97200
|
*/
|
|
96805
97201
|
/** Source caps whose active boolean may be inverted: catalogue minus switch
|
|
96806
97202
|
* (commands) and motion (event stream, D672). */
|
|
96807
|
-
var INVERTIBLE_CAPS =
|
|
97203
|
+
var INVERTIBLE_CAPS = require_implemented_methods.SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
96808
97204
|
function invertPresetFeature(input) {
|
|
96809
|
-
const field =
|
|
97205
|
+
const field = require_implemented_methods.SOURCE_CAP_ACTIVE_FIELD[input.cap];
|
|
96810
97206
|
if (field === void 0 || !INVERTIBLE_CAPS.includes(input.cap)) return null;
|
|
96811
97207
|
const source = {
|
|
96812
97208
|
kind: "expression",
|
|
@@ -97003,7 +97399,7 @@ function pumpCycleFeature(cycle) {
|
|
|
97003
97399
|
};
|
|
97004
97400
|
}
|
|
97005
97401
|
function petFountainFromEntitiesComposition(sources) {
|
|
97006
|
-
return
|
|
97402
|
+
return require_implemented_methods.CompositionSchema.parse({
|
|
97007
97403
|
target: {
|
|
97008
97404
|
kind: "new",
|
|
97009
97405
|
type: require_composed_stable_id.DeviceType.PetFountain
|
|
@@ -97843,7 +98239,7 @@ function catalogTarget$1(cap, targetId) {
|
|
|
97843
98239
|
return entry.targets.find((target) => target.id === targetId) ?? null;
|
|
97844
98240
|
}
|
|
97845
98241
|
function compileItem(target, item) {
|
|
97846
|
-
if (!
|
|
98242
|
+
if (!require_implemented_methods.COMPOSITION_ITEM_KEY_RE.test(item.draft.key) || item.draft.label.trim() === "") return fail("key");
|
|
97847
98243
|
const field = (target.fields ?? []).find((entry) => entry.path === item.draft.fieldPath);
|
|
97848
98244
|
if (field === void 0) return fail("field");
|
|
97849
98245
|
const source = sourceSpec(field, item);
|
|
@@ -98447,7 +98843,7 @@ function setFormulaExpr(model, cap, fieldPath, expr) {
|
|
|
98447
98843
|
//#endregion
|
|
98448
98844
|
//#region src/composition/cards/formula-problem.ts
|
|
98449
98845
|
function formulaProblem(expr, bindings) {
|
|
98450
|
-
return
|
|
98846
|
+
return require_implemented_methods.validateExpressionSource({
|
|
98451
98847
|
expr,
|
|
98452
98848
|
bindings
|
|
98453
98849
|
});
|
|
@@ -100493,9 +100889,11 @@ function isBatteryPresenceFault(presence) {
|
|
|
100493
100889
|
* priority-in-sync.ts` fails the build when either drifts — the comment that
|
|
100494
100890
|
* used to ask for this could not.
|
|
100495
100891
|
*
|
|
100496
|
-
* The rule has
|
|
100497
|
-
* wins outright; else
|
|
100498
|
-
*
|
|
100892
|
+
* The rule has four steps and the ORDER matters: an operator's explicit pick
|
|
100893
|
+
* wins outright; else the container's own declaration, an ordered list of
|
|
100894
|
+
* child keys its provider stamped at create
|
|
100895
|
+
* ({@link ContainerPrimaryChildPreference}); else a declaration on the device
|
|
100896
|
+
* type ({@link CONTAINER_PRIMARY_CHILD_RULES}); else role, namesake, then type
|
|
100499
100897
|
* priority. The pick is keyed on the child's re-sync-stable `entityId`, not
|
|
100500
100898
|
* its numeric id, so it survives a re-sync that reallocates ids.
|
|
100501
100899
|
*/
|
|
@@ -100508,6 +100906,25 @@ var CONTAINER_PRIMARY_CHILD_RULES = [{
|
|
|
100508
100906
|
deviceType: require_composed_stable_id.DeviceType.HeatPump,
|
|
100509
100907
|
primary: "self"
|
|
100510
100908
|
}];
|
|
100909
|
+
/** The declaration of a container read from its meta, or undefined when it declared none. */
|
|
100910
|
+
function primaryChildPreferenceOf(container) {
|
|
100911
|
+
const keys = container.primaryChildPreference;
|
|
100912
|
+
if (container.stableId === void 0 || keys === void 0 || keys === null) return void 0;
|
|
100913
|
+
if (keys.length === 0) return void 0;
|
|
100914
|
+
return {
|
|
100915
|
+
parentStableId: container.stableId,
|
|
100916
|
+
childKeys: keys
|
|
100917
|
+
};
|
|
100918
|
+
}
|
|
100919
|
+
/** The first declared child that exists, or undefined when none does. */
|
|
100920
|
+
function applyPrimaryChildPreference(preference, children) {
|
|
100921
|
+
if (preference === void 0) return void 0;
|
|
100922
|
+
for (const key of preference.childKeys) {
|
|
100923
|
+
const expected = `${preference.parentStableId}-${key}`;
|
|
100924
|
+
const match = children.find((child) => child.stableId === expected);
|
|
100925
|
+
if (match !== void 0) return match;
|
|
100926
|
+
}
|
|
100927
|
+
}
|
|
100511
100928
|
/**
|
|
100512
100929
|
* The type declaration, before the heuristic. `fall-through` means the
|
|
100513
100930
|
* heuristic still decides: the type declared nothing, or it named a child
|
|
@@ -100615,7 +101032,8 @@ function rank(type) {
|
|
|
100615
101032
|
}
|
|
100616
101033
|
/**
|
|
100617
101034
|
* The child a container stands for: the operator's pick when it still exists,
|
|
100618
|
-
* else the
|
|
101035
|
+
* else the container's declared preference, else the device type's
|
|
101036
|
+
* declaration, else the highest-priority type. `null`
|
|
100619
101037
|
* for a childless container, and for a type that stands for itself — a caller
|
|
100620
101038
|
* must decide what "no child" means for it, rather than being handed a child
|
|
100621
101039
|
* that is not the device.
|
|
@@ -100647,11 +101065,13 @@ function sameName(childName, containerName) {
|
|
|
100647
101065
|
const flatten = (v) => v.toLowerCase().replace(/[-_\s]+/g, " ").trim();
|
|
100648
101066
|
return flatten(childName) === flatten(containerName);
|
|
100649
101067
|
}
|
|
100650
|
-
function resolveContainerPrimaryChild(children, overrideEntityId, containerName, containerType) {
|
|
101068
|
+
function resolveContainerPrimaryChild(children, overrideEntityId, containerName, containerType, preference) {
|
|
100651
101069
|
if (overrideEntityId !== void 0 && overrideEntityId !== null) {
|
|
100652
101070
|
const picked = children.find((c) => c.stableId === overrideEntityId) ?? children.find((c) => c.entityId !== void 0 && c.entityId === overrideEntityId);
|
|
100653
101071
|
if (picked !== void 0) return picked;
|
|
100654
101072
|
}
|
|
101073
|
+
const preferred = applyPrimaryChildPreference(preference, children);
|
|
101074
|
+
if (preferred !== void 0) return preferred;
|
|
100655
101075
|
const declared = applyPrimaryChildRule(CONTAINER_PRIMARY_CHILD_RULES.find((entry) => entry.deviceType === containerType), children);
|
|
100656
101076
|
if (declared.kind === "none") return null;
|
|
100657
101077
|
if (declared.kind === "child") return declared.child;
|
|
@@ -100704,7 +101124,7 @@ function expandContainer(id, byId, byParent, visited, out) {
|
|
|
100704
101124
|
type: c.type,
|
|
100705
101125
|
...c.role !== void 0 && c.role !== null ? { role: c.role } : {},
|
|
100706
101126
|
...c.name !== void 0 ? { name: c.name } : {}
|
|
100707
|
-
})),
|
|
101127
|
+
})), candidate.primaryChildEntityId, candidate.name, candidate.type, primaryChildPreferenceOf(candidate));
|
|
100708
101128
|
if (primary !== null) expandContainer(primary.id, byId, byParent, nextVisited, out);
|
|
100709
101129
|
}
|
|
100710
101130
|
/**
|
|
@@ -105239,7 +105659,10 @@ function buildHeroModel(input) {
|
|
|
105239
105659
|
};
|
|
105240
105660
|
const allRows = fragments.flatMap((f) => f.rows ?? []);
|
|
105241
105661
|
const rows = resolveHeroLayout(device.type).rows.flatMap((id) => {
|
|
105242
|
-
return allRows.filter((r) => r.id === id)
|
|
105662
|
+
return allRows.filter((r) => r.id === id).map((r) => HERO_SCENE_ROW_IDS.has(r.id) ? {
|
|
105663
|
+
...r,
|
|
105664
|
+
placement: "scene"
|
|
105665
|
+
} : r);
|
|
105243
105666
|
});
|
|
105244
105667
|
const ownPower = resolveOwnPower(fragments.flatMap((f) => f.ownPower === void 0 ? [] : [f.ownPower]));
|
|
105245
105668
|
const timedRun = fragments.find((f) => f.timedRun !== void 0)?.timedRun ?? null;
|
|
@@ -106643,6 +107066,27 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
106643
107066
|
access: "create",
|
|
106644
107067
|
role: "viewer"
|
|
106645
107068
|
},
|
|
107069
|
+
"clusterUpdate.getClusterUpdateJob": {
|
|
107070
|
+
capName: "cluster-update",
|
|
107071
|
+
capScope: "system",
|
|
107072
|
+
addonId: null,
|
|
107073
|
+
access: "view",
|
|
107074
|
+
role: "admin"
|
|
107075
|
+
},
|
|
107076
|
+
"clusterUpdate.previewClusterUpdate": {
|
|
107077
|
+
capName: "cluster-update",
|
|
107078
|
+
capScope: "system",
|
|
107079
|
+
addonId: null,
|
|
107080
|
+
access: "view",
|
|
107081
|
+
role: "admin"
|
|
107082
|
+
},
|
|
107083
|
+
"clusterUpdate.startClusterUpdate": {
|
|
107084
|
+
capName: "cluster-update",
|
|
107085
|
+
capScope: "system",
|
|
107086
|
+
addonId: null,
|
|
107087
|
+
access: "create",
|
|
107088
|
+
role: "admin"
|
|
107089
|
+
},
|
|
106646
107090
|
"color.getStatus": {
|
|
106647
107091
|
capName: "color",
|
|
106648
107092
|
capScope: "device",
|
|
@@ -108015,6 +108459,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
108015
108459
|
access: "create",
|
|
108016
108460
|
role: "admin"
|
|
108017
108461
|
},
|
|
108462
|
+
"deviceManager.search": {
|
|
108463
|
+
capName: "device-manager",
|
|
108464
|
+
capScope: "system",
|
|
108465
|
+
addonId: null,
|
|
108466
|
+
access: "view",
|
|
108467
|
+
role: "viewer"
|
|
108468
|
+
},
|
|
108018
108469
|
"deviceManager.setAlias": {
|
|
108019
108470
|
capName: "device-manager",
|
|
108020
108471
|
capScope: "system",
|
|
@@ -108106,6 +108557,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
108106
108557
|
access: "create",
|
|
108107
108558
|
role: "admin"
|
|
108108
108559
|
},
|
|
108560
|
+
"deviceManager.setPrimaryChildPreference": {
|
|
108561
|
+
capName: "device-manager",
|
|
108562
|
+
capScope: "system",
|
|
108563
|
+
addonId: null,
|
|
108564
|
+
access: "create",
|
|
108565
|
+
role: "admin"
|
|
108566
|
+
},
|
|
108109
108567
|
"deviceManager.setRole": {
|
|
108110
108568
|
capName: "device-manager",
|
|
108111
108569
|
capScope: "system",
|
|
@@ -110787,13 +111245,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110787
111245
|
access: "create",
|
|
110788
111246
|
role: "admin"
|
|
110789
111247
|
},
|
|
110790
|
-
"notificationRules.createSequence": {
|
|
110791
|
-
capName: "notification-rules",
|
|
110792
|
-
capScope: "system",
|
|
110793
|
-
addonId: null,
|
|
110794
|
-
access: "create",
|
|
110795
|
-
role: "admin"
|
|
110796
|
-
},
|
|
110797
111248
|
"notificationRules.createSnooze": {
|
|
110798
111249
|
capName: "notification-rules",
|
|
110799
111250
|
capScope: "system",
|
|
@@ -110815,13 +111266,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110815
111266
|
access: "delete",
|
|
110816
111267
|
role: "admin"
|
|
110817
111268
|
},
|
|
110818
|
-
"notificationRules.deleteSequence": {
|
|
110819
|
-
capName: "notification-rules",
|
|
110820
|
-
capScope: "system",
|
|
110821
|
-
addonId: null,
|
|
110822
|
-
access: "delete",
|
|
110823
|
-
role: "admin"
|
|
110824
|
-
},
|
|
110825
111269
|
"notificationRules.getAlarmConfig": {
|
|
110826
111270
|
capName: "notification-rules",
|
|
110827
111271
|
capScope: "system",
|
|
@@ -110871,13 +111315,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110871
111315
|
access: "view",
|
|
110872
111316
|
role: "admin"
|
|
110873
111317
|
},
|
|
110874
|
-
"notificationRules.getSequence": {
|
|
110875
|
-
capName: "notification-rules",
|
|
110876
|
-
capScope: "system",
|
|
110877
|
-
addonId: null,
|
|
110878
|
-
access: "view",
|
|
110879
|
-
role: "admin"
|
|
110880
|
-
},
|
|
110881
111318
|
"notificationRules.getTemplateCatalog": {
|
|
110882
111319
|
capName: "notification-rules",
|
|
110883
111320
|
capScope: "system",
|
|
@@ -110899,13 +111336,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110899
111336
|
access: "view",
|
|
110900
111337
|
role: "admin"
|
|
110901
111338
|
},
|
|
110902
|
-
"notificationRules.listSequences": {
|
|
110903
|
-
capName: "notification-rules",
|
|
110904
|
-
capScope: "system",
|
|
110905
|
-
addonId: null,
|
|
110906
|
-
access: "view",
|
|
110907
|
-
role: "admin"
|
|
110908
|
-
},
|
|
110909
111339
|
"notificationRules.listSnoozes": {
|
|
110910
111340
|
capName: "notification-rules",
|
|
110911
111341
|
capScope: "system",
|
|
@@ -110976,13 +111406,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110976
111406
|
access: "create",
|
|
110977
111407
|
role: "admin"
|
|
110978
111408
|
},
|
|
110979
|
-
"notificationRules.updateSequence": {
|
|
110980
|
-
capName: "notification-rules",
|
|
110981
|
-
capScope: "system",
|
|
110982
|
-
addonId: null,
|
|
110983
|
-
access: "create",
|
|
110984
|
-
role: "admin"
|
|
110985
|
-
},
|
|
110986
111409
|
"notifier.cancel": {
|
|
110987
111410
|
capName: "notifier",
|
|
110988
111411
|
capScope: "device",
|
|
@@ -111067,21 +111490,21 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
111067
111490
|
access: "view",
|
|
111068
111491
|
role: "admin"
|
|
111069
111492
|
},
|
|
111070
|
-
"osdManager.
|
|
111493
|
+
"osdManager.listTemplates": {
|
|
111071
111494
|
capName: "osd-manager",
|
|
111072
111495
|
capScope: "system",
|
|
111073
111496
|
addonId: null,
|
|
111074
111497
|
access: "view",
|
|
111075
111498
|
role: "admin"
|
|
111076
111499
|
},
|
|
111077
|
-
"osdManager.
|
|
111500
|
+
"osdManager.previewSlot": {
|
|
111078
111501
|
capName: "osd-manager",
|
|
111079
111502
|
capScope: "system",
|
|
111080
111503
|
addonId: null,
|
|
111081
|
-
access: "
|
|
111504
|
+
access: "create",
|
|
111082
111505
|
role: "admin"
|
|
111083
111506
|
},
|
|
111084
|
-
"osdManager.
|
|
111507
|
+
"osdManager.previewTemplate": {
|
|
111085
111508
|
capName: "osd-manager",
|
|
111086
111509
|
capScope: "system",
|
|
111087
111510
|
addonId: null,
|
|
@@ -112780,28 +113203,28 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
112780
113203
|
capScope: "device",
|
|
112781
113204
|
addonId: null,
|
|
112782
113205
|
access: "create",
|
|
112783
|
-
role: "
|
|
113206
|
+
role: "viewer"
|
|
112784
113207
|
},
|
|
112785
113208
|
"powerSource.getStatus": {
|
|
112786
113209
|
capName: "power-source",
|
|
112787
113210
|
capScope: "device",
|
|
112788
113211
|
addonId: null,
|
|
112789
113212
|
access: "view",
|
|
112790
|
-
role: "
|
|
113213
|
+
role: "viewer"
|
|
112791
113214
|
},
|
|
112792
113215
|
"powerSource.powerOff": {
|
|
112793
113216
|
capName: "power-source",
|
|
112794
113217
|
capScope: "device",
|
|
112795
113218
|
addonId: null,
|
|
112796
113219
|
access: "create",
|
|
112797
|
-
role: "
|
|
113220
|
+
role: "viewer"
|
|
112798
113221
|
},
|
|
112799
113222
|
"powerSource.powerOn": {
|
|
112800
113223
|
capName: "power-source",
|
|
112801
113224
|
capScope: "device",
|
|
112802
113225
|
addonId: null,
|
|
112803
113226
|
access: "create",
|
|
112804
|
-
role: "
|
|
113227
|
+
role: "viewer"
|
|
112805
113228
|
},
|
|
112806
113229
|
"presence.getStatus": {
|
|
112807
113230
|
capName: "presence",
|
|
@@ -115866,6 +116289,7 @@ var KNOWN_CAP_NAMES = [
|
|
|
115866
116289
|
"camera-streams",
|
|
115867
116290
|
"carbon-monoxide",
|
|
115868
116291
|
"climate-control",
|
|
116292
|
+
"cluster-update",
|
|
115869
116293
|
"color",
|
|
115870
116294
|
"composer",
|
|
115871
116295
|
"connectivity",
|
|
@@ -116165,6 +116589,7 @@ var SYSTEM_CAP_NAMES = [
|
|
|
116165
116589
|
"broker",
|
|
116166
116590
|
"calendar-source",
|
|
116167
116591
|
"calendars",
|
|
116592
|
+
"cluster-update",
|
|
116168
116593
|
"composer",
|
|
116169
116594
|
"core-blocks",
|
|
116170
116595
|
"custom-model-registry",
|
|
@@ -116801,6 +117226,182 @@ function resolveDeviceProfile(features) {
|
|
|
116801
117226
|
return null;
|
|
116802
117227
|
}
|
|
116803
117228
|
//#endregion
|
|
117229
|
+
//#region src/device/device-feature-requirements.ts
|
|
117230
|
+
function bound(cap, methods = [], authority = "reported") {
|
|
117231
|
+
return {
|
|
117232
|
+
kind: "cap",
|
|
117233
|
+
cap,
|
|
117234
|
+
methods,
|
|
117235
|
+
authority
|
|
117236
|
+
};
|
|
117237
|
+
}
|
|
117238
|
+
function derived(cap, methods = []) {
|
|
117239
|
+
return bound(cap, methods, "derived");
|
|
117240
|
+
}
|
|
117241
|
+
function reported(reason) {
|
|
117242
|
+
return {
|
|
117243
|
+
kind: "reported",
|
|
117244
|
+
reason
|
|
117245
|
+
};
|
|
117246
|
+
}
|
|
117247
|
+
var SLEEP_PENDING = "splits into a sleeping cap in a later phase of #459";
|
|
117248
|
+
var CAP_PENDING = "becomes a cap or is dropped in a later phase of #459";
|
|
117249
|
+
/** Exhaustive: a new `DeviceFeature` without a row does not compile. */
|
|
117250
|
+
var DEVICE_FEATURE_REQUIREMENTS = {
|
|
117251
|
+
[require_composed_stable_id.DeviceFeature.BatteryOperated]: reported(SLEEP_PENDING),
|
|
117252
|
+
[require_composed_stable_id.DeviceFeature.Rebootable]: derived("reboot", ["reboot"]),
|
|
117253
|
+
[require_composed_stable_id.DeviceFeature.Resyncable]: reported(CAP_PENDING),
|
|
117254
|
+
[require_composed_stable_id.DeviceFeature.NativeSnapshot]: reported(CAP_PENDING),
|
|
117255
|
+
[require_composed_stable_id.DeviceFeature.DoorbellButton]: derived("doorbell"),
|
|
117256
|
+
[require_composed_stable_id.DeviceFeature.TwoWayAudio]: derived("intercom", [
|
|
117257
|
+
"startTalkSession",
|
|
117258
|
+
"pushTalkAudio",
|
|
117259
|
+
"endTalkSession"
|
|
117260
|
+
]),
|
|
117261
|
+
[require_composed_stable_id.DeviceFeature.PanTiltZoom]: derived("ptz"),
|
|
117262
|
+
[require_composed_stable_id.DeviceFeature.PtzAutotrack]: derived("ptz-autotrack"),
|
|
117263
|
+
[require_composed_stable_id.DeviceFeature.MotionTrigger]: derived("motion-trigger", ["setMotionTrigger"]),
|
|
117264
|
+
[require_composed_stable_id.DeviceFeature.TimedRun]: derived("timed-run", ["runFor"]),
|
|
117265
|
+
[require_composed_stable_id.DeviceFeature.Switch]: bound("switch", ["setState"]),
|
|
117266
|
+
[require_composed_stable_id.DeviceFeature.LightColorRgb]: reported(CAP_PENDING),
|
|
117267
|
+
[require_composed_stable_id.DeviceFeature.LightColorHsv]: reported(CAP_PENDING),
|
|
117268
|
+
[require_composed_stable_id.DeviceFeature.LightColorMired]: reported(CAP_PENDING),
|
|
117269
|
+
[require_composed_stable_id.DeviceFeature.ClimateDualSetpoint]: bound("climate-control", ["setTargetRange"]),
|
|
117270
|
+
[require_composed_stable_id.DeviceFeature.ClimateHumidity]: bound("climate-control", ["setTargetHumidity"]),
|
|
117271
|
+
[require_composed_stable_id.DeviceFeature.ClimateFanMode]: bound("climate-control", ["setFanMode"]),
|
|
117272
|
+
[require_composed_stable_id.DeviceFeature.ClimatePreset]: bound("climate-control", ["setPreset"]),
|
|
117273
|
+
[require_composed_stable_id.DeviceFeature.ClimateSwingVertical]: bound("climate-control", ["setSwingVertical"]),
|
|
117274
|
+
[require_composed_stable_id.DeviceFeature.ClimateSwingHorizontal]: bound("climate-control", ["setSwingHorizontal"]),
|
|
117275
|
+
[require_composed_stable_id.DeviceFeature.CoverPositionable]: bound("cover", ["setPosition"]),
|
|
117276
|
+
[require_composed_stable_id.DeviceFeature.CoverTilt]: bound("cover", ["setTiltPosition"]),
|
|
117277
|
+
[require_composed_stable_id.DeviceFeature.CoverStoppable]: bound("cover", ["stop"]),
|
|
117278
|
+
[require_composed_stable_id.DeviceFeature.ValvePositionable]: bound("valve", ["setPosition"]),
|
|
117279
|
+
[require_composed_stable_id.DeviceFeature.FanSpeed]: bound("fan-control", ["setPercentage"]),
|
|
117280
|
+
[require_composed_stable_id.DeviceFeature.FanPreset]: bound("fan-control", ["setPreset"]),
|
|
117281
|
+
[require_composed_stable_id.DeviceFeature.FanDirection]: bound("fan-control", ["setDirection"]),
|
|
117282
|
+
[require_composed_stable_id.DeviceFeature.FanOscillating]: bound("fan-control", ["setOscillating"]),
|
|
117283
|
+
[require_composed_stable_id.DeviceFeature.LockPinRequired]: reported(CAP_PENDING),
|
|
117284
|
+
[require_composed_stable_id.DeviceFeature.LockOpen]: bound("lock-control", ["open"]),
|
|
117285
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerSeek]: bound("media-player", ["seek"]),
|
|
117286
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerVolume]: bound("media-player", ["setVolume"]),
|
|
117287
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerMute]: bound("media-player", ["setMute"]),
|
|
117288
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerShuffle]: bound("media-player", ["setShuffle"]),
|
|
117289
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerRepeat]: bound("media-player", ["setRepeat"]),
|
|
117290
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerSelectSource]: bound("media-player", ["selectSource"]),
|
|
117291
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerPlayMedia]: bound("media-player", ["playMedia"]),
|
|
117292
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerNext]: bound("media-player", ["next"]),
|
|
117293
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerPrevious]: bound("media-player", ["previous"]),
|
|
117294
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerStop]: bound("media-player", ["stop"]),
|
|
117295
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerVolumeStep]: bound("media-player", ["volumeUp", "volumeDown"]),
|
|
117296
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerChannelStep]: bound("media-player", ["channelUp", "channelDown"]),
|
|
117297
|
+
[require_composed_stable_id.DeviceFeature.MediaPlayerPower]: bound("media-player", ["turnOn", "turnOff"]),
|
|
117298
|
+
[require_composed_stable_id.DeviceFeature.AlarmPinRequired]: reported(CAP_PENDING),
|
|
117299
|
+
[require_composed_stable_id.DeviceFeature.PresenceGps]: reported(CAP_PENDING),
|
|
117300
|
+
[require_composed_stable_id.DeviceFeature.NotifierImage]: reported(CAP_PENDING),
|
|
117301
|
+
[require_composed_stable_id.DeviceFeature.NotifierPriority]: reported(CAP_PENDING),
|
|
117302
|
+
[require_composed_stable_id.DeviceFeature.NotifierData]: reported(CAP_PENDING),
|
|
117303
|
+
[require_composed_stable_id.DeviceFeature.NotifierActions]: reported(CAP_PENDING),
|
|
117304
|
+
[require_composed_stable_id.DeviceFeature.NotifierRecipients]: reported(CAP_PENDING),
|
|
117305
|
+
[require_composed_stable_id.DeviceFeature.ScriptVariables]: reported(CAP_PENDING),
|
|
117306
|
+
[require_composed_stable_id.DeviceFeature.AutomationSkipCondition]: reported(CAP_PENDING),
|
|
117307
|
+
[require_composed_stable_id.DeviceFeature.VacuumHasMap]: reported(CAP_PENDING),
|
|
117308
|
+
[require_composed_stable_id.DeviceFeature.VacuumHasAi]: reported(CAP_PENDING),
|
|
117309
|
+
[require_composed_stable_id.DeviceFeature.MowerHasMap]: reported(CAP_PENDING),
|
|
117310
|
+
[require_composed_stable_id.DeviceFeature.MowerHasTargetedMowing]: reported(CAP_PENDING),
|
|
117311
|
+
[require_composed_stable_id.DeviceFeature.Navigation]: derived("navigation"),
|
|
117312
|
+
[require_composed_stable_id.DeviceFeature.NetworkLink]: derived("network-link")
|
|
117313
|
+
};
|
|
117314
|
+
var ALL_FEATURES = Object.values(require_composed_stable_id.DeviceFeature);
|
|
117315
|
+
function requirementOf(feature) {
|
|
117316
|
+
return DEVICE_FEATURE_REQUIREMENTS[feature];
|
|
117317
|
+
}
|
|
117318
|
+
/**
|
|
117319
|
+
* The provenance of every cap-backed feature, from one device's bindings. The
|
|
117320
|
+
* feature set the kernel persists and the "why is it missing" the device page
|
|
117321
|
+
* shows are the same computation.
|
|
117322
|
+
*/
|
|
117323
|
+
function deriveFeatureProvenance(entries) {
|
|
117324
|
+
const out = [];
|
|
117325
|
+
for (const feature of ALL_FEATURES) {
|
|
117326
|
+
const req = requirementOf(feature);
|
|
117327
|
+
if (req.kind !== "cap") continue;
|
|
117328
|
+
const entry = entries.find((candidate) => candidate.capName === req.cap);
|
|
117329
|
+
if (entry === void 0) {
|
|
117330
|
+
out.push({
|
|
117331
|
+
feature,
|
|
117332
|
+
authority: req.authority,
|
|
117333
|
+
present: false,
|
|
117334
|
+
missing: {
|
|
117335
|
+
reason: "cap-not-bound",
|
|
117336
|
+
cap: req.cap
|
|
117337
|
+
}
|
|
117338
|
+
});
|
|
117339
|
+
continue;
|
|
117340
|
+
}
|
|
117341
|
+
const implemented = entry.implementedMethods;
|
|
117342
|
+
const lacking = implemented === void 0 ? [] : req.methods.filter((name) => !implemented.includes(name));
|
|
117343
|
+
if (lacking.length > 0) {
|
|
117344
|
+
out.push({
|
|
117345
|
+
feature,
|
|
117346
|
+
authority: req.authority,
|
|
117347
|
+
present: false,
|
|
117348
|
+
missing: {
|
|
117349
|
+
reason: "methods-not-implemented",
|
|
117350
|
+
cap: req.cap,
|
|
117351
|
+
methods: lacking
|
|
117352
|
+
}
|
|
117353
|
+
});
|
|
117354
|
+
continue;
|
|
117355
|
+
}
|
|
117356
|
+
out.push({
|
|
117357
|
+
feature,
|
|
117358
|
+
authority: req.authority,
|
|
117359
|
+
present: true,
|
|
117360
|
+
supplier: {
|
|
117361
|
+
cap: req.cap,
|
|
117362
|
+
providerAddonId: entry.providerAddonId,
|
|
117363
|
+
providerNodeId: entry.providerNodeId
|
|
117364
|
+
}
|
|
117365
|
+
});
|
|
117366
|
+
}
|
|
117367
|
+
return out;
|
|
117368
|
+
}
|
|
117369
|
+
function isDerivedAuthority(feature) {
|
|
117370
|
+
const req = requirementOf(feature);
|
|
117371
|
+
return req.kind === "cap" && req.authority === "derived";
|
|
117372
|
+
}
|
|
117373
|
+
var FEATURE_VALUES = new Set(ALL_FEATURES);
|
|
117374
|
+
function knownFeature(value) {
|
|
117375
|
+
return FEATURE_VALUES.has(value);
|
|
117376
|
+
}
|
|
117377
|
+
/** True when the kernel, not the driver, decides this feature. */
|
|
117378
|
+
function isKernelDerivedFeature(value) {
|
|
117379
|
+
return knownFeature(value) && isDerivedAuthority(value);
|
|
117380
|
+
}
|
|
117381
|
+
/**
|
|
117382
|
+
* The feature set to persist: the kernel's value for every `derived` feature,
|
|
117383
|
+
* plus the driver's own claim for the rest (`reported`). Unknown strings are
|
|
117384
|
+
* dropped.
|
|
117385
|
+
*/
|
|
117386
|
+
function settleDeviceFeatures(entries, reportedByDriver) {
|
|
117387
|
+
const settled = /* @__PURE__ */ new Set();
|
|
117388
|
+
for (const item of deriveFeatureProvenance(entries)) if (item.present && item.authority === "derived") settled.add(item.feature);
|
|
117389
|
+
for (const value of reportedByDriver) if (knownFeature(value) && !isDerivedAuthority(value)) settled.add(value);
|
|
117390
|
+
return ALL_FEATURES.filter((feature) => settled.has(feature));
|
|
117391
|
+
}
|
|
117392
|
+
/**
|
|
117393
|
+
* What `registerDevice` stores. A driver re-registers after every probe with
|
|
117394
|
+
* its own idea of the features; the `derived` ones are the kernel's, so a
|
|
117395
|
+
* re-register keeps what the row already has for them. A first registration
|
|
117396
|
+
* (no row yet) takes the driver's list as a bootstrap until the kernel derives.
|
|
117397
|
+
*/
|
|
117398
|
+
function reconcileReportedFeatures(stored, reported) {
|
|
117399
|
+
if (stored === void 0) return [...reported];
|
|
117400
|
+
const kept = stored.filter((value) => knownFeature(value) && isDerivedAuthority(value));
|
|
117401
|
+
const claimed = reported.filter((value) => !(knownFeature(value) && isDerivedAuthority(value)));
|
|
117402
|
+
return [...new Set([...claimed, ...kept])];
|
|
117403
|
+
}
|
|
117404
|
+
//#endregion
|
|
116804
117405
|
//#region src/device/appliance-export.ts
|
|
116805
117406
|
/**
|
|
116806
117407
|
* How a washer, dryer or dishwasher leaves CamStack.
|
|
@@ -118784,6 +119385,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
118784
119385
|
form: "single",
|
|
118785
119386
|
optional: false
|
|
118786
119387
|
}],
|
|
119388
|
+
"deviceManager.setPrimaryChildPreference": [{
|
|
119389
|
+
name: "deviceId",
|
|
119390
|
+
form: "single",
|
|
119391
|
+
optional: false
|
|
119392
|
+
}],
|
|
118787
119393
|
"deviceManager.setRole": [{
|
|
118788
119394
|
name: "deviceId",
|
|
118789
119395
|
form: "single",
|
|
@@ -119663,12 +120269,12 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
119663
120269
|
form: "single",
|
|
119664
120270
|
optional: false
|
|
119665
120271
|
}],
|
|
119666
|
-
"osdManager.
|
|
120272
|
+
"osdManager.previewSlot": [{
|
|
119667
120273
|
name: "deviceId",
|
|
119668
120274
|
form: "single",
|
|
119669
120275
|
optional: false
|
|
119670
120276
|
}],
|
|
119671
|
-
"osdManager.
|
|
120277
|
+
"osdManager.previewTemplate": [{
|
|
119672
120278
|
name: "deviceId",
|
|
119673
120279
|
form: "single",
|
|
119674
120280
|
optional: false
|
|
@@ -121228,6 +121834,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
|
|
|
121228
121834
|
"deviceManager.setMetadata",
|
|
121229
121835
|
"deviceManager.setName",
|
|
121230
121836
|
"deviceManager.setPrimaryChildEntityId",
|
|
121837
|
+
"deviceManager.setPrimaryChildPreference",
|
|
121231
121838
|
"deviceManager.setRole",
|
|
121232
121839
|
"deviceManager.setStreamProfileMap",
|
|
121233
121840
|
"deviceManager.setType",
|
|
@@ -121261,8 +121868,8 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
|
|
|
121261
121868
|
"osdManager.clearSlotBinding",
|
|
121262
121869
|
"osdManager.copyDeviceConfiguration",
|
|
121263
121870
|
"osdManager.getDeviceOsd",
|
|
121264
|
-
"osdManager.getSourceCatalog",
|
|
121265
121871
|
"osdManager.previewSlot",
|
|
121872
|
+
"osdManager.previewTemplate",
|
|
121266
121873
|
"osdManager.renderDevice",
|
|
121267
121874
|
"osdManager.setSlotBinding",
|
|
121268
121875
|
"osdManager.setSlotCameraEnabled",
|
|
@@ -122478,6 +123085,11 @@ function createSystemProxy(api) {
|
|
|
122478
123085
|
getPreferences: (input) => dispatch("calendars", "getPreferences", "query", input),
|
|
122479
123086
|
setCalendarPreference: (input) => dispatch("calendars", "setCalendarPreference", "mutation", input)
|
|
122480
123087
|
},
|
|
123088
|
+
clusterUpdate: {
|
|
123089
|
+
previewClusterUpdate: (input) => dispatch("clusterUpdate", "previewClusterUpdate", "query", input),
|
|
123090
|
+
startClusterUpdate: (input) => dispatch("clusterUpdate", "startClusterUpdate", "mutation", input),
|
|
123091
|
+
getClusterUpdateJob: (input) => dispatch("clusterUpdate", "getClusterUpdateJob", "query", input)
|
|
123092
|
+
},
|
|
122481
123093
|
coreBlocks: {
|
|
122482
123094
|
list: (input) => dispatch("coreBlocks", "list", "query", input),
|
|
122483
123095
|
get: (input) => dispatch("coreBlocks", "get", "query", input),
|
|
@@ -122573,6 +123185,7 @@ function createSystemProxy(api) {
|
|
|
122573
123185
|
setLocationZone: (input) => dispatch("deviceManager", "setLocationZone", "mutation", input),
|
|
122574
123186
|
listPersistedByAddon: (input) => dispatch("deviceManager", "listPersistedByAddon", "query", input),
|
|
122575
123187
|
listAll: (input) => dispatch("deviceManager", "listAll", "query", input),
|
|
123188
|
+
search: (input) => dispatch("deviceManager", "search", "query", input),
|
|
122576
123189
|
getChildren: (input) => dispatch("deviceManager", "getChildren", "query", input),
|
|
122577
123190
|
getChildrenBatch: (input) => dispatch("deviceManager", "getChildrenBatch", "query", input),
|
|
122578
123191
|
getLinkedDevicesBatch: (input) => dispatch("deviceManager", "getLinkedDevicesBatch", "query", input),
|
|
@@ -123915,7 +124528,12 @@ function prepareNotification(caps, n) {
|
|
|
123915
124528
|
if (n.ttl !== void 0) if (caps.ttl) ttl = n.ttl;
|
|
123916
124529
|
else dropped.push("ttl");
|
|
123917
124530
|
const tag = n.tag ?? null;
|
|
123918
|
-
const
|
|
124531
|
+
const bodyDelivered = caps.text?.body ?? true;
|
|
124532
|
+
const titleDelivered = caps.text?.title ?? true;
|
|
124533
|
+
if (!bodyDelivered && transcoded.length > 0) dropped.push("body");
|
|
124534
|
+
const title = titleDelivered ? n.title : void 0;
|
|
124535
|
+
if (!titleDelivered && n.title !== void 0) dropped.push("title");
|
|
124536
|
+
const bodyParts = splitBody(bodyDelivered ? transcoded : "", caps.bodyMaxLen);
|
|
123919
124537
|
const truncated = bodyParts.length > 1;
|
|
123920
124538
|
const renderedAs = {
|
|
123921
124539
|
level: level?.id ?? "",
|
|
@@ -123927,7 +124545,7 @@ function prepareNotification(caps, n) {
|
|
|
123927
124545
|
};
|
|
123928
124546
|
return {
|
|
123929
124547
|
body: bodyParts[0] ?? "",
|
|
123930
|
-
...
|
|
124548
|
+
...title !== void 0 ? { title } : {},
|
|
123931
124549
|
format,
|
|
123932
124550
|
level,
|
|
123933
124551
|
attachments,
|
|
@@ -123936,6 +124554,7 @@ function prepareNotification(caps, n) {
|
|
|
123936
124554
|
sound,
|
|
123937
124555
|
ttl,
|
|
123938
124556
|
tag,
|
|
124557
|
+
...n.delivery !== void 0 ? { delivery: n.delivery } : {},
|
|
123939
124558
|
bodyParts,
|
|
123940
124559
|
renderedAs
|
|
123941
124560
|
};
|
|
@@ -124040,6 +124659,124 @@ function deliveryParamsDeclaredBy(perKind) {
|
|
|
124040
124659
|
return out;
|
|
124041
124660
|
}
|
|
124042
124661
|
//#endregion
|
|
124662
|
+
//#region src/notification/notification-fields.ts
|
|
124663
|
+
/** Every field, in the order an editor meets them. */
|
|
124664
|
+
var NOTIFICATION_FIELDS = [
|
|
124665
|
+
"title",
|
|
124666
|
+
"body",
|
|
124667
|
+
"attachments",
|
|
124668
|
+
"actions",
|
|
124669
|
+
"priority",
|
|
124670
|
+
"sound",
|
|
124671
|
+
"clickUrl"
|
|
124672
|
+
];
|
|
124673
|
+
/**
|
|
124674
|
+
* The fields a kind delivers, derived from its caps:
|
|
124675
|
+
* - `title` / `body` — `caps.text`; absent = both (every kind declared before #483);
|
|
124676
|
+
* - `attachments` — at least one slot and one media type;
|
|
124677
|
+
* - `actions` — at least one button;
|
|
124678
|
+
* - `priority` — at least two DISTINCT ordinals to choose between (one level
|
|
124679
|
+
* means the priority changes nothing on that kind);
|
|
124680
|
+
* - `sound`, `clickUrl` — their flags.
|
|
124681
|
+
*/
|
|
124682
|
+
function deliverableFields(caps) {
|
|
124683
|
+
const ordinals = new Set(caps.levels.map((level) => level.ordinal).filter((ordinal) => ordinal !== null));
|
|
124684
|
+
const supported = {
|
|
124685
|
+
title: caps.text?.title ?? true,
|
|
124686
|
+
body: caps.text?.body ?? true,
|
|
124687
|
+
attachments: caps.attachments.max > 0 && caps.attachments.mediaTypes.length > 0,
|
|
124688
|
+
actions: caps.actions > 0,
|
|
124689
|
+
priority: ordinals.size >= 2,
|
|
124690
|
+
sound: caps.sound,
|
|
124691
|
+
clickUrl: caps.clickUrl
|
|
124692
|
+
};
|
|
124693
|
+
return NOTIFICATION_FIELDS.filter((field) => supported[field]);
|
|
124694
|
+
}
|
|
124695
|
+
/** The picture kind a produced media type belongs to. */
|
|
124696
|
+
var KIND_OF_MEDIA = {
|
|
124697
|
+
image: "image",
|
|
124698
|
+
video: "clip",
|
|
124699
|
+
gif: "gif"
|
|
124700
|
+
};
|
|
124701
|
+
/**
|
|
124702
|
+
* The picture kinds a target may be set to receive: `none` plus one per media
|
|
124703
|
+
* type the notifier declares (`caps.attachments.mediaTypes`). Empty when the
|
|
124704
|
+
* kind takes no attachment at all — there is nothing to choose.
|
|
124705
|
+
*/
|
|
124706
|
+
function attachmentKindsOf(caps) {
|
|
124707
|
+
if (caps.attachments.max <= 0) return [];
|
|
124708
|
+
const kinds = caps.attachments.mediaTypes.flatMap((type) => {
|
|
124709
|
+
const kind = KIND_OF_MEDIA[type];
|
|
124710
|
+
return kind === void 0 ? [] : [kind];
|
|
124711
|
+
});
|
|
124712
|
+
return kinds.length === 0 ? [] : ["none", ...new Set(kinds)];
|
|
124713
|
+
}
|
|
124714
|
+
/**
|
|
124715
|
+
* Whether a target set to `kind` receives an attachment of `mediaType`.
|
|
124716
|
+
* Absent = every kind the rule produced; an icon or audio part is never
|
|
124717
|
+
* narrowed (it is not a picture of the event).
|
|
124718
|
+
*/
|
|
124719
|
+
function targetAttachmentAllows(kind, mediaType) {
|
|
124720
|
+
if (kind === void 0) return true;
|
|
124721
|
+
const own = KIND_OF_MEDIA[mediaType];
|
|
124722
|
+
if (own === void 0) return true;
|
|
124723
|
+
return kind !== "none" && kind === own;
|
|
124724
|
+
}
|
|
124725
|
+
/**
|
|
124726
|
+
* The levels a notifier declares that a rule can pick between: the ones that
|
|
124727
|
+
* map to a canonical ordinal, in ordinal order. The editor labels the choice
|
|
124728
|
+
* with the level's own label (Alexa: normal / high) and stores its ordinal.
|
|
124729
|
+
*/
|
|
124730
|
+
function priorityLevelsOf(caps) {
|
|
124731
|
+
return caps.levels.filter((level) => level.ordinal !== null).toSorted((a, b) => (a.ordinal ?? 0) - (b.ordinal ?? 0));
|
|
124732
|
+
}
|
|
124733
|
+
/**
|
|
124734
|
+
* The union of what the selected targets deliver, with the targets that drop
|
|
124735
|
+
* each field. No selection shows every field: a rule that addresses only users
|
|
124736
|
+
* (or nobody yet) has no declaration to narrow on, and not-yet-known must never
|
|
124737
|
+
* look like not-supported (D315).
|
|
124738
|
+
*/
|
|
124739
|
+
function fieldSupportForTargets(targets) {
|
|
124740
|
+
return NOTIFICATION_FIELDS.map((field) => {
|
|
124741
|
+
const droppedBy = targets.filter((target) => target.fields !== void 0 && !target.fields.includes(field)).map((target) => target.name);
|
|
124742
|
+
return {
|
|
124743
|
+
field,
|
|
124744
|
+
shown: targets.length === 0 || droppedBy.length < targets.length,
|
|
124745
|
+
droppedBy
|
|
124746
|
+
};
|
|
124747
|
+
});
|
|
124748
|
+
}
|
|
124749
|
+
/**
|
|
124750
|
+
* A target override with every field the target cannot deliver removed — what
|
|
124751
|
+
* an editor may store. `fields` undefined (unknown kind) keeps everything; the
|
|
124752
|
+
* dispatcher still drops at send what the kind turns out not to deliver.
|
|
124753
|
+
* `undefined` when nothing is left, so an empty override is never stored.
|
|
124754
|
+
*/
|
|
124755
|
+
function sanitizeTargetOverride(override, fields) {
|
|
124756
|
+
const has = (field) => fields === void 0 || fields.includes(field);
|
|
124757
|
+
const title = has("title") ? nonEmpty(override.template?.title) : void 0;
|
|
124758
|
+
const body = has("body") ? nonEmpty(override.template?.body) : void 0;
|
|
124759
|
+
const template = title !== void 0 || body !== void 0 ? {
|
|
124760
|
+
...title !== void 0 ? { title } : {},
|
|
124761
|
+
...body !== void 0 ? { body } : {}
|
|
124762
|
+
} : void 0;
|
|
124763
|
+
const priority = has("priority") ? override.priority : void 0;
|
|
124764
|
+
const attachment = has("attachments") ? override.attachment : void 0;
|
|
124765
|
+
const noButtons = has("actions") && override.actions === false;
|
|
124766
|
+
const next = {
|
|
124767
|
+
...template !== void 0 ? { template } : {},
|
|
124768
|
+
...override.schedule !== void 0 && override.schedule.windows.length > 0 ? { schedule: override.schedule } : {},
|
|
124769
|
+
...priority !== void 0 ? { priority } : {},
|
|
124770
|
+
...attachment !== void 0 ? { attachment } : {},
|
|
124771
|
+
...noButtons ? { actions: false } : {}
|
|
124772
|
+
};
|
|
124773
|
+
return Object.keys(next).length > 0 ? next : void 0;
|
|
124774
|
+
}
|
|
124775
|
+
function nonEmpty(value) {
|
|
124776
|
+
const trimmed = value?.trim();
|
|
124777
|
+
return trimmed === void 0 || trimmed.length === 0 ? void 0 : trimmed;
|
|
124778
|
+
}
|
|
124779
|
+
//#endregion
|
|
124043
124780
|
//#region src/notification/system-event-filters.ts
|
|
124044
124781
|
/**
|
|
124045
124782
|
* WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
|
|
@@ -126024,7 +126761,7 @@ var CYCLE_RAISED_FIELD_BY_CAP = { "running-state": "running" };
|
|
|
126024
126761
|
var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.entries(EVENT_KIND_BY_CAP).flatMap(([capName, descriptor]) => {
|
|
126025
126762
|
const cycleField = CYCLE_RAISED_FIELD_BY_CAP[capName];
|
|
126026
126763
|
if (cycleField !== void 0) return [[descriptor.kind, cycleField]];
|
|
126027
|
-
const field =
|
|
126764
|
+
const field = require_implemented_methods.SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
126028
126765
|
if (field === void 0 || descriptor.category !== "sensor") return [];
|
|
126029
126766
|
return [[descriptor.kind, field]];
|
|
126030
126767
|
})));
|
|
@@ -128975,7 +129712,9 @@ var TimelapseRuleInputSchema = zod.z.object({
|
|
|
128975
129712
|
/** Classes the notification counts — see {@link ReportClassesField}. */
|
|
128976
129713
|
reportClasses: ReportClassesField.optional(),
|
|
128977
129714
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
128978
|
-
priority: PriorityField.default(3)
|
|
129715
|
+
priority: PriorityField.default(3),
|
|
129716
|
+
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
129717
|
+
targetOverrides: NcTargetOverridesSchema.optional()
|
|
128979
129718
|
});
|
|
128980
129719
|
/**
|
|
128981
129720
|
* The caption a rule that never set one gets.
|
|
@@ -129015,7 +129754,9 @@ var TimelapseRulePatchSchema = zod.z.object({
|
|
|
129015
129754
|
previewText: PreviewTextField.optional(),
|
|
129016
129755
|
previewMode: PreviewModeField.optional(),
|
|
129017
129756
|
reportClasses: ReportClassesField.optional(),
|
|
129018
|
-
priority: PriorityField.optional()
|
|
129757
|
+
priority: PriorityField.optional(),
|
|
129758
|
+
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
129759
|
+
targetOverrides: NcTargetOverridesSchema.optional()
|
|
129019
129760
|
});
|
|
129020
129761
|
/** A persisted timelapse rule. */
|
|
129021
129762
|
var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
|
|
@@ -134837,14 +135578,14 @@ exports.ACTION_RUN_MAX_MS = ACTION_RUN_MAX_MS;
|
|
|
134837
135578
|
exports.ACTION_RUN_TIMEOUT_MS = ACTION_RUN_TIMEOUT_MS;
|
|
134838
135579
|
exports.ACTION_RUN_TRANSPORT_MARGIN_MS = ACTION_RUN_TRANSPORT_MARGIN_MS;
|
|
134839
135580
|
exports.ACTION_TARGET_INVALIDATION_EVENTS = ACTION_TARGET_INVALIDATION_EVENTS;
|
|
134840
|
-
exports.ACTIVE_CRITERIA =
|
|
135581
|
+
exports.ACTIVE_CRITERIA = require_implemented_methods.ACTIVE_CRITERIA;
|
|
134841
135582
|
exports.ACTUATOR_METHODS = ACTUATOR_METHODS;
|
|
134842
135583
|
exports.ACTUATOR_TEMPLATE_IDS = ACTUATOR_TEMPLATE_IDS;
|
|
134843
135584
|
exports.ADMIN_SCOPE = ADMIN_SCOPE;
|
|
134844
135585
|
exports.AGENT_MDNS_QUERY_NAME = AGENT_MDNS_QUERY_NAME;
|
|
134845
135586
|
exports.AGENT_MDNS_SERVICE_TYPE = AGENT_MDNS_SERVICE_TYPE;
|
|
134846
135587
|
exports.AGENT_MDNS_TXT_KEYS = AGENT_MDNS_TXT_KEYS;
|
|
134847
|
-
exports.AGGREGATE_REDUCERS =
|
|
135588
|
+
exports.AGGREGATE_REDUCERS = require_implemented_methods.AGGREGATE_REDUCERS;
|
|
134848
135589
|
exports.AGGREGATE_THROUGHPUT_BY_KIND = AGGREGATE_THROUGHPUT_BY_KIND;
|
|
134849
135590
|
exports.ALEXA_EGRESS_PROFILE = ALEXA_EGRESS_PROFILE;
|
|
134850
135591
|
exports.ALL_CAPABILITY_DEFINITIONS = ALL_CAPABILITY_DEFINITIONS;
|
|
@@ -134863,14 +135604,14 @@ exports.APP_FLOW_STATE_PREFIX = APP_FLOW_STATE_PREFIX;
|
|
|
134863
135604
|
exports.APP_REFUSED_PATH = APP_REFUSED_PATH;
|
|
134864
135605
|
exports.APP_START_REFUSAL_MESSAGES = APP_START_REFUSAL_MESSAGES;
|
|
134865
135606
|
exports.ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT = ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT;
|
|
134866
|
-
exports.ARITHMETIC_OPS =
|
|
135607
|
+
exports.ARITHMETIC_OPS = require_implemented_methods.ARITHMETIC_OPS;
|
|
134867
135608
|
exports.AUDIO_ANALYSIS_CAP_NAME = AUDIO_ANALYSIS_CAP_NAME;
|
|
134868
135609
|
exports.AUDIO_BACKEND_CHOICES = AUDIO_BACKEND_CHOICES;
|
|
134869
135610
|
exports.AUDIO_CHUNK_FORMATS = require_sleep.AUDIO_CHUNK_FORMATS;
|
|
134870
135611
|
exports.AUDIO_GRADIENT_ALPHAS = AUDIO_GRADIENT_ALPHAS;
|
|
134871
135612
|
exports.AUDIO_MACRO_LABELS = AUDIO_MACRO_LABELS;
|
|
134872
135613
|
exports.AUDIO_NOT_CLASSIFIED_REASONS = AUDIO_NOT_CLASSIFIED_REASONS;
|
|
134873
|
-
exports.AUDIO_PRESETS =
|
|
135614
|
+
exports.AUDIO_PRESETS = require_implemented_methods.AUDIO_PRESETS;
|
|
134874
135615
|
exports.AUDIO_SCALE_EPOCH_ISO = AUDIO_SCALE_EPOCH_ISO;
|
|
134875
135616
|
exports.AUDIO_SCALE_EPOCH_MS = AUDIO_SCALE_EPOCH_MS;
|
|
134876
135617
|
exports.AUTOMATIC_HUB_ADDRESS_FLAGS = AUTOMATIC_HUB_ADDRESS_FLAGS;
|
|
@@ -134898,7 +135639,7 @@ exports.ActionTargetSchema = ActionTargetSchema;
|
|
|
134898
135639
|
exports.ActionVariableSchema = ActionVariableSchema;
|
|
134899
135640
|
exports.ActionVariableTypeSchema = ActionVariableTypeSchema;
|
|
134900
135641
|
exports.ActionVariableValueSchema = ActionVariableValueSchema;
|
|
134901
|
-
exports.ActiveCriterionSchema =
|
|
135642
|
+
exports.ActiveCriterionSchema = require_implemented_methods.ActiveCriterionSchema;
|
|
134902
135643
|
exports.AddBrokerInputSchema = AddBrokerInputSchema;
|
|
134903
135644
|
exports.AddRetrainFrameFromRecordingResultSchema = AddRetrainFrameFromRecordingResultSchema;
|
|
134904
135645
|
exports.AddonAutoUpdateSchema = AddonAutoUpdateSchema;
|
|
@@ -134922,7 +135663,7 @@ exports.AdoptionOutcomeSchema = AdoptionOutcomeSchema;
|
|
|
134922
135663
|
exports.AdoptionReleaseInputSchema = ReleaseInputSchema;
|
|
134923
135664
|
exports.AdoptionStatusSchema = AdoptionStatusSchema;
|
|
134924
135665
|
exports.AgentLoadSummarySchema = AgentLoadSummarySchema;
|
|
134925
|
-
exports.AggregateReducerSchema =
|
|
135666
|
+
exports.AggregateReducerSchema = require_implemented_methods.AggregateReducerSchema;
|
|
134926
135667
|
exports.AirQualitySensorStatusSchema = AirQualitySensorStatusSchema;
|
|
134927
135668
|
exports.AlarmArmModeSchema = AlarmArmModeSchema;
|
|
134928
135669
|
exports.AlarmPanelStatusSchema = AlarmPanelStatusSchema;
|
|
@@ -134945,7 +135686,7 @@ exports.ArchiveManifestSchema = ArchiveManifestSchema;
|
|
|
134945
135686
|
exports.ArchiveSqliteSnapshotSchema = ArchiveSqliteSnapshotSchema;
|
|
134946
135687
|
exports.ArchivedDebugNoteQueryInputSchema = ArchivedDebugNoteQueryInputSchema;
|
|
134947
135688
|
exports.ArchivedDebugNoteSchema = ArchivedDebugNoteSchema;
|
|
134948
|
-
exports.ArithmeticHelperSpecSchema =
|
|
135689
|
+
exports.ArithmeticHelperSpecSchema = require_implemented_methods.ArithmeticHelperSpecSchema;
|
|
134949
135690
|
exports.AttachmentMediaTypeSchema = AttachmentMediaTypeSchema;
|
|
134950
135691
|
exports.AttachmentSchema = AttachmentSchema;
|
|
134951
135692
|
exports.AudioAnalysisResultSchema = AudioAnalysisResultSchema;
|
|
@@ -135000,7 +135741,7 @@ exports.BASE_LIVE_EGRESS_PROFILE = BASE_LIVE_EGRESS_PROFILE;
|
|
|
135000
135741
|
exports.BATTERY_DEVICE_PROFILE = BATTERY_DEVICE_PROFILE;
|
|
135001
135742
|
exports.BATTERY_UNREACHABLE_AFTER_MS = BATTERY_UNREACHABLE_AFTER_MS;
|
|
135002
135743
|
exports.BENCH_ROOT_STEP_ID = BENCH_ROOT_STEP_ID;
|
|
135003
|
-
exports.BINARY_AGGREGATES =
|
|
135744
|
+
exports.BINARY_AGGREGATES = require_implemented_methods.BINARY_AGGREGATES;
|
|
135004
135745
|
exports.BIRTH_DECISION_DEFAULT_LIMIT = BIRTH_DECISION_DEFAULT_LIMIT;
|
|
135005
135746
|
exports.BOOT_RECOVERY_BACKOFF_MS = require_sleep.BOOT_RECOVERY_BACKOFF_MS;
|
|
135006
135747
|
exports.BUILTIN_REMOTE_COMPONENTS = BUILTIN_REMOTE_COMPONENTS;
|
|
@@ -135046,7 +135787,7 @@ exports.BrokerSubscribeResultSchema = SubscribeResultSchema;
|
|
|
135046
135787
|
exports.BrokerUnsubscribeInputSchema = UnsubscribeInputSchema;
|
|
135047
135788
|
exports.BucketAccumulator = BucketAccumulator;
|
|
135048
135789
|
exports.BulkRecordSchema = BulkRecordSchema;
|
|
135049
|
-
exports.CALENDAR_PERIODS =
|
|
135790
|
+
exports.CALENDAR_PERIODS = require_implemented_methods.CALENDAR_PERIODS;
|
|
135050
135791
|
exports.CALLER_STAMPED_CAPABILITIES = require_sleep.CALLER_STAMPED_CAPABILITIES;
|
|
135051
135792
|
exports.CALLER_USERNAME_HEADER = require_sleep.CALLER_USERNAME_HEADER;
|
|
135052
135793
|
exports.CAMERA_SENSORS_NOT_LOADED = CAMERA_SENSORS_NOT_LOADED;
|
|
@@ -135091,11 +135832,11 @@ exports.COCO_80_LABELS = COCO_80_LABELS;
|
|
|
135091
135832
|
exports.COCO_TO_MACRO = COCO_TO_MACRO;
|
|
135092
135833
|
exports.COMPOSED_DEVICE_STABLE_ID_PREFIX = require_composed_stable_id.COMPOSED_DEVICE_STABLE_ID_PREFIX;
|
|
135093
135834
|
exports.COMPOSED_ITEM_FIXED_FIELDS = COMPOSED_ITEM_FIXED_FIELDS;
|
|
135094
|
-
exports.COMPOSER_ADDON_ID =
|
|
135835
|
+
exports.COMPOSER_ADDON_ID = require_implemented_methods.COMPOSER_ADDON_ID;
|
|
135095
135836
|
exports.COMPOSER_RUNNER_ID = COMPOSER_RUNNER_ID;
|
|
135096
135837
|
exports.COMPOSITION_EVENT_CATEGORY = COMPOSITION_EVENT_CATEGORY;
|
|
135097
|
-
exports.COMPOSITION_ITEM_ARRAY_PATH =
|
|
135098
|
-
exports.COMPOSITION_ITEM_KEY_RE =
|
|
135838
|
+
exports.COMPOSITION_ITEM_ARRAY_PATH = require_implemented_methods.COMPOSITION_ITEM_ARRAY_PATH;
|
|
135839
|
+
exports.COMPOSITION_ITEM_KEY_RE = require_implemented_methods.COMPOSITION_ITEM_KEY_RE;
|
|
135099
135840
|
exports.COMPOSITION_LINK_KINDS = COMPOSITION_LINK_KINDS;
|
|
135100
135841
|
exports.COMPOSITION_TARGET_CAP_NAMES = COMPOSITION_TARGET_CAP_NAMES;
|
|
135101
135842
|
exports.CONNECTION_TEST_TIMEOUT_MS = CONNECTION_TEST_TIMEOUT_MS;
|
|
@@ -135111,7 +135852,7 @@ exports.CREDENTIAL_TOKEN_KIND = CREDENTIAL_TOKEN_KIND;
|
|
|
135111
135852
|
exports.CROP_CLASS_FLOORS = CROP_CLASS_FLOORS;
|
|
135112
135853
|
exports.CROP_SUPPLY_SOURCES = CROP_SUPPLY_SOURCES;
|
|
135113
135854
|
exports.CROP_SUPPLY_STEP_IDS = CROP_SUPPLY_STEP_IDS;
|
|
135114
|
-
exports.CUSTOMIZATION_BLOCK_NAME_PREFIX =
|
|
135855
|
+
exports.CUSTOMIZATION_BLOCK_NAME_PREFIX = require_implemented_methods.CUSTOMIZATION_BLOCK_NAME_PREFIX;
|
|
135115
135856
|
exports.CUSTOMIZE_APPLY_AUTHORITY_KINDS = CUSTOMIZE_APPLY_AUTHORITY_KINDS;
|
|
135116
135857
|
exports.CUSTOMIZE_CARDINALITIES = CUSTOMIZE_CARDINALITIES;
|
|
135117
135858
|
exports.CUSTOMIZE_EVENT_SHAPES = CUSTOMIZE_EVENT_SHAPES;
|
|
@@ -135124,7 +135865,7 @@ exports.CalendarPreferenceEntrySchema = CalendarPreferenceEntrySchema;
|
|
|
135124
135865
|
exports.CalendarPreferencesSchema = CalendarPreferencesSchema;
|
|
135125
135866
|
exports.CalendarSetPreferenceInputSchema = CalendarSetPreferenceInputSchema;
|
|
135126
135867
|
exports.CalendarSourceKindSchema = CalendarSourceKindSchema;
|
|
135127
|
-
exports.CalendarWindowSchema =
|
|
135868
|
+
exports.CalendarWindowSchema = require_implemented_methods.CalendarWindowSchema;
|
|
135128
135869
|
exports.CamProfileSchema = require_sleep.CamProfileSchema;
|
|
135129
135870
|
exports.CamStreamDescriptorSchema = CamStreamDescriptorSchema;
|
|
135130
135871
|
exports.CamStreamKindSchema = require_sleep.CamStreamKindSchema;
|
|
@@ -135206,6 +135947,15 @@ exports.ClipWakeSchema = ClipWakeSchema;
|
|
|
135206
135947
|
exports.ClusterAddonNodeDeploymentSchema = ClusterAddonNodeDeploymentSchema;
|
|
135207
135948
|
exports.ClusterAddonStatusEntrySchema = ClusterAddonStatusEntrySchema;
|
|
135208
135949
|
exports.ClusterModelChoiceSchema = ClusterModelChoiceSchema;
|
|
135950
|
+
exports.ClusterUpdateBlockerSchema = ClusterUpdateBlockerSchema;
|
|
135951
|
+
exports.ClusterUpdateFailureReasonSchema = ClusterUpdateFailureReasonSchema;
|
|
135952
|
+
exports.ClusterUpdateJobSchema = ClusterUpdateJobSchema;
|
|
135953
|
+
exports.ClusterUpdateJobStateSchema = ClusterUpdateJobStateSchema;
|
|
135954
|
+
exports.ClusterUpdateOptionsSchema = ClusterUpdateOptionsSchema;
|
|
135955
|
+
exports.ClusterUpdatePlanSchema = ClusterUpdatePlanSchema;
|
|
135956
|
+
exports.ClusterUpdateStepKindSchema = ClusterUpdateStepKindSchema;
|
|
135957
|
+
exports.ClusterUpdateStepSchema = ClusterUpdateStepSchema;
|
|
135958
|
+
exports.ClusterUpdateStepStatusSchema = ClusterUpdateStepStatusSchema;
|
|
135209
135959
|
exports.CollectionColumnSchema = CollectionColumnSchema;
|
|
135210
135960
|
exports.CollectionIndexSchema = CollectionIndexSchema;
|
|
135211
135961
|
exports.ColorStatusSchema = ColorStatusSchema;
|
|
@@ -135221,47 +135971,47 @@ exports.ComposerApplyResultSchema = ComposerApplyResultSchema;
|
|
|
135221
135971
|
exports.ComposerBlockSchema = ComposerBlockSchema;
|
|
135222
135972
|
exports.ComposerBlockVerdictSchema = ComposerBlockVerdictSchema;
|
|
135223
135973
|
exports.ComposerUnreadableBlockSchema = ComposerUnreadableBlockSchema;
|
|
135224
|
-
exports.CompositionAggregateSourceSchema =
|
|
135225
|
-
exports.CompositionBindingSchema =
|
|
135974
|
+
exports.CompositionAggregateSourceSchema = require_implemented_methods.CompositionAggregateSourceSchema;
|
|
135975
|
+
exports.CompositionBindingSchema = require_implemented_methods.CompositionBindingSchema;
|
|
135226
135976
|
exports.CompositionBlockInputSchema = CompositionBlockInputSchema;
|
|
135227
135977
|
exports.CompositionBlockStateSchema = CompositionBlockStateSchema;
|
|
135228
|
-
exports.CompositionCodeSourceSchema =
|
|
135229
|
-
exports.CompositionCommandTargetSchema =
|
|
135978
|
+
exports.CompositionCodeSourceSchema = require_implemented_methods.CompositionCodeSourceSchema;
|
|
135979
|
+
exports.CompositionCommandTargetSchema = require_implemented_methods.CompositionCommandTargetSchema;
|
|
135230
135980
|
exports.CompositionCustomizationReadSchema = CompositionCustomizationReadSchema;
|
|
135231
135981
|
exports.CompositionEventPlanSchema = CompositionEventPlanSchema;
|
|
135232
|
-
exports.CompositionExistingTargetSchema =
|
|
135233
|
-
exports.CompositionExpressionSourceSchema =
|
|
135234
|
-
exports.CompositionExtensionCommandSchema =
|
|
135982
|
+
exports.CompositionExistingTargetSchema = require_implemented_methods.CompositionExistingTargetSchema;
|
|
135983
|
+
exports.CompositionExpressionSourceSchema = require_implemented_methods.CompositionExpressionSourceSchema;
|
|
135984
|
+
exports.CompositionExtensionCommandSchema = require_implemented_methods.CompositionExtensionCommandSchema;
|
|
135235
135985
|
exports.CompositionFeatureModeSchema = CompositionFeatureModeSchema;
|
|
135236
135986
|
exports.CompositionFeaturePlanSchema = CompositionFeaturePlanSchema;
|
|
135237
|
-
exports.CompositionFeatureSchema =
|
|
135987
|
+
exports.CompositionFeatureSchema = require_implemented_methods.CompositionFeatureSchema;
|
|
135238
135988
|
exports.CompositionFieldItemSchema = CompositionFieldItemSchema;
|
|
135239
135989
|
exports.CompositionFieldKindSchema = CompositionFieldKindSchema;
|
|
135240
135990
|
exports.CompositionFieldPlanSchema = CompositionFieldPlanSchema;
|
|
135241
|
-
exports.CompositionFieldReadSchema =
|
|
135991
|
+
exports.CompositionFieldReadSchema = require_implemented_methods.CompositionFieldReadSchema;
|
|
135242
135992
|
exports.CompositionFieldRoleSchema = CompositionFieldRoleSchema;
|
|
135243
|
-
exports.CompositionFieldSourceSchema =
|
|
135993
|
+
exports.CompositionFieldSourceSchema = require_implemented_methods.CompositionFieldSourceSchema;
|
|
135244
135994
|
exports.CompositionFieldStateKindSchema = CompositionFieldStateKindSchema;
|
|
135245
135995
|
exports.CompositionFieldStateSchema = CompositionFieldStateSchema;
|
|
135246
|
-
exports.CompositionFieldsFeatureSchema =
|
|
135247
|
-
exports.CompositionForwardArgSchema =
|
|
135248
|
-
exports.CompositionForwardCommandSchema =
|
|
135249
|
-
exports.CompositionFromSourceSchema =
|
|
135996
|
+
exports.CompositionFieldsFeatureSchema = require_implemented_methods.CompositionFieldsFeatureSchema;
|
|
135997
|
+
exports.CompositionForwardArgSchema = require_implemented_methods.CompositionForwardArgSchema;
|
|
135998
|
+
exports.CompositionForwardCommandSchema = require_implemented_methods.CompositionForwardCommandSchema;
|
|
135999
|
+
exports.CompositionFromSourceSchema = require_implemented_methods.CompositionFromSourceSchema;
|
|
135250
136000
|
exports.CompositionGetReadSchema = CompositionGetReadSchema;
|
|
135251
136001
|
exports.CompositionGraphError = CompositionGraphError;
|
|
135252
|
-
exports.CompositionItemEntrySchema =
|
|
136002
|
+
exports.CompositionItemEntrySchema = require_implemented_methods.CompositionItemEntrySchema;
|
|
135253
136003
|
exports.CompositionListReadSchema = CompositionListReadSchema;
|
|
135254
|
-
exports.CompositionLiteralBindingSchema =
|
|
135255
|
-
exports.CompositionNewTargetSchema =
|
|
135256
|
-
exports.CompositionPassthroughFeatureSchema =
|
|
136004
|
+
exports.CompositionLiteralBindingSchema = require_implemented_methods.CompositionLiteralBindingSchema;
|
|
136005
|
+
exports.CompositionNewTargetSchema = require_implemented_methods.CompositionNewTargetSchema;
|
|
136006
|
+
exports.CompositionPassthroughFeatureSchema = require_implemented_methods.CompositionPassthroughFeatureSchema;
|
|
135257
136007
|
exports.CompositionProblemCodeSchema = CompositionProblemCodeSchema;
|
|
135258
136008
|
exports.CompositionProblemSchema = CompositionProblemSchema;
|
|
135259
136009
|
exports.CompositionRunStatusSchema = CompositionRunStatusSchema;
|
|
135260
|
-
exports.CompositionSchema =
|
|
135261
|
-
exports.CompositionSeriesSourceSchema =
|
|
135262
|
-
exports.CompositionSourceRefSchema =
|
|
136010
|
+
exports.CompositionSchema = require_implemented_methods.CompositionSchema;
|
|
136011
|
+
exports.CompositionSeriesSourceSchema = require_implemented_methods.CompositionSeriesSourceSchema;
|
|
136012
|
+
exports.CompositionSourceRefSchema = require_implemented_methods.CompositionSourceRefSchema;
|
|
135263
136013
|
exports.CompositionStateReadSchema = CompositionStateReadSchema;
|
|
135264
|
-
exports.CompositionTargetSchema =
|
|
136014
|
+
exports.CompositionTargetSchema = require_implemented_methods.CompositionTargetSchema;
|
|
135265
136015
|
exports.CompositionUnavailableModeSchema = CompositionUnavailableModeSchema;
|
|
135266
136016
|
exports.CompositionValidationSchema = CompositionValidationSchema;
|
|
135267
136017
|
exports.CompositionViewSchema = CompositionViewSchema;
|
|
@@ -135308,7 +136058,7 @@ exports.DATABASE_SNAPSHOT_TIMEOUT_MS = DATABASE_SNAPSHOT_TIMEOUT_MS;
|
|
|
135308
136058
|
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
|
135309
136059
|
exports.DATA_STORE_DATABASES = DATA_STORE_DATABASES;
|
|
135310
136060
|
exports.DAYS_PER_WEEK = DAYS_PER_WEEK;
|
|
135311
|
-
exports.DAY_MS =
|
|
136061
|
+
exports.DAY_MS = require_implemented_methods.DAY_MS;
|
|
135312
136062
|
exports.DAY_NAMES = DAY_NAMES;
|
|
135313
136063
|
exports.DEBUG_CHANNEL_PREFIX = require_sleep.DEBUG_CHANNEL_PREFIX;
|
|
135314
136064
|
exports.DEBUG_WATCH_HARD_CAP_MS = require_sleep.DEBUG_WATCH_HARD_CAP_MS;
|
|
@@ -135330,9 +136080,9 @@ exports.DEFAULT_DISPLAY_PREFERENCE = require_sleep.DEFAULT_DISPLAY_PREFERENCE;
|
|
|
135330
136080
|
exports.DEFAULT_EVENTS_BAND_BUFFER_SEC = DEFAULT_EVENTS_BAND_BUFFER_SEC;
|
|
135331
136081
|
exports.DEFAULT_EVENT_COLOR = DEFAULT_EVENT_COLOR;
|
|
135332
136082
|
exports.DEFAULT_FEATURES = DEFAULT_FEATURES;
|
|
135333
|
-
exports.DEFAULT_FIRST_SIGHTING_FRESHNESS_MS =
|
|
136083
|
+
exports.DEFAULT_FIRST_SIGHTING_FRESHNESS_MS = require_implemented_methods.DEFAULT_FIRST_SIGHTING_FRESHNESS_MS;
|
|
135334
136084
|
exports.DEFAULT_HEADROOM = DEFAULT_HEADROOM;
|
|
135335
|
-
exports.DEFAULT_HISTORY_RETENTION =
|
|
136085
|
+
exports.DEFAULT_HISTORY_RETENTION = require_implemented_methods.DEFAULT_HISTORY_RETENTION;
|
|
135336
136086
|
exports.DEFAULT_HOLD_OVERRIDE = DEFAULT_HOLD_OVERRIDE;
|
|
135337
136087
|
exports.DEFAULT_MAX_HOLD_ATTEMPTS = DEFAULT_MAX_HOLD_ATTEMPTS;
|
|
135338
136088
|
exports.DEFAULT_MAX_LATE_MS = DEFAULT_MAX_LATE_MS;
|
|
@@ -135352,7 +136102,7 @@ exports.DEFAULT_TOKEN_EXPIRY = require_sleep.DEFAULT_TOKEN_EXPIRY;
|
|
|
135352
136102
|
exports.DEFAULT_TRACE_KEEP = DEFAULT_TRACE_KEEP;
|
|
135353
136103
|
exports.DEFAULT_VIEWER_SCOPE = DEFAULT_VIEWER_SCOPE;
|
|
135354
136104
|
exports.DEFINITIVE_DEVICE_REFUSALS = DEFINITIVE_DEVICE_REFUSALS;
|
|
135355
|
-
exports.DERIVATIVE_UNITS =
|
|
136105
|
+
exports.DERIVATIVE_UNITS = require_implemented_methods.DERIVATIVE_UNITS;
|
|
135356
136106
|
exports.DERIVED_CAMERA_SILENCED_CAP_NAMES = DERIVED_CAMERA_SILENCED_CAP_NAMES;
|
|
135357
136107
|
exports.DETAIL_CROP_PADDING_FIELD = DETAIL_CROP_PADDING_FIELD;
|
|
135358
136108
|
exports.DETAIL_CROP_PADDING_KEY = DETAIL_CROP_PADDING_KEY;
|
|
@@ -135374,6 +136124,7 @@ exports.DEVICE_CHILDREN_BATCH_MAX = require_sleep.DEVICE_CHILDREN_BATCH_MAX;
|
|
|
135374
136124
|
exports.DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE = DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE;
|
|
135375
136125
|
exports.DEVICE_DO_ACTIONS = DEVICE_DO_ACTIONS;
|
|
135376
136126
|
exports.DEVICE_ENROLLMENT_TTL_MS = DEVICE_ENROLLMENT_TTL_MS;
|
|
136127
|
+
exports.DEVICE_FEATURE_REQUIREMENTS = DEVICE_FEATURE_REQUIREMENTS;
|
|
135377
136128
|
exports.DEVICE_HISTORY_ENERGY_KEY = DEVICE_HISTORY_ENERGY_KEY;
|
|
135378
136129
|
exports.DEVICE_HISTORY_ORPHAN_DELETE_MAX = DEVICE_HISTORY_ORPHAN_DELETE_MAX;
|
|
135379
136130
|
exports.DEVICE_HISTORY_ORPHAN_LIST_MAX = DEVICE_HISTORY_ORPHAN_LIST_MAX;
|
|
@@ -135389,6 +136140,8 @@ exports.DEVICE_RUNS_MAX_PAGE = DEVICE_RUNS_MAX_PAGE;
|
|
|
135389
136140
|
exports.DEVICE_SAN_CREDENTIAL_PREFIX = DEVICE_SAN_CREDENTIAL_PREFIX;
|
|
135390
136141
|
exports.DEVICE_SAN_USER_PREFIX = DEVICE_SAN_USER_PREFIX;
|
|
135391
136142
|
exports.DEVICE_SCOPED_CAPS = require_sleep.DEVICE_SCOPED_CAPS;
|
|
136143
|
+
exports.DEVICE_SEARCH_DEFAULT_LIMIT = DEVICE_SEARCH_DEFAULT_LIMIT;
|
|
136144
|
+
exports.DEVICE_SEARCH_MAX_LIMIT = DEVICE_SEARCH_MAX_LIMIT;
|
|
135392
136145
|
exports.DEVICE_SETTINGS_CONTRIBUTION_METHODS = require_sleep.DEVICE_SETTINGS_CONTRIBUTION_METHODS;
|
|
135393
136146
|
exports.DEVICE_SIGNATURE_MESSAGE_VERSION = DEVICE_SIGNATURE_MESSAGE_VERSION;
|
|
135394
136147
|
exports.DEVICE_STATE_READERS = DEVICE_STATE_READERS;
|
|
@@ -135397,9 +136150,12 @@ exports.DEVICE_TEMPLATE_BUDGET_MS = DEVICE_TEMPLATE_BUDGET_MS;
|
|
|
135397
136150
|
exports.DEVICE_TEMPLATE_FILTERS = DEVICE_TEMPLATE_FILTERS;
|
|
135398
136151
|
exports.DEVICE_TEMPLATE_MAX_LENGTH = DEVICE_TEMPLATE_MAX_LENGTH;
|
|
135399
136152
|
exports.DEVICE_TEMPLATE_MAX_OUTPUT = DEVICE_TEMPLATE_MAX_OUTPUT;
|
|
136153
|
+
exports.DEVICE_TEMPLATE_NOW_ALIAS = DEVICE_TEMPLATE_NOW_ALIAS;
|
|
135400
136154
|
exports.DEVICE_TEMPLATE_REFUSAL_REASONS = DEVICE_TEMPLATE_REFUSAL_REASONS;
|
|
136155
|
+
exports.DEVICE_TEMPLATE_THIS_ALIAS = DEVICE_TEMPLATE_THIS_ALIAS;
|
|
135401
136156
|
exports.DEVICE_TEMPLATE_TRACE_REASONS = DEVICE_TEMPLATE_TRACE_REASONS;
|
|
135402
136157
|
exports.DEVICE_TEMPLATE_UNAVAILABLE = DEVICE_TEMPLATE_UNAVAILABLE;
|
|
136158
|
+
exports.DEVICE_TEMPLATE_VALUES_CAP = DEVICE_TEMPLATE_VALUES_CAP;
|
|
135403
136159
|
exports.DEVICE_TOMBSTONE_RETENTION_MS = DEVICE_TOMBSTONE_RETENTION_MS;
|
|
135404
136160
|
exports.DEVICE_TRANSITIONS_MAX_PAGE = DEVICE_TRANSITIONS_MAX_PAGE;
|
|
135405
136161
|
exports.DEVICE_TRANSITIONS_RECORD_BATCH_MAX = DEVICE_TRANSITIONS_RECORD_BATCH_MAX;
|
|
@@ -135431,7 +136187,7 @@ exports.DecodedAudioChunkSchema = require_sleep.DecodedAudioChunkSchema;
|
|
|
135431
136187
|
exports.DeleteIntegrationResultSchema = DeleteIntegrationResultSchema;
|
|
135432
136188
|
exports.DeliveryParamSchema = DeliveryParamSchema;
|
|
135433
136189
|
exports.DeliveryParamValueSchema = DeliveryParamValueSchema;
|
|
135434
|
-
exports.DerivativeHelperSpecSchema =
|
|
136190
|
+
exports.DerivativeHelperSpecSchema = require_implemented_methods.DerivativeHelperSpecSchema;
|
|
135435
136191
|
exports.DesktopAppStatusSchema = DesktopAppStatusSchema;
|
|
135436
136192
|
exports.DetailCropConventionSchema = DetailCropConventionSchema;
|
|
135437
136193
|
exports.DetectionCatalogClassMapSchema = DetectionCatalogClassMapSchema;
|
|
@@ -135487,16 +136243,27 @@ exports.DeviceRunSchema = DeviceRunSchema;
|
|
|
135487
136243
|
exports.DeviceRunSourceSchema = DeviceRunSourceSchema;
|
|
135488
136244
|
exports.DeviceRunStateSchema = DeviceRunStateSchema;
|
|
135489
136245
|
exports.DeviceRuntimeState = DeviceRuntimeState;
|
|
136246
|
+
exports.DeviceSearchFacetIntegrationSchema = DeviceSearchFacetIntegrationSchema;
|
|
136247
|
+
exports.DeviceSearchFacetValueSchema = DeviceSearchFacetValueSchema;
|
|
136248
|
+
exports.DeviceSearchFacetsSchema = DeviceSearchFacetsSchema;
|
|
136249
|
+
exports.DeviceSearchFiltersSchema = DeviceSearchFiltersSchema;
|
|
136250
|
+
exports.DeviceSearchInputSchema = DeviceSearchInputSchema;
|
|
136251
|
+
exports.DeviceSearchItemSchema = DeviceSearchItemSchema;
|
|
136252
|
+
exports.DeviceSearchRequiresSchema = DeviceSearchRequiresSchema;
|
|
136253
|
+
exports.DeviceSearchResultSchema = DeviceSearchResultSchema;
|
|
135490
136254
|
exports.DeviceSelectorSchema = DeviceSelectorSchema;
|
|
135491
136255
|
exports.DeviceSignaturePurposeSchema = DeviceSignaturePurposeSchema;
|
|
135492
136256
|
exports.DeviceStatusSchema = DeviceStatusSchema;
|
|
135493
136257
|
exports.DeviceTemplateRefusalSchema = DeviceTemplateRefusalSchema;
|
|
135494
136258
|
exports.DeviceTemplateRenderSchema = DeviceTemplateRenderSchema;
|
|
135495
136259
|
exports.DeviceTemplateSchema = DeviceTemplateSchema;
|
|
136260
|
+
exports.DeviceTemplateThisDeviceSchema = DeviceTemplateThisDeviceSchema;
|
|
135496
136261
|
exports.DeviceTemplateTraceEntrySchema = DeviceTemplateTraceEntrySchema;
|
|
136262
|
+
exports.DeviceTemplateValueSchema = DeviceTemplateValueSchema;
|
|
135497
136263
|
exports.DeviceTombstoneSchema = DeviceTombstoneSchema;
|
|
135498
136264
|
exports.DeviceTransitionSchema = require_sleep.DeviceTransitionSchema;
|
|
135499
136265
|
exports.DeviceType = require_composed_stable_id.DeviceType;
|
|
136266
|
+
exports.DeviceValueOptionSchema = DeviceValueOptionSchema;
|
|
135500
136267
|
exports.DiagnosticIdSchema = DiagnosticIdSchema;
|
|
135501
136268
|
exports.DiagnosticWindowPatchSchema = DiagnosticWindowPatchSchema;
|
|
135502
136269
|
exports.DiagnosticWindowSchema = DiagnosticWindowSchema;
|
|
@@ -135544,12 +136311,12 @@ exports.EVENT_PAD_MS = EVENT_PAD_MS;
|
|
|
135544
136311
|
exports.EVENT_TAXONOMY = EVENT_TAXONOMY;
|
|
135545
136312
|
exports.EXPORT_DENSE_MAX_RANGES = EXPORT_DENSE_MAX_RANGES;
|
|
135546
136313
|
exports.EXPORT_INSTANCE_UNKNOWN = EXPORT_INSTANCE_UNKNOWN;
|
|
135547
|
-
exports.EXPRESSION_BUILTINS =
|
|
135548
|
-
exports.EXPRESSION_BUILTIN_NAMES =
|
|
135549
|
-
exports.EXPRESSION_COMPILE_CACHE_CAPACITY =
|
|
135550
|
-
exports.EXPRESSION_IDENTIFIER_RE =
|
|
135551
|
-
exports.EXPRESSION_INJECTED_NOW =
|
|
135552
|
-
exports.EXPRESSION_OUTPUTS =
|
|
136314
|
+
exports.EXPRESSION_BUILTINS = require_implemented_methods.EXPRESSION_BUILTINS;
|
|
136315
|
+
exports.EXPRESSION_BUILTIN_NAMES = require_implemented_methods.EXPRESSION_BUILTIN_NAMES;
|
|
136316
|
+
exports.EXPRESSION_COMPILE_CACHE_CAPACITY = require_implemented_methods.EXPRESSION_COMPILE_CACHE_CAPACITY;
|
|
136317
|
+
exports.EXPRESSION_IDENTIFIER_RE = require_implemented_methods.EXPRESSION_IDENTIFIER_RE;
|
|
136318
|
+
exports.EXPRESSION_INJECTED_NOW = require_implemented_methods.EXPRESSION_INJECTED_NOW;
|
|
136319
|
+
exports.EXPRESSION_OUTPUTS = require_implemented_methods.EXPRESSION_OUTPUTS;
|
|
135553
136320
|
exports.EXTENSION_HOST_DEVICE_TYPES = EXTENSION_HOST_DEVICE_TYPES;
|
|
135554
136321
|
exports.EXTENSION_SLOTS = EXTENSION_SLOTS;
|
|
135555
136322
|
exports.EXTENSION_SLOT_IDS = EXTENSION_SLOT_IDS;
|
|
@@ -135619,12 +136386,12 @@ exports.ExposedDeviceSchema = ExposedDeviceSchema;
|
|
|
135619
136386
|
exports.ExposedEntitySchema = ExposedEntitySchema;
|
|
135620
136387
|
exports.ExposureModeSchema = ExposureModeSchema;
|
|
135621
136388
|
exports.ExpressionBindingSourceSchema = ExpressionBindingSourceSchema;
|
|
135622
|
-
exports.ExpressionEvalError =
|
|
136389
|
+
exports.ExpressionEvalError = require_implemented_methods.ExpressionEvalError;
|
|
135623
136390
|
exports.ExpressionFieldBindingSchema = ExpressionFieldBindingSchema;
|
|
135624
136391
|
exports.ExpressionGlobalBindingSchema = ExpressionGlobalBindingSchema;
|
|
135625
|
-
exports.ExpressionHelperSpecSchema =
|
|
136392
|
+
exports.ExpressionHelperSpecSchema = require_implemented_methods.ExpressionHelperSpecSchema;
|
|
135626
136393
|
exports.ExpressionLiteralBindingSchema = ExpressionLiteralBindingSchema;
|
|
135627
|
-
exports.ExpressionParseError =
|
|
136394
|
+
exports.ExpressionParseError = require_implemented_methods.ExpressionParseError;
|
|
135628
136395
|
exports.ExpressionSourceSchema = ExpressionSourceSchema;
|
|
135629
136396
|
exports.ExtensionCandidateSchema = ExtensionCandidateSchema;
|
|
135630
136397
|
exports.ExtensionCandidatesSchema = ExtensionCandidatesSchema;
|
|
@@ -135656,10 +136423,10 @@ exports.FAN_PRESET_STEPS_MAX = FAN_PRESET_STEPS_MAX;
|
|
|
135656
136423
|
exports.FEEDER_EXAMPLE_ADDON_ID = FEEDER_EXAMPLE_ADDON_ID;
|
|
135657
136424
|
exports.FEEDER_EXAMPLE_HA_DEVICE_ID = FEEDER_EXAMPLE_HA_DEVICE_ID;
|
|
135658
136425
|
exports.FEW_SHOT_COUNT = FEW_SHOT_COUNT;
|
|
135659
|
-
exports.FFMPEG_PATH_ENV =
|
|
136426
|
+
exports.FFMPEG_PATH_ENV = require_implemented_methods.FFMPEG_PATH_ENV;
|
|
135660
136427
|
exports.FIRST_LEVEL_MACRO_CLASSES = FIRST_LEVEL_MACRO_CLASSES;
|
|
135661
136428
|
exports.FORBIDDEN_MESSAGE_PREFIX = require_sleep.FORBIDDEN_MESSAGE_PREFIX;
|
|
135662
|
-
exports.FORWARD_INPUT_KEY =
|
|
136429
|
+
exports.FORWARD_INPUT_KEY = require_implemented_methods.FORWARD_INPUT_KEY;
|
|
135663
136430
|
exports.FULL_IMAGE_BBOX = FULL_IMAGE_BBOX;
|
|
135664
136431
|
exports.FailureContributionSchema = FailureContributionSchema;
|
|
135665
136432
|
exports.FailureCounters = FailureCounters;
|
|
@@ -135682,7 +136449,7 @@ exports.FieldClaimModeSchema = FieldClaimModeSchema;
|
|
|
135682
136449
|
exports.FieldClaimSchema = FieldClaimSchema;
|
|
135683
136450
|
exports.FilterRequiredError = require_sleep.FilterRequiredError;
|
|
135684
136451
|
exports.FloodStatusSchema = FloodStatusSchema;
|
|
135685
|
-
exports.Fmp4BoxSplitter =
|
|
136452
|
+
exports.Fmp4BoxSplitter = require_implemented_methods.Fmp4BoxSplitter;
|
|
135686
136453
|
exports.ForeignSecretMarkerError = require_sleep.ForeignSecretMarkerError;
|
|
135687
136454
|
exports.FrameHandleSchema = require_sleep.FrameHandleSchema;
|
|
135688
136455
|
exports.FrameInputSchema = FrameInputSchema;
|
|
@@ -135691,7 +136458,7 @@ exports.FrameLazyMetricsSchema = FrameLazyMetricsSchema;
|
|
|
135691
136458
|
exports.G711_SCALE_CORRECTION_DB = G711_SCALE_CORRECTION_DB;
|
|
135692
136459
|
exports.GRAMMAR_MAX_LINES = GRAMMAR_MAX_LINES;
|
|
135693
136460
|
exports.GROUP_TEMPLATES = GROUP_TEMPLATES;
|
|
135694
|
-
exports.GROUP_TEMPLATE_IDS =
|
|
136461
|
+
exports.GROUP_TEMPLATE_IDS = require_implemented_methods.GROUP_TEMPLATE_IDS;
|
|
135695
136462
|
exports.GasStatusSchema = GasStatusSchema;
|
|
135696
136463
|
exports.GetLoggingSettingsInputSchema = GetLoggingSettingsInputSchema;
|
|
135697
136464
|
exports.GetStreamWithCodecInputSchema = GetStreamWithCodecInputSchema;
|
|
@@ -135701,9 +136468,9 @@ exports.GridLayoutViewSchema = GridLayoutViewSchema;
|
|
|
135701
136468
|
exports.GroupActiveSchema = GroupActiveSchema;
|
|
135702
136469
|
exports.GroupCommandResultSchema = GroupCommandResultSchema;
|
|
135703
136470
|
exports.GroupCommandsSchema = GroupCommandsSchema;
|
|
135704
|
-
exports.GroupHelperSpecSchema =
|
|
136471
|
+
exports.GroupHelperSpecSchema = require_implemented_methods.GroupHelperSpecSchema;
|
|
135705
136472
|
exports.GroupStatusSchema = GroupStatusSchema;
|
|
135706
|
-
exports.GroupTemplateIdSchema =
|
|
136473
|
+
exports.GroupTemplateIdSchema = require_implemented_methods.GroupTemplateIdSchema;
|
|
135707
136474
|
exports.HAP_AUDIO_BASE = HAP_AUDIO_BASE;
|
|
135708
136475
|
exports.HAP_AUDIO_BITRATE_KBPS = HAP_AUDIO_BITRATE_KBPS;
|
|
135709
136476
|
exports.HAP_AUDIO_VBV_KBITS = HAP_AUDIO_VBV_KBITS;
|
|
@@ -135732,15 +136499,16 @@ exports.HF_REPO = require_sleep.HF_REPO;
|
|
|
135732
136499
|
exports.HISTORY_BUCKET_MS = HISTORY_BUCKET_MS;
|
|
135733
136500
|
exports.HISTORY_CATALOG = HISTORY_CATALOG;
|
|
135734
136501
|
exports.HISTORY_DEFAULT_MIN_INTERVAL_MS = require_sleep.HISTORY_DEFAULT_MIN_INTERVAL_MS;
|
|
135735
|
-
exports.HISTORY_FAST_MS =
|
|
136502
|
+
exports.HISTORY_FAST_MS = require_implemented_methods.HISTORY_FAST_MS;
|
|
135736
136503
|
exports.HISTORY_ITEM_CATALOG = HISTORY_ITEM_CATALOG;
|
|
135737
136504
|
exports.HISTORY_NONE_CAPS = HISTORY_NONE_CAPS;
|
|
135738
|
-
exports.HISTORY_SLOW_MS =
|
|
135739
|
-
exports.HISTORY_TIERS =
|
|
136505
|
+
exports.HISTORY_SLOW_MS = require_implemented_methods.HISTORY_SLOW_MS;
|
|
136506
|
+
exports.HISTORY_TIERS = require_implemented_methods.HISTORY_TIERS;
|
|
135740
136507
|
exports.HISTORY_UNIT_LABELS = require_sleep.HISTORY_UNIT_LABELS;
|
|
135741
136508
|
exports.HOURS_PER_DAY = HOURS_PER_DAY;
|
|
135742
|
-
exports.HOUR_MS =
|
|
136509
|
+
exports.HOUR_MS = require_implemented_methods.HOUR_MS;
|
|
135743
136510
|
exports.HUB_ADDRESS_ROLES = HUB_ADDRESS_ROLES;
|
|
136511
|
+
exports.HUB_ID_PATTERN = HUB_ID_PATTERN;
|
|
135744
136512
|
exports.HUB_MDNS_QUERY_NAME = HUB_MDNS_QUERY_NAME;
|
|
135745
136513
|
exports.HUB_MDNS_ROLE = HUB_MDNS_ROLE;
|
|
135746
136514
|
exports.HUB_MDNS_SERVICE_TYPE = HUB_MDNS_SERVICE_TYPE;
|
|
@@ -135759,8 +136527,8 @@ exports.HeatPumpStatusSchema = HeatPumpStatusSchema;
|
|
|
135759
136527
|
exports.HeatPumpSystemSchema = HeatPumpSystemSchema;
|
|
135760
136528
|
exports.HeatPumpTemperaturesSchema = HeatPumpTemperaturesSchema;
|
|
135761
136529
|
exports.HeatingValveStatusSchema = HeatingValveStatusSchema;
|
|
135762
|
-
exports.HelperMemberSchema =
|
|
135763
|
-
exports.HelperSpecSchema =
|
|
136530
|
+
exports.HelperMemberSchema = require_implemented_methods.HelperMemberSchema;
|
|
136531
|
+
exports.HelperSpecSchema = require_implemented_methods.HelperSpecSchema;
|
|
135764
136532
|
exports.HeroLayoutRowsSchema = HeroLayoutRowsSchema;
|
|
135765
136533
|
exports.HeroRowModelSchema = HeroRowModelSchema;
|
|
135766
136534
|
exports.HfModelResolutionSchema = HfModelResolutionSchema;
|
|
@@ -135782,7 +136550,7 @@ exports.IDLE_ACTION_STATUS = IDLE_ACTION_STATUS;
|
|
|
135782
136550
|
exports.INFERENCE_DEVICE_EXCLUSION_REASONS = INFERENCE_DEVICE_EXCLUSION_REASONS;
|
|
135783
136551
|
exports.INITIAL_PULSE = INITIAL_PULSE;
|
|
135784
136552
|
exports.INITIAL_SPAN = INITIAL_SPAN;
|
|
135785
|
-
exports.INTEGRAL_OUTPUTS =
|
|
136553
|
+
exports.INTEGRAL_OUTPUTS = require_implemented_methods.INTEGRAL_OUTPUTS;
|
|
135786
136554
|
exports.INTERNAL_ACTION_PREFIX = INTERNAL_ACTION_PREFIX;
|
|
135787
136555
|
exports.INVERTIBLE_CAPS = INVERTIBLE_CAPS;
|
|
135788
136556
|
exports.IR_TIMINGS_MAX = IR_TIMINGS_MAX;
|
|
@@ -135802,7 +136570,7 @@ exports.InstallDesktopUpdateReasonSchema = InstallDesktopUpdateReasonSchema;
|
|
|
135802
136570
|
exports.InstallDesktopUpdateResultSchema = InstallDesktopUpdateResultSchema;
|
|
135803
136571
|
exports.InstalledPackageSchema = InstalledPackageSchema;
|
|
135804
136572
|
exports.InstanceInUseError = InstanceInUseError;
|
|
135805
|
-
exports.IntegralHelperSpecSchema =
|
|
136573
|
+
exports.IntegralHelperSpecSchema = require_implemented_methods.IntegralHelperSpecSchema;
|
|
135806
136574
|
exports.IntegrationInstanceDescriptionSchema = IntegrationInstanceDescriptionSchema;
|
|
135807
136575
|
exports.IntegrationInstanceDiscoverySchema = IntegrationInstanceDiscoverySchema;
|
|
135808
136576
|
exports.IntegrationInstanceIdSchema = IntegrationInstanceIdSchema;
|
|
@@ -135829,7 +136597,7 @@ exports.KEYCHAIN_MAX_REFS_PER_CALL = KEYCHAIN_MAX_REFS_PER_CALL;
|
|
|
135829
136597
|
exports.KEYCHAIN_RESET_CONFIRMATION = KEYCHAIN_RESET_CONFIRMATION;
|
|
135830
136598
|
exports.KEYCHAIN_RESET_TRIGGER_ACTOR = KEYCHAIN_RESET_TRIGGER_ACTOR;
|
|
135831
136599
|
exports.KNOWN_CAP_NAMES = KNOWN_CAP_NAMES;
|
|
135832
|
-
exports.KWH_PER_WATT_MS =
|
|
136600
|
+
exports.KWH_PER_WATT_MS = require_implemented_methods.KWH_PER_WATT_MS;
|
|
135833
136601
|
exports.KeptReasonSchema = KeptReasonSchema;
|
|
135834
136602
|
exports.KeyEventSchema = KeyEventSchema;
|
|
135835
136603
|
exports.KeychainAdminSecretSchema = KeychainAdminSecretSchema;
|
|
@@ -135961,18 +136729,18 @@ exports.MAX_CAMERA_SENSORS = MAX_CAMERA_SENSORS;
|
|
|
135961
136729
|
exports.MAX_CLIP_EVENT_IDS = MAX_CLIP_EVENT_IDS;
|
|
135962
136730
|
exports.MAX_CLIP_LABELS = MAX_CLIP_LABELS;
|
|
135963
136731
|
exports.MAX_COMPONENT_BUTTONS = MAX_COMPONENT_BUTTONS;
|
|
135964
|
-
exports.MAX_COMPOSITION_CODE_LENGTH =
|
|
135965
|
-
exports.MAX_COMPOSITION_FEATURES =
|
|
135966
|
-
exports.MAX_COMPOSITION_FIELDS_PER_FEATURE =
|
|
135967
|
-
exports.MAX_COMPOSITION_ITEMS =
|
|
136732
|
+
exports.MAX_COMPOSITION_CODE_LENGTH = require_implemented_methods.MAX_COMPOSITION_CODE_LENGTH;
|
|
136733
|
+
exports.MAX_COMPOSITION_FEATURES = require_implemented_methods.MAX_COMPOSITION_FEATURES;
|
|
136734
|
+
exports.MAX_COMPOSITION_FIELDS_PER_FEATURE = require_implemented_methods.MAX_COMPOSITION_FIELDS_PER_FEATURE;
|
|
136735
|
+
exports.MAX_COMPOSITION_ITEMS = require_implemented_methods.MAX_COMPOSITION_ITEMS;
|
|
135968
136736
|
exports.MAX_CONDITION_DEPTH = MAX_CONDITION_DEPTH;
|
|
135969
136737
|
exports.MAX_CONDITION_LEAVES = MAX_CONDITION_LEAVES;
|
|
135970
|
-
exports.MAX_EXPRESSION_AST_NODES =
|
|
135971
|
-
exports.MAX_EXPRESSION_BINDINGS =
|
|
135972
|
-
exports.MAX_EXPRESSION_CALL_ARGS =
|
|
135973
|
-
exports.MAX_EXPRESSION_EVAL_STEPS =
|
|
135974
|
-
exports.MAX_EXPRESSION_SOURCE_LENGTH =
|
|
135975
|
-
exports.MAX_HELPER_MEMBERS =
|
|
136738
|
+
exports.MAX_EXPRESSION_AST_NODES = require_implemented_methods.MAX_EXPRESSION_AST_NODES;
|
|
136739
|
+
exports.MAX_EXPRESSION_BINDINGS = require_implemented_methods.MAX_EXPRESSION_BINDINGS;
|
|
136740
|
+
exports.MAX_EXPRESSION_CALL_ARGS = require_implemented_methods.MAX_EXPRESSION_CALL_ARGS;
|
|
136741
|
+
exports.MAX_EXPRESSION_EVAL_STEPS = require_implemented_methods.MAX_EXPRESSION_EVAL_STEPS;
|
|
136742
|
+
exports.MAX_EXPRESSION_SOURCE_LENGTH = require_implemented_methods.MAX_EXPRESSION_SOURCE_LENGTH;
|
|
136743
|
+
exports.MAX_HELPER_MEMBERS = require_implemented_methods.MAX_HELPER_MEMBERS;
|
|
135976
136744
|
exports.MAX_HOLD_ATTEMPTS_LIMIT = MAX_HOLD_ATTEMPTS_LIMIT;
|
|
135977
136745
|
exports.MAX_KEYS = MAX_KEYS;
|
|
135978
136746
|
exports.MAX_LAYOUT_GROUPS = MAX_LAYOUT_GROUPS;
|
|
@@ -136003,8 +136771,8 @@ exports.MIGRATION_API_V1_METHODS = MIGRATION_API_V1_METHODS;
|
|
|
136003
136771
|
exports.MIGRATION_API_VERSION = require_sleep.MIGRATION_API_VERSION;
|
|
136004
136772
|
exports.MIGRATION_ID_PATTERN = MIGRATION_ID_PATTERN;
|
|
136005
136773
|
exports.MINUTES_PER_DAY = MINUTES_PER_DAY;
|
|
136006
|
-
exports.MINUTE_MS =
|
|
136007
|
-
exports.MIN_CUSTOM_MINUTES =
|
|
136774
|
+
exports.MINUTE_MS = require_implemented_methods.MINUTE_MS;
|
|
136775
|
+
exports.MIN_CUSTOM_MINUTES = require_implemented_methods.MIN_CUSTOM_MINUTES;
|
|
136008
136776
|
exports.MIN_RUN_MS = MIN_RUN_MS;
|
|
136009
136777
|
exports.MIN_SCRUBBED_LENGTH = require_sleep.MIN_SCRUBBED_LENGTH;
|
|
136010
136778
|
exports.MIN_SESSIONS_PER_DEVICE_RANGE = MIN_SESSIONS_PER_DEVICE_RANGE;
|
|
@@ -136205,6 +136973,7 @@ exports.NC_SYSTEM_EVENT_SUMMARY_FAMILIES = NC_SYSTEM_EVENT_SUMMARY_FAMILIES;
|
|
|
136205
136973
|
exports.NC_SYSTEM_RULE_KINDS = NC_SYSTEM_RULE_KINDS;
|
|
136206
136974
|
exports.NC_TAXONOMY = NC_TAXONOMY;
|
|
136207
136975
|
exports.NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS;
|
|
136976
|
+
exports.NC_TEMPLATE_TITLE_MAX_CHARS = NC_TEMPLATE_TITLE_MAX_CHARS;
|
|
136208
136977
|
exports.NC_TEMPLATE_VARS = NC_TEMPLATE_VARS;
|
|
136209
136978
|
exports.NC_UPDATE_EVENT_PACKAGE_NAMES = NC_UPDATE_EVENT_PACKAGE_NAMES;
|
|
136210
136979
|
exports.NETWORK_LINK_TYPES = NETWORK_LINK_TYPES;
|
|
@@ -136212,10 +136981,11 @@ exports.NETWORK_LINK_UNKNOWN = NETWORK_LINK_UNKNOWN;
|
|
|
136212
136981
|
exports.NEXT_OCCURRENCE_HORIZON_DAYS = NEXT_OCCURRENCE_HORIZON_DAYS;
|
|
136213
136982
|
exports.NODE_BENCHMARK_DEFAULTS = NODE_BENCHMARK_DEFAULTS;
|
|
136214
136983
|
exports.NODE_COLOR_IDS = require_node_color.NODE_COLOR_IDS;
|
|
136984
|
+
exports.NOTIFICATION_FIELDS = NOTIFICATION_FIELDS;
|
|
136215
136985
|
exports.NOTIFICATION_OUTPUT_CAP = NOTIFICATION_OUTPUT_CAP;
|
|
136216
136986
|
exports.NOT_A_HERO_FACT = NOT_A_HERO_FACT;
|
|
136217
136987
|
exports.NO_MEASURED_CAPACITY = NO_MEASURED_CAPACITY;
|
|
136218
|
-
exports.NUMERIC_AGGREGATES =
|
|
136988
|
+
exports.NUMERIC_AGGREGATES = require_implemented_methods.NUMERIC_AGGREGATES;
|
|
136219
136989
|
exports.NativeCropBboxSchema = NativeCropBboxSchema;
|
|
136220
136990
|
exports.NativeCropRefSchema = NativeCropRefSchema;
|
|
136221
136991
|
exports.NativeCropResultSchema = NativeCropResultSchema;
|
|
@@ -136315,6 +137085,9 @@ exports.NcSystemEventDeliveryModeSchema = NcSystemEventDeliveryModeSchema;
|
|
|
136315
137085
|
exports.NcSystemEventDeliverySchema = NcSystemEventDeliverySchema;
|
|
136316
137086
|
exports.NcSystemEventDeliveryToggleSchema = NcSystemEventDeliveryToggleSchema;
|
|
136317
137087
|
exports.NcSystemEventKindSchema = NcSystemEventKindSchema;
|
|
137088
|
+
exports.NcTargetAttachmentSchema = NcTargetAttachmentSchema;
|
|
137089
|
+
exports.NcTargetOverrideSchema = NcTargetOverrideSchema;
|
|
137090
|
+
exports.NcTargetOverridesSchema = NcTargetOverridesSchema;
|
|
136318
137091
|
exports.NcTaxonomyEntrySchema = NcTaxonomyEntrySchema;
|
|
136319
137092
|
exports.NcTaxonomySchema = NcTaxonomySchema;
|
|
136320
137093
|
exports.NcTemplateDefaultSchema = NcTemplateDefaultSchema;
|
|
@@ -136373,6 +137146,7 @@ exports.NodeRemovedInputSchema = NodeRemovedInputSchema;
|
|
|
136373
137146
|
exports.NodeRemovedResultSchema = NodeRemovedResultSchema;
|
|
136374
137147
|
exports.NotificationActionIconSchema = NotificationActionIconSchema;
|
|
136375
137148
|
exports.NotificationActionSchema = NotificationActionSchema;
|
|
137149
|
+
exports.NotificationFieldSchema = NotificationFieldSchema;
|
|
136376
137150
|
exports.NotificationFormatSchema = NotificationFormatSchema;
|
|
136377
137151
|
exports.NotificationSchema = NotificationSchema;
|
|
136378
137152
|
exports.NotificationTargetStore = NotificationTargetStore;
|
|
@@ -136385,6 +137159,7 @@ exports.OPERATOR_WRITTEN_STALE_MS = OPERATOR_WRITTEN_STALE_MS;
|
|
|
136385
137159
|
exports.OPS_LOG_DEFAULT_LIMIT = OPS_LOG_DEFAULT_LIMIT;
|
|
136386
137160
|
exports.OPS_LOG_RING_DEFAULT_MAX = OPS_LOG_RING_DEFAULT_MAX;
|
|
136387
137161
|
exports.ORPHAN_SWEEP_MIN_INTERVAL_MS = ORPHAN_SWEEP_MIN_INTERVAL_MS;
|
|
137162
|
+
exports.OSD_TEMPLATE_TEXT_MAX = OSD_TEMPLATE_TEXT_MAX;
|
|
136388
137163
|
exports.OVERFLOW_REASON = OVERFLOW_REASON;
|
|
136389
137164
|
exports.OVERLAY_LAYERS = OVERLAY_LAYERS;
|
|
136390
137165
|
exports.OWNER_ONLY_EVENT_CATEGORIES = require_event_category.OWNER_ONLY_EVENT_CATEGORIES;
|
|
@@ -136417,14 +137192,9 @@ exports.OsdRenderOutcomeEnum = OsdRenderOutcomeEnum;
|
|
|
136417
137192
|
exports.OsdRenderResultSchema = OsdRenderResultSchema;
|
|
136418
137193
|
exports.OsdSlotBindingSchema = OsdSlotBindingSchema;
|
|
136419
137194
|
exports.OsdSlotViewSchema = OsdSlotViewSchema;
|
|
136420
|
-
exports.OsdSourceOptionSchema = OsdSourceOptionSchema;
|
|
136421
137195
|
exports.OsdSourceSchema = OsdSourceSchema;
|
|
136422
|
-
exports.OsdSourceValueTypeEnum = OsdSourceValueTypeEnum;
|
|
136423
137196
|
exports.OsdStatusSchema = OsdStatusSchema;
|
|
136424
|
-
exports.
|
|
136425
|
-
exports.OsdTemplateFormatSchema = OsdTemplateFormatSchema;
|
|
136426
|
-
exports.OsdTemplatePickSchema = OsdTemplatePickSchema;
|
|
136427
|
-
exports.OsdTemplateTokenKindSchema = OsdTemplateTokenKindSchema;
|
|
137197
|
+
exports.OsdTemplatePreviewSchema = OsdTemplatePreviewSchema;
|
|
136428
137198
|
exports.OverrideDraftSchema = OverrideDraftSchema;
|
|
136429
137199
|
exports.PALETTE_BACKGROUNDS = PALETTE_BACKGROUNDS;
|
|
136430
137200
|
exports.PALETTE_ENTRY_IDS = PALETTE_ENTRY_IDS;
|
|
@@ -136617,17 +137387,17 @@ exports.REMOTE_WIDGET_ROLES = REMOTE_WIDGET_ROLES;
|
|
|
136617
137387
|
exports.REMOVAL_RECONCILE_INTERVAL_MS = REMOVAL_RECONCILE_INTERVAL_MS;
|
|
136618
137388
|
exports.REMOVED_MODEL_IDS = REMOVED_MODEL_IDS;
|
|
136619
137389
|
exports.REMOVE_LEAF = require_sleep.REMOVE_LEAF;
|
|
136620
|
-
exports.RESERVED_BINDING_NAMES =
|
|
137390
|
+
exports.RESERVED_BINDING_NAMES = require_implemented_methods.RESERVED_BINDING_NAMES;
|
|
136621
137391
|
exports.RESERVED_COLLECTION_SOURCES = RESERVED_COLLECTION_SOURCES;
|
|
136622
|
-
exports.RESET_PERIODS =
|
|
137392
|
+
exports.RESET_PERIODS = require_implemented_methods.RESET_PERIODS;
|
|
136623
137393
|
exports.RESTORED_CAP_NAMES = RESTORED_CAP_NAMES;
|
|
136624
|
-
exports.RESTREAM_INPUT_PROBE =
|
|
137394
|
+
exports.RESTREAM_INPUT_PROBE = require_implemented_methods.RESTREAM_INPUT_PROBE;
|
|
136625
137395
|
exports.RETRAIN_REVIEW_ADJUSTED_IOU = RETRAIN_REVIEW_ADJUSTED_IOU;
|
|
136626
137396
|
exports.RETRAIN_REVIEW_MATCH_IOU = RETRAIN_REVIEW_MATCH_IOU;
|
|
136627
137397
|
exports.RETRAIN_REVIEW_STATUSES = RETRAIN_REVIEW_STATUSES;
|
|
136628
137398
|
exports.RETRAIN_REVISION_CONFLICT = RETRAIN_REVISION_CONFLICT;
|
|
136629
137399
|
exports.REVALIDATE_AFTER_MS = require_sleep.REVALIDATE_AFTER_MS;
|
|
136630
|
-
exports.ROLLING_SPANS =
|
|
137400
|
+
exports.ROLLING_SPANS = require_implemented_methods.ROLLING_SPANS;
|
|
136631
137401
|
exports.ROOM_EXAMPLE_MOTION_SOURCES = ROOM_EXAMPLE_MOTION_SOURCES;
|
|
136632
137402
|
exports.ROOM_EXAMPLE_TEMPERATURE_SOURCES = ROOM_EXAMPLE_TEMPERATURE_SOURCES;
|
|
136633
137403
|
exports.ROOM_OCCUPANCY_WINDOW_MS = ROOM_OCCUPANCY_WINDOW_MS;
|
|
@@ -136816,7 +137586,7 @@ exports.RetrainVerdictValueSchema = RetrainVerdictValueSchema;
|
|
|
136816
137586
|
exports.RevConflictError = require_sleep.RevConflictError;
|
|
136817
137587
|
exports.RevokeOwnDeviceCertificateResultSchema = RevokeOwnDeviceCertificateResultSchema;
|
|
136818
137588
|
exports.RingBuffer = RingBuffer;
|
|
136819
|
-
exports.RollingWindowSchema =
|
|
137589
|
+
exports.RollingWindowSchema = require_implemented_methods.RollingWindowSchema;
|
|
136820
137590
|
exports.RootStepSupplySchema = RootStepSupplySchema;
|
|
136821
137591
|
exports.RtpSourceSchema = RtpSourceSchema;
|
|
136822
137592
|
exports.RtspRestreamEntrySchema = RtspRestreamEntrySchema;
|
|
@@ -136860,7 +137630,7 @@ exports.SECRET_REF_SCHEME = require_sleep.SECRET_REF_SCHEME;
|
|
|
136860
137630
|
exports.SENSOR_FEATURES = SENSOR_FEATURES;
|
|
136861
137631
|
exports.SENSOR_MAP = SENSOR_MAP;
|
|
136862
137632
|
exports.SERIAL_CAPACITY_CAMERA_FPS = SERIAL_CAPACITY_CAMERA_FPS;
|
|
136863
|
-
exports.SERIES_KINDS =
|
|
137633
|
+
exports.SERIES_KINDS = require_implemented_methods.SERIES_KINDS;
|
|
136864
137634
|
exports.SERVER_NAME_MAX_LENGTH = SERVER_NAME_MAX_LENGTH;
|
|
136865
137635
|
exports.SERVER_NAME_SETTING_KEY = SERVER_NAME_SETTING_KEY;
|
|
136866
137636
|
exports.SESSION_LOST_ALERT_CATEGORY = SESSION_LOST_ALERT_CATEGORY;
|
|
@@ -136880,17 +137650,17 @@ exports.SMTP_INBOUND_RING_MAX_AGE_MS = SMTP_INBOUND_RING_MAX_AGE_MS;
|
|
|
136880
137650
|
exports.SMTP_INBOUND_RING_MAX_MESSAGES = SMTP_INBOUND_RING_MAX_MESSAGES;
|
|
136881
137651
|
exports.SMTP_INBOUND_TEXT_MAX_CHARS = SMTP_INBOUND_TEXT_MAX_CHARS;
|
|
136882
137652
|
exports.SMTP_RECIPIENT_CLAIMED = SMTP_RECIPIENT_CLAIMED;
|
|
136883
|
-
exports.SOURCE_CAPS =
|
|
136884
|
-
exports.SOURCE_CAP_ACTIVE_FIELD =
|
|
136885
|
-
exports.SOURCE_CAP_CHANGED_AT_FIELD =
|
|
136886
|
-
exports.SOURCE_DEVICE_TYPES =
|
|
137653
|
+
exports.SOURCE_CAPS = require_implemented_methods.SOURCE_CAPS;
|
|
137654
|
+
exports.SOURCE_CAP_ACTIVE_FIELD = require_implemented_methods.SOURCE_CAP_ACTIVE_FIELD;
|
|
137655
|
+
exports.SOURCE_CAP_CHANGED_AT_FIELD = require_implemented_methods.SOURCE_CAP_CHANGED_AT_FIELD;
|
|
137656
|
+
exports.SOURCE_DEVICE_TYPES = require_implemented_methods.SOURCE_DEVICE_TYPES;
|
|
136887
137657
|
exports.SOURCE_INFO_METADATA_KEY = SOURCE_INFO_METADATA_KEY;
|
|
136888
137658
|
exports.SSO_STATE_COOKIE = SSO_STATE_COOKIE;
|
|
136889
137659
|
exports.SSO_STATE_COOKIE_MAX_AGE_SEC = SSO_STATE_COOKIE_MAX_AGE_SEC;
|
|
136890
137660
|
exports.STATE_LABELS = STATE_LABELS;
|
|
136891
137661
|
exports.STATE_LABEL_KEYS = STATE_LABEL_KEYS;
|
|
136892
137662
|
exports.STATIONARY_OVERLAY_STYLE = STATIONARY_OVERLAY_STYLE;
|
|
136893
|
-
exports.STATISTIC_STATS =
|
|
137663
|
+
exports.STATISTIC_STATS = require_implemented_methods.STATISTIC_STATS;
|
|
136894
137664
|
exports.STEP_DEVICE_CONCURRENCY = STEP_DEVICE_CONCURRENCY;
|
|
136895
137665
|
exports.STORAGE_ACCESS_FALLBACK = STORAGE_ACCESS_FALLBACK;
|
|
136896
137666
|
exports.STORAGE_BYTES_PER_GB = STORAGE_BYTES_PER_GB;
|
|
@@ -136985,12 +137755,13 @@ exports.StaleDataReportSchema = StaleDataReportSchema;
|
|
|
136985
137755
|
exports.StaleDevicePinSchema = StaleDevicePinSchema;
|
|
136986
137756
|
exports.StaleKindFindingSchema = StaleKindFindingSchema;
|
|
136987
137757
|
exports.StaleSettingsKeyFindingSchema = StaleSettingsKeyFindingSchema;
|
|
137758
|
+
exports.StartClusterUpdateResultSchema = StartClusterUpdateResultSchema;
|
|
136988
137759
|
exports.StartEmbeddedInputSchema = StartEmbeddedInputSchema;
|
|
136989
137760
|
exports.StartEnrollmentOutputSchema = StartEnrollmentOutputSchema;
|
|
136990
137761
|
exports.StationaryObjectSchema = StationaryObjectSchema;
|
|
136991
137762
|
exports.StationarySubjectSchema = StationarySubjectSchema;
|
|
136992
|
-
exports.StatisticHelperSpecSchema =
|
|
136993
|
-
exports.StatisticWindowSchema =
|
|
137763
|
+
exports.StatisticHelperSpecSchema = require_implemented_methods.StatisticHelperSpecSchema;
|
|
137764
|
+
exports.StatisticWindowSchema = require_implemented_methods.StatisticWindowSchema;
|
|
136994
137765
|
exports.StepDeviceTraceSchema = StepDeviceTraceSchema;
|
|
136995
137766
|
exports.StepTemplateError = StepTemplateError;
|
|
136996
137767
|
exports.StorageAbortUploadInputSchema = AbortUploadInputSchema;
|
|
@@ -137083,6 +137854,7 @@ exports.TamperStatusSchema = TamperStatusSchema;
|
|
|
137083
137854
|
exports.TargetKindCapsSchema = TargetKindCapsSchema;
|
|
137084
137855
|
exports.TargetKindLevelSchema = TargetKindLevelSchema;
|
|
137085
137856
|
exports.TargetKindSchema = TargetKindSchema;
|
|
137857
|
+
exports.TargetKindTextCapsSchema = TargetKindTextCapsSchema;
|
|
137086
137858
|
exports.TargetSchema = TargetSchema;
|
|
137087
137859
|
exports.TemperatureSensorStatusSchema = TemperatureSensorStatusSchema;
|
|
137088
137860
|
exports.TemplateDeleteResultSchema = TemplateDeleteResultSchema;
|
|
@@ -137099,7 +137871,7 @@ exports.TerminalSessionInfoSchema = TerminalSessionInfoSchema;
|
|
|
137099
137871
|
exports.TestConnectionResultSchema = TestConnectionResultSchema;
|
|
137100
137872
|
exports.TestConnectionStatusEnum = TestConnectionStatusEnum;
|
|
137101
137873
|
exports.TestResultSchema = TestResultSchema;
|
|
137102
|
-
exports.ThresholdHelperSpecSchema =
|
|
137874
|
+
exports.ThresholdHelperSpecSchema = require_implemented_methods.ThresholdHelperSpecSchema;
|
|
137103
137875
|
exports.TimeSpecSchema = TimeSpecSchema;
|
|
137104
137876
|
exports.TimedRunActuatorSchema = TimedRunActuatorSchema;
|
|
137105
137877
|
exports.TimedRunOptionsSchema = TimedRunOptionsSchema;
|
|
@@ -137340,6 +138112,7 @@ exports.applyModeDelaysEdits = applyModeDelaysEdits;
|
|
|
137340
138112
|
exports.applyModeDeviceListEdit = applyModeDeviceListEdit;
|
|
137341
138113
|
exports.applyModelBoundSettings = applyModelBoundSettings;
|
|
137342
138114
|
exports.applyNonBlockingEdit = applyNonBlockingEdit;
|
|
138115
|
+
exports.applyPrimaryChildPreference = applyPrimaryChildPreference;
|
|
137343
138116
|
exports.applyPrimaryChildRule = applyPrimaryChildRule;
|
|
137344
138117
|
exports.applySecureOnArmEdit = applySecureOnArmEdit;
|
|
137345
138118
|
exports.arithmeticDraft = arithmeticDraft;
|
|
@@ -137357,6 +138130,7 @@ exports.assertTimelapseCadences = assertTimelapseCadences;
|
|
|
137357
138130
|
exports.assertTransactScope = require_sleep.assertTransactScope;
|
|
137358
138131
|
exports.assertValidDeclaration = require_sleep.assertValidDeclaration;
|
|
137359
138132
|
exports.assignNodeColorId = require_node_color.assignNodeColorId;
|
|
138133
|
+
exports.attachmentKindsOf = attachmentKindsOf;
|
|
137360
138134
|
exports.audioAnalysisCapability = audioAnalysisCapability;
|
|
137361
138135
|
exports.audioAnalyzerCapability = audioAnalyzerCapability;
|
|
137362
138136
|
exports.audioChunkBytesPerSample = require_sleep.audioChunkBytesPerSample;
|
|
@@ -137367,7 +138141,7 @@ exports.audioLabelChoices = audioLabelChoices;
|
|
|
137367
138141
|
exports.audioMetricsCapability = audioMetricsCapability;
|
|
137368
138142
|
exports.audioModeOf = audioModeOf;
|
|
137369
138143
|
exports.audioOrDefaults = audioOrDefaults;
|
|
137370
|
-
exports.audioPlanFromEncodeProfile =
|
|
138144
|
+
exports.audioPlanFromEncodeProfile = require_implemented_methods.audioPlanFromEncodeProfile;
|
|
137371
138145
|
exports.audioScaleEraOf = audioScaleEraOf;
|
|
137372
138146
|
exports.auditedFields = require_sleep.auditedFields;
|
|
137373
138147
|
exports.authProviderCapability = authProviderCapability;
|
|
@@ -137388,7 +138162,7 @@ exports.brokerLinkPortsOver = brokerLinkPortsOver;
|
|
|
137388
138162
|
exports.bucketStartOf = bucketStartOf;
|
|
137389
138163
|
exports.buildActionSteps = buildActionSteps;
|
|
137390
138164
|
exports.buildAddonRouteProvider = buildAddonRouteProvider;
|
|
137391
|
-
exports.buildAudioArgs =
|
|
138165
|
+
exports.buildAudioArgs = require_implemented_methods.buildAudioArgs;
|
|
137392
138166
|
exports.buildBenchStepTree = buildBenchStepTree;
|
|
137393
138167
|
exports.buildCapabilityLookup = buildCapabilityLookup;
|
|
137394
138168
|
exports.buildDeviceAdminUrl = buildDeviceAdminUrl;
|
|
@@ -137397,9 +138171,9 @@ exports.buildDeviceSignatureMessage = buildDeviceSignatureMessage;
|
|
|
137397
138171
|
exports.buildDraftJsonSchema = buildDraftJsonSchema;
|
|
137398
138172
|
exports.buildDraftPrompt = buildDraftPrompt;
|
|
137399
138173
|
exports.buildEventKindDescriptor = buildEventKindDescriptor;
|
|
137400
|
-
exports.buildFfmpegArgs =
|
|
138174
|
+
exports.buildFfmpegArgs = require_implemented_methods.buildFfmpegArgs;
|
|
137401
138175
|
exports.buildHeroModel = buildHeroModel;
|
|
137402
|
-
exports.buildInputArgs =
|
|
138176
|
+
exports.buildInputArgs = require_implemented_methods.buildInputArgs;
|
|
137403
138177
|
exports.buildLinkedInstances = buildLinkedInstances;
|
|
137404
138178
|
exports.buildModelVariantGroups = buildModelVariantGroups;
|
|
137405
138179
|
exports.buildNcTaxonomy = buildNcTaxonomy;
|
|
@@ -137414,7 +138188,7 @@ exports.buildStreamParamsConfigSchema = buildStreamParamsConfigSchema;
|
|
|
137414
138188
|
exports.buildSubjectPath = buildSubjectPath;
|
|
137415
138189
|
exports.buildTriggerTrace = buildTriggerTrace;
|
|
137416
138190
|
exports.buildUserScopedNotificationTargetInstances = buildUserScopedNotificationTargetInstances;
|
|
137417
|
-
exports.buildVideoArgs =
|
|
138191
|
+
exports.buildVideoArgs = require_implemented_methods.buildVideoArgs;
|
|
137418
138192
|
exports.buildViewerLink = buildViewerLink;
|
|
137419
138193
|
exports.buildVocabularySlice = buildVocabularySlice;
|
|
137420
138194
|
exports.builtCapabilityBlockers = builtCapabilityBlockers;
|
|
@@ -137472,10 +138246,11 @@ exports.clipExportFailureOf = clipExportFailureOf;
|
|
|
137472
138246
|
exports.clipLabelsForWindow = clipLabelsForWindow;
|
|
137473
138247
|
exports.clipReasonHeaderValue = clipReasonHeaderValue;
|
|
137474
138248
|
exports.cloneAlarmSettings = cloneAlarmSettings;
|
|
137475
|
-
exports.cloneStatefulExpressionMemory =
|
|
138249
|
+
exports.cloneStatefulExpressionMemory = require_implemented_methods.cloneStatefulExpressionMemory;
|
|
137476
138250
|
exports.clusterModelSettingKey = clusterModelSettingKey;
|
|
137477
138251
|
exports.clusterStepSettingFieldsFor = clusterStepSettingFieldsFor;
|
|
137478
138252
|
exports.clusterStepSettingKey = clusterStepSettingKey;
|
|
138253
|
+
exports.clusterUpdateCapability = clusterUpdateCapability;
|
|
137479
138254
|
exports.codecIsAccepted = codecIsAccepted;
|
|
137480
138255
|
exports.collectDeviceTemplates = collectDeviceTemplates;
|
|
137481
138256
|
exports.collectHydratedFieldEntries = require_sleep.collectHydratedFieldEntries;
|
|
@@ -137499,8 +138274,8 @@ exports.commitWatchdogRestart = commitWatchdogRestart;
|
|
|
137499
138274
|
exports.compareDraft = compareDraft;
|
|
137500
138275
|
exports.compareToTarget = compareToTarget;
|
|
137501
138276
|
exports.compareVersions = compareVersions;
|
|
137502
|
-
exports.compileExpression =
|
|
137503
|
-
exports.compileExpressionSafe =
|
|
138277
|
+
exports.compileExpression = require_implemented_methods.compileExpression;
|
|
138278
|
+
exports.compileExpressionSafe = require_implemented_methods.compileExpressionSafe;
|
|
137504
138279
|
exports.compileHelper = compileHelper;
|
|
137505
138280
|
exports.compileKeyedArrayOverride = compileKeyedArrayOverride;
|
|
137506
138281
|
exports.compilePulseOverride = compilePulseOverride;
|
|
@@ -137508,17 +138283,17 @@ exports.compileScalarOverride = compileScalarOverride;
|
|
|
137508
138283
|
exports.compileSpanOverride = compileSpanOverride;
|
|
137509
138284
|
exports.composeInstanceKinds = composeInstanceKinds;
|
|
137510
138285
|
exports.composeSwitchedOff = composeSwitchedOff;
|
|
137511
|
-
exports.composedDeviceRef =
|
|
137512
|
-
exports.composedDeviceStableId =
|
|
138286
|
+
exports.composedDeviceRef = require_implemented_methods.composedDeviceRef;
|
|
138287
|
+
exports.composedDeviceStableId = require_implemented_methods.composedDeviceStableId;
|
|
137513
138288
|
exports.composerCapability = composerCapability;
|
|
137514
138289
|
exports.compositionEdges = compositionEdges;
|
|
137515
|
-
exports.compositionFeatureEnabled =
|
|
138290
|
+
exports.compositionFeatureEnabled = require_implemented_methods.compositionFeatureEnabled;
|
|
137516
138291
|
exports.compositionFieldKey = compositionFieldKey;
|
|
137517
138292
|
exports.compositionFillStatus = compositionFillStatus;
|
|
137518
|
-
exports.compositionItemFieldPath =
|
|
137519
|
-
exports.compositionReadKey =
|
|
137520
|
-
exports.compositionSliceKey =
|
|
137521
|
-
exports.compositionSourceKey =
|
|
138293
|
+
exports.compositionItemFieldPath = require_implemented_methods.compositionItemFieldPath;
|
|
138294
|
+
exports.compositionReadKey = require_implemented_methods.compositionReadKey;
|
|
138295
|
+
exports.compositionSliceKey = require_implemented_methods.compositionSliceKey;
|
|
138296
|
+
exports.compositionSourceKey = require_implemented_methods.compositionSourceKey;
|
|
137522
138297
|
exports.compositionSourceRefs = compositionSourceRefs;
|
|
137523
138298
|
exports.compositionTargetCaps = compositionTargetCaps;
|
|
137524
138299
|
exports.computeCapacityShares = computeCapacityShares;
|
|
@@ -137557,7 +138332,7 @@ exports.createDeviceProxy = require_sleep.createDeviceProxy;
|
|
|
137557
138332
|
exports.createDurableState = require_sleep.createDurableState;
|
|
137558
138333
|
exports.createEvent = require_sleep.createEvent;
|
|
137559
138334
|
exports.createEventBusSliceSource = require_sleep.createEventBusSliceSource;
|
|
137560
|
-
exports.createExpressionScope =
|
|
138335
|
+
exports.createExpressionScope = require_implemented_methods.createExpressionScope;
|
|
137561
138336
|
exports.createHwAccelCache = createHwAccelCache;
|
|
137562
138337
|
exports.createLazyTrpcSource = require_sleep.createLazyTrpcSource;
|
|
137563
138338
|
exports.createLogChannelsProvider = createLogChannelsProvider;
|
|
@@ -137566,7 +138341,7 @@ exports.createRecordsAccess = require_sleep.createRecordsAccess;
|
|
|
137566
138341
|
exports.createRuntimeStateBridge = createRuntimeStateBridge;
|
|
137567
138342
|
exports.createSecretsAccess = require_sleep.createSecretsAccess;
|
|
137568
138343
|
exports.createSliceHandle = require_sleep.createSliceHandle;
|
|
137569
|
-
exports.createStatefulExpressionMemory =
|
|
138344
|
+
exports.createStatefulExpressionMemory = require_implemented_methods.createStatefulExpressionMemory;
|
|
137570
138345
|
exports.createSystemProxy = createSystemProxy;
|
|
137571
138346
|
exports.customAction = require_sleep.customAction;
|
|
137572
138347
|
exports.customKeyOfRole = customKeyOfRole;
|
|
@@ -137606,12 +138381,14 @@ exports.defineRecordKinds = require_sleep.defineRecordKinds;
|
|
|
137606
138381
|
exports.dehydrateConfigField = require_sleep.dehydrateConfigField;
|
|
137607
138382
|
exports.dehydrateSchema = require_sleep.dehydrateSchema;
|
|
137608
138383
|
exports.deleteAlarmProfile = deleteAlarmProfile;
|
|
138384
|
+
exports.deliverableFields = deliverableFields;
|
|
137609
138385
|
exports.deliveryParamsDeclaredBy = deliveryParamsDeclaredBy;
|
|
137610
138386
|
exports.derivativeDraft = derivativeDraft;
|
|
137611
138387
|
exports.derivativeUnitLabel = derivativeUnitLabel;
|
|
137612
138388
|
exports.deriveBatteryPresence = deriveBatteryPresence;
|
|
137613
138389
|
exports.deriveCameraSwitches = deriveCameraSwitches;
|
|
137614
138390
|
exports.deriveDetailCropRect = deriveDetailCropRect;
|
|
138391
|
+
exports.deriveFeatureProvenance = deriveFeatureProvenance;
|
|
137615
138392
|
exports.deriveMaskSupplies = deriveMaskSupplies;
|
|
137616
138393
|
exports.deriveMediaPlayerView = deriveMediaPlayerView;
|
|
137617
138394
|
exports.derivePostTriggeredAction = derivePostTriggeredAction;
|
|
@@ -137658,7 +138435,7 @@ exports.deviceStateCapability = deviceStateCapability;
|
|
|
137658
138435
|
exports.deviceStatusCapability = deviceStatusCapability;
|
|
137659
138436
|
exports.deviceTransitionsCapability = deviceTransitionsCapability;
|
|
137660
138437
|
exports.diffStepSettings = diffStepSettings;
|
|
137661
|
-
exports.disarmRoseMemory =
|
|
138438
|
+
exports.disarmRoseMemory = require_implemented_methods.disarmRoseMemory;
|
|
137662
138439
|
exports.dishwasherCapability = dishwasherCapability;
|
|
137663
138440
|
exports.displayPaletteCapability = displayPaletteCapability;
|
|
137664
138441
|
exports.displayUnitFor = require_sleep.displayUnitFor;
|
|
@@ -137697,19 +138474,19 @@ exports.enumerateSchemaFields = enumerateSchemaFields;
|
|
|
137697
138474
|
exports.errMsg = require_composed_stable_id.errMsg;
|
|
137698
138475
|
exports.estimateNodeBenchmarkDurationMs = estimateNodeBenchmarkDurationMs;
|
|
137699
138476
|
exports.evaluateAggregate = evaluateAggregate;
|
|
137700
|
-
exports.evaluateAst =
|
|
138477
|
+
exports.evaluateAst = require_implemented_methods.evaluateAst;
|
|
137701
138478
|
exports.evaluateCompositionField = evaluateCompositionField;
|
|
137702
138479
|
exports.evaluateConditionTree = evaluateConditionTree;
|
|
137703
|
-
exports.evaluateCount =
|
|
137704
|
-
exports.evaluateDerivative =
|
|
137705
|
-
exports.evaluateExpressionSource =
|
|
138480
|
+
exports.evaluateCount = require_implemented_methods.evaluateCount;
|
|
138481
|
+
exports.evaluateDerivative = require_implemented_methods.evaluateDerivative;
|
|
138482
|
+
exports.evaluateExpressionSource = require_implemented_methods.evaluateExpressionSource;
|
|
137706
138483
|
exports.evaluatePoolMemory = evaluatePoolMemory;
|
|
137707
|
-
exports.evaluateRose =
|
|
137708
|
-
exports.evaluateSensorEdge =
|
|
137709
|
-
exports.evaluateSensorLevelEdge =
|
|
137710
|
-
exports.evaluateStatefulExpressionCall =
|
|
138484
|
+
exports.evaluateRose = require_implemented_methods.evaluateRose;
|
|
138485
|
+
exports.evaluateSensorEdge = require_implemented_methods.evaluateSensorEdge;
|
|
138486
|
+
exports.evaluateSensorLevelEdge = require_implemented_methods.evaluateSensorLevelEdge;
|
|
138487
|
+
exports.evaluateStatefulExpressionCall = require_implemented_methods.evaluateStatefulExpressionCall;
|
|
137711
138488
|
exports.evaluateStationaryTrigger = evaluateStationaryTrigger;
|
|
137712
|
-
exports.evaluateStatistic =
|
|
138489
|
+
exports.evaluateStatistic = require_implemented_methods.evaluateStatistic;
|
|
137713
138490
|
exports.evaluateStepCondition = evaluateStepCondition;
|
|
137714
138491
|
exports.evaluateWhenTree = evaluateWhenTree;
|
|
137715
138492
|
exports.evaluateZoneRules = evaluateZoneRules;
|
|
@@ -137737,17 +138514,18 @@ exports.failureRate = failureRate;
|
|
|
137737
138514
|
exports.fanControlCapability = fanControlCapability;
|
|
137738
138515
|
exports.fanOutTargets = fanOutTargets;
|
|
137739
138516
|
exports.fanPresetsCapability = fanPresetsCapability;
|
|
137740
|
-
exports.featureFieldEntries =
|
|
138517
|
+
exports.featureFieldEntries = require_implemented_methods.featureFieldEntries;
|
|
137741
138518
|
exports.featureForwards = featureForwards;
|
|
137742
138519
|
exports.featureOfRole = featureOfRole;
|
|
137743
138520
|
exports.featureProbeCapability = featureProbeCapability;
|
|
137744
|
-
exports.featureSources =
|
|
138521
|
+
exports.featureSources = require_implemented_methods.featureSources;
|
|
137745
138522
|
exports.featuresOfBoundCaps = require_composed_stable_id.featuresOfBoundCaps;
|
|
137746
138523
|
exports.feederCustomizationExample = feederCustomizationExample;
|
|
137747
138524
|
exports.feederExampleSources = feederExampleSources;
|
|
137748
138525
|
exports.ffmpegRate = ffmpegRate;
|
|
137749
138526
|
exports.fieldEntryToSource = fieldEntryToSource;
|
|
137750
|
-
exports.fieldReads =
|
|
138527
|
+
exports.fieldReads = require_implemented_methods.fieldReads;
|
|
138528
|
+
exports.fieldSupportForTargets = fieldSupportForTargets;
|
|
137751
138529
|
exports.fieldUnitKeys = fieldUnitKeys;
|
|
137752
138530
|
exports.fieldUserFinder = fieldUserFinder;
|
|
137753
138531
|
exports.fieldsPinnedAtValueBelow = fieldsPinnedAtValueBelow;
|
|
@@ -137815,7 +138593,7 @@ exports.heatPumpControlCapability = heatPumpControlCapability;
|
|
|
137815
138593
|
exports.heatPumpInstantCop = heatPumpInstantCop;
|
|
137816
138594
|
exports.heatPumpStatusCapability = heatPumpStatusCapability;
|
|
137817
138595
|
exports.heatingValveCapability = heatingValveCapability;
|
|
137818
|
-
exports.helperMembers =
|
|
138596
|
+
exports.helperMembers = require_implemented_methods.helperMembers;
|
|
137819
138597
|
exports.helperSaveProblems = helperSaveProblems;
|
|
137820
138598
|
exports.heroArgsWithValue = heroArgsWithValue;
|
|
137821
138599
|
exports.heroLayoutCapability = heroLayoutCapability;
|
|
@@ -137823,7 +138601,7 @@ exports.heroText = require_sleep.t;
|
|
|
137823
138601
|
exports.hfModelUrl = require_sleep.hfModelUrl;
|
|
137824
138602
|
exports.historyFieldsFor = historyFieldsFor;
|
|
137825
138603
|
exports.historyItemFieldPath = require_sleep.historyItemFieldPath;
|
|
137826
|
-
exports.historyRetentionFromSettings =
|
|
138604
|
+
exports.historyRetentionFromSettings = require_implemented_methods.historyRetentionFromSettings;
|
|
137827
138605
|
exports.historyUnitFor = require_sleep.historyUnitFor;
|
|
137828
138606
|
exports.holdRefusalOf = holdRefusalOf;
|
|
137829
138607
|
exports.holdVarSlots = holdVarSlots;
|
|
@@ -137839,6 +138617,7 @@ exports.iconsInCategory = iconsInCategory;
|
|
|
137839
138617
|
exports.imageCapability = imageCapability;
|
|
137840
138618
|
exports.imageModesForKind = imageModesForKind;
|
|
137841
138619
|
exports.imageSettingsCapability = imageSettingsCapability;
|
|
138620
|
+
exports.implementedMethodsOf = require_implemented_methods.implementedMethodsOf;
|
|
137842
138621
|
exports.inferExpressionKinds = inferExpressionKinds;
|
|
137843
138622
|
exports.inferModelProvider = inferModelProvider;
|
|
137844
138623
|
exports.ingestReading = ingestReading;
|
|
@@ -137848,9 +138627,9 @@ exports.instanceApiOverTargets = instanceApiOverTargets;
|
|
|
137848
138627
|
exports.instanceSourceOverApi = instanceSourceOverApi;
|
|
137849
138628
|
exports.instancesOfCap = instancesOfCap;
|
|
137850
138629
|
exports.instantKindsOf = instantKindsOf;
|
|
137851
|
-
exports.integralCadenceMs =
|
|
138630
|
+
exports.integralCadenceMs = require_implemented_methods.integralCadenceMs;
|
|
137852
138631
|
exports.integralDraft = integralDraft;
|
|
137853
|
-
exports.integrateReading =
|
|
138632
|
+
exports.integrateReading = require_implemented_methods.integrateReading;
|
|
137854
138633
|
exports.integrationBodyFromRows = integrationBodyFromRows;
|
|
137855
138634
|
exports.integrationInstancesCapability = integrationInstancesCapability;
|
|
137856
138635
|
exports.integrationRowsApiOver = require_sleep.integrationRowsApiOver;
|
|
@@ -137865,7 +138644,7 @@ exports.interpolate = interpolate;
|
|
|
137865
138644
|
exports.interpretStoredClusterModel = interpretStoredClusterModel;
|
|
137866
138645
|
exports.invalidClusterStepModelEntries = invalidClusterStepModelEntries;
|
|
137867
138646
|
exports.invertPresetFeature = invertPresetFeature;
|
|
137868
|
-
exports.invocationFromEncodeProfile =
|
|
138647
|
+
exports.invocationFromEncodeProfile = require_implemented_methods.invocationFromEncodeProfile;
|
|
137869
138648
|
exports.irSourceProblem = irSourceProblem;
|
|
137870
138649
|
exports.irTransmitterCapability = irTransmitterCapability;
|
|
137871
138650
|
exports.isAgentOnlyPlacement = isAgentOnlyPlacement;
|
|
@@ -137903,13 +138682,15 @@ exports.isEventKindLabelKey = isEventKindLabelKey;
|
|
|
137903
138682
|
exports.isEventLeaf = isEventLeaf;
|
|
137904
138683
|
exports.isEventOwnerType = isEventOwnerType;
|
|
137905
138684
|
exports.isFirstLevelMacroClass = isFirstLevelMacroClass;
|
|
137906
|
-
exports.isForwardInputRef =
|
|
138685
|
+
exports.isForwardInputRef = require_implemented_methods.isForwardInputRef;
|
|
137907
138686
|
exports.isHeldBackTemplateVar = isHeldBackTemplateVar;
|
|
137908
|
-
exports.isHistoryHelper =
|
|
138687
|
+
exports.isHistoryHelper = require_implemented_methods.isHistoryHelper;
|
|
138688
|
+
exports.isHubId = isHubId;
|
|
137909
138689
|
exports.isIconKey = isIconKey;
|
|
137910
138690
|
exports.isInstanceEnabled = require_sleep.isInstanceEnabled;
|
|
137911
138691
|
exports.isInternalActionId = isInternalActionId;
|
|
137912
138692
|
exports.isIsolatedBuiltin = isIsolatedBuiltin;
|
|
138693
|
+
exports.isKernelDerivedFeature = isKernelDerivedFeature;
|
|
137913
138694
|
exports.isKeychainStoredField = require_sleep.isKeychainStoredField;
|
|
137914
138695
|
exports.isKnownTemplateVar = isKnownTemplateVar;
|
|
137915
138696
|
exports.isKnownTimeZone = isKnownTimeZone;
|
|
@@ -137950,10 +138731,10 @@ exports.isSecretRef = require_sleep.isSecretRef;
|
|
|
137950
138731
|
exports.isSecretRefOwnedBy = require_sleep.isSecretRefOwnedBy;
|
|
137951
138732
|
exports.isSingleHubAddressRole = isSingleHubAddressRole;
|
|
137952
138733
|
exports.isSkippedTrace = isSkippedTrace;
|
|
137953
|
-
exports.isSoftwareDecode =
|
|
137954
|
-
exports.isSourceCap =
|
|
138734
|
+
exports.isSoftwareDecode = require_implemented_methods.isSoftwareDecode;
|
|
138735
|
+
exports.isSourceCap = require_implemented_methods.isSourceCap;
|
|
137955
138736
|
exports.isStateLabelKey = isStateLabelKey;
|
|
137956
|
-
exports.isStatefulBuiltin =
|
|
138737
|
+
exports.isStatefulBuiltin = require_implemented_methods.isStatefulBuiltin;
|
|
137957
138738
|
exports.isStorageLocationMode = isStorageLocationMode;
|
|
137958
138739
|
exports.isSystemDelivery = isSystemDelivery;
|
|
137959
138740
|
exports.isSystemEventFamily = isSystemEventFamily;
|
|
@@ -138004,7 +138785,7 @@ exports.locationIconKey = locationIconKey;
|
|
|
138004
138785
|
exports.locationSimilarity = locationSimilarity;
|
|
138005
138786
|
exports.lockControlCapability = lockControlCapability;
|
|
138006
138787
|
exports.lockDoorLinkOfComposition = lockDoorLinkOfComposition;
|
|
138007
|
-
exports.logBannerArgs =
|
|
138788
|
+
exports.logBannerArgs = require_implemented_methods.logBannerArgs;
|
|
138008
138789
|
exports.logChannelsCapability = logChannelsCapability;
|
|
138009
138790
|
exports.logDestinationCapability = logDestinationCapability;
|
|
138010
138791
|
exports.logLevelAtMost = logLevelAtMost;
|
|
@@ -138021,7 +138802,7 @@ exports.markdownToHtmlLite = markdownToHtmlLite;
|
|
|
138021
138802
|
exports.markdownToText = markdownToText;
|
|
138022
138803
|
exports.maskUrlCredentials = require_sleep.maskUrlCredentials;
|
|
138023
138804
|
exports.matchDoAction = matchDoAction;
|
|
138024
|
-
exports.maxDurationMs =
|
|
138805
|
+
exports.maxDurationMs = require_implemented_methods.maxDurationMs;
|
|
138025
138806
|
exports.mayReadLocation = mayReadLocation;
|
|
138026
138807
|
exports.mayWriteToLocation = mayWriteToLocation;
|
|
138027
138808
|
exports.measuredCapacityFromResults = measuredCapacityFromResults;
|
|
@@ -138077,7 +138858,7 @@ exports.ncMediaPolicyError = ncMediaPolicyError;
|
|
|
138077
138858
|
exports.networkAccessCapability = networkAccessCapability;
|
|
138078
138859
|
exports.networkLinkCapability = networkLinkCapability;
|
|
138079
138860
|
exports.networkQualityCapability = networkQualityCapability;
|
|
138080
|
-
exports.nextLocalMidnight =
|
|
138861
|
+
exports.nextLocalMidnight = require_implemented_methods.nextLocalMidnight;
|
|
138081
138862
|
exports.nextOccurrence = nextOccurrence;
|
|
138082
138863
|
exports.nodeBenchmarkRefusals = nodeBenchmarkRefusals;
|
|
138083
138864
|
exports.nodeCertificatesCapability = nodeCertificatesCapability;
|
|
@@ -138117,8 +138898,8 @@ exports.objectInputDeclaresRequiredDeviceId = objectInputDeclaresRequiredDeviceI
|
|
|
138117
138898
|
exports.occupancyScope = occupancyScope;
|
|
138118
138899
|
exports.occurrenceOn = occurrenceOn;
|
|
138119
138900
|
exports.omitTransientConfig = require_sleep.omitTransientConfig;
|
|
138120
|
-
exports.openReset =
|
|
138121
|
-
exports.openStatistic =
|
|
138901
|
+
exports.openReset = require_implemented_methods.openReset;
|
|
138902
|
+
exports.openStatistic = require_implemented_methods.openStatistic;
|
|
138122
138903
|
exports.optionalAncestors = optionalAncestors;
|
|
138123
138904
|
exports.optionalLinkField = require_sleep.optionalLinkField;
|
|
138124
138905
|
exports.optionalMethod = require_sleep.optionalMethod;
|
|
@@ -138147,7 +138928,7 @@ exports.parseCameraStreamConfig = parseCameraStreamConfig;
|
|
|
138147
138928
|
exports.parseColorInput = parseColorInput;
|
|
138148
138929
|
exports.parseCredentialScopes = parseCredentialScopes;
|
|
138149
138930
|
exports.parseDeviceEnrollmentLink = parseDeviceEnrollmentLink;
|
|
138150
|
-
exports.parseExpression =
|
|
138931
|
+
exports.parseExpression = require_implemented_methods.parseExpression;
|
|
138151
138932
|
exports.parseFlipperIr = parseFlipperIr;
|
|
138152
138933
|
exports.parseJsonArray = require_sleep.parseJsonArray;
|
|
138153
138934
|
exports.parseJsonObject = require_sleep.parseJsonObject;
|
|
@@ -138184,7 +138965,7 @@ exports.pickNativeLeaseOverride = pickNativeLeaseOverride;
|
|
|
138184
138965
|
exports.pickPreferredRtspEntry = pickPreferredRtspEntry;
|
|
138185
138966
|
exports.pickRequestOrigin = pickRequestOrigin;
|
|
138186
138967
|
exports.pickRestartCandidate = pickRestartCandidate;
|
|
138187
|
-
exports.pickVideoEncoder =
|
|
138968
|
+
exports.pickVideoEncoder = require_implemented_methods.pickVideoEncoder;
|
|
138188
138969
|
exports.pickerForCondition = pickerForCondition;
|
|
138189
138970
|
exports.pickerForRuleClasses = pickerForRuleClasses;
|
|
138190
138971
|
exports.pinUnderBenchmark = pinUnderBenchmark;
|
|
@@ -138198,8 +138979,8 @@ exports.planItems = planItems;
|
|
|
138198
138979
|
exports.planMotionCropRegions = planMotionCropRegions;
|
|
138199
138980
|
exports.planMotionCrops = planMotionCrops;
|
|
138200
138981
|
exports.planRecoveryCrops = planRecoveryCrops;
|
|
138201
|
-
exports.planResetTier =
|
|
138202
|
-
exports.planStatisticTier =
|
|
138982
|
+
exports.planResetTier = require_implemented_methods.planResetTier;
|
|
138983
|
+
exports.planStatisticTier = require_implemented_methods.planStatisticTier;
|
|
138203
138984
|
exports.plateGalleryCapability = plateGalleryCapability;
|
|
138204
138985
|
exports.platformProbeCapability = platformProbeCapability;
|
|
138205
138986
|
exports.plusCatalogDefaultClassFloors = plusCatalogDefaultClassFloors;
|
|
@@ -138215,7 +138996,9 @@ exports.presenceCapability = presenceCapability;
|
|
|
138215
138996
|
exports.presetById = presetById;
|
|
138216
138997
|
exports.pressureSensorCapability = pressureSensorCapability;
|
|
138217
138998
|
exports.primaryCapForRole = primaryCapForRole;
|
|
138999
|
+
exports.primaryChildPreferenceOf = primaryChildPreferenceOf;
|
|
138218
139000
|
exports.principalMayReachAddon = principalMayReachAddon;
|
|
139001
|
+
exports.priorityLevelsOf = priorityLevelsOf;
|
|
138219
139002
|
exports.privacyMaskCapability = privacyMaskCapability;
|
|
138220
139003
|
exports.probeToTestResult = probeToTestResult;
|
|
138221
139004
|
exports.problemsBlockSave = problemsBlockSave;
|
|
@@ -138263,6 +139046,7 @@ exports.rebootCapability = rebootCapability;
|
|
|
138263
139046
|
exports.recommendNode = recommendNode;
|
|
138264
139047
|
exports.reconcileBlockDevices = reconcileBlockDevices;
|
|
138265
139048
|
exports.reconcileRemovedDevices = reconcileRemovedDevices;
|
|
139049
|
+
exports.reconcileReportedFeatures = reconcileReportedFeatures;
|
|
138266
139050
|
exports.recordArrayItemPath = require_sleep.recordArrayItemPath;
|
|
138267
139051
|
exports.recordEntriesCapability = recordEntriesCapability;
|
|
138268
139052
|
exports.recordSecretCollection = require_sleep.recordSecretCollection;
|
|
@@ -138355,7 +139139,7 @@ exports.resolveSecretViewsIn = require_sleep.resolveSecretViewsIn;
|
|
|
138355
139139
|
exports.resolveServerName = resolveServerName;
|
|
138356
139140
|
exports.resolveStepArgs = resolveStepArgs;
|
|
138357
139141
|
exports.resolveStepArgsWithTemplates = resolveStepArgsWithTemplates;
|
|
138358
|
-
exports.resolveStreamMaps =
|
|
139142
|
+
exports.resolveStreamMaps = require_implemented_methods.resolveStreamMaps;
|
|
138359
139143
|
exports.resolveTemplateRef = resolveTemplateRef;
|
|
138360
139144
|
exports.resolveVariantModelId = resolveVariantModelId;
|
|
138361
139145
|
exports.resolveViewableDeviceIds = resolveViewableDeviceIds;
|
|
@@ -138370,7 +139154,7 @@ exports.rewriteLoginProxyLocation = rewriteLocation;
|
|
|
138370
139154
|
exports.rewriteLoginProxyReferer = rewriteReferer;
|
|
138371
139155
|
exports.rewriteLoginProxySetCookie = rewriteSetCookie;
|
|
138372
139156
|
exports.roleSpec = roleSpec;
|
|
138373
|
-
exports.rollingDurationMs =
|
|
139157
|
+
exports.rollingDurationMs = require_implemented_methods.rollingDurationMs;
|
|
138374
139158
|
exports.roomCompositionExample = roomCompositionExample;
|
|
138375
139159
|
exports.rootSuppliesOf = rootSuppliesOf;
|
|
138376
139160
|
exports.rootSupplyServes = rootSupplyServes;
|
|
@@ -138410,6 +139194,7 @@ exports.runtimeStatePolicyFor = runtimeStatePolicyFor;
|
|
|
138410
139194
|
exports.sameDoFamily = sameDoFamily;
|
|
138411
139195
|
exports.sameHelperBody = sameHelperBody;
|
|
138412
139196
|
exports.sameRead = sameRead;
|
|
139197
|
+
exports.sanitizeTargetOverride = sanitizeTargetOverride;
|
|
138413
139198
|
exports.scalarTargetCount = scalarTargetCount;
|
|
138414
139199
|
exports.sceneMonitorCapability = sceneMonitorCapability;
|
|
138415
139200
|
exports.scheduleForSendTimes = scheduleForSendTimes;
|
|
@@ -138457,6 +139242,7 @@ exports.setPaletteInputSchema = setPaletteInputSchema;
|
|
|
138457
139242
|
exports.settingValuesEqual = settingValuesEqual;
|
|
138458
139243
|
exports.settingsBelow = settingsBelow;
|
|
138459
139244
|
exports.settingsStoreCapability = settingsStoreCapability;
|
|
139245
|
+
exports.settleDeviceFeatures = settleDeviceFeatures;
|
|
138460
139246
|
exports.shareViewGrantOf = shareViewGrantOf;
|
|
138461
139247
|
exports.sharedActuatorFeatures = sharedActuatorFeatures;
|
|
138462
139248
|
exports.sharedActuatorMethods = sharedActuatorMethods;
|
|
@@ -138471,9 +139257,9 @@ exports.siteZoneKey = siteZoneKey;
|
|
|
138471
139257
|
exports.skipSignature = skipSignature;
|
|
138472
139258
|
exports.sleep = require_sleep.sleep;
|
|
138473
139259
|
exports.sleepCancellable = require_sleep.sleepCancellable;
|
|
138474
|
-
exports.sliceActiveValue =
|
|
139260
|
+
exports.sliceActiveValue = require_implemented_methods.sliceActiveValue;
|
|
138475
139261
|
exports.sliceCapOf = sliceCapOf;
|
|
138476
|
-
exports.sliceChangedAt =
|
|
139262
|
+
exports.sliceChangedAt = require_implemented_methods.sliceChangedAt;
|
|
138477
139263
|
exports.slugifyDeviceAlias = slugifyDeviceAlias;
|
|
138478
139264
|
exports.smartIrDraft = smartIrDraft;
|
|
138479
139265
|
exports.smokeCapability = smokeCapability;
|
|
@@ -138493,7 +139279,7 @@ exports.startMoverUnderClearance = startMoverUnderClearance;
|
|
|
138493
139279
|
exports.startReachabilityPoll = startReachabilityPoll;
|
|
138494
139280
|
exports.stateLabel = stateLabel;
|
|
138495
139281
|
exports.stateVocabularyFor = stateVocabularyFor;
|
|
138496
|
-
exports.statisticCadenceMs =
|
|
139282
|
+
exports.statisticCadenceMs = require_implemented_methods.statisticCadenceMs;
|
|
138497
139283
|
exports.statisticDraft = statisticDraft;
|
|
138498
139284
|
exports.statusInstanceOf = statusInstanceOf;
|
|
138499
139285
|
exports.stepModelRunsOnFormat = stepModelRunsOnFormat;
|
|
@@ -138555,6 +139341,7 @@ exports.systemEventSummarySplitOf = systemEventSummarySplitOf;
|
|
|
138555
139341
|
exports.systemFamilyOfKind = systemFamilyOfKind;
|
|
138556
139342
|
exports.systemRuleKindOf = systemRuleKindOf;
|
|
138557
139343
|
exports.tamperCapability = tamperCapability;
|
|
139344
|
+
exports.targetAttachmentAllows = targetAttachmentAllows;
|
|
138558
139345
|
exports.targetBody = targetBody;
|
|
138559
139346
|
exports.targetFeature = targetFeature;
|
|
138560
139347
|
exports.targetOfRecord = targetOfRecord;
|
|
@@ -138585,7 +139372,7 @@ exports.timedRunRemaining = timedRunRemaining;
|
|
|
138585
139372
|
exports.timedRunSeconds = timedRunSeconds;
|
|
138586
139373
|
exports.toAppLinkHubOrigin = toAppLinkHubOrigin;
|
|
138587
139374
|
exports.toDeviceSummary = toDeviceSummary;
|
|
138588
|
-
exports.toExpressionValue =
|
|
139375
|
+
exports.toExpressionValue = require_implemented_methods.toExpressionValue;
|
|
138589
139376
|
exports.toNodeId = require_sleep.toNodeId;
|
|
138590
139377
|
exports.toPercentShares = toPercentShares;
|
|
138591
139378
|
exports.toSecretFieldView = require_sleep.toSecretFieldView;
|
|
@@ -138593,7 +139380,7 @@ exports.toStreamSourceEntry = toStreamSourceEntry;
|
|
|
138593
139380
|
exports.toTimings = toTimings;
|
|
138594
139381
|
exports.toastCapability = toastCapability;
|
|
138595
139382
|
exports.toggleAudioLabel = toggleAudioLabel;
|
|
138596
|
-
exports.tokenize =
|
|
139383
|
+
exports.tokenize = require_implemented_methods.tokenize;
|
|
138597
139384
|
exports.trainingCapability = trainingCapability;
|
|
138598
139385
|
exports.trainingProviderCapability = trainingProviderCapability;
|
|
138599
139386
|
exports.transcodeBody = transcodeBody;
|
|
@@ -138621,7 +139408,7 @@ exports.vacuumControlCapability = vacuumControlCapability;
|
|
|
138621
139408
|
exports.validateComposition = validateComposition;
|
|
138622
139409
|
exports.validateCustomAddress = validateCustomAddress;
|
|
138623
139410
|
exports.validateDraft = validateDraft;
|
|
138624
|
-
exports.validateExpressionSource =
|
|
139411
|
+
exports.validateExpressionSource = require_implemented_methods.validateExpressionSource;
|
|
138625
139412
|
exports.validatePalette = validatePalette;
|
|
138626
139413
|
exports.validateRecipeBounds = validateRecipeBounds;
|
|
138627
139414
|
exports.validateSchedulerInput = validateSchedulerInput;
|
|
@@ -138642,7 +139429,7 @@ exports.vocabActionIdFor = require_sleep.vocabActionIdFor;
|
|
|
138642
139429
|
exports.vocabularyActionsForDevice = actionsForDevice$1;
|
|
138643
139430
|
exports.vocabularyTriggersForDevice = triggersForDevice;
|
|
138644
139431
|
exports.waterHeaterCapability = waterHeaterCapability;
|
|
138645
|
-
exports.wattMillisecondsToKwh =
|
|
139432
|
+
exports.wattMillisecondsToKwh = require_implemented_methods.wattMillisecondsToKwh;
|
|
138646
139433
|
exports.weatherCapability = weatherCapability;
|
|
138647
139434
|
exports.webrtcClientHintsSchema = webrtcClientHintsSchema;
|
|
138648
139435
|
exports.webrtcSessionCapability = webrtcSessionCapability;
|